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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.0
1+
7.6.0

bandwidth-sdk.gemspec

+3-1
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

+7-6
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

+2
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

+1-1
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

+1-1
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

+1-1
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

+2-2
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

+1-1
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

+1-1
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,

docs/ConferenceRecordingMetadata.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
require 'bandwidth-sdk'
2323

2424
instance = Bandwidth::ConferenceRecordingMetadata.new(
25-
account_id: 920012,
25+
account_id: 9900000,
2626
conference_id: conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9,
2727
name: my-conference-name,
2828
recording_id: r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833,

docs/DisconnectCallback.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ require 'bandwidth-sdk'
3030
instance = Bandwidth::DisconnectCallback.new(
3131
event_type: bridgeComplete,
3232
event_time: 2022-06-17T22:19:40.375Z,
33-
account_id: 920012,
33+
account_id: 9900000,
3434
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3535
from: +15555555555,
3636
to: +15555555555,

docs/DtmfCallback.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ require 'bandwidth-sdk'
3030
instance = Bandwidth::DtmfCallback.new(
3131
event_type: bridgeComplete,
3232
event_time: 2022-06-17T22:19:40.375Z,
33-
account_id: 920012,
33+
account_id: 9900000,
3434
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3535
from: +15555555555,
3636
to: +15555555555,
@@ -43,7 +43,7 @@ instance = Bandwidth::DtmfCallback.new(
4343
answer_time: 2022-06-17T22:20Z,
4444
parent_call_id: c-95ac8d6e-1a31c52e-b38f-4198-93c1-51633ec68f8d,
4545
transfer_caller_id: +15555555555,
46-
transfer_to: +15555555555),
46+
transfer_to: +15555555555,
4747
tag: exampleTag
4848
)
4949
```

docs/GatherCallback.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ require 'bandwidth-sdk'
3131
instance = Bandwidth::GatherCallback.new(
3232
event_type: bridgeComplete,
3333
event_time: 2022-06-17T22:19:40.375Z,
34-
account_id: 920012,
34+
account_id: 9900000,
3535
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3636
from: +15555555555,
3737
to: +15555555555,
@@ -45,7 +45,7 @@ instance = Bandwidth::GatherCallback.new(
4545
parent_call_id: c-95ac8d6e-1a31c52e-b38f-4198-93c1-51633ec68f8d,
4646
terminating_digit: #,
4747
transfer_caller_id: +15555555555,
48-
transfer_to: +15555555555),
48+
transfer_to: +15555555555,
4949
tag: exampleTag
5050
)
5151
```

docs/InitiateCallback.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require 'bandwidth-sdk'
2525
instance = Bandwidth::InitiateCallback.new(
2626
event_type: bridgeComplete,
2727
event_time: 2022-06-17T22:19:40.375Z,
28-
account_id: 920012,
28+
account_id: 9900000,
2929
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3030
from: +15555555555,
3131
to: +15555555555,

docs/MachineDetectionCompleteCallback.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require 'bandwidth-sdk'
2727
instance = Bandwidth::MachineDetectionCompleteCallback.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/MessagingCodeResponse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
require 'bandwidth-sdk'
1313

1414
instance = Bandwidth::MessagingCodeResponse.new(
15-
message_id: 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6
15+
message_id: 1589228074636lm4k2je7j7jklbn2
1616
)
1717
```
1818

docs/RecordingAvailableCallback.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ require 'bandwidth-sdk'
3535
instance = Bandwidth::RecordingAvailableCallback.new(
3636
event_type: bridgeComplete,
3737
event_time: 2022-06-17T22:19:40.375Z,
38-
account_id: 920012,
38+
account_id: 9900000,
3939
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
4040
from: +15555555555,
4141
to: +15555555555,
@@ -54,7 +54,7 @@ instance = Bandwidth::RecordingAvailableCallback.new(
5454
tag: exampleTag,
5555
status: completed,
5656
transfer_caller_id: +15555555555,
57-
transfer_to: +15555555555)
57+
transfer_to: +15555555555
5858
)
5959
```
6060

docs/RecordingCompleteCallback.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ require 'bandwidth-sdk'
3535
instance = Bandwidth::RecordingCompleteCallback.new(
3636
event_type: bridgeComplete,
3737
event_time: 2022-06-17T22:19:40.375Z,
38-
account_id: 920012,
38+
account_id: 9900000,
3939
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
4040
from: +15555555555,
4141
to: +15555555555,
@@ -54,7 +54,7 @@ instance = Bandwidth::RecordingCompleteCallback.new(
5454
channels: 1,
5555
tag: exampleTag,
5656
transfer_caller_id: +15555555555,
57-
transfer_to: +15555555555)
57+
transfer_to: +15555555555
5858
)
5959
```
6060

docs/RedirectCallback.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require 'bandwidth-sdk'
2929
instance = Bandwidth::RedirectCallback.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,
@@ -42,7 +42,7 @@ instance = Bandwidth::RedirectCallback.new(
4242
answer_time: 2022-06-17T22:20Z,
4343
tag: exampleTag,
4444
transfer_caller_id: +15555555555,
45-
transfer_to: +15555555555)
45+
transfer_to: +15555555555
4646
)
4747
```
4848

docs/TranscriptionAvailableCallback.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ require 'bandwidth-sdk'
3434
instance = Bandwidth::TranscriptionAvailableCallback.new(
3535
event_type: bridgeComplete,
3636
event_time: 2022-06-17T22:19:40.375Z,
37-
account_id: 920012,
37+
account_id: 9900000,
3838
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3939
from: +15555555555,
4040
to: +15555555555,
@@ -52,7 +52,7 @@ instance = Bandwidth::TranscriptionAvailableCallback.new(
5252
tag: exampleTag,
5353
transcription: null,
5454
transfer_caller_id: +15555555555,
55-
transfer_to: +15555555555)
55+
transfer_to: +15555555555
5656
)
5757
```
5858

docs/TranscriptionsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ All URIs are relative to *http://localhost*
1515
1616
Delete a specific transcription
1717

18-
Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
18+
Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
1919

2020
### Examples
2121

docs/TransferAnswerCallback.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ require 'bandwidth-sdk'
2828
instance = Bandwidth::TransferAnswerCallback.new(
2929
event_type: bridgeComplete,
3030
event_time: 2022-06-17T22:19:40.375Z,
31-
account_id: 920012,
31+
account_id: 9900000,
3232
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3333
from: +15555555555,
3434
to: +15555555555,
@@ -40,7 +40,7 @@ instance = Bandwidth::TransferAnswerCallback.new(
4040
answer_time: 2022-06-17T22:20Z,
4141
tag: exampleTag,
4242
transfer_caller_id: +15555555555,
43-
transfer_to: +15555555555)
43+
transfer_to: +15555555555
4444
)
4545
```
4646

docs/TransferCompleteCallback.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ require 'bandwidth-sdk'
3131
instance = Bandwidth::TransferCompleteCallback.new(
3232
event_type: bridgeComplete,
3333
event_time: 2022-06-17T22:19:40.375Z,
34-
account_id: 920012,
34+
account_id: 9900000,
3535
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3636
from: +15555555555,
3737
to: +15555555555,
@@ -43,7 +43,7 @@ instance = Bandwidth::TransferCompleteCallback.new(
4343
answer_time: 2022-06-17T22:20Z,
4444
tag: exampleTag,
4545
transfer_caller_id: +15555555555,
46-
transfer_to: +15555555555),
46+
transfer_to: +15555555555,
4747
cause: busy,
4848
error_message: Call c-2a913f94-6a486f3a-3cae-4034-bcc3-f0c9fa77ca2f is already bridged with another call,
4949
error_id: 4642074b-7b58-478b-96e4-3a60955c6765

docs/TransferDisconnectCallback.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ require 'bandwidth-sdk'
3333
instance = Bandwidth::TransferDisconnectCallback.new(
3434
event_type: bridgeComplete,
3535
event_time: 2022-06-17T22:19:40.375Z,
36-
account_id: 920012,
36+
account_id: 9900000,
3737
application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
3838
from: +15555555555,
3939
to: +15555555555,
@@ -47,7 +47,7 @@ instance = Bandwidth::TransferDisconnectCallback.new(
4747
end_time: 2022-06-17T22:20Z,
4848
tag: exampleTag,
4949
transfer_caller_id: +15555555555,
50-
transfer_to: +15555555555),
50+
transfer_to: +15555555555,
5151
cause: busy,
5252
error_message: Call c-2a913f94-6a486f3a-3cae-4034-bcc3-f0c9fa77ca2f is already bridged with another call,
5353
error_id: 4642074b-7b58-478b-96e4-3a60955c6765

lib/bandwidth-sdk.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: 1.0.0
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 7.0.0
9+
Generator version: 7.6.0
1010
1111
=end
1212

lib/bandwidth-sdk/api/calls_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: 1.0.0
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 7.0.0
9+
Generator version: 7.6.0
1010
1111
=end
1212

0 commit comments

Comments
 (0)