Skip to content

Commit

Permalink
SWI-5239 Update SDK Based on Recent Spec Changes (#135)
Browse files Browse the repository at this point in the history
* Generate SDK with OpenAPI Generator Version 7.0.0

* Clean SDK using Rubocop

* fix unused vars

* more unused vars

* update method names for recordings tests

* update recording method comments

* add unit tests for transcriptions api

* update comment

* add integration tests

* update tests

* add sleep so hopefully transcriptions exist

* wait 40s

* wait a full minute

* add 3.3 to the test matrix

* add delete test

* 60s sleep

---------

Co-authored-by: DX-Bandwidth <[email protected]>
Co-authored-by: ckoegel <[email protected]>
  • Loading branch information
3 people authored May 20, 2024
1 parent a71dd8f commit e686cc7
Show file tree
Hide file tree
Showing 46 changed files with 2,542 additions and 264 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
matrix:
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
ruby-version: [2.7, 3.0, 3.1, 3.2]
ruby-version: [2.7, 3.0, 3.1, 3.2, 3.3]
fail-fast: false
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
matrix:
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
ruby-version: [2.7, 3.0, 3.1, 3.2]
ruby-version: [2.7, 3.0, 3.1, 3.2, 3.3]
fail-fast: false
steps:
- name: Checkout
Expand Down
16 changes: 12 additions & 4 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ docs/CallDirectionEnum.md
docs/CallRecordingMetadata.md
docs/CallState.md
docs/CallStateEnum.md
docs/CallTranscription.md
docs/CallTranscriptionMetadata.md
docs/CallTranscriptionResponse.md
docs/CallbackMethodEnum.md
docs/CallsApi.md
docs/CodeRequest.md
Expand Down Expand Up @@ -77,6 +80,8 @@ docs/PriorityEnum.md
docs/RecordingAvailableCallback.md
docs/RecordingCompleteCallback.md
docs/RecordingStateEnum.md
docs/RecordingTranscriptionMetadata.md
docs/RecordingTranscriptions.md
docs/RecordingsApi.md
docs/RedirectCallback.md
docs/RedirectMethodEnum.md
Expand All @@ -87,8 +92,7 @@ docs/TnLookupRequestError.md
docs/TranscribeRecording.md
docs/Transcription.md
docs/TranscriptionAvailableCallback.md
docs/TranscriptionList.md
docs/TranscriptionMetadata.md
docs/TranscriptionsApi.md
docs/TransferAnswerCallback.md
docs/TransferCompleteCallback.md
docs/TransferDisconnectCallback.md
Expand All @@ -110,6 +114,7 @@ lib/bandwidth-sdk/api/mfa_api.rb
lib/bandwidth-sdk/api/phone_number_lookup_api.rb
lib/bandwidth-sdk/api/recordings_api.rb
lib/bandwidth-sdk/api/statistics_api.rb
lib/bandwidth-sdk/api/transcriptions_api.rb
lib/bandwidth-sdk/api_client.rb
lib/bandwidth-sdk/api_error.rb
lib/bandwidth-sdk/configuration.rb
Expand All @@ -121,6 +126,9 @@ lib/bandwidth-sdk/models/call_direction_enum.rb
lib/bandwidth-sdk/models/call_recording_metadata.rb
lib/bandwidth-sdk/models/call_state.rb
lib/bandwidth-sdk/models/call_state_enum.rb
lib/bandwidth-sdk/models/call_transcription.rb
lib/bandwidth-sdk/models/call_transcription_metadata.rb
lib/bandwidth-sdk/models/call_transcription_response.rb
lib/bandwidth-sdk/models/callback_method_enum.rb
lib/bandwidth-sdk/models/code_request.rb
lib/bandwidth-sdk/models/conference.rb
Expand Down Expand Up @@ -180,6 +188,8 @@ lib/bandwidth-sdk/models/priority_enum.rb
lib/bandwidth-sdk/models/recording_available_callback.rb
lib/bandwidth-sdk/models/recording_complete_callback.rb
lib/bandwidth-sdk/models/recording_state_enum.rb
lib/bandwidth-sdk/models/recording_transcription_metadata.rb
lib/bandwidth-sdk/models/recording_transcriptions.rb
lib/bandwidth-sdk/models/redirect_callback.rb
lib/bandwidth-sdk/models/redirect_method_enum.rb
lib/bandwidth-sdk/models/stir_shaken.rb
Expand All @@ -188,8 +198,6 @@ lib/bandwidth-sdk/models/tn_lookup_request_error.rb
lib/bandwidth-sdk/models/transcribe_recording.rb
lib/bandwidth-sdk/models/transcription.rb
lib/bandwidth-sdk/models/transcription_available_callback.rb
lib/bandwidth-sdk/models/transcription_list.rb
lib/bandwidth-sdk/models/transcription_metadata.rb
lib/bandwidth-sdk/models/transfer_answer_callback.rb
lib/bandwidth-sdk/models/transfer_complete_callback.rb
lib/bandwidth-sdk/models/transfer_disconnect_callback.rb
Expand Down
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

| **OS** | **Ruby** |
|:---:|:---:|
| Windows 2019 | 2.7, 3.0, 3.1, 3.2 |
| Windows 2022 | 2.7, 3.0, 3.1, 3.2 |
| Ubuntu 20.04 | 2.7, 3.0, 3.1, 3.2 |
| Ubuntu 22.04 | 2.7, 3.0, 3.1, 3.2 |
| Windows 2019 | 2.7, 3.0, 3.1, 3.2, 3.3 |
| Windows 2022 | 2.7, 3.0, 3.1, 3.2, 3.3 |
| Ubuntu 20.04 | 2.7, 3.0, 3.1, 3.2, 3.3 |
| Ubuntu 22.04 | 2.7, 3.0, 3.1, 3.2, 3.3 |

Bandwidth - the Ruby gem for the Bandwidth SDK

Expand Down Expand Up @@ -132,17 +132,20 @@ Class | Method | HTTP request | Description
*Bandwidth::MessagesApi* | [**list_messages**](docs/MessagesApi.md#list_messages) | **GET** /users/{accountId}/messages | List Messages
*Bandwidth::PhoneNumberLookupApi* | [**create_lookup**](docs/PhoneNumberLookupApi.md#create_lookup) | **POST** /accounts/{accountId}/tnlookup | Create Lookup
*Bandwidth::PhoneNumberLookupApi* | [**get_lookup_status**](docs/PhoneNumberLookupApi.md#get_lookup_status) | **GET** /accounts/{accountId}/tnlookup/{requestId} | Get Lookup Request Status
*Bandwidth::RecordingsApi* | [**delete_call_transcription**](docs/RecordingsApi.md#delete_call_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription
*Bandwidth::RecordingsApi* | [**delete_recording**](docs/RecordingsApi.md#delete_recording) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Delete Recording
*Bandwidth::RecordingsApi* | [**delete_recording_media**](docs/RecordingsApi.md#delete_recording_media) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Delete Recording Media
*Bandwidth::RecordingsApi* | [**delete_recording_transcription**](docs/RecordingsApi.md#delete_recording_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription
*Bandwidth::RecordingsApi* | [**download_call_recording**](docs/RecordingsApi.md#download_call_recording) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Download Recording
*Bandwidth::RecordingsApi* | [**get_call_recording**](docs/RecordingsApi.md#get_call_recording) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Get Call Recording
*Bandwidth::RecordingsApi* | [**get_call_transcription**](docs/RecordingsApi.md#get_call_transcription) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Get Transcription
*Bandwidth::RecordingsApi* | [**get_recording_transcription**](docs/RecordingsApi.md#get_recording_transcription) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Get Transcription
*Bandwidth::RecordingsApi* | [**list_account_call_recordings**](docs/RecordingsApi.md#list_account_call_recordings) | **GET** /accounts/{accountId}/recordings | Get Call Recordings
*Bandwidth::RecordingsApi* | [**list_call_recordings**](docs/RecordingsApi.md#list_call_recordings) | **GET** /accounts/{accountId}/calls/{callId}/recordings | List Call Recordings
*Bandwidth::RecordingsApi* | [**transcribe_call_recording**](docs/RecordingsApi.md#transcribe_call_recording) | **POST** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Create Transcription Request
*Bandwidth::RecordingsApi* | [**update_call_recording_state**](docs/RecordingsApi.md#update_call_recording_state) | **PUT** /accounts/{accountId}/calls/{callId}/recording | Update Recording
*Bandwidth::StatisticsApi* | [**get_statistics**](docs/StatisticsApi.md#get_statistics) | **GET** /accounts/{accountId}/statistics | Get Account Statistics
*Bandwidth::TranscriptionsApi* | [**delete_real_time_transcription**](docs/TranscriptionsApi.md#delete_real_time_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete a specific transcription
*Bandwidth::TranscriptionsApi* | [**get_real_time_transcription**](docs/TranscriptionsApi.md#get_real_time_transcription) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Retrieve a specific transcription
*Bandwidth::TranscriptionsApi* | [**list_real_time_transcriptions**](docs/TranscriptionsApi.md#list_real_time_transcriptions) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions | Enumerate transcriptions made with StartTranscription


## Documentation for Models
Expand All @@ -155,6 +158,9 @@ Class | Method | HTTP request | Description
- [Bandwidth::CallRecordingMetadata](docs/CallRecordingMetadata.md)
- [Bandwidth::CallState](docs/CallState.md)
- [Bandwidth::CallStateEnum](docs/CallStateEnum.md)
- [Bandwidth::CallTranscription](docs/CallTranscription.md)
- [Bandwidth::CallTranscriptionMetadata](docs/CallTranscriptionMetadata.md)
- [Bandwidth::CallTranscriptionResponse](docs/CallTranscriptionResponse.md)
- [Bandwidth::CallbackMethodEnum](docs/CallbackMethodEnum.md)
- [Bandwidth::CodeRequest](docs/CodeRequest.md)
- [Bandwidth::Conference](docs/Conference.md)
Expand Down Expand Up @@ -214,6 +220,8 @@ Class | Method | HTTP request | Description
- [Bandwidth::RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
- [Bandwidth::RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
- [Bandwidth::RecordingStateEnum](docs/RecordingStateEnum.md)
- [Bandwidth::RecordingTranscriptionMetadata](docs/RecordingTranscriptionMetadata.md)
- [Bandwidth::RecordingTranscriptions](docs/RecordingTranscriptions.md)
- [Bandwidth::RedirectCallback](docs/RedirectCallback.md)
- [Bandwidth::RedirectMethodEnum](docs/RedirectMethodEnum.md)
- [Bandwidth::StirShaken](docs/StirShaken.md)
Expand All @@ -222,8 +230,6 @@ Class | Method | HTTP request | Description
- [Bandwidth::TranscribeRecording](docs/TranscribeRecording.md)
- [Bandwidth::Transcription](docs/Transcription.md)
- [Bandwidth::TranscriptionAvailableCallback](docs/TranscriptionAvailableCallback.md)
- [Bandwidth::TranscriptionList](docs/TranscriptionList.md)
- [Bandwidth::TranscriptionMetadata](docs/TranscriptionMetadata.md)
- [Bandwidth::TransferAnswerCallback](docs/TransferAnswerCallback.md)
- [Bandwidth::TransferCompleteCallback](docs/TransferCompleteCallback.md)
- [Bandwidth::TransferDisconnectCallback](docs/TransferDisconnectCallback.md)
Expand Down
Loading

0 comments on commit e686cc7

Please sign in to comment.