bandwidth-sdk 12.0.0 → 12.1.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 +6 -6
- data/README.md +1 -1
- data/Rakefile +4 -12
- data/bandwidth.yml +20 -11
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +1065 -1063
- data/coverage/index.html +2579 -2557
- data/docs/AnswerCallback.md +1 -1
- data/docs/BridgeCompleteCallback.md +1 -1
- data/docs/BridgeTargetCompleteCallback.md +1 -1
- data/docs/CallRecordingMetadata.md +2 -2
- data/docs/CallsApi.md +1 -1
- data/docs/ConferenceMemberExitCallback.md +1 -1
- data/docs/ConferenceMemberJoinCallback.md +1 -1
- data/docs/CreateCall.md +5 -3
- data/docs/DisconnectCallback.md +1 -1
- data/docs/DtmfCallback.md +2 -2
- data/docs/GatherCallback.md +2 -2
- data/docs/InitiateCallback.md +1 -1
- data/docs/MachineDetectionCompleteCallback.md +1 -1
- data/docs/RecordingAvailableCallback.md +2 -2
- data/docs/RecordingCompleteCallback.md +2 -2
- data/docs/RedirectCallback.md +2 -2
- data/docs/TranscriptionAvailableCallback.md +2 -2
- data/docs/TransferAnswerCallback.md +2 -2
- data/docs/TransferCompleteCallback.md +2 -2
- data/docs/TransferDisconnectCallback.md +2 -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/call_recording_metadata.rb +2 -2
- 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/create_call.rb +14 -3
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/gather_callback.rb +2 -2
- 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/machine_detection_configuration.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/redirect_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +2 -2
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/spec/{integration/calls_api_integration_spec.rb → smoke/calls_api_spec.rb} +2 -0
- data/spec/spec_helper.rb +2 -2
- data/spec/{api → unit/api}/calls_api_spec.rb +2 -0
- metadata +118 -118
- /data/spec/{integration/conferences_api_integration_spec.rb → smoke/conferences_api_spec.rb} +0 -0
- /data/spec/{integration/media_api_integration_spec.rb → smoke/media_api_spec.rb} +0 -0
- /data/spec/{integration/messages_api_integration_spec.rb → smoke/messages_api_spec.rb} +0 -0
- /data/spec/{integration/mfa_api_integration_spec.rb → smoke/mfa_api_spec.rb} +0 -0
- /data/spec/{integration/phone_number_lookup_api_integration_spec.rb → smoke/phone_number_lookup_api_spec.rb} +0 -0
- /data/spec/{integration/recordings_api_integration_spec.rb → smoke/recordings_api_spec.rb} +0 -0
- /data/spec/{integration/statistics_api_integration_spec.rb → smoke/statistics_api_spec.rb} +0 -0
- /data/spec/{integration/transcriptions_api_integration_spec.rb → smoke/transcriptions_api_spec.rb} +0 -0
- /data/spec/{api → unit/api}/conferences_api_spec.rb +0 -0
- /data/spec/{api → unit/api}/media_api_spec.rb +0 -0
- /data/spec/{api → unit/api}/messages_api_spec.rb +0 -0
- /data/spec/{api → unit/api}/mfa_api_spec.rb +0 -0
- /data/spec/{api → unit/api}/phone_number_lookup_api_spec.rb +0 -0
- /data/spec/{api → unit/api}/recordings_api_spec.rb +0 -0
- /data/spec/{api → unit/api}/statistics_api_spec.rb +0 -0
- /data/spec/{api → unit/api}/transcriptions_api_spec.rb +0 -0
- /data/spec/{api_client_spec.rb → unit/client/api_client_spec.rb} +0 -0
- /data/spec/{api_error_spec.rb → unit/client/api_error_spec.rb} +0 -0
- /data/spec/{configuration_spec.rb → unit/client/configuration_spec.rb} +0 -0
- /data/spec/{models → unit/models}/bxml/bxml_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/nestable_verb_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/response_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verb_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/bridge_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/conference_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/custom_param_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/forward_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/gather_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/hangup_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/pause_recording_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/pause_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/phone_number_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/play_audio_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/record_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/redirect_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/resume_recording_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/ring_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/send_dtmf_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/sip_uri_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/speak_sentence_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/start_gather_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/start_recording_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/start_stream_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/start_transcription_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stop_gather_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stop_recording_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stop_stream_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stop_transcription_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stream_param_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/tag_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/transfer_spec.rb +0 -0
- /data/spec/{models → unit/models}/call_state_enum_spec.rb +0 -0
- /data/spec/{models → unit/models}/call_state_spec.rb +0 -0
- /data/spec/{models → unit/models}/deferred_result_spec.rb +0 -0
- /data/spec/{models → unit/models}/message_spec.rb +0 -0
- /data/spec/{models → unit/models}/verify_code_request_spec.rb +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd4a580afa3bf764a51ad78f518b5e9d93f7f7bba839ab1ca643a511362dc76a
|
|
4
|
+
data.tar.gz: 9839ac94b8ccd790be293cd4278fad2605507c947db07ecf8595284390ffe0ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5077f73d866b0d4d28e4ad5fe292c1180364bdbba1892687110ea00dabf0d9d7245e64e8f50ee848430f406e6359bbed169be656ad14390b4c900a307fd5d0d
|
|
7
|
+
data.tar.gz: abb67c141f244fde7829ba0370e46a6aa2455b98dd511b1674032a6c096ddc6e0bfbf513fdbe295a37300681e94394c66a027b2b82cf962af66fe62dddce571a
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bandwidth-sdk (12.
|
|
4
|
+
bandwidth-sdk (12.1.0)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart
|
|
7
7
|
ox (~> 2.4)
|
|
@@ -20,7 +20,7 @@ GEM
|
|
|
20
20
|
rexml
|
|
21
21
|
diff-lcs (1.5.1)
|
|
22
22
|
docile (1.4.0)
|
|
23
|
-
faraday (2.9.
|
|
23
|
+
faraday (2.9.1)
|
|
24
24
|
faraday-net_http (>= 2.0, < 3.2)
|
|
25
25
|
faraday-multipart (1.0.4)
|
|
26
26
|
multipart-post (~> 2)
|
|
@@ -33,8 +33,8 @@ GEM
|
|
|
33
33
|
net-http (0.4.1)
|
|
34
34
|
uri
|
|
35
35
|
ox (2.14.18)
|
|
36
|
-
parallel (1.
|
|
37
|
-
parser (3.3.
|
|
36
|
+
parallel (1.25.1)
|
|
37
|
+
parser (3.3.2.0)
|
|
38
38
|
ast (~> 2.4.1)
|
|
39
39
|
racc
|
|
40
40
|
pry (0.14.2)
|
|
@@ -48,8 +48,8 @@ GEM
|
|
|
48
48
|
rainbow (3.1.1)
|
|
49
49
|
rake (13.0.6)
|
|
50
50
|
regexp_parser (2.9.2)
|
|
51
|
-
rexml (3.
|
|
52
|
-
strscan
|
|
51
|
+
rexml (3.3.0)
|
|
52
|
+
strscan
|
|
53
53
|
rspec (3.13.0)
|
|
54
54
|
rspec-core (~> 3.13.0)
|
|
55
55
|
rspec-expectations (~> 3.13.0)
|
data/README.md
CHANGED
|
@@ -89,7 +89,7 @@ end
|
|
|
89
89
|
|
|
90
90
|
api_instance = Bandwidth::CallsApi.new
|
|
91
91
|
account_id = '9900000' # String | Your Bandwidth Account ID.
|
|
92
|
-
create_call = Bandwidth::CreateCall.new({to: '+19195551234', from: '+
|
|
92
|
+
create_call = Bandwidth::CreateCall.new({to: '+19195551234', from: '+15555551212', application_id: '1234-qwer-5679-tyui', answer_url: 'https://www.myCallbackServer.example/webhooks/answer'}) # CreateCall | JSON object containing information to create an outbound call
|
|
93
93
|
|
|
94
94
|
begin
|
|
95
95
|
#Create Call
|
data/Rakefile
CHANGED
|
@@ -8,20 +8,12 @@ begin
|
|
|
8
8
|
|
|
9
9
|
desc 'Run Only Unit Tests'
|
|
10
10
|
RSpec::Core::RakeTask.new(:unit) do |t|
|
|
11
|
-
t.pattern = './spec/
|
|
12
|
-
end
|
|
13
|
-
RSpec::Core::RakeTask.new(:unit) do |t|
|
|
14
|
-
t.pattern = './spec/models/**/*_spec.rb'
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
desc 'Run Only Integration Tests'
|
|
18
|
-
RSpec::Core::RakeTask.new(:integration) do |t|
|
|
19
|
-
t.pattern = './spec/integration/*_spec.rb'
|
|
11
|
+
t.pattern = './spec/unit/**/*_spec.rb'
|
|
20
12
|
end
|
|
21
13
|
|
|
22
|
-
desc 'Run Only
|
|
23
|
-
RSpec::Core::RakeTask.new(:
|
|
24
|
-
t.pattern = './spec/*_spec.rb'
|
|
14
|
+
desc 'Run Only Smoke Tests'
|
|
15
|
+
RSpec::Core::RakeTask.new(:smoke) do |t|
|
|
16
|
+
t.pattern = './spec/smoke/*_spec.rb'
|
|
25
17
|
end
|
|
26
18
|
|
|
27
19
|
task default: :spec
|
data/bandwidth.yml
CHANGED
|
@@ -2152,11 +2152,16 @@ components:
|
|
|
2152
2152
|
description: >-
|
|
2153
2153
|
A Bandwidth phone number on your account the call should come
|
|
2154
2154
|
|
|
2155
|
-
from (must be in E.164 format, like `+15555551212
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2155
|
+
from (must be in E.164 format, like `+15555551212`) even if
|
|
2156
|
+
`privacy` is set to true.
|
|
2157
|
+
example: '+15555551212'
|
|
2158
|
+
privacy:
|
|
2159
|
+
nullable: true
|
|
2160
|
+
type: boolean
|
|
2161
|
+
description: >-
|
|
2162
|
+
Hide the calling number. The `displayName` field can be used to
|
|
2163
|
+
customize the displayed name.
|
|
2164
|
+
example: false
|
|
2160
2165
|
displayName:
|
|
2161
2166
|
nullable: true
|
|
2162
2167
|
type: string
|
|
@@ -2165,6 +2170,9 @@ components:
|
|
|
2165
2170
|
|
|
2166
2171
|
May not exceed 256 characters nor contain control characters such as
|
|
2167
2172
|
new lines.
|
|
2173
|
+
|
|
2174
|
+
If `privacy` is true, only the following values are valid:
|
|
2175
|
+
`Restricted`, `Anonymous`, `Private`, or `Unavailable`.
|
|
2168
2176
|
maxLength: 256
|
|
2169
2177
|
example: John Doe
|
|
2170
2178
|
uui:
|
|
@@ -3023,7 +3031,10 @@ components:
|
|
|
3023
3031
|
description: >-
|
|
3024
3032
|
The machine detection request used to perform <a
|
|
3025
3033
|
href='/docs/voice/guides/machineDetection'>machine detection</a> on the
|
|
3026
|
-
call.
|
|
3034
|
+
call. Currently, there is an issue where decimal values are not getting
|
|
3035
|
+
processed correctly. Please use whole number values. We are working to
|
|
3036
|
+
resolve this issue. Please contact Bandwidth Support if you need more
|
|
3037
|
+
information.
|
|
3027
3038
|
properties:
|
|
3028
3039
|
mode:
|
|
3029
3040
|
$ref: '#/components/schemas/machineDetectionModeEnum'
|
|
@@ -4142,9 +4153,8 @@ components:
|
|
|
4142
4153
|
from:
|
|
4143
4154
|
type: string
|
|
4144
4155
|
description: >-
|
|
4145
|
-
The provided identifier of the caller
|
|
4146
|
-
format (e.g. +15555555555)
|
|
4147
|
-
or Anonymous.
|
|
4156
|
+
The provided identifier of the caller. Must be a phone number in E.164
|
|
4157
|
+
format (e.g. +15555555555).
|
|
4148
4158
|
example: '+15555555555'
|
|
4149
4159
|
conferenceId:
|
|
4150
4160
|
type: string
|
|
@@ -4223,8 +4233,7 @@ components:
|
|
|
4223
4233
|
type: string
|
|
4224
4234
|
description: >-
|
|
4225
4235
|
The phone number used as the from field of the B-leg call, in E.164
|
|
4226
|
-
format (e.g. +15555555555)
|
|
4227
|
-
Unavailable.
|
|
4236
|
+
format (e.g. +15555555555).
|
|
4228
4237
|
example: '+15555555555'
|
|
4229
4238
|
transferTo:
|
|
4230
4239
|
type: string
|
data/coverage/.last_run.json
CHANGED