Skip to content

Commit d185d5f

Browse files
band-swi[bot]DX-Bandwidthckoegel
authored
SWI-5544 Update SDK Based on Recent Spec Changes (#141)
* Generate SDK with OpenAPI Generator Version 7.6.0 * Clean SDK using Rubocop * generate with 7.7.0-SNAPSHOT * SWI-5443 Add Prism Tests (#143) * switch to 7.7.0 * redo calls tests for prism * regenerate and update gemfile * remove webmock * update unit tests * update workflows * update api client tests * run prism first? * SWI-5470 Remove Deprecated add_verb methods (#142) * rake version? * what is going on * idfk * && * try to run in subshell * sleep then run? * use bash shell * update deploy wf --------- Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: ckoegel <[email protected]> Co-authored-by: Cameron Koegel <[email protected]>
1 parent 15d91f9 commit d185d5f

File tree

148 files changed

+661
-1175
lines changed

Some content is hidden

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

148 files changed

+661
-1175
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ jobs:
5555

5656
- name: Install Packages and Test
5757
run: |
58+
npm install -g @stoplight/prism-cli
5859
bundle install
59-
rake unit
60+
prism mock ./bandwidth.yml & (sleep 2; rake unit)
61+
shell: bash
6062

6163
- name: Deploy to Rubygems
6264
run: |

.github/workflows/test-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ jobs:
4545

4646
- name: Install Packages and Test
4747
run: |
48+
npm install -g @stoplight/prism-cli
4849
bundle install
49-
rake unit
50+
prism mock ./bandwidth.yml & (sleep 2; rake unit)
5051
env:
5152
RUBY_VERSION: ${{ matrix.ruby-version }}
5253
OPERATING_SYSTEM: ${{ matrix.os }}
54+
shell: bash

.github/workflows/test-smoke.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
env:
5050
RUBY_VERSION: 3.2
5151
OPERATING_SYSTEM: ubuntu
52+
shell: bash
5253

5354
notify_for_failures:
5455
name: Notify for Failures

.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ docs/CallRecordingMetadata.md
1313
docs/CallState.md
1414
docs/CallStateEnum.md
1515
docs/CallTranscription.md
16+
docs/CallTranscriptionDetectedLanguageEnum.md
1617
docs/CallTranscriptionMetadata.md
1718
docs/CallTranscriptionResponse.md
19+
docs/CallTranscriptionTrackEnum.md
1820
docs/CallbackMethodEnum.md
1921
docs/CallsApi.md
2022
docs/CodeRequest.md
@@ -127,8 +129,10 @@ lib/bandwidth-sdk/models/call_recording_metadata.rb
127129
lib/bandwidth-sdk/models/call_state.rb
128130
lib/bandwidth-sdk/models/call_state_enum.rb
129131
lib/bandwidth-sdk/models/call_transcription.rb
132+
lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb
130133
lib/bandwidth-sdk/models/call_transcription_metadata.rb
131134
lib/bandwidth-sdk/models/call_transcription_response.rb
135+
lib/bandwidth-sdk/models/call_transcription_track_enum.rb
132136
lib/bandwidth-sdk/models/callback_method_enum.rb
133137
lib/bandwidth-sdk/models/code_request.rb
134138
lib/bandwidth-sdk/models/conference.rb

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.6.0
1+
7.7.0

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ source 'https://rubygems.org'
33
gemspec
44

55
group :development, :test do
6-
gem 'rake', '~> 13.0.1'
6+
gem 'rake', '~> 13.2.1'
77
gem 'pry-byebug'
88
gem 'rubocop', '~> 1.52.0'
9-
gem 'webmock', '~> 3.18.0'
109
gem 'simplecov', '~> 0.21.2'
1110
end

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ Class | Method | HTTP request | Description
159159
- [Bandwidth::CallState](docs/CallState.md)
160160
- [Bandwidth::CallStateEnum](docs/CallStateEnum.md)
161161
- [Bandwidth::CallTranscription](docs/CallTranscription.md)
162+
- [Bandwidth::CallTranscriptionDetectedLanguageEnum](docs/CallTranscriptionDetectedLanguageEnum.md)
162163
- [Bandwidth::CallTranscriptionMetadata](docs/CallTranscriptionMetadata.md)
163164
- [Bandwidth::CallTranscriptionResponse](docs/CallTranscriptionResponse.md)
165+
- [Bandwidth::CallTranscriptionTrackEnum](docs/CallTranscriptionTrackEnum.md)
164166
- [Bandwidth::CallbackMethodEnum](docs/CallbackMethodEnum.md)
165167
- [Bandwidth::CodeRequest](docs/CodeRequest.md)
166168
- [Bandwidth::Conference](docs/Conference.md)

bandwidth-sdk.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
The version of the OpenAPI document: 1.0.0
99
1010
Generated by: https://openapi-generator.tech
11-
Generator version: 7.6.0
11+
Generator version: 7.7.0
1212
1313
=end
1414

bandwidth.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,6 +2131,21 @@ components:
21312131
21322132
and will include its result.
21332133
example: async
2134+
callTranscriptionDetectedLanguageEnum:
2135+
type: string
2136+
enum:
2137+
- en-US
2138+
- es-US
2139+
- fr-FR
2140+
description: The detected language for this transcription.
2141+
example: en-US
2142+
callTranscriptionTrackEnum:
2143+
type: string
2144+
enum:
2145+
- inbound
2146+
- outbound
2147+
description: Which `track` this transcription is derived from.
2148+
example: inbound
21342149
createCall:
21352150
type: object
21362151
required:
@@ -3265,7 +3280,7 @@ components:
32653280
accountId:
32663281
type: string
32673282
description: The user account associated with the call.
3268-
example: '920012'
3283+
example: '9900000'
32693284
callId:
32703285
type: string
32713286
description: The call id associated with the event.
@@ -3281,27 +3296,16 @@ components:
32813296
example:
32823297
- detectedLanguage: en-US
32833298
track: inbound
3284-
text: Hello World! This is an example.
3299+
transcript: Hello World! This is an example.
32853300
confidence: 0.9
32863301
callTranscription:
32873302
type: object
32883303
properties:
32893304
detectedLanguage:
3290-
type: string
3291-
enum:
3292-
- en-US
3293-
- es-US
3294-
- fr-FR
3295-
description: The detected language for this transcription.
3296-
example: en-US
3305+
$ref: '#/components/schemas/callTranscriptionDetectedLanguageEnum'
32973306
track:
3298-
type: string
3299-
enum:
3300-
- inbound
3301-
- outbound
3302-
description: Which `track` this transcription is derived from.
3303-
example: inbound
3304-
text:
3307+
$ref: '#/components/schemas/callTranscriptionTrackEnum'
3308+
transcript:
33053309
type: string
33063310
description: The transcription itself.
33073311
example: Hello World! This is an example.
@@ -3327,6 +3331,7 @@ components:
33273331
$ref: '#/components/schemas/status'
33283332
completedTime:
33293333
type: string
3334+
format: date-time
33303335
description: The time that the transcription was completed
33313336
example: '2022-06-13T18:46:29.715Z'
33323337
url:

custom_templates/Gemfile.mustache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ source 'https://rubygems.org'
33
gemspec
44

55
group :development, :test do
6-
gem 'rake', '~> 13.0.1'
6+
gem 'rake', '~> 13.2.1'
77
gem 'pry-byebug'
88
gem 'rubocop', '~> 1.52.0'
9-
gem 'webmock', '~> 3.18.0'
109
gem 'simplecov', '~> 0.21.2'
1110
end

0 commit comments

Comments
 (0)