bandwidth-sdk 18.1.4 → 18.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -8
- data/README.md +2 -0
- data/bandwidth.yml +63 -2
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +737 -135
- data/coverage/index.html +13402 -6908
- data/custom_templates/configuration.mustache +6 -2
- data/docs/AnswerCallback.md +1 -1
- data/docs/BridgeCompleteCallback.md +1 -1
- data/docs/BridgeTargetCompleteCallback.md +1 -1
- data/docs/ConferenceCompletedCallback.md +1 -1
- data/docs/ConferenceCreatedCallback.md +1 -1
- data/docs/ConferenceMemberExitCallback.md +1 -1
- data/docs/ConferenceMemberJoinCallback.md +1 -1
- data/docs/ConferenceRecordingAvailableCallback.md +1 -1
- data/docs/ConferenceRedirectCallback.md +1 -1
- data/docs/DisconnectCallback.md +1 -1
- data/docs/DtmfCallback.md +1 -1
- data/docs/GatherCallback.md +1 -1
- data/docs/InitiateCallback.md +1 -1
- data/docs/MachineDetectionCompleteCallback.md +1 -1
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmSuggestionResponse.md +1 -1
- data/docs/RecordingAvailableCallback.md +1 -1
- data/docs/RecordingCompleteCallback.md +1 -1
- data/docs/RedirectCallback.md +1 -1
- data/docs/ReferCallStatusEnum.md +15 -0
- data/docs/ReferCompleteCallback.md +46 -0
- data/docs/TranscriptionAvailableCallback.md +1 -1
- data/docs/TransferAnswerCallback.md +1 -1
- data/docs/TransferCompleteCallback.md +1 -1
- data/docs/TransferDisconnectCallback.md +1 -1
- data/lib/bandwidth-sdk/configuration.rb +6 -2
- data/lib/bandwidth-sdk/models/answer_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/bxml/verbs/refer.rb +24 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/sip_uri.rb +3 -1
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/gather_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/initiate_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/redirect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/refer_call_status_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/refer_complete_callback.rb +309 -0
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +1 -1
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/lib/bandwidth-sdk.rb +3 -0
- data/spec/unit/api/calls_api_spec.rb +1 -2
- data/spec/unit/api/conferences_api_spec.rb +1 -2
- data/spec/unit/api/endpoints_api_spec.rb +1 -2
- data/spec/unit/api/media_api_spec.rb +1 -2
- data/spec/unit/api/messages_api_spec.rb +1 -2
- data/spec/unit/api/mfa_api_spec.rb +1 -2
- data/spec/unit/api/multi_channel_api_spec.rb +1 -2
- data/spec/unit/api/phone_number_lookup_api_spec.rb +1 -2
- data/spec/unit/api/recordings_api_spec.rb +1 -2
- data/spec/unit/api/statistics_api_spec.rb +1 -2
- data/spec/unit/api/toll_free_verification_api_spec.rb +1 -2
- data/spec/unit/api/transcriptions_api_spec.rb +1 -2
- data/spec/unit/models/bxml/verbs/refer_spec.rb +54 -0
- data/spec/unit/models/refer_call_status_enum_spec.rb +31 -0
- data/spec/unit/models/refer_complete_callback_spec.rb +123 -0
- metadata +12 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b328a56ad1eb166fb898a1babc30dc7830b71e6d25ecd4cc4db555d472faeb58
|
|
4
|
+
data.tar.gz: 3651965073b5f7062a28b917525dca1bb9107ce2fccc91f4f59972b3daa2ee82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd1a0a05cdb7a77623f80134fdf6aafccd152760700d6690bcd74c25cee499c0a5964888762608459ece1bcd31e44ac141f6a05c65206ea3d4c0d45f63f9e54d
|
|
7
|
+
data.tar.gz: cce64d048b74c48312f2b2eb68bf0a0f5a5578fce330a638568ed2e95676d630b9815dfc0f5dfcdc84ac0f5de11b4ad1200419284e5713035a81aa3134937dde
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bandwidth-sdk (18.
|
|
4
|
+
bandwidth-sdk (18.2.0)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart
|
|
7
7
|
marcel
|
|
@@ -25,7 +25,7 @@ GEM
|
|
|
25
25
|
multipart-post (~> 2.0)
|
|
26
26
|
faraday-net_http (3.4.4)
|
|
27
27
|
net-http (~> 0.5)
|
|
28
|
-
io-console (0.
|
|
28
|
+
io-console (0.9.2)
|
|
29
29
|
json (2.21.2)
|
|
30
30
|
language_server-protocol (3.17.0.6)
|
|
31
31
|
lint_roller (1.1.0)
|
|
@@ -35,7 +35,7 @@ GEM
|
|
|
35
35
|
multipart-post (2.4.1)
|
|
36
36
|
net-http (0.9.1)
|
|
37
37
|
uri (>= 0.11.1)
|
|
38
|
-
ox (2.14.
|
|
38
|
+
ox (2.14.29)
|
|
39
39
|
bigdecimal (>= 3.0)
|
|
40
40
|
parallel (2.1.0)
|
|
41
41
|
parser (3.3.12.0)
|
|
@@ -53,7 +53,7 @@ GEM
|
|
|
53
53
|
rainbow (3.1.1)
|
|
54
54
|
rake (13.2.1)
|
|
55
55
|
regexp_parser (2.12.0)
|
|
56
|
-
reline (0.
|
|
56
|
+
reline (0.7.0)
|
|
57
57
|
io-console (~> 0.5)
|
|
58
58
|
rspec (3.13.2)
|
|
59
59
|
rspec-core (~> 3.13.0)
|
|
@@ -108,7 +108,7 @@ DEPENDENCIES
|
|
|
108
108
|
|
|
109
109
|
CHECKSUMS
|
|
110
110
|
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
111
|
-
bandwidth-sdk (18.
|
|
111
|
+
bandwidth-sdk (18.2.0)
|
|
112
112
|
bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
|
|
113
113
|
byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
|
|
114
114
|
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
@@ -117,7 +117,7 @@ CHECKSUMS
|
|
|
117
117
|
faraday (2.14.3) sha256=1882247e6766615c8220b4392bf1d27f6ebb63d8e28267587cef1fb0bf37f278
|
|
118
118
|
faraday-multipart (1.2.0) sha256=7d89a949693714176f612323ca13746a2ded204031a6ba528adee788694ef757
|
|
119
119
|
faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588
|
|
120
|
-
io-console (0.
|
|
120
|
+
io-console (0.9.2) sha256=efa74f891dd03c0939a931dfc6e74c2813d904763d456ea9762b0525e748db08
|
|
121
121
|
json (2.21.2) sha256=1f1d3b7cf2b3ba1a69beca0bb6db13d5438b80bff3cd54cdaaa620b9b07c1c6a
|
|
122
122
|
language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
|
|
123
123
|
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
@@ -126,7 +126,7 @@ CHECKSUMS
|
|
|
126
126
|
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
|
127
127
|
multipart-post (2.4.1) sha256=9872d03a8e552020ca096adadbf5e3cb1cd1cdd6acd3c161136b8a5737cdb4a8
|
|
128
128
|
net-http (0.9.1) sha256=25ba0b67c63e89df626ed8fac771d0ad24ad151a858af2cc8e6a716ca4336996
|
|
129
|
-
ox (2.14.
|
|
129
|
+
ox (2.14.29) sha256=206736d5a8dade9dca10cf72022bc157ad6ca3eecaba3853918426ed88e12dc2
|
|
130
130
|
parallel (2.1.0) sha256=b35258865c2e31134c5ecb708beaaf6772adf9d5efae28e93e99260877b09356
|
|
131
131
|
parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828
|
|
132
132
|
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
|
|
@@ -136,7 +136,7 @@ CHECKSUMS
|
|
|
136
136
|
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
137
137
|
rake (13.2.1) sha256=46cb38dae65d7d74b6020a4ac9d48afed8eb8149c040eccf0523bec91907059d
|
|
138
138
|
regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb
|
|
139
|
-
reline (0.
|
|
139
|
+
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
140
140
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
141
141
|
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
|
|
142
142
|
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
|
data/README.md
CHANGED
|
@@ -333,6 +333,8 @@ Class | Method | HTTP request | Description
|
|
|
333
333
|
- [Bandwidth::RecordingTranscriptions](docs/RecordingTranscriptions.md)
|
|
334
334
|
- [Bandwidth::RedirectCallback](docs/RedirectCallback.md)
|
|
335
335
|
- [Bandwidth::RedirectMethodEnum](docs/RedirectMethodEnum.md)
|
|
336
|
+
- [Bandwidth::ReferCallStatusEnum](docs/ReferCallStatusEnum.md)
|
|
337
|
+
- [Bandwidth::ReferCompleteCallback](docs/ReferCompleteCallback.md)
|
|
336
338
|
- [Bandwidth::SipConnectionMetadata](docs/SipConnectionMetadata.md)
|
|
337
339
|
- [Bandwidth::SipCredentials](docs/SipCredentials.md)
|
|
338
340
|
- [Bandwidth::SmsMessageContent](docs/SmsMessageContent.md)
|
data/bandwidth.yml
CHANGED
|
@@ -3184,6 +3184,13 @@ components:
|
|
|
3184
3184
|
- outbound
|
|
3185
3185
|
description: The direction of the call.
|
|
3186
3186
|
example: inbound
|
|
3187
|
+
referCallStatusEnum:
|
|
3188
|
+
type: string
|
|
3189
|
+
enum:
|
|
3190
|
+
- success
|
|
3191
|
+
- failure
|
|
3192
|
+
description: The outcome of the REFER operation.
|
|
3193
|
+
example: success
|
|
3187
3194
|
fileFormatEnum:
|
|
3188
3195
|
type: string
|
|
3189
3196
|
enum:
|
|
@@ -5134,6 +5141,45 @@ components:
|
|
|
5134
5141
|
$ref: '#/components/schemas/transferCallerId'
|
|
5135
5142
|
transferTo:
|
|
5136
5143
|
$ref: '#/components/schemas/transferTo'
|
|
5144
|
+
referCompleteCallback:
|
|
5145
|
+
type: object
|
|
5146
|
+
description: >-
|
|
5147
|
+
This event is sent to the referCompleteUrl of a call's <Refer> verb when
|
|
5148
|
+
the SIP REFER flow completes. On success, the call has been torn down
|
|
5149
|
+
and the BXML returned from this callback is ignored. On failure, the
|
|
5150
|
+
call remains active and the BXML returned from this callback is executed
|
|
5151
|
+
on the call.
|
|
5152
|
+
properties:
|
|
5153
|
+
eventType:
|
|
5154
|
+
$ref: '#/components/schemas/eventType'
|
|
5155
|
+
eventTime:
|
|
5156
|
+
$ref: '#/components/schemas/eventTime'
|
|
5157
|
+
accountId:
|
|
5158
|
+
$ref: '#/components/schemas/accountId'
|
|
5159
|
+
applicationId:
|
|
5160
|
+
$ref: '#/components/schemas/applicationId1'
|
|
5161
|
+
from:
|
|
5162
|
+
$ref: '#/components/schemas/from'
|
|
5163
|
+
to:
|
|
5164
|
+
$ref: '#/components/schemas/to'
|
|
5165
|
+
direction:
|
|
5166
|
+
$ref: '#/components/schemas/callDirectionEnum'
|
|
5167
|
+
callId:
|
|
5168
|
+
$ref: '#/components/schemas/callId'
|
|
5169
|
+
callUrl:
|
|
5170
|
+
$ref: '#/components/schemas/callUrl'
|
|
5171
|
+
startTime:
|
|
5172
|
+
$ref: '#/components/schemas/startTime'
|
|
5173
|
+
answerTime:
|
|
5174
|
+
$ref: '#/components/schemas/answerTime'
|
|
5175
|
+
tag:
|
|
5176
|
+
$ref: '#/components/schemas/tag1'
|
|
5177
|
+
referCallStatus:
|
|
5178
|
+
$ref: '#/components/schemas/referCallStatusEnum'
|
|
5179
|
+
referSipResponseCode:
|
|
5180
|
+
$ref: '#/components/schemas/referSipResponseCode'
|
|
5181
|
+
notifySipResponseCode:
|
|
5182
|
+
$ref: '#/components/schemas/notifySipResponseCode'
|
|
5137
5183
|
transcriptionAvailableCallback:
|
|
5138
5184
|
type: object
|
|
5139
5185
|
description: >-
|
|
@@ -5326,8 +5372,8 @@ components:
|
|
|
5326
5372
|
conferenceRedirect, conferenceMemberJoin, conferenceMemberExit,
|
|
5327
5373
|
conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf,
|
|
5328
5374
|
gather, initiate, machineDetectionComplete, recordingComplete,
|
|
5329
|
-
recordingAvailable, redirect,
|
|
5330
|
-
transferComplete, transferDisconnect.
|
|
5375
|
+
recordingAvailable, redirect, referComplete, transcriptionAvailable,
|
|
5376
|
+
transferAnswer, transferComplete, transferDisconnect.
|
|
5331
5377
|
example: bridgeComplete
|
|
5332
5378
|
eventTime:
|
|
5333
5379
|
type: string
|
|
@@ -5479,6 +5525,21 @@ components:
|
|
|
5479
5525
|
or it was previously cleared, this field will not be present.
|
|
5480
5526
|
example: exampleTag
|
|
5481
5527
|
nullable: true
|
|
5528
|
+
referSipResponseCode:
|
|
5529
|
+
type: integer
|
|
5530
|
+
description: >-
|
|
5531
|
+
(optional) The SIP response code returned for the REFER request itself
|
|
5532
|
+
(e.g. 202, 405, 603). Present when a SIP response was received for the
|
|
5533
|
+
REFER.
|
|
5534
|
+
example: 202
|
|
5535
|
+
notifySipResponseCode:
|
|
5536
|
+
type: integer
|
|
5537
|
+
description: >-
|
|
5538
|
+
(optional) The final SIP response code reported via NOTIFY
|
|
5539
|
+
(message/sipfrag body). Present only when the caller's endpoint sent a
|
|
5540
|
+
final NOTIFY (e.g. 200, 404, 486, 503). Not present on NOTIFY timeout or
|
|
5541
|
+
when the REFER was rejected before a subscription was established.
|
|
5542
|
+
example: 200
|
|
5482
5543
|
cause:
|
|
5483
5544
|
type: string
|
|
5484
5545
|
description: >-
|
data/coverage/.last_run.json
CHANGED