Skip to content

Commit 5c25a49

Browse files
band-swi[bot]DX-Bandwidthckoegel
authored
SWI-5445 Update SDK Based on Recent Spec Changes (#138)
* Generate SDK with OpenAPI Generator Version 7.0.0 * Clean SDK using Rubocop * update to generator v7.6.0 --------- Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: ckoegel <[email protected]>
1 parent b09c665 commit 5c25a49

File tree

132 files changed

+545
-264
lines changed

Some content is hidden

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

132 files changed

+545
-264
lines changed

.openapi-generator/VERSION

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

bandwidth-sdk.gemspec

Lines changed: 3 additions & 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-
OpenAPI Generator version: 7.0.0
11+
Generator version: 7.6.0
1212
1313
=end
1414

@@ -26,10 +26,12 @@ Gem::Specification.new do |s|
2626
s.description = 'The official client SDK for Bandwidth&#39;s Voice, Messaging, MFA, and WebRTC APIs'
2727
s.license = 'MIT'
2828
s.required_ruby_version = '>=2.7'
29+
s.metadata = {}
2930

3031
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
3132
s.add_runtime_dependency 'faraday-multipart'
3233
s.add_runtime_dependency 'ox', '~> 2.4'
34+
s.add_runtime_dependency 'marcel'
3335

3436
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
3537

bandwidth.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ paths:
11731173
[startTranscription](/docs/voice/bxml/startTranscription).
11741174
11751175
1176-
Note: After the deletion is requested and a `204` is returned, the
1176+
Note: After the deletion is requested and a `200` is returned, the
11771177
transcription will not be accessible anymore. However, it is not deleted
11781178
immediately. This deletion process, while transparent and irreversible,
11791179
can take an additional 24 to 48 hours.
@@ -1183,7 +1183,7 @@ paths:
11831183
- $ref: '#/components/parameters/callId'
11841184
- $ref: '#/components/parameters/transcriptionId'
11851185
responses:
1186-
'204':
1186+
'200':
11871187
$ref: '#/components/responses/deleteCallTranscriptionResponse'
11881188
'400':
11891189
$ref: '#/components/responses/voiceBadRequestError'
@@ -2496,7 +2496,7 @@ components:
24962496
description: >-
24972497
The phone number that made the call, in E.164 format (e.g.
24982498
+15555555555).
2499-
example: '19195554321'
2499+
example: '+19195554321'
25002500
direction:
25012501
$ref: '#/components/schemas/callDirectionEnum'
25022502
state:
@@ -4139,7 +4139,7 @@ components:
41394139
accountId:
41404140
type: string
41414141
description: The user account associated with the call.
4142-
example: '920012'
4142+
example: '9900000'
41434143
applicationId:
41444144
type: string
41454145
description: The id of the application associated with the call.
@@ -4240,7 +4240,7 @@ components:
42404240
description: >-
42414241
The phone number used as the to field of the B-leg call, in E.164 format
42424242
(e.g. +15555555555).
4243-
example: +15555555555)
4243+
example: '+15555555555'
42444244
mediaUrl:
42454245
nullable: true
42464246
type: string
@@ -4451,7 +4451,7 @@ components:
44514451
messageId:
44524452
type: string
44534453
description: Messaging API Message ID.
4454-
example: 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6
4454+
example: 1589228074636lm4k2je7j7jklbn2
44554455
verifyCodeRequest:
44564456
type: object
44574457
properties:
@@ -5787,6 +5787,7 @@ components:
57875787
answerMethod: POST
57885788
answerUrl: https://myServer.example/bandwidth/webhooks/answer
57895789
answerFallbackMethod: POST
5790+
answerFallbackUrl: https://myServer.example/bandwidth/webhooks/answerFallback
57905791
disconnectMethod: POST
57915792
disconnectUrl: https://myServer.example/bandwidth/webhooks/disconnect
57925793
username: mySecretUsername

custom_templates/gemspec.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
1818
s.description = "{{gemDescription}}{{^gemDescription}}{{{appDescription}}}{{^appDescription}}{{{appName}}} Ruby Gem{{/appDescription}}{{/gemDescription}}"
1919
s.license = "{{{gemLicense}}}{{^gemLicense}}Unlicense{{/gemLicense}}"
2020
s.required_ruby_version = "{{{gemRequiredRubyVersion}}}{{^gemRequiredRubyVersion}}>= 2.7{{/gemRequiredRubyVersion}}"
21+
s.metadata = {}
2122

2223
{{#isFaraday}}
2324
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
@@ -27,6 +28,7 @@ Gem::Specification.new do |s|
2728
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
2829
{{/isFaraday}}
2930
s.add_runtime_dependency 'ox', '~> 2.4'
31+
s.add_runtime_dependency 'marcel'
3032

3133
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
3234

docs/AnswerCallback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require 'bandwidth-sdk'
2727
instance = Bandwidth::AnswerCallback.new(
2828
event_type: bridgeComplete,
2929
event_time: 2022-06-17T22:19:40.375Z,
30-
account_id: 920012,
30+
account_id: 9900000,
3131
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3232
from: +15555555555,
3333
to: +15555555555,

docs/BridgeCompleteCallback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require 'bandwidth-sdk'
2929
instance = Bandwidth::BridgeCompleteCallback.new(
3030
event_type: bridgeComplete,
3131
event_time: 2022-06-17T22:19:40.375Z,
32-
account_id: 920012,
32+
account_id: 9900000,
3333
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3434
from: +15555555555,
3535
to: +15555555555,

docs/BridgeTargetCompleteCallback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ require 'bandwidth-sdk'
2626
instance = Bandwidth::BridgeTargetCompleteCallback.new(
2727
event_type: bridgeComplete,
2828
event_time: 2022-06-17T22:19:40.375Z,
29-
account_id: 920012,
29+
account_id: 9900000,
3030
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3131
from: +15555555555,
3232
to: +15555555555,

docs/CallRecordingMetadata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ require 'bandwidth-sdk'
3030

3131
instance = Bandwidth::CallRecordingMetadata.new(
3232
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
33-
account_id: 920012,
33+
account_id: 9900000,
3434
call_id: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85,
3535
parent_call_id: c-95ac8d6e-1a31c52e-b38f-4198-93c1-51633ec68f8d,
3636
recording_id: r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833,
3737
to: +15555555555,
3838
from: +15555555555,
3939
transfer_caller_id: +15555555555,
40-
transfer_to: +15555555555),
40+
transfer_to: +15555555555,
4141
duration: PT13.67S,
4242
direction: null,
4343
channels: 1,

docs/CallState.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ instance = Bandwidth::CallState.new(
3434
call_id: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85,
3535
parent_call_id: c-25ac29a2-1331029c-2cb0-4a07-b215-b22865662d85,
3636
to: +19195551234,
37-
from: 19195554321,
37+
from: +19195554321,
3838
direction: null,
3939
state: disconnected,
4040
stir_shaken: {&quot;verstat&quot;:&quot;TN-Verification-Passed&quot;,&quot;attestationIndicator&quot;:&quot;A&quot;,&quot;originatingId&quot;:&quot;abc123&quot;},

docs/ConferenceRecordingAvailableCallback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ instance = Bandwidth::ConferenceRecordingAvailableCallback.new(
2929
event_time: 2022-06-17T22:19:40.375Z,
3030
conference_id: conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9,
3131
name: my-conference-name,
32-
account_id: 920012,
32+
account_id: 9900000,
3333
recording_id: r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833,
3434
channels: 1,
3535
start_time: 2022-06-17T22:19:40.375Z,

0 commit comments

Comments
 (0)