Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
- name: Test
run: |-
npm install -g @stoplight/prism-cli
prism mock ./bandwidth.yml & pytest -v ./test/unit/models
prism mock ./bandwidth.yml & pytest -v ./test/unit

- name: Deploy to PYPI
run: |
Expand Down
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ bandwidth/models/call_recording_metadata.py
bandwidth/models/call_state.py
bandwidth/models/call_state_enum.py
bandwidth/models/call_transcription.py
bandwidth/models/call_transcription_detected_language_enum.py
bandwidth/models/call_transcription_metadata.py
bandwidth/models/call_transcription_response.py
bandwidth/models/call_transcription_track_enum.py
bandwidth/models/callback_method_enum.py
bandwidth/models/code_request.py
bandwidth/models/conference.py
Expand Down Expand Up @@ -119,8 +121,10 @@ docs/CallRecordingMetadata.md
docs/CallState.md
docs/CallStateEnum.md
docs/CallTranscription.md
docs/CallTranscriptionDetectedLanguageEnum.md
docs/CallTranscriptionMetadata.md
docs/CallTranscriptionResponse.md
docs/CallTranscriptionTrackEnum.md
docs/CallbackMethodEnum.md
docs/CallsApi.md
docs/CodeRequest.md
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.6.0
7.7.0
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:

- API version: 1.0.0
- Package version: 15.0.0
- Generator version: 7.6.0
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://dev.bandwidth.com](https://dev.bandwidth.com)

Expand Down Expand Up @@ -149,8 +149,10 @@ Class | Method | HTTP request | Description
- [CallState](docs/CallState.md)
- [CallStateEnum](docs/CallStateEnum.md)
- [CallTranscription](docs/CallTranscription.md)
- [CallTranscriptionDetectedLanguageEnum](docs/CallTranscriptionDetectedLanguageEnum.md)
- [CallTranscriptionMetadata](docs/CallTranscriptionMetadata.md)
- [CallTranscriptionResponse](docs/CallTranscriptionResponse.md)
- [CallTranscriptionTrackEnum](docs/CallTranscriptionTrackEnum.md)
- [CallbackMethodEnum](docs/CallbackMethodEnum.md)
- [CodeRequest](docs/CodeRequest.md)
- [Conference](docs/Conference.md)
Expand Down
38 changes: 21 additions & 17 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2131,6 +2131,21 @@ components:

and will include its result.
example: async
callTranscriptionDetectedLanguageEnum:
type: string
enum:
- en-US
- es-US
- fr-FR
description: The detected language for this transcription.
example: en-US
callTranscriptionTrackEnum:
type: string
enum:
- inbound
- outbound
description: Which `track` this transcription is derived from.
example: inbound
createCall:
type: object
required:
Expand Down Expand Up @@ -3281,27 +3296,16 @@ components:
example:
- detectedLanguage: en-US
track: inbound
text: Hello World! This is an example.
transcript: Hello World! This is an example.
confidence: 0.9
callTranscription:
type: object
properties:
detectedLanguage:
type: string
enum:
- en-US
- es-US
- fr-FR
description: The detected language for this transcription.
example: en-US
$ref: '#/components/schemas/callTranscriptionDetectedLanguageEnum'
track:
type: string
enum:
- inbound
- outbound
description: Which `track` this transcription is derived from.
example: inbound
text:
$ref: '#/components/schemas/callTranscriptionTrackEnum'
transcript:
type: string
description: The transcription itself.
example: Hello World! This is an example.
Expand Down Expand Up @@ -4241,7 +4245,7 @@ components:
description: >-
The phone number used as the to field of the B-leg call, in E.164 format
(e.g. +15555555555).
example: "+15555555555"
example: '+15555555555'
mediaUrl:
nullable: true
type: string
Expand Down Expand Up @@ -5788,7 +5792,7 @@ components:
answerMethod: POST
answerUrl: https://myServer.example/bandwidth/webhooks/answer
answerFallbackMethod: POST
answerFallbackUrl: "https://myServer.example/bandwidth/webhooks/answerFallback"
answerFallbackUrl: https://myServer.example/bandwidth/webhooks/answerFallback
disconnectMethod: POST
disconnectUrl: https://myServer.example/bandwidth/webhooks/disconnect
username: mySecretUsername
Expand Down
2 changes: 2 additions & 0 deletions bandwidth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@
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_method_enum import CallbackMethodEnum
from bandwidth.models.code_request import CodeRequest
from bandwidth.models.conference import Conference
Expand Down
55 changes: 30 additions & 25 deletions bandwidth/api/calls_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,12 @@ def _create_call_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)

# set the HTTP header `Content-Type`
if _content_type:
Expand Down Expand Up @@ -626,11 +627,12 @@ def _get_call_state_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -1030,11 +1032,12 @@ def _list_calls_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -1348,11 +1351,12 @@ def _update_call_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)

# set the HTTP header `Content-Type`
if _content_type:
Expand Down Expand Up @@ -1679,11 +1683,12 @@ def _update_call_bxml_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)

# set the HTTP header `Content-Type`
if _content_type:
Expand Down
103 changes: 56 additions & 47 deletions bandwidth/api/conferences_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,14 @@ def _download_conference_recording_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'audio/vnd.wave',
'audio/mpeg',
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'audio/vnd.wave',
'audio/mpeg',
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -631,11 +632,12 @@ def _get_conference_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -946,11 +948,12 @@ def _get_conference_member_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -1261,11 +1264,12 @@ def _get_conference_recording_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -1561,11 +1565,12 @@ def _list_conference_recordings_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -1931,11 +1936,12 @@ def _list_conferences_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -2246,11 +2252,12 @@ def _update_conference_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)

# set the HTTP header `Content-Type`
if _content_type:
Expand Down Expand Up @@ -2574,11 +2581,12 @@ def _update_conference_bxml_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)

# set the HTTP header `Content-Type`
if _content_type:
Expand Down Expand Up @@ -2917,11 +2925,12 @@ def _update_conference_member_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)

# set the HTTP header `Content-Type`
if _content_type:
Expand Down
Loading