Skip to content

Commit e575eba

Browse files
authored
SWI-8922 Switch to TN Lookup V2 (#186)
* generate with tnlookup v2 * remove oauth * smoke and unit tests for api * update workflows
1 parent c45d9da commit e575eba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3563
-718
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
fi
4444
4545
- name: Checkout
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v5
4747

4848
- name: Setup Ruby
4949
uses: ruby/setup-ruby@v1

.github/workflows/test-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
fail-fast: false
3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v5
4040

4141
- name: Set up Ruby
4242
uses: ruby/setup-ruby@v1
@@ -47,7 +47,7 @@ jobs:
4747
run: |
4848
npm install -g @stoplight/prism-cli
4949
bundle install
50-
prism mock ./bandwidth.yml & (sleep 3; rake unit)
50+
prism mock ./bandwidth.yml & (sleep 4; rake unit)
5151
env:
5252
RUBY_VERSION: ${{ matrix.ruby-version }}
5353
OPERATING_SYSTEM: ${{ matrix.os }}

.github/workflows/test-smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }}
3636
steps:
3737
- name: Checkout
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@v5
3939

4040
- name: Set up Ruby
4141
uses: ruby/setup-ruby@v1

.openapi-generator/FILES

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ docs/AccountStatistics.md
88
docs/AdditionalDenialReason.md
99
docs/Address.md
1010
docs/AnswerCallback.md
11+
docs/AsyncLookupRequest.md
1112
docs/BlockedWebhook.md
1213
docs/BridgeCompleteCallback.md
1314
docs/BridgeTargetCompleteCallback.md
@@ -27,6 +28,7 @@ docs/CallbackMethodEnum.md
2728
docs/CallsApi.md
2829
docs/CardWidthEnum.md
2930
docs/CodeRequest.md
31+
docs/CompletedLookupStatusEnum.md
3032
docs/Conference.md
3133
docs/ConferenceCompletedCallback.md
3234
docs/ConferenceCreatedCallback.md
@@ -39,11 +41,15 @@ docs/ConferenceRedirectCallback.md
3941
docs/ConferenceStateEnum.md
4042
docs/ConferencesApi.md
4143
docs/Contact.md
44+
docs/CreateAsyncBulkLookupResponse.md
45+
docs/CreateAsyncBulkLookupResponseData.md
4246
docs/CreateCall.md
4347
docs/CreateCallResponse.md
44-
docs/CreateLookupResponse.md
4548
docs/CreateMessageRequestError.md
4649
docs/CreateMultiChannelMessageResponse.md
50+
docs/CreateSyncLookupResponse.md
51+
docs/CreateSyncLookupResponseData.md
52+
docs/DeactivationEventEnum.md
4753
docs/DisconnectCallback.md
4854
docs/Diversion.md
4955
docs/DtmfCallback.md
@@ -54,18 +60,24 @@ docs/FailureWebhook.md
5460
docs/FieldError.md
5561
docs/FileFormatEnum.md
5662
docs/GatherCallback.md
63+
docs/GetAsyncBulkLookupResponse.md
64+
docs/GetAsyncBulkLookupResponseData.md
65+
docs/InProgressLookupStatusEnum.md
5766
docs/InboundCallback.md
5867
docs/InboundCallbackMessage.md
5968
docs/InboundCallbackTypeEnum.md
6069
docs/InitiateCallback.md
70+
docs/LatestMessageDeliveryStatusEnum.md
71+
docs/LineTypeEnum.md
6172
docs/Link.md
73+
docs/LinkSchema.md
6274
docs/LinksObject.md
6375
docs/ListMessageDirectionEnum.md
6476
docs/ListMessageItem.md
65-
docs/LookupRequest.md
77+
docs/LookupErrorResponse.md
78+
docs/LookupErrorSchema.md
79+
docs/LookupErrorSchemaMeta.md
6680
docs/LookupResult.md
67-
docs/LookupStatus.md
68-
docs/LookupStatusEnum.md
6981
docs/MFAApi.md
7082
docs/MachineDetectionCompleteCallback.md
7183
docs/MachineDetectionConfiguration.md
@@ -134,6 +146,7 @@ docs/StatusCallback.md
134146
docs/StatusCallbackMessage.md
135147
docs/StatusCallbackTypeEnum.md
136148
docs/StirShaken.md
149+
docs/SyncLookupRequest.md
137150
docs/TelephoneNumber.md
138151
docs/TfvBasicAuthentication.md
139152
docs/TfvCallbackStatusEnum.md
@@ -143,7 +156,6 @@ docs/TfvStatusEnum.md
143156
docs/TfvSubmissionInfo.md
144157
docs/TfvSubmissionWrapper.md
145158
docs/ThumbnailAlignmentEnum.md
146-
docs/TnLookupRequestError.md
147159
docs/TollFreeVerificationApi.md
148160
docs/TranscribeRecording.md
149161
docs/Transcription.md
@@ -189,6 +201,7 @@ lib/bandwidth-sdk/models/account_statistics.rb
189201
lib/bandwidth-sdk/models/additional_denial_reason.rb
190202
lib/bandwidth-sdk/models/address.rb
191203
lib/bandwidth-sdk/models/answer_callback.rb
204+
lib/bandwidth-sdk/models/async_lookup_request.rb
192205
lib/bandwidth-sdk/models/blocked_webhook.rb
193206
lib/bandwidth-sdk/models/bridge_complete_callback.rb
194207
lib/bandwidth-sdk/models/bridge_target_complete_callback.rb
@@ -207,6 +220,7 @@ lib/bandwidth-sdk/models/callback.rb
207220
lib/bandwidth-sdk/models/callback_method_enum.rb
208221
lib/bandwidth-sdk/models/card_width_enum.rb
209222
lib/bandwidth-sdk/models/code_request.rb
223+
lib/bandwidth-sdk/models/completed_lookup_status_enum.rb
210224
lib/bandwidth-sdk/models/conference.rb
211225
lib/bandwidth-sdk/models/conference_completed_callback.rb
212226
lib/bandwidth-sdk/models/conference_created_callback.rb
@@ -218,11 +232,15 @@ lib/bandwidth-sdk/models/conference_recording_metadata.rb
218232
lib/bandwidth-sdk/models/conference_redirect_callback.rb
219233
lib/bandwidth-sdk/models/conference_state_enum.rb
220234
lib/bandwidth-sdk/models/contact.rb
235+
lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb
236+
lib/bandwidth-sdk/models/create_async_bulk_lookup_response_data.rb
221237
lib/bandwidth-sdk/models/create_call.rb
222238
lib/bandwidth-sdk/models/create_call_response.rb
223-
lib/bandwidth-sdk/models/create_lookup_response.rb
224239
lib/bandwidth-sdk/models/create_message_request_error.rb
225240
lib/bandwidth-sdk/models/create_multi_channel_message_response.rb
241+
lib/bandwidth-sdk/models/create_sync_lookup_response.rb
242+
lib/bandwidth-sdk/models/create_sync_lookup_response_data.rb
243+
lib/bandwidth-sdk/models/deactivation_event_enum.rb
226244
lib/bandwidth-sdk/models/disconnect_callback.rb
227245
lib/bandwidth-sdk/models/diversion.rb
228246
lib/bandwidth-sdk/models/dtmf_callback.rb
@@ -233,18 +251,24 @@ lib/bandwidth-sdk/models/failure_webhook.rb
233251
lib/bandwidth-sdk/models/field_error.rb
234252
lib/bandwidth-sdk/models/file_format_enum.rb
235253
lib/bandwidth-sdk/models/gather_callback.rb
254+
lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb
255+
lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb
256+
lib/bandwidth-sdk/models/in_progress_lookup_status_enum.rb
236257
lib/bandwidth-sdk/models/inbound_callback.rb
237258
lib/bandwidth-sdk/models/inbound_callback_message.rb
238259
lib/bandwidth-sdk/models/inbound_callback_type_enum.rb
239260
lib/bandwidth-sdk/models/initiate_callback.rb
261+
lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb
262+
lib/bandwidth-sdk/models/line_type_enum.rb
240263
lib/bandwidth-sdk/models/link.rb
264+
lib/bandwidth-sdk/models/link_schema.rb
241265
lib/bandwidth-sdk/models/links_object.rb
242266
lib/bandwidth-sdk/models/list_message_direction_enum.rb
243267
lib/bandwidth-sdk/models/list_message_item.rb
244-
lib/bandwidth-sdk/models/lookup_request.rb
268+
lib/bandwidth-sdk/models/lookup_error_response.rb
269+
lib/bandwidth-sdk/models/lookup_error_schema.rb
270+
lib/bandwidth-sdk/models/lookup_error_schema_meta.rb
245271
lib/bandwidth-sdk/models/lookup_result.rb
246-
lib/bandwidth-sdk/models/lookup_status.rb
247-
lib/bandwidth-sdk/models/lookup_status_enum.rb
248272
lib/bandwidth-sdk/models/machine_detection_complete_callback.rb
249273
lib/bandwidth-sdk/models/machine_detection_configuration.rb
250274
lib/bandwidth-sdk/models/machine_detection_mode_enum.rb
@@ -306,6 +330,7 @@ lib/bandwidth-sdk/models/status_callback.rb
306330
lib/bandwidth-sdk/models/status_callback_message.rb
307331
lib/bandwidth-sdk/models/status_callback_type_enum.rb
308332
lib/bandwidth-sdk/models/stir_shaken.rb
333+
lib/bandwidth-sdk/models/sync_lookup_request.rb
309334
lib/bandwidth-sdk/models/telephone_number.rb
310335
lib/bandwidth-sdk/models/tfv_basic_authentication.rb
311336
lib/bandwidth-sdk/models/tfv_callback_status_enum.rb
@@ -315,7 +340,6 @@ lib/bandwidth-sdk/models/tfv_status_enum.rb
315340
lib/bandwidth-sdk/models/tfv_submission_info.rb
316341
lib/bandwidth-sdk/models/tfv_submission_wrapper.rb
317342
lib/bandwidth-sdk/models/thumbnail_alignment_enum.rb
318-
lib/bandwidth-sdk/models/tn_lookup_request_error.rb
319343
lib/bandwidth-sdk/models/transcribe_recording.rb
320344
lib/bandwidth-sdk/models/transcription.rb
321345
lib/bandwidth-sdk/models/transcription_available_callback.rb

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ Class | Method | HTTP request | Description
131131
*Bandwidth::MessagesApi* | [**create_message**](docs/MessagesApi.md#create_message) | **POST** /users/{accountId}/messages | Create Message
132132
*Bandwidth::MessagesApi* | [**list_messages**](docs/MessagesApi.md#list_messages) | **GET** /users/{accountId}/messages | List Messages
133133
*Bandwidth::MultiChannelApi* | [**create_multi_channel_message**](docs/MultiChannelApi.md#create_multi_channel_message) | **POST** /users/{accountId}/messages/multiChannel | Create Multi-Channel Message
134-
*Bandwidth::PhoneNumberLookupApi* | [**create_lookup**](docs/PhoneNumberLookupApi.md#create_lookup) | **POST** /accounts/{accountId}/tnlookup | Create Lookup
135-
*Bandwidth::PhoneNumberLookupApi* | [**get_lookup_status**](docs/PhoneNumberLookupApi.md#get_lookup_status) | **GET** /accounts/{accountId}/tnlookup/{requestId} | Get Lookup Request Status
134+
*Bandwidth::PhoneNumberLookupApi* | [**create_async_bulk_lookup**](docs/PhoneNumberLookupApi.md#create_async_bulk_lookup) | **POST** /accounts/{accountId}/phoneNumberLookup/bulk | Create Asynchronous Bulk Number Lookup
135+
*Bandwidth::PhoneNumberLookupApi* | [**create_sync_lookup**](docs/PhoneNumberLookupApi.md#create_sync_lookup) | **POST** /accounts/{accountId}/phoneNumberLookup | Create Synchronous Number Lookup
136+
*Bandwidth::PhoneNumberLookupApi* | [**get_async_bulk_lookup**](docs/PhoneNumberLookupApi.md#get_async_bulk_lookup) | **GET** /accounts/{accountId}/phoneNumberLookup/bulk/{requestId} | Get Asynchronous Bulk Number Lookup
136137
*Bandwidth::RecordingsApi* | [**delete_recording**](docs/RecordingsApi.md#delete_recording) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Delete Recording
137138
*Bandwidth::RecordingsApi* | [**delete_recording_media**](docs/RecordingsApi.md#delete_recording_media) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Delete Recording Media
138139
*Bandwidth::RecordingsApi* | [**delete_recording_transcription**](docs/RecordingsApi.md#delete_recording_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription
@@ -164,6 +165,7 @@ Class | Method | HTTP request | Description
164165
- [Bandwidth::AdditionalDenialReason](docs/AdditionalDenialReason.md)
165166
- [Bandwidth::Address](docs/Address.md)
166167
- [Bandwidth::AnswerCallback](docs/AnswerCallback.md)
168+
- [Bandwidth::AsyncLookupRequest](docs/AsyncLookupRequest.md)
167169
- [Bandwidth::BlockedWebhook](docs/BlockedWebhook.md)
168170
- [Bandwidth::BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
169171
- [Bandwidth::BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
@@ -182,6 +184,7 @@ Class | Method | HTTP request | Description
182184
- [Bandwidth::CallbackMethodEnum](docs/CallbackMethodEnum.md)
183185
- [Bandwidth::CardWidthEnum](docs/CardWidthEnum.md)
184186
- [Bandwidth::CodeRequest](docs/CodeRequest.md)
187+
- [Bandwidth::CompletedLookupStatusEnum](docs/CompletedLookupStatusEnum.md)
185188
- [Bandwidth::Conference](docs/Conference.md)
186189
- [Bandwidth::ConferenceCompletedCallback](docs/ConferenceCompletedCallback.md)
187190
- [Bandwidth::ConferenceCreatedCallback](docs/ConferenceCreatedCallback.md)
@@ -193,11 +196,15 @@ Class | Method | HTTP request | Description
193196
- [Bandwidth::ConferenceRedirectCallback](docs/ConferenceRedirectCallback.md)
194197
- [Bandwidth::ConferenceStateEnum](docs/ConferenceStateEnum.md)
195198
- [Bandwidth::Contact](docs/Contact.md)
199+
- [Bandwidth::CreateAsyncBulkLookupResponse](docs/CreateAsyncBulkLookupResponse.md)
200+
- [Bandwidth::CreateAsyncBulkLookupResponseData](docs/CreateAsyncBulkLookupResponseData.md)
196201
- [Bandwidth::CreateCall](docs/CreateCall.md)
197202
- [Bandwidth::CreateCallResponse](docs/CreateCallResponse.md)
198-
- [Bandwidth::CreateLookupResponse](docs/CreateLookupResponse.md)
199203
- [Bandwidth::CreateMessageRequestError](docs/CreateMessageRequestError.md)
200204
- [Bandwidth::CreateMultiChannelMessageResponse](docs/CreateMultiChannelMessageResponse.md)
205+
- [Bandwidth::CreateSyncLookupResponse](docs/CreateSyncLookupResponse.md)
206+
- [Bandwidth::CreateSyncLookupResponseData](docs/CreateSyncLookupResponseData.md)
207+
- [Bandwidth::DeactivationEventEnum](docs/DeactivationEventEnum.md)
201208
- [Bandwidth::DisconnectCallback](docs/DisconnectCallback.md)
202209
- [Bandwidth::Diversion](docs/Diversion.md)
203210
- [Bandwidth::DtmfCallback](docs/DtmfCallback.md)
@@ -208,18 +215,24 @@ Class | Method | HTTP request | Description
208215
- [Bandwidth::FieldError](docs/FieldError.md)
209216
- [Bandwidth::FileFormatEnum](docs/FileFormatEnum.md)
210217
- [Bandwidth::GatherCallback](docs/GatherCallback.md)
218+
- [Bandwidth::GetAsyncBulkLookupResponse](docs/GetAsyncBulkLookupResponse.md)
219+
- [Bandwidth::GetAsyncBulkLookupResponseData](docs/GetAsyncBulkLookupResponseData.md)
220+
- [Bandwidth::InProgressLookupStatusEnum](docs/InProgressLookupStatusEnum.md)
211221
- [Bandwidth::InboundCallback](docs/InboundCallback.md)
212222
- [Bandwidth::InboundCallbackMessage](docs/InboundCallbackMessage.md)
213223
- [Bandwidth::InboundCallbackTypeEnum](docs/InboundCallbackTypeEnum.md)
214224
- [Bandwidth::InitiateCallback](docs/InitiateCallback.md)
225+
- [Bandwidth::LatestMessageDeliveryStatusEnum](docs/LatestMessageDeliveryStatusEnum.md)
226+
- [Bandwidth::LineTypeEnum](docs/LineTypeEnum.md)
215227
- [Bandwidth::Link](docs/Link.md)
228+
- [Bandwidth::LinkSchema](docs/LinkSchema.md)
216229
- [Bandwidth::LinksObject](docs/LinksObject.md)
217230
- [Bandwidth::ListMessageDirectionEnum](docs/ListMessageDirectionEnum.md)
218231
- [Bandwidth::ListMessageItem](docs/ListMessageItem.md)
219-
- [Bandwidth::LookupRequest](docs/LookupRequest.md)
232+
- [Bandwidth::LookupErrorResponse](docs/LookupErrorResponse.md)
233+
- [Bandwidth::LookupErrorSchema](docs/LookupErrorSchema.md)
234+
- [Bandwidth::LookupErrorSchemaMeta](docs/LookupErrorSchemaMeta.md)
220235
- [Bandwidth::LookupResult](docs/LookupResult.md)
221-
- [Bandwidth::LookupStatus](docs/LookupStatus.md)
222-
- [Bandwidth::LookupStatusEnum](docs/LookupStatusEnum.md)
223236
- [Bandwidth::MachineDetectionCompleteCallback](docs/MachineDetectionCompleteCallback.md)
224237
- [Bandwidth::MachineDetectionConfiguration](docs/MachineDetectionConfiguration.md)
225238
- [Bandwidth::MachineDetectionModeEnum](docs/MachineDetectionModeEnum.md)
@@ -281,6 +294,7 @@ Class | Method | HTTP request | Description
281294
- [Bandwidth::StatusCallbackMessage](docs/StatusCallbackMessage.md)
282295
- [Bandwidth::StatusCallbackTypeEnum](docs/StatusCallbackTypeEnum.md)
283296
- [Bandwidth::StirShaken](docs/StirShaken.md)
297+
- [Bandwidth::SyncLookupRequest](docs/SyncLookupRequest.md)
284298
- [Bandwidth::TelephoneNumber](docs/TelephoneNumber.md)
285299
- [Bandwidth::TfvBasicAuthentication](docs/TfvBasicAuthentication.md)
286300
- [Bandwidth::TfvCallbackStatusEnum](docs/TfvCallbackStatusEnum.md)
@@ -290,7 +304,6 @@ Class | Method | HTTP request | Description
290304
- [Bandwidth::TfvSubmissionInfo](docs/TfvSubmissionInfo.md)
291305
- [Bandwidth::TfvSubmissionWrapper](docs/TfvSubmissionWrapper.md)
292306
- [Bandwidth::ThumbnailAlignmentEnum](docs/ThumbnailAlignmentEnum.md)
293-
- [Bandwidth::TnLookupRequestError](docs/TnLookupRequestError.md)
294307
- [Bandwidth::TranscribeRecording](docs/TranscribeRecording.md)
295308
- [Bandwidth::Transcription](docs/Transcription.md)
296309
- [Bandwidth::TranscriptionAvailableCallback](docs/TranscriptionAvailableCallback.md)

0 commit comments

Comments
 (0)