diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2cc7d9e..7fbecc3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,12 +15,8 @@ jobs: runs-on: ubuntu-latest env: BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }} - BW_USERNAME: ${{ secrets.BW_USERNAME }} - BW_PASSWORD: ${{ secrets.BW_PASSWORD }} BW_CLIENT_ID: ${{ secrets.BW_CLIENT_ID }} BW_CLIENT_SECRET: ${{ secrets.BW_CLIENT_SECRET }} - BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }} - BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }} BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }} BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }} BW_NUMBER: ${{ secrets.BW_NUMBER }} diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index fc508ae..22f5811 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -11,12 +11,8 @@ concurrency: env: BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }} - BW_USERNAME: ${{ secrets.BW_USERNAME }} - BW_PASSWORD: ${{ secrets.BW_PASSWORD }} BW_CLIENT_ID: ${{ secrets.BW_CLIENT_ID }} BW_CLIENT_SECRET: ${{ secrets.BW_CLIENT_SECRET }} - BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }} - BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }} BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }} BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }} BW_NUMBER: ${{ secrets.BW_NUMBER }} diff --git a/.github/workflows/test-smoke.yml b/.github/workflows/test-smoke.yml index 1033258..4ed35c2 100644 --- a/.github/workflows/test-smoke.yml +++ b/.github/workflows/test-smoke.yml @@ -13,12 +13,8 @@ concurrency: cancel-in-progress: true env: - BW_USERNAME: ${{ secrets.BW_USERNAME }} - BW_PASSWORD: ${{ secrets.BW_PASSWORD }} BW_CLIENT_ID: ${{ secrets.BW_CLIENT_ID }} BW_CLIENT_SECRET: ${{ secrets.BW_CLIENT_SECRET }} - BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }} - BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }} USER_NUMBER: ${{ secrets.USER_NUMBER }} BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }} MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }} diff --git a/README.md b/README.md index 29f67b9..9c4b086 100644 --- a/README.md +++ b/README.md @@ -374,11 +374,6 @@ Class | Method | HTTP request | Description Authentication schemes defined for the API: - -### Basic - -- **Type**: HTTP basic authentication - ### OAuth2 diff --git a/api/calls-api.ts b/api/calls-api.ts index 181e618..2fec3e4 100644 --- a/api/calls-api.ts +++ b/api/calls-api.ts @@ -62,10 +62,6 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -110,10 +106,6 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -159,10 +151,6 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -236,10 +224,6 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -287,10 +271,6 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/conferences-api.ts b/api/conferences-api.ts index ab1e707..b3f801d 100644 --- a/api/conferences-api.ts +++ b/api/conferences-api.ts @@ -69,10 +69,6 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -115,10 +111,6 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -165,10 +157,6 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -215,10 +203,6 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -261,10 +245,6 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -308,10 +288,6 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -377,10 +353,6 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -428,10 +400,6 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -483,10 +451,6 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/endpoints-api.ts b/api/endpoints-api.ts index d07e7e3..6124e66 100644 --- a/api/endpoints-api.ts +++ b/api/endpoints-api.ts @@ -66,10 +66,6 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -114,10 +110,6 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -160,10 +152,6 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -206,10 +194,6 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -271,10 +255,6 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/media-api.ts b/api/media-api.ts index 863f070..aa1cfd2 100644 --- a/api/media-api.ts +++ b/api/media-api.ts @@ -57,10 +57,6 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -103,10 +99,6 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -146,10 +138,6 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -200,10 +188,6 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/messages-api.ts b/api/messages-api.ts index 55559a1..81ad3f7 100644 --- a/api/messages-api.ts +++ b/api/messages-api.ts @@ -70,10 +70,6 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -141,10 +137,6 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/mfaapi.ts b/api/mfaapi.ts index 8ac5028..5ceaa66 100644 --- a/api/mfaapi.ts +++ b/api/mfaapi.ts @@ -68,10 +68,6 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -115,10 +111,6 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -162,10 +154,6 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/multi-channel-api.ts b/api/multi-channel-api.ts index 368c441..e995dca 100644 --- a/api/multi-channel-api.ts +++ b/api/multi-channel-api.ts @@ -58,10 +58,6 @@ export const MultiChannelApiAxiosParamCreator = function (configuration?: Config const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/phone-number-lookup-api.ts b/api/phone-number-lookup-api.ts index b187f7d..823bb8a 100644 --- a/api/phone-number-lookup-api.ts +++ b/api/phone-number-lookup-api.ts @@ -64,10 +64,6 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -111,10 +107,6 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -159,10 +151,6 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/recordings-api.ts b/api/recordings-api.ts index 94a8cd7..e31cf2b 100644 --- a/api/recordings-api.ts +++ b/api/recordings-api.ts @@ -67,10 +67,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -117,10 +113,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -167,10 +159,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -217,10 +205,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -267,10 +251,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -317,10 +297,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -363,10 +339,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -425,10 +397,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -478,10 +446,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -529,10 +493,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/statistics-api.ts b/api/statistics-api.ts index a2e8cef..f4f8b76 100644 --- a/api/statistics-api.ts +++ b/api/statistics-api.ts @@ -53,10 +53,6 @@ export const StatisticsApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/toll-free-verification-api.ts b/api/toll-free-verification-api.ts index 1b3c917..1d28d04 100644 --- a/api/toll-free-verification-api.ts +++ b/api/toll-free-verification-api.ts @@ -66,10 +66,6 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -114,10 +110,6 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -160,10 +152,6 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -206,10 +194,6 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -244,10 +228,6 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -286,10 +266,6 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -331,10 +307,6 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -382,10 +354,6 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -433,10 +401,6 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/api/transcriptions-api.ts b/api/transcriptions-api.ts index 83d255e..ab17c56 100644 --- a/api/transcriptions-api.ts +++ b/api/transcriptions-api.ts @@ -63,10 +63,6 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -113,10 +109,6 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) @@ -159,10 +151,6 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Basic required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication OAuth2 required // oauth required await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) diff --git a/bandwidth.yml b/bandwidth.yml index 0df9d76..bffc646 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -8,7 +8,6 @@ info: email: letstalk@bandwidth.com version: 1.0.0 security: - - Basic: [] - OAuth2: [] tags: - name: Messages @@ -2015,7 +2014,7 @@ components: type: string format: date-time description: The ISO 8601 datetime of the message. - example: 2020-04-07T14:03:07.000Z + example: '2020-04-07T14:03:07.000Z' carrierName: type: string nullable: true @@ -2095,13 +2094,11 @@ components: prevPage: type: string description: The link to the previous page for pagination. - example: >- - https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&nextPage=DLAPE902 + example: https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&nextPage=DLAPE902 nextPage: type: string description: The link to the next page for pagination. - example: >- - https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&prevPage=GL83PD3C + example: https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&prevPage=GL83PD3C prevPageToken: type: string description: The isolated pagination token for the previous page. @@ -2202,7 +2199,7 @@ components: type: string format: date-time description: The datetime stamp of the message in ISO 8601 - example: 2024-12-02T20:15:57.278Z + example: '2024-12-02T20:15:57.278201Z' segmentCount: $ref: '#/components/schemas/segmentCount' direction: @@ -2698,14 +2695,14 @@ components: description: >- The start time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. - example: 2022-09-14T18:20:16.000Z + example: '2022-09-14T18:20:16.000Z' endTime: type: string format: date-time description: >- The end time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. - example: 2022-09-14T18:20:16.000Z + example: '2022-09-14T18:20:16.000Z' description: type: string description: The description of the event. @@ -2877,7 +2874,7 @@ components: description: The time the message was received by the Bandwidth API. type: string format: date-time - example: 2025-01-01T18:20:16.000Z + example: '2025-01-01T18:20:16.000Z' direction: $ref: '#/components/schemas/messageDirectionEnum' to: @@ -3037,14 +3034,14 @@ components: time: type: string format: date-time - example: 2024-12-02T20:15:57.278Z + example: '2024-12-02T20:15:57.278201Z' eventTime: type: string description: >- Represents the time at which the message was read, for `message-read` callbacks. format: date-time - example: 2024-12-02T20:15:58.278Z + example: '2024-12-02T20:15:58.278205Z' type: $ref: '#/components/schemas/statusCallbackTypeEnum' to: @@ -3080,7 +3077,7 @@ components: time: type: string format: date-time - example: 2024-12-02T20:15:57.278Z + example: '2024-12-02T20:15:57.278201Z' type: $ref: '#/components/schemas/inboundCallbackTypeEnum' to: @@ -3176,7 +3173,7 @@ components: time: type: string format: date-time - example: 2024-12-02T20:15:57.666Z + example: '2024-12-02T20:15:57.666000Z' segmentCount: $ref: '#/components/schemas/segmentCount' direction: @@ -3408,8 +3405,7 @@ components: uui: nullable: true type: string - example: >- - eyJhbGciOiJIUzI1NiJ9.WyJoaSJd.-znkjYyCkgz4djmHUPSXl9YrJ6Nix_XvmlwKGFh5ERM;encoding=jwt,aGVsbG8gd29ybGQ;encoding=base64 + example: eyJhbGciOiJIUzI1NiJ9.WyJoaSJd.-znkjYyCkgz4djmHUPSXl9YrJ6Nix_XvmlwKGFh5ERM;encoding=jwt,aGVsbG8gd29ybGQ;encoding=base64 description: >- A comma-separated list of 'User-To-User' headers to be sent @@ -3619,8 +3615,7 @@ components: callUrl: type: string format: uri - example: >- - https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 description: The URL to update this call's state. callTimeout: type: number @@ -3791,8 +3786,7 @@ components: configured to forward this header. - example: >- - eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9idy1zaGFrZW4tY2VydC1wdWIuczMuYW1hem9uYXdzLmNvbS9iYW5kd2lkdGgtc2hha2VuLWNlcnRfMjAyMzA3MTYucGVtIn0.eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6WyIxOTg0MjgyMDI4MCJdfSwiaWF0IjoxNjU2NTM0MzM2LCJvcmlnIjp7InRuIjoiMTkxOTQ0NDI2ODMifSwib3JpZ2lkIjoiNDk0NTlhOGEtNDJmNi0zNTFjLTkzNjEtYWRmNTdhOWUwOGNhIn0.56un9sRw_uH-sbJvnUsqdevlVxbOVjn8MVlGTlBMicjaZuRRwxfiNp-C9zYCMKTTCbc-QdYPN05F61XNVN4D3w;info=;alg=ES256;ppt=shaken + example: eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9idy1zaGFrZW4tY2VydC1wdWIuczMuYW1hem9uYXdzLmNvbS9iYW5kd2lkdGgtc2hha2VuLWNlcnRfMjAyMzA3MTYucGVtIn0.eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6WyIxOTg0MjgyMDI4MCJdfSwiaWF0IjoxNjU2NTM0MzM2LCJvcmlnIjp7InRuIjoiMTkxOTQ0NDI2ODMifSwib3JpZ2lkIjoiNDk0NTlhOGEtNDJmNi0zNTFjLTkzNjEtYWRmNTdhOWUwOGNhIn0.56un9sRw_uH-sbJvnUsqdevlVxbOVjn8MVlGTlBMicjaZuRRwxfiNp-C9zYCMKTTCbc-QdYPN05F61XNVN4D3w;info=;alg=ES256;ppt=shaken enqueuedTime: nullable: true type: string @@ -4109,8 +4103,7 @@ components: respond. Not allowed if `state` is `completed`. - example: >- - https://myFallbackServer.example/bandwidth/webhooks/conferenceRedirect + example: https://myFallbackServer.example/bandwidth/webhooks/conferenceRedirect redirectFallbackMethod: $ref: '#/components/schemas/redirectMethodEnum' fallbackUsername: @@ -4149,8 +4142,7 @@ components: Member](/apis/voice-apis/voice/#tag/Conferences/operation/updateConferenceMember) endpoint. - example: >- - https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/members/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + example: https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/members/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 mute: type: boolean description: >- @@ -4387,8 +4379,7 @@ components: to respond maxLength: 2048 - example: >- - https://myFallbackServer.example/bandwidth/webhooks/machineDetectionComplete + example: https://myFallbackServer.example/bandwidth/webhooks/machineDetectionComplete fallbackMethod: $ref: '#/components/schemas/callbackMethodEnum' fallbackUsername: @@ -4542,8 +4533,7 @@ components: example: - transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b transcriptionName: live_transcription - transcriptionUrl: >- - https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b + transcriptionUrl: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b callTranscriptionMetadata: type: object properties: @@ -4566,8 +4556,7 @@ components: [Get Call Transcription](/apis/voice-apis/voice/#tag/Transcriptions/operation/getRealTimeTranscription) endpoint. - example: >- - https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b + example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b callTranscriptionResponse: type: object properties: @@ -4632,8 +4621,7 @@ components: type: string format: uri description: The URL of the [transcription](#operation/getCallTranscription) - example: >- - https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/transcription + example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/transcription voiceApiError: type: object properties: @@ -5608,8 +5596,7 @@ components: description: >- The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. - example: >- - https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/recordings/r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833/media + example: https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/recordings/r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833/media callId: type: string description: The call id associated with the event. @@ -5622,8 +5609,7 @@ components: type: string format: uri description: The URL of the call associated with the event. - example: >- - https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 parentCallId: type: string description: >- @@ -6869,8 +6855,7 @@ components: maxLength: 500 nullable: false example: https://www.example.com/path/to/resource - pattern: >- - ^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*) + pattern: ^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*) confirmationResponse: type: string minLength: 0 @@ -6917,8 +6902,7 @@ components: minLength: 0 maxLength: 500 nullable: false - pattern: >- - ^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$ + pattern: ^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$ example: foo@bar.com useCases: type: array @@ -7070,8 +7054,7 @@ components: maxLength: 2000 nullable: true example: https://www.example.com/path/to/resource - pattern: >- - ^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*) + pattern: ^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*) tfvError: description: A generic error object. properties: @@ -7210,8 +7193,7 @@ components: minLength: 0 maxLength: 500 nullable: true - example: >- - cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw + example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw endpointId: type: string description: The unique ID of the endpoint. @@ -7416,8 +7398,7 @@ components: href: type: string description: The full URL of the link. - example: >- - https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + example: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 rel: type: string description: The relationship of the link to the current resource. @@ -8411,8 +8392,7 @@ components: in: header name: Continuation-Token description: Continuation token used to retrieve subsequent media. - example: >- - 1XEi2tsFtLo1JbtLwETnM1ZJ+PqAa8w6ENvC5QKvwyrCDYII663Gy5M4s40owR1tjkuWUif6qbWvFtQJR5/ipqbUnfAqL254LKNlPy6tATCzioKSuHuOqgzloDkSwRtX0LtcL2otHS69hK343m+SjdL+vlj71tT39 + example: 1XEi2tsFtLo1JbtLwETnM1ZJ+PqAa8w6ENvC5QKvwyrCDYII663Gy5M4s40owR1tjkuWUif6qbWvFtQJR5/ipqbUnfAqL254LKNlPy6tATCzioKSuHuOqgzloDkSwRtX0LtcL2otHS69hK343m+SjdL+vlj71tT39 schema: type: string messageId: @@ -8501,7 +8481,7 @@ components: description: >- The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. - example: 2022-09-14T18:20:16.000Z + example: '2022-09-14T18:20:16.000Z' schema: type: string toDateTime: @@ -8511,7 +8491,7 @@ components: description: >- The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. - example: 2022-09-14T18:20:16.000Z + example: '2022-09-14T18:20:16.000Z' schema: type: string campaignId: @@ -8979,8 +8959,7 @@ components: from: '+12345678901' text: Hey, check out the MMS! media: - - >- - https://messaging.bandwidth.com/api/v2/users/9900902/media/14762070468292kw2fuqty55yp2b2/0/bw.png + - https://messaging.bandwidth.com/api/v2/users/9900902/media/14762070468292kw2fuqty55yp2b2/0/bw.png rbmMessageReceivedSessionCallbackExample: summary: >- An example of a rbm message-received callback body for a message that is @@ -9209,8 +9188,7 @@ components: to: '+19195551234' from: '+19195554312' enqueuedTime: '2022-06-16T13:15:07.160Z' - callUrl: >- - https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + callUrl: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 callTimeout: 30 callbackTimeout: 15 tag: My custom tag value @@ -9302,14 +9280,12 @@ components: summary: Numbers Lookup Accepted value: links: - - href: >- - /accounts/9912345/phoneNumberLookup/bulk/004223a0-8b17-41b1-bf81-20732adf5590 + - href: /accounts/9912345/phoneNumberLookup/bulk/004223a0-8b17-41b1-bf81-20732adf5590 rel: createdRequest method: GET data: requestId: 004223a0-8b17-41b1-bf81-20732adf5590 status: IN_PROGRESS - results: [] errors: [] lookupInProgressExample: summary: Numbers Lookup In Progress @@ -9482,7 +9458,8 @@ components: links: [] data: {} errors: - - type: bad-request + - code: '1234' + type: bad-request description: >- Bad Request. Ensure that you have set the requestId as a URL path parameter. @@ -9495,7 +9472,6 @@ components: - type: Unauthorized description: You are not authorized to access this resource. code: '1' - page: null forbiddenExample: summary: Forbidden Error value: @@ -9505,14 +9481,14 @@ components: - type: Forbidden description: You do not have permission to access this resource. code: '2' - page: null unsupportedMediaTypeExample: summary: Unsupported Media Type Error value: links: [] data: {} errors: - - type: invalid-content-type + - code: '1234' + type: invalid-content-type description: >- Invalid content-type. Ensure that your content-type header is set to application/json. @@ -9522,7 +9498,8 @@ components: links: [] data: {} errors: - - type: not-found + - code: '1234' + type: not-found description: >- RequestId not found. Ensure that the requestId used in the URL path is valid and maps to a previous request that was submitted. @@ -9532,7 +9509,8 @@ components: links: [] data: {} errors: - - type: rate-limiting + - code: '1234' + type: rate-limiting description: >- Rate limit exceeded. Wait for the time specified in the Retry-After header before sending another request. @@ -9552,12 +9530,10 @@ components: summary: List Endpoints Paginated Response value: links: - - href: >- - https://api.bandwidth.com/v2/accounts/5500123/endpoints?type=SIP&status=CONNECTED&limit=2 + - href: https://api.bandwidth.com/v2/accounts/5500123/endpoints?type=SIP&status=CONNECTED&limit=2 rel: self method: GET - - href: >- - https://api.bandwidth.com/v2/accounts/5500123/endpoints?type=SIP&status=CONNECTED&limit=2&afterCursor=TWF5IHRoZSBmb3JjZSBiZSB3aXRoIHlvdQ== + - href: https://api.bandwidth.com/v2/accounts/5500123/endpoints?type=SIP&status=CONNECTED&limit=2&afterCursor=TWF5IHRoZSBmb3JjZSBiZSB3aXRoIHlvdQ== rel: next method: GET page: @@ -9583,8 +9559,7 @@ components: summary: Create Endpoint Response value: links: - - href: >- - https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + - href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 rel: endpoint method: GET data: @@ -9601,8 +9576,7 @@ components: summary: Get Endpoint Response value: links: - - href: >- - https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + - href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 rel: self method: GET data: @@ -10128,24 +10102,6 @@ components: examples: updateEndpointBxmlRequestExample: $ref: '#/components/examples/updateEndpointBxmlRequestExample' - securitySchemes: - Basic: - type: http - scheme: basic - description: >- - Basic authentication is a simple authentication scheme built into the - HTTP protocol. To use it, send your HTTP requests with an - `Authorization` header that contains the word `Basic` followed by a - space and a Base64-encoded string `username:password`. - - - - Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==` - OAuth2: - type: oauth2 - flows: - clientCredentials: - tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token - scopes: {} callbacks: inboundCallback: '{inboundCallbackUrl}': @@ -10182,8 +10138,7 @@ components: mmsMessageReceivedCallback: $ref: '#/components/examples/mmsMessageReceivedCallbackExample' rbmMessageReceivedSessionCallback: - $ref: >- - #/components/examples/rbmMessageReceivedSessionCallbackExample + $ref: '#/components/examples/rbmMessageReceivedSessionCallbackExample' responses: '200': description: OK @@ -10218,14 +10173,11 @@ components: mmsMessageDeliveredCallback: $ref: '#/components/examples/mmsMessageDeliveredCallbackExample' groupMmsMessageDeliveredCallback: - $ref: >- - #/components/examples/groupMmsMessageDeliveredCallbackExample + $ref: '#/components/examples/groupMmsMessageDeliveredCallbackExample' rbmMessageDeliveredSessionCallback: - $ref: >- - #/components/examples/rbmMessageDeliveredSessionCallbackExample + $ref: '#/components/examples/rbmMessageDeliveredSessionCallbackExample' rbmMessageDeliveredCanInitiateSessionCallback: - $ref: >- - #/components/examples/rbmMessageDeliveredCanInitiateSessionCallbackExample + $ref: '#/components/examples/rbmMessageDeliveredCanInitiateSessionCallbackExample' messageFailedCallback: $ref: '#/components/examples/messageFailedCallbackExample' sessionStartedCallback: @@ -10289,3 +10241,14 @@ components: responses: '204': description: Event was successfully received. + securitySchemes: + OAuth2: + type: oauth2 + description: >- + OAuth2 client credentials. For information on obtaining credentials, see + [Credentials + Management](https://dev.bandwidth.com/docs/account/credentials/management/). + flows: + clientCredentials: + tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token + scopes: {} diff --git a/common.ts b/common.ts index 3eabd52..f6489de 100644 --- a/common.ts +++ b/common.ts @@ -38,11 +38,8 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri } } -export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { - if (configuration && (configuration.username || configuration.password)) { - object["auth"] = { username: configuration.username, password: configuration.password }; - } -} +// No-op: kept because the generated API files import it unconditionally. +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {} export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { if (configuration && configuration.accessToken) { diff --git a/configuration.ts b/configuration.ts index adc0b49..e2bc3d5 100644 --- a/configuration.ts +++ b/configuration.ts @@ -27,8 +27,6 @@ interface AWSv4Configuration { export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - username?: string; - password?: string; clientId?: string; clientSecret?: string; accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); @@ -46,14 +44,6 @@ export class Configuration { * @param name security name */ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - /** - * parameter for basic security - */ - username?: string; - /** - * parameter for basic security - */ - password?: string; /** * parameter for client ID */ @@ -113,9 +103,10 @@ export class Configuration { formDataCtor?: new () => any; constructor(param: ConfigurationParameters = {}) { + if ('username' in param || 'password' in param) { + throw new Error('Basic authentication is no longer supported. Use `clientId` and `clientSecret` instead.'); + } this.apiKey = param.apiKey; - this.username = param.username; - this.password = param.password; this.clientId = param.clientId; this.clientSecret = param.clientSecret; this.tempAccessToken; diff --git a/custom_templates/common.mustache b/custom_templates/common.mustache index 0ee7fc0..484beb3 100644 --- a/custom_templates/common.mustache +++ b/custom_templates/common.mustache @@ -34,11 +34,8 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri } } -export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { - if (configuration && (configuration.username || configuration.password)) { - object["auth"] = { username: configuration.username, password: configuration.password }; - } -} +// No-op: kept because the generated API files import it unconditionally. +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {} export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { if (configuration && configuration.accessToken) { diff --git a/custom_templates/configuration.mustache b/custom_templates/configuration.mustache index d4ce2ba..d9b0cfb 100644 --- a/custom_templates/configuration.mustache +++ b/custom_templates/configuration.mustache @@ -17,8 +17,6 @@ interface AWSv4Configuration { export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - username?: string; - password?: string; clientId?: string; clientSecret?: string; accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); @@ -36,14 +34,6 @@ export class Configuration { * @param name security name */ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - /** - * parameter for basic security - */ - username?: string; - /** - * parameter for basic security - */ - password?: string; /** * parameter for client ID */ @@ -103,9 +93,10 @@ export class Configuration { formDataCtor?: new () => any; constructor(param: ConfigurationParameters = {}) { + if ('username' in param || 'password' in param) { + throw new Error('Basic authentication is no longer supported. Use `clientId` and `clientSecret` instead.'); + } this.apiKey = param.apiKey; - this.username = param.username; - this.password = param.password; this.clientId = param.clientId; this.clientSecret = param.clientSecret; this.tempAccessToken; diff --git a/docs/CallsApi.md b/docs/CallsApi.md index 1c859b0..638e6d0 100644 --- a/docs/CallsApi.md +++ b/docs/CallsApi.md @@ -50,7 +50,7 @@ const { status, data } = await apiInstance.createCall( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -112,7 +112,7 @@ const { status, data } = await apiInstance.getCallState( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -192,7 +192,7 @@ const { status, data } = await apiInstance.listCalls( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -258,7 +258,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -324,7 +324,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/ConferencesApi.md b/docs/ConferencesApi.md index 9a16fda..8d4f01f 100644 --- a/docs/ConferencesApi.md +++ b/docs/ConferencesApi.md @@ -56,7 +56,7 @@ const { status, data } = await apiInstance.downloadConferenceRecording( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -118,7 +118,7 @@ const { status, data } = await apiInstance.getConference( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -183,7 +183,7 @@ const { status, data } = await apiInstance.getConferenceMember( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -248,7 +248,7 @@ const { status, data } = await apiInstance.getConferenceRecording( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -310,7 +310,7 @@ const { status, data } = await apiInstance.listConferenceRecordings( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -384,7 +384,7 @@ const { status, data } = await apiInstance.listConferences( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -450,7 +450,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -515,7 +515,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -584,7 +584,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/EndpointsApi.md b/docs/EndpointsApi.md index e8ec89b..040e486 100644 --- a/docs/EndpointsApi.md +++ b/docs/EndpointsApi.md @@ -49,7 +49,7 @@ const { status, data } = await apiInstance.createEndpoint( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -111,7 +111,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -173,7 +173,7 @@ const { status, data } = await apiInstance.getEndpoint( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -244,7 +244,7 @@ const { status, data } = await apiInstance.listEndpoints( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -309,7 +309,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MFAApi.md b/docs/MFAApi.md index 97e0004..a5d33f1 100644 --- a/docs/MFAApi.md +++ b/docs/MFAApi.md @@ -48,7 +48,7 @@ const { status, data } = await apiInstance.generateMessagingCode( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -107,7 +107,7 @@ const { status, data } = await apiInstance.generateVoiceCode( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -166,7 +166,7 @@ const { status, data } = await apiInstance.verifyCode( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MediaApi.md b/docs/MediaApi.md index e5ee4a3..c47438f 100644 --- a/docs/MediaApi.md +++ b/docs/MediaApi.md @@ -48,7 +48,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -110,7 +110,7 @@ const { status, data } = await apiInstance.getMedia( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -172,7 +172,7 @@ const { status, data } = await apiInstance.listMedia( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -243,7 +243,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MessagesApi.md b/docs/MessagesApi.md index 4a6fe8d..7ee39db 100644 --- a/docs/MessagesApi.md +++ b/docs/MessagesApi.md @@ -47,7 +47,7 @@ const { status, data } = await apiInstance.createMessage( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -188,7 +188,7 @@ const { status, data } = await apiInstance.listMessages( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MultiChannelApi.md b/docs/MultiChannelApi.md index 87ffdd6..358dd38 100644 --- a/docs/MultiChannelApi.md +++ b/docs/MultiChannelApi.md @@ -46,7 +46,7 @@ const { status, data } = await apiInstance.createMultiChannelMessage( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/PhoneNumberLookupApi.md b/docs/PhoneNumberLookupApi.md index 66cfbed..c84d85d 100644 --- a/docs/PhoneNumberLookupApi.md +++ b/docs/PhoneNumberLookupApi.md @@ -48,7 +48,7 @@ const { status, data } = await apiInstance.createAsyncBulkLookup( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -104,7 +104,7 @@ const { status, data } = await apiInstance.createSyncLookup( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -159,7 +159,7 @@ const { status, data } = await apiInstance.getAsyncBulkLookup( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/RecordingsApi.md b/docs/RecordingsApi.md index 4a844ac..667c5eb 100644 --- a/docs/RecordingsApi.md +++ b/docs/RecordingsApi.md @@ -57,7 +57,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -122,7 +122,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -187,7 +187,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -252,7 +252,7 @@ const { status, data } = await apiInstance.downloadCallRecording( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -317,7 +317,7 @@ const { status, data } = await apiInstance.getCallRecording( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -382,7 +382,7 @@ const { status, data } = await apiInstance.getRecordingTranscription( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -453,7 +453,7 @@ const { status, data } = await apiInstance.listAccountCallRecordings( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -515,7 +515,7 @@ const { status, data } = await apiInstance.listCallRecordings( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -584,7 +584,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -650,7 +650,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index 52cb384..0961603 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -42,7 +42,7 @@ const { status, data } = await apiInstance.getStatistics( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/TollFreeVerificationApi.md b/docs/TollFreeVerificationApi.md index 1e7d896..0d50f15 100644 --- a/docs/TollFreeVerificationApi.md +++ b/docs/TollFreeVerificationApi.md @@ -54,7 +54,7 @@ const { status, data } = await apiInstance.createWebhookSubscription( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -116,7 +116,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -178,7 +178,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -240,7 +240,7 @@ const { status, data } = await apiInstance.getTollFreeVerificationStatus( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -292,7 +292,7 @@ This endpoint does not have any parameters. ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -351,7 +351,7 @@ const { status, data } = await apiInstance.listWebhookSubscriptions( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -413,7 +413,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -479,7 +479,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -546,7 +546,7 @@ const { status, data } = await apiInstance.updateWebhookSubscription( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/TranscriptionsApi.md b/docs/TranscriptionsApi.md index 2f012e5..4467334 100644 --- a/docs/TranscriptionsApi.md +++ b/docs/TranscriptionsApi.md @@ -50,7 +50,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -115,7 +115,7 @@ const { status, data } = await apiInstance.getRealTimeTranscription( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -177,7 +177,7 @@ const { status, data } = await apiInstance.listRealTimeTranscriptions( ### Authorization -[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) +[OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/jest.config.js b/jest.config.js index 1386960..381cd71 100644 --- a/jest.config.js +++ b/jest.config.js @@ -7,8 +7,6 @@ module.exports = { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tests/tsconfig.json' }] }, globals: { - 'BW_USERNAME': process.env.BW_USERNAME, - 'BW_PASSWORD': process.env.BW_PASSWORD, 'BW_CLIENT_ID': process.env.BW_CLIENT_ID, 'BW_CLIENT_SECRET': process.env.BW_CLIENT_SECRET, 'BW_ACCOUNT_ID': process.env.BW_ACCOUNT_ID, @@ -22,10 +20,6 @@ module.exports = { 'MANTECA_IDLE_NUMBER': process.env.MANTECA_IDLE_NUMBER, 'MANTECA_ACTIVE_NUMBER': process.env.MANTECA_ACTIVE_NUMBER, 'MANTECA_BASE_URL': process.env.MANTECA_BASE_URL, - 'FORBIDDEN_USERNAME': process.env.BW_USERNAME_FORBIDDEN, - 'FORBIDDEN_PASSWORD': process.env.BW_PASSWORD_FORBIDDEN, - 'UNAUTHORIZED_USERNAME': 'bad_username', - 'UNAUTHORIZED_PASSWORD': 'bad_password', 'MAX_RETRIES': 40, 'SLEEP_TIME_S': 3 } diff --git a/tests/globals.d.ts b/tests/globals.d.ts index 23f6d3f..03af812 100644 --- a/tests/globals.d.ts +++ b/tests/globals.d.ts @@ -1,7 +1,5 @@ /// -declare const BW_USERNAME: string; -declare const BW_PASSWORD: string; declare const BW_CLIENT_ID: string; declare const BW_CLIENT_SECRET: string; declare const BW_ACCOUNT_ID: string; @@ -15,9 +13,5 @@ declare const MANTECA_APPLICATION_ID: string; declare const MANTECA_IDLE_NUMBER: string; declare const MANTECA_ACTIVE_NUMBER: string; declare const MANTECA_BASE_URL: string; -declare const FORBIDDEN_USERNAME: string; -declare const FORBIDDEN_PASSWORD: string; -declare const UNAUTHORIZED_USERNAME: string; -declare const UNAUTHORIZED_PASSWORD: string; declare const MAX_RETRIES: number; declare const SLEEP_TIME_S: number; diff --git a/tests/smoke/calls-api.test.ts b/tests/smoke/calls-api.test.ts index a2084b6..af8cc5e 100644 --- a/tests/smoke/calls-api.test.ts +++ b/tests/smoke/calls-api.test.ts @@ -104,7 +104,7 @@ describe('CallsApi', () => { describe('listCalls', () => { test('should return an array of calls', async () => { - const { status, data } = await callsApi.listCalls(BW_ACCOUNT_ID); + const { status, data } = await callsApi.listCalls(BW_ACCOUNT_ID, USER_NUMBER, BW_NUMBER); expect(status).toEqual(200); expect(data).toBeInstanceOf(Array); @@ -171,28 +171,6 @@ describe('CallsApi', () => { } }); - test('401', async () => { - const configBad = new Configuration({username: UNAUTHORIZED_USERNAME, password: UNAUTHORIZED_PASSWORD}); - const callsApiBad = new CallsApi(configBad); - - try { - await callsApiBad.getCallState(BW_ACCOUNT_ID, callId); - } catch (e) { - expect(e.response.status).toEqual(401); - } - }); - - test('403', async () => { - const configBad = new Configuration({username: FORBIDDEN_USERNAME, password: FORBIDDEN_PASSWORD}); - const callsApiBad = new CallsApi(configBad); - - try { - await callsApiBad.getCallState(BW_ACCOUNT_ID, callId); - } catch (e) { - expect(e.response.status).toEqual(403); - } - }); - test('404', async () => { try { await callsApi.getCallState(BW_ACCOUNT_ID, 'does-not-exist'); diff --git a/tests/smoke/conferences-api.test.ts b/tests/smoke/conferences-api.test.ts index 6f85e71..ad98554 100644 --- a/tests/smoke/conferences-api.test.ts +++ b/tests/smoke/conferences-api.test.ts @@ -7,8 +7,8 @@ import { setupManteca, createMantecaCall, cleanupCalls, getMantecaTestStatus, sl describe('ConferencesApi', () => { jest.setTimeout(125000); const config = new Configuration({ - username: BW_USERNAME, - password: BW_PASSWORD + clientId: BW_CLIENT_ID, + clientSecret: BW_CLIENT_SECRET }); const callsApi = new CallsApi(config); const conferencesApi = new ConferencesApi(config); diff --git a/tests/smoke/media-api.test.ts b/tests/smoke/media-api.test.ts index e3bee11..230152a 100644 --- a/tests/smoke/media-api.test.ts +++ b/tests/smoke/media-api.test.ts @@ -5,7 +5,10 @@ import { BinaryLike, createHash, randomUUID } from 'crypto'; import * as fs from 'fs'; describe('MediaApi', () => { - const config = new Configuration({ username: BW_USERNAME, password: BW_PASSWORD }); + const config = new Configuration({ + clientId: BW_CLIENT_ID, + clientSecret: BW_CLIENT_SECRET + }); const mediaApi = new MediaApi(config); const binaryMediaData = '123456'; diff --git a/tests/smoke/messages-api.test.ts b/tests/smoke/messages-api.test.ts index a43734b..ab0c39d 100644 --- a/tests/smoke/messages-api.test.ts +++ b/tests/smoke/messages-api.test.ts @@ -4,7 +4,10 @@ import { Configuration } from '../../configuration'; import { ListMessageDirectionEnum, MessageRequest, PriorityEnum } from '../../models'; describe('MessagesApi', () => { - const config = new Configuration({username: BW_USERNAME, password: BW_PASSWORD}); + const config = new Configuration({ + clientId: BW_CLIENT_ID, + clientSecret: BW_CLIENT_SECRET + }); const messagesApi = new MessagesApi(config); const mmsText = 'nodejs sdk test MMS'; @@ -98,23 +101,5 @@ describe('MessagesApi', () => { expect(e.response.status).toEqual(400); } }); - - test('401', async () => { - const configBad = new Configuration({username: UNAUTHORIZED_USERNAME, password: UNAUTHORIZED_PASSWORD}); - const messagesApiBad = new MessagesApi(configBad); - - const messageRequest: MessageRequest = { - applicationId: BW_MESSAGING_APPLICATION_ID, - to: new Set([USER_NUMBER]), - from: BW_NUMBER, - text: smsText - }; - - try { - await messagesApiBad.createMessage(BW_ACCOUNT_ID, messageRequest); - } catch (e) { - expect(e.response.status).toEqual(401); - } - }); }); }); diff --git a/tests/smoke/mfaapi.test.ts b/tests/smoke/mfaapi.test.ts index e1d4929..6aca30a 100644 --- a/tests/smoke/mfaapi.test.ts +++ b/tests/smoke/mfaapi.test.ts @@ -4,7 +4,10 @@ import { Configuration } from '../../configuration'; import { CodeRequest, VerifyCodeRequest } from '../../models'; describe('MFAApi', () => { - const config = new Configuration({username: BW_USERNAME, password: BW_PASSWORD}); + const config = new Configuration({ + clientId: BW_CLIENT_ID, + clientSecret: BW_CLIENT_SECRET + }); const mfaApi = new MFAApi(config); const message = 'Your temporary {NAME} {SCOPE} code is {CODE}'; @@ -76,24 +79,5 @@ describe('MFAApi', () => { expect(e.response.status).toEqual(400); } }); - - test('403', async () => { - const configBad = new Configuration({username: UNAUTHORIZED_USERNAME, password: UNAUTHORIZED_PASSWORD}); - const mfaApiBad = new MFAApi(configBad); - - const codeRequest: CodeRequest = { - to: USER_NUMBER, - from: BW_NUMBER, - applicationId: BW_MESSAGING_APPLICATION_ID, - message: message, - digits: digits - }; - - try { - await mfaApiBad.generateMessagingCode(BW_ACCOUNT_ID, codeRequest); - } catch (e) { - expect(e.response.status).toEqual(403); - } - }); }); }); diff --git a/tests/smoke/multi-channel-api.test.ts b/tests/smoke/multi-channel-api.test.ts index e4bac30..36a1f99 100644 --- a/tests/smoke/multi-channel-api.test.ts +++ b/tests/smoke/multi-channel-api.test.ts @@ -29,8 +29,8 @@ import { describe('MultiChannelApi', () => { const config = new Configuration({ - username: BW_USERNAME, - password: BW_PASSWORD + clientId: BW_CLIENT_ID, + clientSecret: BW_CLIENT_SECRET }); const multiChannelApi = new MultiChannelApi(config); diff --git a/tests/smoke/statistics-api.test.ts b/tests/smoke/statistics-api.test.ts index 3cad27c..3b970ea 100644 --- a/tests/smoke/statistics-api.test.ts +++ b/tests/smoke/statistics-api.test.ts @@ -18,28 +18,4 @@ describe('StatisticsApi', () => { expect(data.maxCallQueueSize).toEqual(7500); }); }); - - describe('HTTP Errors', () => { - test('401', async () => { - const configBad = new Configuration({username: UNAUTHORIZED_USERNAME, password: UNAUTHORIZED_PASSWORD}); - const statisticsApiBad = new StatisticsApi(configBad); - - try { - await statisticsApiBad.getStatistics(BW_ACCOUNT_ID); - } catch (e) { - expect(e.response.status).toEqual(401); - } - }); - - test('403', async () => { - const configBad = new Configuration({username: FORBIDDEN_USERNAME, password: FORBIDDEN_PASSWORD}); - const statisticsApiBad = new StatisticsApi(configBad); - - try { - await statisticsApiBad.getStatistics(BW_ACCOUNT_ID); - } catch (e) { - expect(e.response.status).toEqual(403); - } - }); - }); }); diff --git a/tests/unit/configuration.test.ts b/tests/unit/configuration.test.ts index a568b4f..45400c9 100644 --- a/tests/unit/configuration.test.ts +++ b/tests/unit/configuration.test.ts @@ -82,3 +82,22 @@ describe('Configuration OAuth', () => { expect(mockedAxios.request).not.toHaveBeenCalled(); }); }); + +describe('Configuration Basic auth', () => { + const expectedError = 'Basic authentication is no longer supported. Use `clientId` and `clientSecret` instead.'; + + test('throws when username and password are provided', () => { + // @ts-expect-error username and password are no longer valid parameters + expect(() => new Configuration({ username: 'user', password: 'pass' })).toThrow(expectedError); + }); + + test('throws when only username is provided', () => { + // @ts-expect-error username is no longer a valid parameter + expect(() => new Configuration({ username: 'user' })).toThrow(expectedError); + }); + + test('throws when only password is provided', () => { + // @ts-expect-error password is no longer a valid parameter + expect(() => new Configuration({ password: 'pass' })).toThrow(expectedError); + }); +});