diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c7bf1134..83d63e88 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,9 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=bandwidth
+pytest-3.8:
+ extends: .pytest
+ image: python:3.8-alpine
pytest-3.9:
extends: .pytest
image: python:3.9-alpine
@@ -26,6 +29,3 @@ pytest-3.11:
pytest-3.12:
extends: .pytest
image: python:3.12-alpine
-pytest-3.13:
- extends: .pytest
- image: python:3.13-alpine
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 6328c542..b23eb275 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-7.17.0
+7.11.0
diff --git a/.travis.yml b/.travis.yml
index 5f7621b9..5eb462cc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,13 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
+ - "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- - "3.13"
# uncomment the following if needed
- #- "3.13-dev" # 3.13 development branch
+ #- "3.12-dev" # 3.12 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
diff --git a/README.md b/README.md
index 13a914a2..37b57aaa 100644
--- a/README.md
+++ b/README.md
@@ -5,13 +5,13 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
- API version: 1.0.0
- Package version: 1.0.0
-- Generator version: 7.17.0
+- Generator version: 7.11.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://dev.bandwidth.com](https://dev.bandwidth.com)
## Requirements.
-Python 3.9+
+Python 3.8+
## Installation & Usage
### pip install
@@ -73,6 +73,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
@@ -337,6 +339,14 @@ Authentication schemes defined for the API:
- **Type**: HTTP basic authentication
+
+### OAuth2
+
+- **Type**: OAuth
+- **Flow**: application
+- **Authorization URL**:
+- **Scopes**: N/A
+
## Author
diff --git a/bandwidth.yml b/bandwidth.yml
index 6ee15ae1..9ab77fd9 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/bandwidth/__init__.py b/bandwidth/__init__.py
index 553e14dd..7c6a2d49 100644
--- a/bandwidth/__init__.py
+++ b/bandwidth/__init__.py
@@ -17,401 +17,202 @@
__version__ = "1.0.0"
-# Define package exports
-__all__ = [
- "CallsApi",
- "ConferencesApi",
- "MFAApi",
- "MediaApi",
- "MessagesApi",
- "MultiChannelApi",
- "PhoneNumberLookupApi",
- "RecordingsApi",
- "StatisticsApi",
- "TollFreeVerificationApi",
- "TranscriptionsApi",
- "ApiResponse",
- "ApiClient",
- "Configuration",
- "OpenApiException",
- "ApiTypeError",
- "ApiValueError",
- "ApiKeyError",
- "ApiAttributeError",
- "ApiException",
- "AccountStatistics",
- "AdditionalDenialReason",
- "Address",
- "AnswerCallback",
- "AsyncLookupRequest",
- "BlockedWebhook",
- "BridgeCompleteCallback",
- "BridgeTargetCompleteCallback",
- "BusinessEntityTypeEnum",
- "BusinessRegistrationTypeEnum",
- "CallDirectionEnum",
- "CallRecordingMetadata",
- "CallState",
- "CallStateEnum",
- "CallTranscription",
- "CallTranscriptionDetectedLanguageEnum",
- "CallTranscriptionMetadata",
- "CallTranscriptionResponse",
- "CallTranscriptionTrackEnum",
- "Callback",
- "CallbackMethodEnum",
- "CardWidthEnum",
- "CodeRequest",
- "CompletedLookupStatusEnum",
- "Conference",
- "ConferenceCompletedCallback",
- "ConferenceCreatedCallback",
- "ConferenceMember",
- "ConferenceMemberExitCallback",
- "ConferenceMemberJoinCallback",
- "ConferenceRecordingAvailableCallback",
- "ConferenceRecordingMetadata",
- "ConferenceRedirectCallback",
- "ConferenceStateEnum",
- "Contact",
- "CreateAsyncBulkLookupResponse",
- "CreateAsyncBulkLookupResponseData",
- "CreateCall",
- "CreateCallResponse",
- "CreateMessageRequestError",
- "CreateMultiChannelMessageResponse",
- "CreateSyncLookupResponse",
- "CreateSyncLookupResponseData",
- "DeactivationEventEnum",
- "DisconnectCallback",
- "Diversion",
- "DtmfCallback",
- "Error",
- "ErrorObject",
- "ErrorSource",
- "FailureWebhook",
- "FieldError",
- "FileFormatEnum",
- "GatherCallback",
- "GetAsyncBulkLookupResponse",
- "GetAsyncBulkLookupResponseData",
- "InProgressLookupStatusEnum",
- "InboundCallback",
- "InboundCallbackMessage",
- "InboundCallbackTypeEnum",
- "InitiateCallback",
- "LatestMessageDeliveryStatusEnum",
- "LineTypeEnum",
- "Link",
- "LinkSchema",
- "LinksObject",
- "ListMessageDirectionEnum",
- "ListMessageItem",
- "LookupErrorResponse",
- "LookupErrorSchema",
- "LookupErrorSchemaMeta",
- "LookupResult",
- "MachineDetectionCompleteCallback",
- "MachineDetectionConfiguration",
- "MachineDetectionModeEnum",
- "MachineDetectionResult",
- "Media",
- "Message",
- "MessageDirectionEnum",
- "MessageRequest",
- "MessageStatusEnum",
- "MessageTypeEnum",
- "MessagesList",
- "MessagingCodeResponse",
- "MessagingRequestError",
- "MfaForbiddenRequestError",
- "MfaRequestError",
- "MfaUnauthorizedRequestError",
- "MmsMessageContent",
- "MmsMessageContentFile",
- "MultiChannelAction",
- "MultiChannelActionCalendarEvent",
- "MultiChannelChannelListMMSObject",
- "MultiChannelChannelListMMSResponseObject",
- "MultiChannelChannelListObjectBase",
- "MultiChannelChannelListOwnerObject",
- "MultiChannelChannelListRBMObject",
- "MultiChannelChannelListRBMObjectAllOfContent",
- "MultiChannelChannelListRBMResponseObject",
- "MultiChannelChannelListRequestObject",
- "MultiChannelChannelListResponseObject",
- "MultiChannelChannelListSMSObject",
- "MultiChannelChannelListSMSResponseObject",
- "MultiChannelError",
- "MultiChannelMessageChannelEnum",
- "MultiChannelMessageContent",
- "MultiChannelMessageRequest",
- "MultiChannelMessageResponseData",
- "OptInWorkflow",
- "PageInfo",
- "PriorityEnum",
- "ProductTypeEnum",
- "RbmActionBase",
- "RbmActionDial",
- "RbmActionOpenUrl",
- "RbmActionTypeEnum",
- "RbmActionViewLocation",
- "RbmCardContent",
- "RbmCardContentMedia",
- "RbmLocationResponse",
- "RbmMediaHeightEnum",
- "RbmMessageCarouselCard",
- "RbmMessageContentFile",
- "RbmMessageContentRichCard",
- "RbmMessageContentText",
- "RbmMessageMedia",
- "RbmStandaloneCard",
- "RbmSuggestionResponse",
- "RecordingAvailableCallback",
- "RecordingCompleteCallback",
- "RecordingStateEnum",
- "RecordingTranscriptionMetadata",
- "RecordingTranscriptions",
- "RedirectCallback",
- "RedirectMethodEnum",
- "SmsMessageContent",
- "StandaloneCardOrientationEnum",
- "StatusCallback",
- "StatusCallbackMessage",
- "StatusCallbackTypeEnum",
- "StirShaken",
- "SyncLookupRequest",
- "TelephoneNumber",
- "TfvBasicAuthentication",
- "TfvCallbackStatusEnum",
- "TfvError",
- "TfvStatus",
- "TfvStatusEnum",
- "TfvSubmissionInfo",
- "TfvSubmissionWrapper",
- "ThumbnailAlignmentEnum",
- "TranscribeRecording",
- "Transcription",
- "TranscriptionAvailableCallback",
- "TransferAnswerCallback",
- "TransferCompleteCallback",
- "TransferDisconnectCallback",
- "UpdateCall",
- "UpdateCallRecording",
- "UpdateConference",
- "UpdateConferenceMember",
- "VerificationDenialWebhook",
- "VerificationRequest",
- "VerificationUpdateRequest",
- "VerificationWebhook",
- "VerifyCodeRequest",
- "VerifyCodeResponse",
- "VoiceApiError",
- "VoiceCodeResponse",
- "WebhookSubscription",
- "WebhookSubscriptionBasicAuthentication",
- "WebhookSubscriptionRequestSchema",
- "WebhookSubscriptionTypeEnum",
- "WebhookSubscriptionsListBody",
-]
-
# import apis into sdk package
-from bandwidth.api.calls_api import CallsApi as CallsApi
-from bandwidth.api.conferences_api import ConferencesApi as ConferencesApi
-from bandwidth.api.mfa_api import MFAApi as MFAApi
-from bandwidth.api.media_api import MediaApi as MediaApi
-from bandwidth.api.messages_api import MessagesApi as MessagesApi
-from bandwidth.api.multi_channel_api import MultiChannelApi as MultiChannelApi
-from bandwidth.api.phone_number_lookup_api import PhoneNumberLookupApi as PhoneNumberLookupApi
-from bandwidth.api.recordings_api import RecordingsApi as RecordingsApi
-from bandwidth.api.statistics_api import StatisticsApi as StatisticsApi
-from bandwidth.api.toll_free_verification_api import TollFreeVerificationApi as TollFreeVerificationApi
-from bandwidth.api.transcriptions_api import TranscriptionsApi as TranscriptionsApi
+from bandwidth.api.calls_api import CallsApi
+from bandwidth.api.conferences_api import ConferencesApi
+from bandwidth.api.mfa_api import MFAApi
+from bandwidth.api.media_api import MediaApi
+from bandwidth.api.messages_api import MessagesApi
+from bandwidth.api.multi_channel_api import MultiChannelApi
+from bandwidth.api.phone_number_lookup_api import PhoneNumberLookupApi
+from bandwidth.api.recordings_api import RecordingsApi
+from bandwidth.api.statistics_api import StatisticsApi
+from bandwidth.api.toll_free_verification_api import TollFreeVerificationApi
+from bandwidth.api.transcriptions_api import TranscriptionsApi
# import ApiClient
-from bandwidth.api_response import ApiResponse as ApiResponse
-from bandwidth.api_client import ApiClient as ApiClient
-from bandwidth.configuration import Configuration as Configuration
-from bandwidth.exceptions import OpenApiException as OpenApiException
-from bandwidth.exceptions import ApiTypeError as ApiTypeError
-from bandwidth.exceptions import ApiValueError as ApiValueError
-from bandwidth.exceptions import ApiKeyError as ApiKeyError
-from bandwidth.exceptions import ApiAttributeError as ApiAttributeError
-from bandwidth.exceptions import ApiException as ApiException
+from bandwidth.api_response import ApiResponse
+from bandwidth.api_client import ApiClient
+from bandwidth.configuration import Configuration
+from bandwidth.exceptions import OpenApiException
+from bandwidth.exceptions import ApiTypeError
+from bandwidth.exceptions import ApiValueError
+from bandwidth.exceptions import ApiKeyError
+from bandwidth.exceptions import ApiAttributeError
+from bandwidth.exceptions import ApiException
# import models into sdk package
-from bandwidth.models.account_statistics import AccountStatistics as AccountStatistics
-from bandwidth.models.additional_denial_reason import AdditionalDenialReason as AdditionalDenialReason
-from bandwidth.models.address import Address as Address
-from bandwidth.models.answer_callback import AnswerCallback as AnswerCallback
-from bandwidth.models.async_lookup_request import AsyncLookupRequest as AsyncLookupRequest
-from bandwidth.models.blocked_webhook import BlockedWebhook as BlockedWebhook
-from bandwidth.models.bridge_complete_callback import BridgeCompleteCallback as BridgeCompleteCallback
-from bandwidth.models.bridge_target_complete_callback import BridgeTargetCompleteCallback as BridgeTargetCompleteCallback
-from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum as BusinessEntityTypeEnum
-from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum as BusinessRegistrationTypeEnum
-from bandwidth.models.call_direction_enum import CallDirectionEnum as CallDirectionEnum
-from bandwidth.models.call_recording_metadata import CallRecordingMetadata as CallRecordingMetadata
-from bandwidth.models.call_state import CallState as CallState
-from bandwidth.models.call_state_enum import CallStateEnum as CallStateEnum
-from bandwidth.models.call_transcription import CallTranscription as CallTranscription
-from bandwidth.models.call_transcription_detected_language_enum import CallTranscriptionDetectedLanguageEnum as CallTranscriptionDetectedLanguageEnum
-from bandwidth.models.call_transcription_metadata import CallTranscriptionMetadata as CallTranscriptionMetadata
-from bandwidth.models.call_transcription_response import CallTranscriptionResponse as CallTranscriptionResponse
-from bandwidth.models.call_transcription_track_enum import CallTranscriptionTrackEnum as CallTranscriptionTrackEnum
-from bandwidth.models.callback import Callback as Callback
-from bandwidth.models.callback_method_enum import CallbackMethodEnum as CallbackMethodEnum
-from bandwidth.models.card_width_enum import CardWidthEnum as CardWidthEnum
-from bandwidth.models.code_request import CodeRequest as CodeRequest
-from bandwidth.models.completed_lookup_status_enum import CompletedLookupStatusEnum as CompletedLookupStatusEnum
-from bandwidth.models.conference import Conference as Conference
-from bandwidth.models.conference_completed_callback import ConferenceCompletedCallback as ConferenceCompletedCallback
-from bandwidth.models.conference_created_callback import ConferenceCreatedCallback as ConferenceCreatedCallback
-from bandwidth.models.conference_member import ConferenceMember as ConferenceMember
-from bandwidth.models.conference_member_exit_callback import ConferenceMemberExitCallback as ConferenceMemberExitCallback
-from bandwidth.models.conference_member_join_callback import ConferenceMemberJoinCallback as ConferenceMemberJoinCallback
-from bandwidth.models.conference_recording_available_callback import ConferenceRecordingAvailableCallback as ConferenceRecordingAvailableCallback
-from bandwidth.models.conference_recording_metadata import ConferenceRecordingMetadata as ConferenceRecordingMetadata
-from bandwidth.models.conference_redirect_callback import ConferenceRedirectCallback as ConferenceRedirectCallback
-from bandwidth.models.conference_state_enum import ConferenceStateEnum as ConferenceStateEnum
-from bandwidth.models.contact import Contact as Contact
-from bandwidth.models.create_async_bulk_lookup_response import CreateAsyncBulkLookupResponse as CreateAsyncBulkLookupResponse
-from bandwidth.models.create_async_bulk_lookup_response_data import CreateAsyncBulkLookupResponseData as CreateAsyncBulkLookupResponseData
-from bandwidth.models.create_call import CreateCall as CreateCall
-from bandwidth.models.create_call_response import CreateCallResponse as CreateCallResponse
-from bandwidth.models.create_message_request_error import CreateMessageRequestError as CreateMessageRequestError
-from bandwidth.models.create_multi_channel_message_response import CreateMultiChannelMessageResponse as CreateMultiChannelMessageResponse
-from bandwidth.models.create_sync_lookup_response import CreateSyncLookupResponse as CreateSyncLookupResponse
-from bandwidth.models.create_sync_lookup_response_data import CreateSyncLookupResponseData as CreateSyncLookupResponseData
-from bandwidth.models.deactivation_event_enum import DeactivationEventEnum as DeactivationEventEnum
-from bandwidth.models.disconnect_callback import DisconnectCallback as DisconnectCallback
-from bandwidth.models.diversion import Diversion as Diversion
-from bandwidth.models.dtmf_callback import DtmfCallback as DtmfCallback
-from bandwidth.models.error import Error as Error
-from bandwidth.models.error_object import ErrorObject as ErrorObject
-from bandwidth.models.error_source import ErrorSource as ErrorSource
-from bandwidth.models.failure_webhook import FailureWebhook as FailureWebhook
-from bandwidth.models.field_error import FieldError as FieldError
-from bandwidth.models.file_format_enum import FileFormatEnum as FileFormatEnum
-from bandwidth.models.gather_callback import GatherCallback as GatherCallback
-from bandwidth.models.get_async_bulk_lookup_response import GetAsyncBulkLookupResponse as GetAsyncBulkLookupResponse
-from bandwidth.models.get_async_bulk_lookup_response_data import GetAsyncBulkLookupResponseData as GetAsyncBulkLookupResponseData
-from bandwidth.models.in_progress_lookup_status_enum import InProgressLookupStatusEnum as InProgressLookupStatusEnum
-from bandwidth.models.inbound_callback import InboundCallback as InboundCallback
-from bandwidth.models.inbound_callback_message import InboundCallbackMessage as InboundCallbackMessage
-from bandwidth.models.inbound_callback_type_enum import InboundCallbackTypeEnum as InboundCallbackTypeEnum
-from bandwidth.models.initiate_callback import InitiateCallback as InitiateCallback
-from bandwidth.models.latest_message_delivery_status_enum import LatestMessageDeliveryStatusEnum as LatestMessageDeliveryStatusEnum
-from bandwidth.models.line_type_enum import LineTypeEnum as LineTypeEnum
-from bandwidth.models.link import Link as Link
-from bandwidth.models.link_schema import LinkSchema as LinkSchema
-from bandwidth.models.links_object import LinksObject as LinksObject
-from bandwidth.models.list_message_direction_enum import ListMessageDirectionEnum as ListMessageDirectionEnum
-from bandwidth.models.list_message_item import ListMessageItem as ListMessageItem
-from bandwidth.models.lookup_error_response import LookupErrorResponse as LookupErrorResponse
-from bandwidth.models.lookup_error_schema import LookupErrorSchema as LookupErrorSchema
-from bandwidth.models.lookup_error_schema_meta import LookupErrorSchemaMeta as LookupErrorSchemaMeta
-from bandwidth.models.lookup_result import LookupResult as LookupResult
-from bandwidth.models.machine_detection_complete_callback import MachineDetectionCompleteCallback as MachineDetectionCompleteCallback
-from bandwidth.models.machine_detection_configuration import MachineDetectionConfiguration as MachineDetectionConfiguration
-from bandwidth.models.machine_detection_mode_enum import MachineDetectionModeEnum as MachineDetectionModeEnum
-from bandwidth.models.machine_detection_result import MachineDetectionResult as MachineDetectionResult
-from bandwidth.models.media import Media as Media
-from bandwidth.models.message import Message as Message
-from bandwidth.models.message_direction_enum import MessageDirectionEnum as MessageDirectionEnum
-from bandwidth.models.message_request import MessageRequest as MessageRequest
-from bandwidth.models.message_status_enum import MessageStatusEnum as MessageStatusEnum
-from bandwidth.models.message_type_enum import MessageTypeEnum as MessageTypeEnum
-from bandwidth.models.messages_list import MessagesList as MessagesList
-from bandwidth.models.messaging_code_response import MessagingCodeResponse as MessagingCodeResponse
-from bandwidth.models.messaging_request_error import MessagingRequestError as MessagingRequestError
-from bandwidth.models.mfa_forbidden_request_error import MfaForbiddenRequestError as MfaForbiddenRequestError
-from bandwidth.models.mfa_request_error import MfaRequestError as MfaRequestError
-from bandwidth.models.mfa_unauthorized_request_error import MfaUnauthorizedRequestError as MfaUnauthorizedRequestError
-from bandwidth.models.mms_message_content import MmsMessageContent as MmsMessageContent
-from bandwidth.models.mms_message_content_file import MmsMessageContentFile as MmsMessageContentFile
-from bandwidth.models.multi_channel_action import MultiChannelAction as MultiChannelAction
-from bandwidth.models.multi_channel_action_calendar_event import MultiChannelActionCalendarEvent as MultiChannelActionCalendarEvent
-from bandwidth.models.multi_channel_channel_list_mms_object import MultiChannelChannelListMMSObject as MultiChannelChannelListMMSObject
-from bandwidth.models.multi_channel_channel_list_mms_response_object import MultiChannelChannelListMMSResponseObject as MultiChannelChannelListMMSResponseObject
-from bandwidth.models.multi_channel_channel_list_object_base import MultiChannelChannelListObjectBase as MultiChannelChannelListObjectBase
-from bandwidth.models.multi_channel_channel_list_owner_object import MultiChannelChannelListOwnerObject as MultiChannelChannelListOwnerObject
-from bandwidth.models.multi_channel_channel_list_rbm_object import MultiChannelChannelListRBMObject as MultiChannelChannelListRBMObject
-from bandwidth.models.multi_channel_channel_list_rbm_object_all_of_content import MultiChannelChannelListRBMObjectAllOfContent as MultiChannelChannelListRBMObjectAllOfContent
-from bandwidth.models.multi_channel_channel_list_rbm_response_object import MultiChannelChannelListRBMResponseObject as MultiChannelChannelListRBMResponseObject
-from bandwidth.models.multi_channel_channel_list_request_object import MultiChannelChannelListRequestObject as MultiChannelChannelListRequestObject
-from bandwidth.models.multi_channel_channel_list_response_object import MultiChannelChannelListResponseObject as MultiChannelChannelListResponseObject
-from bandwidth.models.multi_channel_channel_list_sms_object import MultiChannelChannelListSMSObject as MultiChannelChannelListSMSObject
-from bandwidth.models.multi_channel_channel_list_sms_response_object import MultiChannelChannelListSMSResponseObject as MultiChannelChannelListSMSResponseObject
-from bandwidth.models.multi_channel_error import MultiChannelError as MultiChannelError
-from bandwidth.models.multi_channel_message_channel_enum import MultiChannelMessageChannelEnum as MultiChannelMessageChannelEnum
-from bandwidth.models.multi_channel_message_content import MultiChannelMessageContent as MultiChannelMessageContent
-from bandwidth.models.multi_channel_message_request import MultiChannelMessageRequest as MultiChannelMessageRequest
-from bandwidth.models.multi_channel_message_response_data import MultiChannelMessageResponseData as MultiChannelMessageResponseData
-from bandwidth.models.opt_in_workflow import OptInWorkflow as OptInWorkflow
-from bandwidth.models.page_info import PageInfo as PageInfo
-from bandwidth.models.priority_enum import PriorityEnum as PriorityEnum
-from bandwidth.models.product_type_enum import ProductTypeEnum as ProductTypeEnum
-from bandwidth.models.rbm_action_base import RbmActionBase as RbmActionBase
-from bandwidth.models.rbm_action_dial import RbmActionDial as RbmActionDial
-from bandwidth.models.rbm_action_open_url import RbmActionOpenUrl as RbmActionOpenUrl
-from bandwidth.models.rbm_action_type_enum import RbmActionTypeEnum as RbmActionTypeEnum
-from bandwidth.models.rbm_action_view_location import RbmActionViewLocation as RbmActionViewLocation
-from bandwidth.models.rbm_card_content import RbmCardContent as RbmCardContent
-from bandwidth.models.rbm_card_content_media import RbmCardContentMedia as RbmCardContentMedia
-from bandwidth.models.rbm_location_response import RbmLocationResponse as RbmLocationResponse
-from bandwidth.models.rbm_media_height_enum import RbmMediaHeightEnum as RbmMediaHeightEnum
-from bandwidth.models.rbm_message_carousel_card import RbmMessageCarouselCard as RbmMessageCarouselCard
-from bandwidth.models.rbm_message_content_file import RbmMessageContentFile as RbmMessageContentFile
-from bandwidth.models.rbm_message_content_rich_card import RbmMessageContentRichCard as RbmMessageContentRichCard
-from bandwidth.models.rbm_message_content_text import RbmMessageContentText as RbmMessageContentText
-from bandwidth.models.rbm_message_media import RbmMessageMedia as RbmMessageMedia
-from bandwidth.models.rbm_standalone_card import RbmStandaloneCard as RbmStandaloneCard
-from bandwidth.models.rbm_suggestion_response import RbmSuggestionResponse as RbmSuggestionResponse
-from bandwidth.models.recording_available_callback import RecordingAvailableCallback as RecordingAvailableCallback
-from bandwidth.models.recording_complete_callback import RecordingCompleteCallback as RecordingCompleteCallback
-from bandwidth.models.recording_state_enum import RecordingStateEnum as RecordingStateEnum
-from bandwidth.models.recording_transcription_metadata import RecordingTranscriptionMetadata as RecordingTranscriptionMetadata
-from bandwidth.models.recording_transcriptions import RecordingTranscriptions as RecordingTranscriptions
-from bandwidth.models.redirect_callback import RedirectCallback as RedirectCallback
-from bandwidth.models.redirect_method_enum import RedirectMethodEnum as RedirectMethodEnum
-from bandwidth.models.sms_message_content import SmsMessageContent as SmsMessageContent
-from bandwidth.models.standalone_card_orientation_enum import StandaloneCardOrientationEnum as StandaloneCardOrientationEnum
-from bandwidth.models.status_callback import StatusCallback as StatusCallback
-from bandwidth.models.status_callback_message import StatusCallbackMessage as StatusCallbackMessage
-from bandwidth.models.status_callback_type_enum import StatusCallbackTypeEnum as StatusCallbackTypeEnum
-from bandwidth.models.stir_shaken import StirShaken as StirShaken
-from bandwidth.models.sync_lookup_request import SyncLookupRequest as SyncLookupRequest
-from bandwidth.models.telephone_number import TelephoneNumber as TelephoneNumber
-from bandwidth.models.tfv_basic_authentication import TfvBasicAuthentication as TfvBasicAuthentication
-from bandwidth.models.tfv_callback_status_enum import TfvCallbackStatusEnum as TfvCallbackStatusEnum
-from bandwidth.models.tfv_error import TfvError as TfvError
-from bandwidth.models.tfv_status import TfvStatus as TfvStatus
-from bandwidth.models.tfv_status_enum import TfvStatusEnum as TfvStatusEnum
-from bandwidth.models.tfv_submission_info import TfvSubmissionInfo as TfvSubmissionInfo
-from bandwidth.models.tfv_submission_wrapper import TfvSubmissionWrapper as TfvSubmissionWrapper
-from bandwidth.models.thumbnail_alignment_enum import ThumbnailAlignmentEnum as ThumbnailAlignmentEnum
-from bandwidth.models.transcribe_recording import TranscribeRecording as TranscribeRecording
-from bandwidth.models.transcription import Transcription as Transcription
-from bandwidth.models.transcription_available_callback import TranscriptionAvailableCallback as TranscriptionAvailableCallback
-from bandwidth.models.transfer_answer_callback import TransferAnswerCallback as TransferAnswerCallback
-from bandwidth.models.transfer_complete_callback import TransferCompleteCallback as TransferCompleteCallback
-from bandwidth.models.transfer_disconnect_callback import TransferDisconnectCallback as TransferDisconnectCallback
-from bandwidth.models.update_call import UpdateCall as UpdateCall
-from bandwidth.models.update_call_recording import UpdateCallRecording as UpdateCallRecording
-from bandwidth.models.update_conference import UpdateConference as UpdateConference
-from bandwidth.models.update_conference_member import UpdateConferenceMember as UpdateConferenceMember
-from bandwidth.models.verification_denial_webhook import VerificationDenialWebhook as VerificationDenialWebhook
-from bandwidth.models.verification_request import VerificationRequest as VerificationRequest
-from bandwidth.models.verification_update_request import VerificationUpdateRequest as VerificationUpdateRequest
-from bandwidth.models.verification_webhook import VerificationWebhook as VerificationWebhook
-from bandwidth.models.verify_code_request import VerifyCodeRequest as VerifyCodeRequest
-from bandwidth.models.verify_code_response import VerifyCodeResponse as VerifyCodeResponse
-from bandwidth.models.voice_api_error import VoiceApiError as VoiceApiError
-from bandwidth.models.voice_code_response import VoiceCodeResponse as VoiceCodeResponse
-from bandwidth.models.webhook_subscription import WebhookSubscription as WebhookSubscription
-from bandwidth.models.webhook_subscription_basic_authentication import WebhookSubscriptionBasicAuthentication as WebhookSubscriptionBasicAuthentication
-from bandwidth.models.webhook_subscription_request_schema import WebhookSubscriptionRequestSchema as WebhookSubscriptionRequestSchema
-from bandwidth.models.webhook_subscription_type_enum import WebhookSubscriptionTypeEnum as WebhookSubscriptionTypeEnum
-from bandwidth.models.webhook_subscriptions_list_body import WebhookSubscriptionsListBody as WebhookSubscriptionsListBody
-
+from bandwidth.models.account_statistics import AccountStatistics
+from bandwidth.models.additional_denial_reason import AdditionalDenialReason
+from bandwidth.models.address import Address
+from bandwidth.models.answer_callback import AnswerCallback
+from bandwidth.models.async_lookup_request import AsyncLookupRequest
+from bandwidth.models.blocked_webhook import BlockedWebhook
+from bandwidth.models.bridge_complete_callback import BridgeCompleteCallback
+from bandwidth.models.bridge_target_complete_callback import BridgeTargetCompleteCallback
+from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum
+from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum
+from bandwidth.models.call_direction_enum import CallDirectionEnum
+from bandwidth.models.call_recording_metadata import CallRecordingMetadata
+from bandwidth.models.call_state import CallState
+from bandwidth.models.call_state_enum import CallStateEnum
+from bandwidth.models.call_transcription import CallTranscription
+from bandwidth.models.call_transcription_detected_language_enum import CallTranscriptionDetectedLanguageEnum
+from bandwidth.models.call_transcription_metadata import CallTranscriptionMetadata
+from bandwidth.models.call_transcription_response import CallTranscriptionResponse
+from bandwidth.models.call_transcription_track_enum import CallTranscriptionTrackEnum
+from bandwidth.models.callback import Callback
+from bandwidth.models.callback_method_enum import CallbackMethodEnum
+from bandwidth.models.card_width_enum import CardWidthEnum
+from bandwidth.models.code_request import CodeRequest
+from bandwidth.models.completed_lookup_status_enum import CompletedLookupStatusEnum
+from bandwidth.models.conference import Conference
+from bandwidth.models.conference_completed_callback import ConferenceCompletedCallback
+from bandwidth.models.conference_created_callback import ConferenceCreatedCallback
+from bandwidth.models.conference_member import ConferenceMember
+from bandwidth.models.conference_member_exit_callback import ConferenceMemberExitCallback
+from bandwidth.models.conference_member_join_callback import ConferenceMemberJoinCallback
+from bandwidth.models.conference_recording_available_callback import ConferenceRecordingAvailableCallback
+from bandwidth.models.conference_recording_metadata import ConferenceRecordingMetadata
+from bandwidth.models.conference_redirect_callback import ConferenceRedirectCallback
+from bandwidth.models.conference_state_enum import ConferenceStateEnum
+from bandwidth.models.contact import Contact
+from bandwidth.models.create_async_bulk_lookup_response import CreateAsyncBulkLookupResponse
+from bandwidth.models.create_async_bulk_lookup_response_data import CreateAsyncBulkLookupResponseData
+from bandwidth.models.create_call import CreateCall
+from bandwidth.models.create_call_response import CreateCallResponse
+from bandwidth.models.create_message_request_error import CreateMessageRequestError
+from bandwidth.models.create_multi_channel_message_response import CreateMultiChannelMessageResponse
+from bandwidth.models.create_sync_lookup_response import CreateSyncLookupResponse
+from bandwidth.models.create_sync_lookup_response_data import CreateSyncLookupResponseData
+from bandwidth.models.deactivation_event_enum import DeactivationEventEnum
+from bandwidth.models.disconnect_callback import DisconnectCallback
+from bandwidth.models.diversion import Diversion
+from bandwidth.models.dtmf_callback import DtmfCallback
+from bandwidth.models.error import Error
+from bandwidth.models.error_object import ErrorObject
+from bandwidth.models.error_source import ErrorSource
+from bandwidth.models.failure_webhook import FailureWebhook
+from bandwidth.models.field_error import FieldError
+from bandwidth.models.file_format_enum import FileFormatEnum
+from bandwidth.models.gather_callback import GatherCallback
+from bandwidth.models.get_async_bulk_lookup_response import GetAsyncBulkLookupResponse
+from bandwidth.models.get_async_bulk_lookup_response_data import GetAsyncBulkLookupResponseData
+from bandwidth.models.in_progress_lookup_status_enum import InProgressLookupStatusEnum
+from bandwidth.models.inbound_callback import InboundCallback
+from bandwidth.models.inbound_callback_message import InboundCallbackMessage
+from bandwidth.models.inbound_callback_type_enum import InboundCallbackTypeEnum
+from bandwidth.models.initiate_callback import InitiateCallback
+from bandwidth.models.latest_message_delivery_status_enum import LatestMessageDeliveryStatusEnum
+from bandwidth.models.line_type_enum import LineTypeEnum
+from bandwidth.models.link import Link
+from bandwidth.models.link_schema import LinkSchema
+from bandwidth.models.links_object import LinksObject
+from bandwidth.models.list_message_direction_enum import ListMessageDirectionEnum
+from bandwidth.models.list_message_item import ListMessageItem
+from bandwidth.models.lookup_error_response import LookupErrorResponse
+from bandwidth.models.lookup_error_schema import LookupErrorSchema
+from bandwidth.models.lookup_error_schema_meta import LookupErrorSchemaMeta
+from bandwidth.models.lookup_result import LookupResult
+from bandwidth.models.machine_detection_complete_callback import MachineDetectionCompleteCallback
+from bandwidth.models.machine_detection_configuration import MachineDetectionConfiguration
+from bandwidth.models.machine_detection_mode_enum import MachineDetectionModeEnum
+from bandwidth.models.machine_detection_result import MachineDetectionResult
+from bandwidth.models.media import Media
+from bandwidth.models.message import Message
+from bandwidth.models.message_direction_enum import MessageDirectionEnum
+from bandwidth.models.message_request import MessageRequest
+from bandwidth.models.message_status_enum import MessageStatusEnum
+from bandwidth.models.message_type_enum import MessageTypeEnum
+from bandwidth.models.messages_list import MessagesList
+from bandwidth.models.messaging_code_response import MessagingCodeResponse
+from bandwidth.models.messaging_request_error import MessagingRequestError
+from bandwidth.models.mfa_forbidden_request_error import MfaForbiddenRequestError
+from bandwidth.models.mfa_request_error import MfaRequestError
+from bandwidth.models.mfa_unauthorized_request_error import MfaUnauthorizedRequestError
+from bandwidth.models.mms_message_content import MmsMessageContent
+from bandwidth.models.mms_message_content_file import MmsMessageContentFile
+from bandwidth.models.multi_channel_action import MultiChannelAction
+from bandwidth.models.multi_channel_action_calendar_event import MultiChannelActionCalendarEvent
+from bandwidth.models.multi_channel_channel_list_mms_object import MultiChannelChannelListMMSObject
+from bandwidth.models.multi_channel_channel_list_mms_response_object import MultiChannelChannelListMMSResponseObject
+from bandwidth.models.multi_channel_channel_list_object_base import MultiChannelChannelListObjectBase
+from bandwidth.models.multi_channel_channel_list_owner_object import MultiChannelChannelListOwnerObject
+from bandwidth.models.multi_channel_channel_list_rbm_object import MultiChannelChannelListRBMObject
+from bandwidth.models.multi_channel_channel_list_rbm_object_all_of_content import MultiChannelChannelListRBMObjectAllOfContent
+from bandwidth.models.multi_channel_channel_list_rbm_response_object import MultiChannelChannelListRBMResponseObject
+from bandwidth.models.multi_channel_channel_list_request_object import MultiChannelChannelListRequestObject
+from bandwidth.models.multi_channel_channel_list_response_object import MultiChannelChannelListResponseObject
+from bandwidth.models.multi_channel_channel_list_sms_object import MultiChannelChannelListSMSObject
+from bandwidth.models.multi_channel_channel_list_sms_response_object import MultiChannelChannelListSMSResponseObject
+from bandwidth.models.multi_channel_error import MultiChannelError
+from bandwidth.models.multi_channel_message_channel_enum import MultiChannelMessageChannelEnum
+from bandwidth.models.multi_channel_message_content import MultiChannelMessageContent
+from bandwidth.models.multi_channel_message_request import MultiChannelMessageRequest
+from bandwidth.models.multi_channel_message_response_data import MultiChannelMessageResponseData
+from bandwidth.models.opt_in_workflow import OptInWorkflow
+from bandwidth.models.page_info import PageInfo
+from bandwidth.models.priority_enum import PriorityEnum
+from bandwidth.models.product_type_enum import ProductTypeEnum
+from bandwidth.models.rbm_action_base import RbmActionBase
+from bandwidth.models.rbm_action_dial import RbmActionDial
+from bandwidth.models.rbm_action_open_url import RbmActionOpenUrl
+from bandwidth.models.rbm_action_type_enum import RbmActionTypeEnum
+from bandwidth.models.rbm_action_view_location import RbmActionViewLocation
+from bandwidth.models.rbm_card_content import RbmCardContent
+from bandwidth.models.rbm_card_content_media import RbmCardContentMedia
+from bandwidth.models.rbm_location_response import RbmLocationResponse
+from bandwidth.models.rbm_media_height_enum import RbmMediaHeightEnum
+from bandwidth.models.rbm_message_carousel_card import RbmMessageCarouselCard
+from bandwidth.models.rbm_message_content_file import RbmMessageContentFile
+from bandwidth.models.rbm_message_content_rich_card import RbmMessageContentRichCard
+from bandwidth.models.rbm_message_content_text import RbmMessageContentText
+from bandwidth.models.rbm_message_media import RbmMessageMedia
+from bandwidth.models.rbm_standalone_card import RbmStandaloneCard
+from bandwidth.models.rbm_suggestion_response import RbmSuggestionResponse
+from bandwidth.models.recording_available_callback import RecordingAvailableCallback
+from bandwidth.models.recording_complete_callback import RecordingCompleteCallback
+from bandwidth.models.recording_state_enum import RecordingStateEnum
+from bandwidth.models.recording_transcription_metadata import RecordingTranscriptionMetadata
+from bandwidth.models.recording_transcriptions import RecordingTranscriptions
+from bandwidth.models.redirect_callback import RedirectCallback
+from bandwidth.models.redirect_method_enum import RedirectMethodEnum
+from bandwidth.models.sms_message_content import SmsMessageContent
+from bandwidth.models.standalone_card_orientation_enum import StandaloneCardOrientationEnum
+from bandwidth.models.status_callback import StatusCallback
+from bandwidth.models.status_callback_message import StatusCallbackMessage
+from bandwidth.models.status_callback_type_enum import StatusCallbackTypeEnum
+from bandwidth.models.stir_shaken import StirShaken
+from bandwidth.models.sync_lookup_request import SyncLookupRequest
+from bandwidth.models.telephone_number import TelephoneNumber
+from bandwidth.models.tfv_basic_authentication import TfvBasicAuthentication
+from bandwidth.models.tfv_callback_status_enum import TfvCallbackStatusEnum
+from bandwidth.models.tfv_error import TfvError
+from bandwidth.models.tfv_status import TfvStatus
+from bandwidth.models.tfv_status_enum import TfvStatusEnum
+from bandwidth.models.tfv_submission_info import TfvSubmissionInfo
+from bandwidth.models.tfv_submission_wrapper import TfvSubmissionWrapper
+from bandwidth.models.thumbnail_alignment_enum import ThumbnailAlignmentEnum
+from bandwidth.models.transcribe_recording import TranscribeRecording
+from bandwidth.models.transcription import Transcription
+from bandwidth.models.transcription_available_callback import TranscriptionAvailableCallback
+from bandwidth.models.transfer_answer_callback import TransferAnswerCallback
+from bandwidth.models.transfer_complete_callback import TransferCompleteCallback
+from bandwidth.models.transfer_disconnect_callback import TransferDisconnectCallback
+from bandwidth.models.update_call import UpdateCall
+from bandwidth.models.update_call_recording import UpdateCallRecording
+from bandwidth.models.update_conference import UpdateConference
+from bandwidth.models.update_conference_member import UpdateConferenceMember
+from bandwidth.models.verification_denial_webhook import VerificationDenialWebhook
+from bandwidth.models.verification_request import VerificationRequest
+from bandwidth.models.verification_update_request import VerificationUpdateRequest
+from bandwidth.models.verification_webhook import VerificationWebhook
+from bandwidth.models.verify_code_request import VerifyCodeRequest
+from bandwidth.models.verify_code_response import VerifyCodeResponse
+from bandwidth.models.voice_api_error import VoiceApiError
+from bandwidth.models.voice_code_response import VoiceCodeResponse
+from bandwidth.models.webhook_subscription import WebhookSubscription
+from bandwidth.models.webhook_subscription_basic_authentication import WebhookSubscriptionBasicAuthentication
+from bandwidth.models.webhook_subscription_request_schema import WebhookSubscriptionRequestSchema
+from bandwidth.models.webhook_subscription_type_enum import WebhookSubscriptionTypeEnum
+from bandwidth.models.webhook_subscriptions_list_body import WebhookSubscriptionsListBody
diff --git a/bandwidth/api/calls_api.py b/bandwidth/api/calls_api.py
index f9d754dd..1fe7b9e6 100644
--- a/bandwidth/api/calls_api.py
+++ b/bandwidth/api/calls_api.py
@@ -338,7 +338,8 @@ def _create_call_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -641,7 +642,8 @@ def _get_call_state_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1048,7 +1050,8 @@ def _list_calls_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1382,7 +1385,8 @@ def _update_call_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1716,7 +1720,8 @@ def _update_call_bxml_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/conferences_api.py b/bandwidth/api/conferences_api.py
index a3817228..3fde1cbb 100644
--- a/bandwidth/api/conferences_api.py
+++ b/bandwidth/api/conferences_api.py
@@ -343,7 +343,8 @@ def _download_conference_recording_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -646,7 +647,8 @@ def _get_conference_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -964,7 +966,8 @@ def _get_conference_member_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1282,7 +1285,8 @@ def _get_conference_recording_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1585,7 +1589,8 @@ def _list_conference_recordings_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1958,7 +1963,8 @@ def _list_conferences_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -2289,7 +2295,8 @@ def _update_conference_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -2620,7 +2627,8 @@ def _update_conference_bxml_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -2966,7 +2974,8 @@ def _update_conference_member_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/media_api.py b/bandwidth/api/media_api.py
index 571a3c8a..525e51fa 100644
--- a/bandwidth/api/media_api.py
+++ b/bandwidth/api/media_api.py
@@ -322,7 +322,8 @@ def _delete_media_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -626,7 +627,8 @@ def _get_media_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -929,7 +931,8 @@ def _list_media_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1345,7 +1348,8 @@ def _upload_media_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/messages_api.py b/bandwidth/api/messages_api.py
index 1b89537b..a19d5ae9 100644
--- a/bandwidth/api/messages_api.py
+++ b/bandwidth/api/messages_api.py
@@ -344,7 +344,8 @@ def _create_message_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1088,7 +1089,8 @@ def _list_messages_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/mfa_api.py b/bandwidth/api/mfa_api.py
index 5b10228b..92698d4e 100644
--- a/bandwidth/api/mfa_api.py
+++ b/bandwidth/api/mfa_api.py
@@ -326,7 +326,8 @@ def _generate_messaging_code_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -630,7 +631,8 @@ def _generate_voice_code_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -937,7 +939,8 @@ def _verify_code_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/multi_channel_api.py b/bandwidth/api/multi_channel_api.py
index 703d1a2e..7f929796 100644
--- a/bandwidth/api/multi_channel_api.py
+++ b/bandwidth/api/multi_channel_api.py
@@ -338,7 +338,8 @@ def _create_multi_channel_message_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/phone_number_lookup_api.py b/bandwidth/api/phone_number_lookup_api.py
index 7a18ca86..daa11921 100644
--- a/bandwidth/api/phone_number_lookup_api.py
+++ b/bandwidth/api/phone_number_lookup_api.py
@@ -19,7 +19,6 @@
from pydantic import Field, StrictStr
from typing_extensions import Annotated
-from uuid import UUID
from bandwidth.models.async_lookup_request import AsyncLookupRequest
from bandwidth.models.create_async_bulk_lookup_response import CreateAsyncBulkLookupResponse
from bandwidth.models.create_sync_lookup_response import CreateSyncLookupResponse
@@ -315,7 +314,8 @@ def _create_async_bulk_lookup_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -607,7 +607,8 @@ def _create_sync_lookup_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -632,7 +633,7 @@ def _create_sync_lookup_serialize(
def get_async_bulk_lookup(
self,
account_id: StrictStr,
- request_id: UUID,
+ request_id: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -703,7 +704,7 @@ def get_async_bulk_lookup(
def get_async_bulk_lookup_with_http_info(
self,
account_id: StrictStr,
- request_id: UUID,
+ request_id: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -774,7 +775,7 @@ def get_async_bulk_lookup_with_http_info(
def get_async_bulk_lookup_without_preload_content(
self,
account_id: StrictStr,
- request_id: UUID,
+ request_id: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -886,7 +887,8 @@ def _get_async_bulk_lookup_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/recordings_api.py b/bandwidth/api/recordings_api.py
index dfdde315..3702ffdf 100644
--- a/bandwidth/api/recordings_api.py
+++ b/bandwidth/api/recordings_api.py
@@ -340,7 +340,8 @@ def _delete_recording_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -658,7 +659,8 @@ def _delete_recording_media_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -976,7 +978,8 @@ def _delete_recording_transcription_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1296,7 +1299,8 @@ def _download_call_recording_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1614,7 +1618,8 @@ def _get_call_recording_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1932,7 +1937,8 @@ def _get_recording_transcription_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -2288,7 +2294,8 @@ def _list_account_call_recordings_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -2591,7 +2598,8 @@ def _list_call_recordings_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -2937,7 +2945,8 @@ def _transcribe_call_recording_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -3268,7 +3277,8 @@ def _update_call_recording_state_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/statistics_api.py b/bandwidth/api/statistics_api.py
index 4abbbc77..de65a491 100644
--- a/bandwidth/api/statistics_api.py
+++ b/bandwidth/api/statistics_api.py
@@ -306,7 +306,8 @@ def _get_statistics_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/toll_free_verification_api.py b/bandwidth/api/toll_free_verification_api.py
index bdde9268..5c70fa94 100644
--- a/bandwidth/api/toll_free_verification_api.py
+++ b/bandwidth/api/toll_free_verification_api.py
@@ -340,7 +340,8 @@ def _create_webhook_subscription_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -643,7 +644,8 @@ def _delete_verification_request_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -946,7 +948,8 @@ def _delete_webhook_subscription_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1249,7 +1252,8 @@ def _get_toll_free_verification_status_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1522,7 +1526,8 @@ def _list_toll_free_use_cases_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -1807,7 +1812,8 @@ def _list_webhook_subscriptions_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -2120,7 +2126,8 @@ def _request_toll_free_verification_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -2448,7 +2455,8 @@ def _update_toll_free_verification_request_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -2779,7 +2787,8 @@ def _update_webhook_subscription_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api/transcriptions_api.py b/bandwidth/api/transcriptions_api.py
index 74f41c32..f90440b3 100644
--- a/bandwidth/api/transcriptions_api.py
+++ b/bandwidth/api/transcriptions_api.py
@@ -338,7 +338,8 @@ def _delete_real_time_transcription_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -656,7 +657,8 @@ def _get_real_time_transcription_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -959,7 +961,8 @@ def _list_real_time_transcriptions_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
diff --git a/bandwidth/api_client.py b/bandwidth/api_client.py
index d0429aa9..b361b95a 100644
--- a/bandwidth/api_client.py
+++ b/bandwidth/api_client.py
@@ -22,7 +22,6 @@
import os
import re
import tempfile
-import uuid
from urllib.parse import quote
from typing import Tuple, Optional, List, Dict, Union
@@ -358,8 +357,6 @@ def sanitize_for_serialization(self, obj):
return obj.get_secret_value()
elif isinstance(obj, self.PRIMITIVE_TYPES):
return obj
- elif isinstance(obj, uuid.UUID):
- return str(obj)
elif isinstance(obj, list):
return [
self.sanitize_for_serialization(sub_obj) for sub_obj in obj
@@ -386,10 +383,6 @@ def sanitize_for_serialization(self, obj):
else:
obj_dict = obj.__dict__
- if isinstance(obj_dict, list):
- # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
- return self.sanitize_for_serialization(obj_dict)
-
return {
key: self.sanitize_for_serialization(val)
for key, val in obj_dict.items()
@@ -412,7 +405,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti
data = json.loads(response_text)
except ValueError:
data = response_text
- elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
+ elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
if response_text == "":
data = ""
else:
@@ -461,13 +454,13 @@ def __deserialize(self, data, klass):
if klass in self.PRIMITIVE_TYPES:
return self.__deserialize_primitive(data, klass)
- elif klass is object:
+ elif klass == object:
return self.__deserialize_object(data)
- elif klass is datetime.date:
+ elif klass == datetime.date:
return self.__deserialize_date(data)
- elif klass is datetime.datetime:
+ elif klass == datetime.datetime:
return self.__deserialize_datetime(data)
- elif klass is decimal.Decimal:
+ elif klass == decimal.Decimal:
return decimal.Decimal(data)
elif issubclass(klass, Enum):
return self.__deserialize_enum(data, klass)
diff --git a/bandwidth/configuration.py b/bandwidth/configuration.py
index a7fd607d..4f6d8605 100644
--- a/bandwidth/configuration.py
+++ b/bandwidth/configuration.py
@@ -19,7 +19,7 @@
from logging import FileHandler
import multiprocessing
import sys
-from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
+from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict
from typing_extensions import NotRequired, Self
import urllib3
@@ -115,6 +115,7 @@
"AuthSettings",
{
"Basic": BasicAuthSetting,
+ "OAuth2": OAuth2AuthSetting,
},
total=False,
)
@@ -162,10 +163,6 @@ class Configuration:
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
in PEM format.
:param retries: Number of retries for API requests.
- :param ca_cert_data: verify the peer using concatenated CA certificate data
- in PEM (str) or DER (bytes) format.
- :param cert_file: the path to a client certificate file, for mTLS.
- :param key_file: the path to a client key file, for mTLS.
:Example:
@@ -196,16 +193,13 @@ def __init__(
username: Optional[str]=None,
password: Optional[str]=None,
access_token: Optional[str]=None,
- server_index: Optional[int]=None,
+ server_index: Optional[int]=None,
server_variables: Optional[ServerVariablesT]=None,
server_operation_index: Optional[Dict[int, int]]=None,
server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None,
ignore_operation_servers: bool=False,
ssl_ca_cert: Optional[str]=None,
retries: Optional[int] = None,
- ca_cert_data: Optional[Union[str, bytes]] = None,
- cert_file: Optional[str]=None,
- key_file: Optional[str]=None,
*,
debug: Optional[bool] = None,
) -> None:
@@ -283,14 +277,10 @@ def __init__(
self.ssl_ca_cert = ssl_ca_cert
"""Set this to customize the certificate file to verify the peer.
"""
- self.ca_cert_data = ca_cert_data
- """Set this to verify the peer using PEM (str) or DER (bytes)
- certificate data.
- """
- self.cert_file = cert_file
+ self.cert_file = None
"""client certificate file
"""
- self.key_file = key_file
+ self.key_file = None
"""client key file
"""
self.assert_hostname = None
@@ -520,6 +510,13 @@ def auth_settings(self)-> AuthSettings:
'key': 'Authorization',
'value': self.get_basic_auth_token()
}
+ if self.access_token is not None:
+ auth['OAuth2'] = {
+ 'type': 'oauth2',
+ 'in': 'header',
+ 'key': 'Authorization',
+ 'value': 'Bearer ' + self.access_token
+ }
return auth
def to_debug_report(self) -> str:
diff --git a/bandwidth/models/__init__.py b/bandwidth/models/__init__.py
index 44352f8c..252ae654 100644
--- a/bandwidth/models/__init__.py
+++ b/bandwidth/models/__init__.py
@@ -13,6 +13,7 @@
Do not edit the class manually.
""" # noqa: E501
+
# import models into model package
from bandwidth.models.account_statistics import AccountStatistics
from bandwidth.models.additional_denial_reason import AdditionalDenialReason
@@ -188,4 +189,3 @@
from bandwidth.models.webhook_subscription_request_schema import WebhookSubscriptionRequestSchema
from bandwidth.models.webhook_subscription_type_enum import WebhookSubscriptionTypeEnum
from bandwidth.models.webhook_subscriptions_list_body import WebhookSubscriptionsListBody
-
diff --git a/bandwidth/models/blocked_webhook.py b/bandwidth/models/blocked_webhook.py
index f1f534f0..22eff561 100644
--- a/bandwidth/models/blocked_webhook.py
+++ b/bandwidth/models/blocked_webhook.py
@@ -21,7 +21,6 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from uuid import UUID
from bandwidth.models.tfv_callback_status_enum import TfvCallbackStatusEnum
from typing import Optional, Set
from typing_extensions import Self
@@ -33,7 +32,7 @@ class BlockedWebhook(BaseModel):
account_id: Optional[StrictStr] = Field(default=None, description="User's account ID.", alias="accountId")
phone_number: Optional[Annotated[str, Field(min_length=12, strict=True, max_length=12)]] = Field(default=None, description="Toll-free telephone number in E.164 format.", alias="phoneNumber")
status: Optional[TfvCallbackStatusEnum] = None
- internal_ticket_number: Optional[UUID] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.", alias="internalTicketNumber")
+ internal_ticket_number: Optional[StrictStr] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.", alias="internalTicketNumber")
blocked: Optional[StrictBool] = Field(default=None, description="Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked.")
blocked_reason: Optional[StrictStr] = Field(default=None, description="The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked.", alias="blockedReason")
additional_properties: Dict[str, Any] = {}
diff --git a/bandwidth/models/create_async_bulk_lookup_response_data.py b/bandwidth/models/create_async_bulk_lookup_response_data.py
index 30b84a19..f4b49b73 100644
--- a/bandwidth/models/create_async_bulk_lookup_response_data.py
+++ b/bandwidth/models/create_async_bulk_lookup_response_data.py
@@ -18,9 +18,8 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, Field
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from uuid import UUID
from bandwidth.models.in_progress_lookup_status_enum import InProgressLookupStatusEnum
from typing import Optional, Set
from typing_extensions import Self
@@ -29,7 +28,7 @@ class CreateAsyncBulkLookupResponseData(BaseModel):
"""
The phone number lookup response data
""" # noqa: E501
- request_id: Optional[UUID] = Field(default=None, description="The phone number lookup request ID from Bandwidth.", alias="requestId")
+ request_id: Optional[StrictStr] = Field(default=None, description="The phone number lookup request ID from Bandwidth.", alias="requestId")
status: Optional[InProgressLookupStatusEnum] = None
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["requestId", "status"]
diff --git a/bandwidth/models/create_sync_lookup_response_data.py b/bandwidth/models/create_sync_lookup_response_data.py
index fddf986d..f658df1b 100644
--- a/bandwidth/models/create_sync_lookup_response_data.py
+++ b/bandwidth/models/create_sync_lookup_response_data.py
@@ -18,9 +18,8 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, Field
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from uuid import UUID
from bandwidth.models.completed_lookup_status_enum import CompletedLookupStatusEnum
from bandwidth.models.lookup_result import LookupResult
from typing import Optional, Set
@@ -30,7 +29,7 @@ class CreateSyncLookupResponseData(BaseModel):
"""
The phone number lookup response data
""" # noqa: E501
- request_id: Optional[UUID] = Field(default=None, description="The phone number lookup request ID from Bandwidth.", alias="requestId")
+ request_id: Optional[StrictStr] = Field(default=None, description="The phone number lookup request ID from Bandwidth.", alias="requestId")
status: Optional[CompletedLookupStatusEnum] = None
results: Optional[List[LookupResult]] = Field(default=None, description="The carrier information results for the specified telephone numbers.")
additional_properties: Dict[str, Any] = {}
diff --git a/bandwidth/models/failure_webhook.py b/bandwidth/models/failure_webhook.py
index c06e21d4..5c502946 100644
--- a/bandwidth/models/failure_webhook.py
+++ b/bandwidth/models/failure_webhook.py
@@ -21,7 +21,6 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from uuid import UUID
from typing import Optional, Set
from typing_extensions import Self
@@ -34,7 +33,7 @@ class FailureWebhook(BaseModel):
error_code: Optional[StrictStr] = Field(default=None, description="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.", alias="errorCode")
error_message: Optional[StrictStr] = Field(default=None, description="A description of the error that was encountered.", alias="errorMessage")
errors: Optional[List[StrictStr]] = Field(default=None, description="Details of the errors that were encountered when processing the request.")
- internal_ticket_number: Optional[UUID] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.", alias="internalTicketNumber")
+ internal_ticket_number: Optional[StrictStr] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.", alias="internalTicketNumber")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["accountId", "phoneNumber", "errorCode", "errorMessage", "errors", "internalTicketNumber"]
diff --git a/bandwidth/models/get_async_bulk_lookup_response_data.py b/bandwidth/models/get_async_bulk_lookup_response_data.py
index 5b05d93d..259963ae 100644
--- a/bandwidth/models/get_async_bulk_lookup_response_data.py
+++ b/bandwidth/models/get_async_bulk_lookup_response_data.py
@@ -18,9 +18,8 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, Field
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from uuid import UUID
from bandwidth.models.in_progress_lookup_status_enum import InProgressLookupStatusEnum
from bandwidth.models.lookup_result import LookupResult
from typing import Optional, Set
@@ -30,7 +29,7 @@ class GetAsyncBulkLookupResponseData(BaseModel):
"""
The phone number lookup response data
""" # noqa: E501
- request_id: Optional[UUID] = Field(default=None, description="The phone number lookup request ID from Bandwidth.", alias="requestId")
+ request_id: Optional[StrictStr] = Field(default=None, description="The phone number lookup request ID from Bandwidth.", alias="requestId")
status: Optional[InProgressLookupStatusEnum] = None
results: Optional[List[LookupResult]] = Field(default=None, description="The carrier information results for the specified telephone number.")
additional_properties: Dict[str, Any] = {}
diff --git a/bandwidth/models/tfv_status.py b/bandwidth/models/tfv_status.py
index 0bc7737a..a22e6f0b 100644
--- a/bandwidth/models/tfv_status.py
+++ b/bandwidth/models/tfv_status.py
@@ -22,7 +22,6 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from uuid import UUID
from bandwidth.models.tfv_status_enum import TfvStatusEnum
from bandwidth.models.tfv_submission_info import TfvSubmissionInfo
from typing import Optional, Set
@@ -34,7 +33,7 @@ class TfvStatus(BaseModel):
""" # noqa: E501
phone_number: Optional[Annotated[str, Field(min_length=12, strict=True, max_length=12)]] = Field(default=None, description="Toll-free telephone number in E.164 format.", alias="phoneNumber")
status: Optional[TfvStatusEnum] = None
- internal_ticket_number: Optional[UUID] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number - included in all webhook payloads.", alias="internalTicketNumber")
+ internal_ticket_number: Optional[StrictStr] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number - included in all webhook payloads.", alias="internalTicketNumber")
decline_reason_description: Optional[StrictStr] = Field(default=None, description="Explanation for why a verification request was declined.", alias="declineReasonDescription")
resubmit_allowed: Optional[StrictBool] = Field(default=None, description="Whether a Toll-Free Verification request qualifies for resubmission via PUT.", alias="resubmitAllowed")
created_date_time: Optional[datetime] = Field(default=None, description="Date and time the verification request was created.", alias="createdDateTime")
diff --git a/bandwidth/models/verification_denial_webhook.py b/bandwidth/models/verification_denial_webhook.py
index 75ef42da..0b690589 100644
--- a/bandwidth/models/verification_denial_webhook.py
+++ b/bandwidth/models/verification_denial_webhook.py
@@ -21,7 +21,6 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from uuid import UUID
from bandwidth.models.additional_denial_reason import AdditionalDenialReason
from typing import Optional, Set
from typing_extensions import Self
@@ -34,7 +33,7 @@ class VerificationDenialWebhook(BaseModel):
additional_denial_reasons: Optional[List[AdditionalDenialReason]] = Field(default=None, description="An optional list of denial reasons in addition to declineReasonDescription when multiple reasons apply.", alias="additionalDenialReasons")
decline_reason_description: Optional[StrictStr] = Field(default=None, description="Explanation for why a verification request was declined.", alias="declineReasonDescription")
denial_status_code: Optional[StrictInt] = Field(default=None, description="Reason code for denial.", alias="denialStatusCode")
- internal_ticket_number: Optional[UUID] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.", alias="internalTicketNumber")
+ internal_ticket_number: Optional[StrictStr] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.", alias="internalTicketNumber")
phone_number: Optional[Annotated[str, Field(min_length=12, strict=True, max_length=12)]] = Field(default=None, description="Toll-free telephone number in E.164 format.", alias="phoneNumber")
resubmit_allowed: Optional[StrictBool] = Field(default=None, description="Whether a Toll-Free Verification request qualifies for resubmission via PUT.", alias="resubmitAllowed")
status: Optional[StrictStr] = 'UNVERIFIED'
diff --git a/bandwidth/models/verification_webhook.py b/bandwidth/models/verification_webhook.py
index 762e55c5..458fa3af 100644
--- a/bandwidth/models/verification_webhook.py
+++ b/bandwidth/models/verification_webhook.py
@@ -21,7 +21,6 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from uuid import UUID
from bandwidth.models.tfv_callback_status_enum import TfvCallbackStatusEnum
from typing import Optional, Set
from typing_extensions import Self
@@ -33,7 +32,7 @@ class VerificationWebhook(BaseModel):
account_id: Optional[StrictStr] = Field(default=None, description="User's account ID.", alias="accountId")
phone_number: Optional[Annotated[str, Field(min_length=12, strict=True, max_length=12)]] = Field(default=None, description="Toll-free telephone number in E.164 format.", alias="phoneNumber")
status: Optional[TfvCallbackStatusEnum] = None
- internal_ticket_number: Optional[UUID] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.", alias="internalTicketNumber")
+ internal_ticket_number: Optional[StrictStr] = Field(default=None, description="Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.", alias="internalTicketNumber")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["accountId", "phoneNumber", "status", "internalTicketNumber"]
diff --git a/bandwidth/rest.py b/bandwidth/rest.py
index 7980ab76..454bb1c3 100644
--- a/bandwidth/rest.py
+++ b/bandwidth/rest.py
@@ -77,7 +77,6 @@ def __init__(self, configuration) -> None:
"ca_certs": configuration.ssl_ca_cert,
"cert_file": configuration.cert_file,
"key_file": configuration.key_file,
- "ca_cert_data": configuration.ca_cert_data,
}
if configuration.assert_hostname is not None:
pool_args['assert_hostname'] = (
diff --git a/docs/CallsApi.md b/docs/CallsApi.md
index 03ab8819..9920c6ab 100644
--- a/docs/CallsApi.md
+++ b/docs/CallsApi.md
@@ -16,15 +16,12 @@ Method | HTTP request | Description
Create Call
-Creates an outbound phone call.
-
-All calls are initially queued. Your outbound calls will initiated at a specific dequeueing rate, enabling your application to "fire and forget" when creating calls. Queued calls may not be modified until they are dequeued and placed, but may be removed from your queue on demand.
-
-Please note: Calls submitted to your queue will be placed approximately in order, but exact ordering is not guaranteed.
+Creates an outbound phone call. All calls are initially queued. Your outbound calls will initiated at a specific dequeueing rate, enabling your application to \"fire and forget\" when creating calls. Queued calls may not be modified until they are dequeued and placed, but may be removed from your queue on demand. Please note: Calls submitted to your queue will be placed approximately in order, but exact ordering is not guaranteed.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -50,6 +47,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -82,7 +81,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -110,13 +109,12 @@ Name | Type | Description | Notes
Get Call State Information
-Retrieve the current state of a specific call. This information is near-realtime, so it may take a few minutes for your call to be accessible using this endpoint.
-
-**Note**: Call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an HTTP 404 response.
+Retrieve the current state of a specific call. This information is near-realtime, so it may take a few minutes for your call to be accessible using this endpoint. **Note**: Call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an HTTP 404 response.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -141,6 +139,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -173,7 +173,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -201,14 +201,12 @@ Name | Type | Description | Notes
Get Calls
-Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest.
-
-**NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel="next"`) will be returned in the response. The url can be used to retrieve the next page of call records.
-Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response.
+Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of call records. Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -233,6 +231,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -277,7 +277,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -310,6 +310,7 @@ Interrupts and redirects a call to a different URL that should return a BXML doc
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -334,6 +335,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -366,7 +369,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -400,6 +403,7 @@ Interrupts and replaces an active call's BXML document.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -423,6 +427,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -458,7 +464,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 2564eedf..045ec141 100644
--- a/docs/ConferencesApi.md
+++ b/docs/ConferencesApi.md
@@ -25,6 +25,7 @@ Downloads the specified recording file.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -48,6 +49,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -82,7 +85,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -115,6 +118,7 @@ Returns information about the specified conference.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -139,6 +143,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -171,7 +177,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -204,6 +210,7 @@ Returns information about the specified conference member.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -228,6 +235,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -262,7 +271,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -295,6 +304,7 @@ Returns metadata for the specified recording.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -319,6 +329,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -353,7 +365,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -386,6 +398,7 @@ Returns a (potentially empty) list of metadata for the recordings that took plac
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -410,6 +423,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -442,7 +457,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -470,13 +485,12 @@ Name | Type | Description | Notes
Get Conferences
-Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest.
-
-**NOTE:** If the number of conferences in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel="next"`) will be returned in the response. The url can be used to retrieve the next page of conference records.
+Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of conferences in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of conference records.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -501,6 +515,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -541,7 +557,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -574,6 +590,7 @@ Update the conference state.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -598,6 +615,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -630,7 +649,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -663,6 +682,7 @@ Update the conference BXML document.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -686,6 +706,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -721,7 +743,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -754,6 +776,7 @@ Updates settings for a particular conference member.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -778,6 +801,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -812,7 +837,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 3a981154..5f98b05c 100644
--- a/docs/MFAApi.md
+++ b/docs/MFAApi.md
@@ -19,6 +19,7 @@ Send an MFA code via text message (SMS).
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -44,6 +45,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -76,7 +79,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -105,6 +108,7 @@ Send an MFA Code via a phone call.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -130,6 +134,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -162,7 +168,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -191,6 +197,7 @@ Verify a previously sent MFA code.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -216,6 +223,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -248,7 +257,7 @@ Name | Type | Description | Notes
### 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 bd3a8bd6..d53fc27d 100644
--- a/docs/MediaApi.md
+++ b/docs/MediaApi.md
@@ -15,15 +15,12 @@ Method | HTTP request | Description
Delete Media
-Deletes a media file from Bandwidth API server. Make sure you don't have
-any application scripts still using the media before you delete.
-
-If you accidentally delete a media file you can immediately upload a new
-file with the same name.
+Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -47,6 +44,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -77,7 +76,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -110,6 +109,7 @@ Downloads a media file you previously uploaded.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -133,6 +133,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -165,7 +167,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -198,6 +200,7 @@ Gets a list of your media files. No query parameters are supported.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -222,6 +225,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -254,7 +259,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -282,15 +287,12 @@ Name | Type | Description | Notes
Upload Media
-Upload a file. You may add headers to the request in order to provide some control to your media file.
-
-If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten.
-
-A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
+Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -314,6 +316,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -350,7 +354,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 cab2fc2e..3dfbd316 100644
--- a/docs/MessagesApi.md
+++ b/docs/MessagesApi.md
@@ -18,6 +18,7 @@ Endpoint for sending text messages and picture messages using V2 messaging.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -43,6 +44,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -75,7 +78,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -109,6 +112,7 @@ Returns a list of messages based on query parameters.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -137,6 +141,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -221,7 +227,7 @@ Name | Type | Description | Notes
### 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 0d7713b1..de220ceb 100644
--- a/docs/MultiChannelApi.md
+++ b/docs/MultiChannelApi.md
@@ -17,6 +17,7 @@ Endpoint for sending Multi-Channel messages.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -42,6 +43,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -74,7 +77,7 @@ Name | Type | Description | Notes
### 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 da1fe651..aa366aa5 100644
--- a/docs/PhoneNumberLookupApi.md
+++ b/docs/PhoneNumberLookupApi.md
@@ -19,6 +19,7 @@ Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 tele
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -44,6 +45,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -76,7 +79,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -102,6 +105,7 @@ Creates a synchronous phone number lookup request. Maximum of 100 telephone numb
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -127,6 +131,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -159,7 +165,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -185,6 +191,7 @@ Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/opera
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -209,6 +216,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -241,7 +250,7 @@ Name | Type | Description | Notes
### 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 e461ef87..832ee039 100644
--- a/docs/RecordingsApi.md
+++ b/docs/RecordingsApi.md
@@ -21,13 +21,12 @@ Method | HTTP request | Description
Delete Recording
-Delete the recording information, media and transcription.
-
-Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
+Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -51,6 +50,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -83,7 +84,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -116,6 +117,7 @@ Deletes the specified recording's media.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -139,6 +141,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -171,7 +175,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -199,13 +203,12 @@ void (empty response body)
Delete Transcription
-Deletes the specified recording's transcription.
-
-Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
+Deletes the specified recording's transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -229,6 +232,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -261,7 +266,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -294,6 +299,7 @@ Downloads the specified recording.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -317,6 +323,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -351,7 +359,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -384,6 +392,7 @@ Returns metadata for the specified recording.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -408,6 +417,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -442,7 +453,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -470,14 +481,12 @@ Name | Type | Description | Notes
Get Transcription
-Downloads the specified transcription.
-If the recording was multi-channel, then there will be 2 transcripts.
-The caller/called party transcript will be the first item while [``](/docs/voice/bxml/playAudio) and [``](/docs/voice/bxml/speakSentence) transcript will be the second item.
-During a [``](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
+Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [``](/docs/voice/bxml/playAudio) and [``](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [``](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -502,6 +511,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -536,7 +547,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -564,14 +575,12 @@ Name | Type | Description | Notes
Get Call Recordings
-Returns a list of metadata for the recordings associated with the
-specified account. The list can be filtered by the optional from, to, minStartTime,
-and maxStartTime arguments. The list is capped at 1000 entries and may be
-empty if no recordings match the specified criteria.
+Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -596,6 +605,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -634,7 +645,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -662,12 +673,12 @@ Name | Type | Description | Notes
List Call Recordings
-Returns a (potentially empty) list of metadata for the recordings
-that took place during the specified call.
+Returns a (potentially empty) list of metadata for the recordings that took place during the specified call.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -692,6 +703,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -724,7 +737,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -752,13 +765,12 @@ Name | Type | Description | Notes
Create Transcription Request
-Generate the transcription for a specific recording. Transcription
-can succeed only for recordings of length greater than 500 milliseconds and
-less than 4 hours.
+Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -783,6 +795,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -817,7 +831,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -850,6 +864,7 @@ Pause or resume a recording on an active phone call.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -874,6 +889,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -906,7 +923,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 3df9571f..3b4d9fe2 100644
--- a/docs/StatisticsApi.md
+++ b/docs/StatisticsApi.md
@@ -17,6 +17,7 @@ Returns details about the current state of the account.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -41,6 +42,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -71,7 +74,7 @@ Name | Type | Description | Notes
### 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 d5995ce1..9f1a4b85 100644
--- a/docs/TollFreeVerificationApi.md
+++ b/docs/TollFreeVerificationApi.md
@@ -20,13 +20,12 @@ Method | HTTP request | Description
Create Webhook Subscription
-Create a new webhook subscription (this webhook will be called for every update on every submission).
-In addition to a `callbackUrl`, this subscription can provide optional HTTP basic authentication credentials (a username and a password).
-The returned subscription object will contain an ID that can be used to modify or delete the subscription at a later time.
+Create a new webhook subscription (this webhook will be called for every update on every submission). In addition to a `callbackUrl`, this subscription can provide optional HTTP basic authentication credentials (a username and a password). The returned subscription object will contain an ID that can be used to modify or delete the subscription at a later time.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -52,6 +51,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -84,7 +85,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -117,6 +118,7 @@ Delete a toll-free verification submission for a toll-free number.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -140,6 +142,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -170,7 +174,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -203,6 +207,7 @@ Delete a webhook subscription by ID.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -226,6 +231,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -256,7 +263,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -284,12 +291,12 @@ void (empty response body)
Get Toll-Free Verification Status
-Gets the verification status for a phone number that is provisioned to your account.
-Submission information will be appended to the response if it is available.
+Gets the verification status for a phone number that is provisioned to your account. Submission information will be appended to the response if it is available.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -314,6 +321,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -346,7 +355,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -379,6 +388,7 @@ Lists valid toll-free use cases.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -402,6 +412,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -428,7 +440,7 @@ This endpoint does not need any parameter.
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -456,12 +468,12 @@ This endpoint does not need any parameter.
List Webhook Subscriptions
-Lists all webhook subscriptions that are registered to receive status updates for the toll-free verification requests submitted under this account (password will not be returned through this API
-If `basicAuthentication` is defined, the `password` property of that object will be null).
+Lists all webhook subscriptions that are registered to receive status updates for the toll-free verification requests submitted under this account (password will not be returned through this API If `basicAuthentication` is defined, the `password` property of that object will be null).
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -486,6 +498,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -516,7 +530,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -548,6 +562,7 @@ Submit a request for verification of a toll-free phone number.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -572,6 +587,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -602,7 +619,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -629,12 +646,12 @@ void (empty response body)
Update Toll-Free Verification Request
-Updates a toll-free verification request.
-Submissions are only eligible for resubmission for 7 days within being processed and if resubmission is allowed (resubmitAllowed field is true).
+Updates a toll-free verification request. Submissions are only eligible for resubmission for 7 days within being processed and if resubmission is allowed (resubmitAllowed field is true).
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -659,6 +676,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -691,7 +710,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -723,6 +742,7 @@ Update an existing webhook subscription (`callbackUrl` and `basicAuthentication`
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -748,6 +768,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -782,7 +804,7 @@ Name | Type | Description | Notes
### 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 2a8b05f2..cbed8fcf 100644
--- a/docs/TranscriptionsApi.md
+++ b/docs/TranscriptionsApi.md
@@ -14,13 +14,12 @@ Method | HTTP request | Description
Delete Real-time Transcription
-Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
-
-Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
+Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -44,6 +43,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -76,7 +77,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -109,6 +110,7 @@ Retrieve the specified transcription that was created on this call via [startTra
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -133,6 +135,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -167,7 +171,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -200,6 +204,7 @@ List the transcriptions created on this call via [startTranscription](/docs/voic
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -224,6 +229,8 @@ configuration = bandwidth.Configuration(
password = os.environ["PASSWORD"]
)
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
# Enter a context with an instance of the API client
with bandwidth.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -256,7 +263,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
diff --git a/openapitools.json b/openapitools.json
index f052220d..973a005e 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.11.0"
}
}
diff --git a/setup.py b/setup.py
index a728fc55..ed152559 100644
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,7 @@
Do not edit the class manually.
""" # noqa: E501
+
import os
import sys
from setuptools import setup, find_packages # noqa: H301