bandwidth-sdk 12.0.0 → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/Gemfile.lock +13 -22
- data/README.md +3 -1
- data/Rakefile +4 -12
- data/bandwidth-sdk.gemspec +3 -1
- data/bandwidth.yml +48 -33
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +1333 -1598
- data/coverage/index.html +6890 -9805
- data/custom_templates/Gemfile.mustache +1 -2
- data/custom_templates/gemspec.mustache +2 -0
- data/docs/AnswerCallback.md +2 -2
- data/docs/BridgeCompleteCallback.md +2 -2
- data/docs/BridgeTargetCompleteCallback.md +2 -2
- data/docs/CallRecordingMetadata.md +4 -4
- data/docs/CallState.md +1 -1
- data/docs/CallTranscription.md +6 -6
- data/docs/CallTranscriptionDetectedLanguageEnum.md +15 -0
- data/docs/CallTranscriptionResponse.md +2 -2
- data/docs/CallTranscriptionTrackEnum.md +15 -0
- data/docs/CallsApi.md +1 -1
- data/docs/ConferenceMemberExitCallback.md +1 -1
- data/docs/ConferenceMemberJoinCallback.md +1 -1
- data/docs/ConferenceRecordingAvailableCallback.md +1 -1
- data/docs/ConferenceRecordingMetadata.md +1 -1
- data/docs/CreateCall.md +5 -3
- data/docs/DisconnectCallback.md +2 -2
- data/docs/DtmfCallback.md +4 -4
- data/docs/GatherCallback.md +4 -4
- data/docs/InitiateCallback.md +2 -2
- data/docs/MachineDetectionCompleteCallback.md +2 -2
- data/docs/MessagingCodeResponse.md +1 -1
- data/docs/RecordingAvailableCallback.md +4 -4
- data/docs/RecordingCompleteCallback.md +4 -4
- data/docs/RecordingTranscriptionMetadata.md +1 -1
- data/docs/RedirectCallback.md +4 -4
- data/docs/TranscriptionAvailableCallback.md +4 -4
- data/docs/TranscriptionsApi.md +1 -1
- data/docs/TransferAnswerCallback.md +4 -4
- data/docs/TransferCompleteCallback.md +4 -4
- data/docs/TransferDisconnectCallback.md +4 -4
- data/lib/bandwidth-sdk/api/calls_api.rb +1 -1
- data/lib/bandwidth-sdk/api/conferences_api.rb +1 -1
- data/lib/bandwidth-sdk/api/media_api.rb +1 -1
- data/lib/bandwidth-sdk/api/messages_api.rb +1 -1
- data/lib/bandwidth-sdk/api/mfa_api.rb +1 -1
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +1 -1
- data/lib/bandwidth-sdk/api/recordings_api.rb +1 -1
- data/lib/bandwidth-sdk/api/statistics_api.rb +1 -1
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +3 -3
- data/lib/bandwidth-sdk/api_client.rb +44 -41
- data/lib/bandwidth-sdk/api_error.rb +1 -1
- data/lib/bandwidth-sdk/configuration.rb +11 -1
- data/lib/bandwidth-sdk/models/account_statistics.rb +2 -2
- data/lib/bandwidth-sdk/models/answer_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/bxml/root.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/start_stream.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/start_transcription.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +0 -6
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +4 -4
- data/lib/bandwidth-sdk/models/call_state.rb +2 -2
- data/lib/bandwidth-sdk/models/call_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription.rb +11 -37
- data/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +41 -0
- data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +2 -2
- data/lib/bandwidth-sdk/models/call_transcription_response.rb +2 -2
- data/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/code_request.rb +2 -2
- data/lib/bandwidth-sdk/models/conference.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_member.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/create_call.rb +16 -5
- data/lib/bandwidth-sdk/models/create_call_response.rb +2 -2
- data/lib/bandwidth-sdk/models/create_lookup_response.rb +2 -2
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/deferred_result.rb +2 -2
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/diversion.rb +2 -2
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/field_error.rb +2 -2
- data/lib/bandwidth-sdk/models/file_format_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/gather_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/inbound_message_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/initiate_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_item.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_request.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_result.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_status.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +3 -3
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +2 -2
- data/lib/bandwidth-sdk/models/media.rb +2 -2
- data/lib/bandwidth-sdk/models/message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_delivered_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_failed_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_request.rb +2 -2
- data/lib/bandwidth-sdk/models/message_sending_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/messages_list.rb +2 -2
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +2 -2
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/page_info.rb +2 -2
- data/lib/bandwidth-sdk/models/priority_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +3 -3
- data/lib/bandwidth-sdk/models/recording_transcriptions.rb +2 -2
- data/lib/bandwidth-sdk/models/redirect_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/stir_shaken.rb +2 -2
- data/lib/bandwidth-sdk/models/tag.rb +2 -2
- data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +2 -2
- data/lib/bandwidth-sdk/models/transcription.rb +2 -2
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/update_call.rb +2 -2
- data/lib/bandwidth-sdk/models/update_call_recording.rb +2 -2
- data/lib/bandwidth-sdk/models/update_conference.rb +2 -2
- data/lib/bandwidth-sdk/models/update_conference_member.rb +2 -2
- data/lib/bandwidth-sdk/models/verify_code_request.rb +2 -2
- data/lib/bandwidth-sdk/models/verify_code_response.rb +2 -2
- data/lib/bandwidth-sdk/models/voice_api_error.rb +2 -2
- data/lib/bandwidth-sdk/models/voice_code_response.rb +2 -2
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +3 -1
- data/openapitools.json +1 -1
- data/spec/call_utils.rb +1 -1
- data/spec/{integration/calls_api_integration_spec.rb → smoke/calls_api_spec.rb} +3 -6
- data/spec/{integration/conferences_api_integration_spec.rb → smoke/conferences_api_spec.rb} +0 -5
- data/spec/{integration/media_api_integration_spec.rb → smoke/media_api_spec.rb} +0 -5
- data/spec/{integration/messages_api_integration_spec.rb → smoke/messages_api_spec.rb} +0 -5
- data/spec/{integration/mfa_api_integration_spec.rb → smoke/mfa_api_spec.rb} +0 -5
- data/spec/{integration/phone_number_lookup_api_integration_spec.rb → smoke/phone_number_lookup_api_spec.rb} +0 -5
- data/spec/{integration/recordings_api_integration_spec.rb → smoke/recordings_api_spec.rb} +0 -5
- data/spec/{integration/statistics_api_integration_spec.rb → smoke/statistics_api_spec.rb} +0 -5
- data/spec/{integration/transcriptions_api_integration_spec.rb → smoke/transcriptions_api_spec.rb} +0 -5
- data/spec/spec_helper.rb +13 -6
- data/spec/unit/api/calls_api_spec.rb +233 -0
- data/spec/unit/api/conferences_api_spec.rb +330 -0
- data/spec/{api → unit/api}/media_api_spec.rb +17 -32
- data/spec/unit/api/messages_api_spec.rb +103 -0
- data/spec/{api → unit/api}/mfa_api_spec.rb +8 -24
- data/spec/unit/api/phone_number_lookup_api_spec.rb +86 -0
- data/spec/{api → unit/api}/recordings_api_spec.rb +83 -110
- data/spec/unit/api/statistics_api_spec.rb +37 -0
- data/spec/{api → unit/api}/transcriptions_api_spec.rb +18 -37
- data/spec/{api_client_spec.rb → unit/client/api_client_spec.rb} +4 -4
- metadata +136 -118
- data/spec/api/calls_api_spec.rb +0 -261
- data/spec/api/conferences_api_spec.rb +0 -393
- data/spec/api/messages_api_spec.rb +0 -193
- data/spec/api/phone_number_lookup_api_spec.rb +0 -100
- data/spec/api/statistics_api_spec.rb +0 -45
- /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: 46c35fa0cdcbe54296ed953096d1894988d8d29374f7b8344b17e79e4567ad6e
|
4
|
+
data.tar.gz: b949a39974619c744d61b0b784690dcd303abe5a7f068e57146baa3977f000a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82c8ff4355dfbd77716fc39634712bf23057ea8cfd05d616ad188ec3504ec335dc9db4fa57b70618d2e4c714bc934cacef40577d26739bd877dd1a120d059624
|
7
|
+
data.tar.gz: a215073711ce4e56cf2fdde04d820971ca30c1f55f34ee05bbe4c0ce78ad17ab46257108d22626975a38273393a89c7731cf3e507441a6c9a48a19b494c2aa7c
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,40 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bandwidth-sdk (
|
4
|
+
bandwidth-sdk (13.0.0)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart
|
7
|
+
marcel
|
7
8
|
ox (~> 2.4)
|
8
9
|
|
9
10
|
GEM
|
10
11
|
remote: https://rubygems.org/
|
11
12
|
specs:
|
12
|
-
addressable (2.8.6)
|
13
|
-
public_suffix (>= 2.0.2, < 6.0)
|
14
13
|
ast (2.4.2)
|
15
|
-
bigdecimal (3.1.8)
|
16
14
|
byebug (11.1.3)
|
17
15
|
coderay (1.1.3)
|
18
|
-
crack (1.0.0)
|
19
|
-
bigdecimal
|
20
|
-
rexml
|
21
16
|
diff-lcs (1.5.1)
|
22
17
|
docile (1.4.0)
|
23
|
-
faraday (2.
|
18
|
+
faraday (2.10.0)
|
24
19
|
faraday-net_http (>= 2.0, < 3.2)
|
20
|
+
logger
|
25
21
|
faraday-multipart (1.0.4)
|
26
22
|
multipart-post (~> 2)
|
27
23
|
faraday-net_http (3.1.0)
|
28
24
|
net-http
|
29
|
-
hashdiff (1.1.0)
|
30
25
|
json (2.7.2)
|
26
|
+
logger (1.6.0)
|
27
|
+
marcel (1.0.4)
|
31
28
|
method_source (1.1.0)
|
32
29
|
multipart-post (2.4.1)
|
33
30
|
net-http (0.4.1)
|
34
31
|
uri
|
35
32
|
ox (2.14.18)
|
36
|
-
parallel (1.
|
37
|
-
parser (3.3.
|
33
|
+
parallel (1.25.1)
|
34
|
+
parser (3.3.4.0)
|
38
35
|
ast (~> 2.4.1)
|
39
36
|
racc
|
40
37
|
pry (0.14.2)
|
@@ -43,20 +40,19 @@ GEM
|
|
43
40
|
pry-byebug (3.10.1)
|
44
41
|
byebug (~> 11.0)
|
45
42
|
pry (>= 0.13, < 0.15)
|
46
|
-
public_suffix (5.0.5)
|
47
43
|
racc (1.8.0)
|
48
44
|
rainbow (3.1.1)
|
49
|
-
rake (13.
|
45
|
+
rake (13.2.1)
|
50
46
|
regexp_parser (2.9.2)
|
51
|
-
rexml (3.2
|
52
|
-
strscan
|
47
|
+
rexml (3.3.2)
|
48
|
+
strscan
|
53
49
|
rspec (3.13.0)
|
54
50
|
rspec-core (~> 3.13.0)
|
55
51
|
rspec-expectations (~> 3.13.0)
|
56
52
|
rspec-mocks (~> 3.13.0)
|
57
53
|
rspec-core (3.13.0)
|
58
54
|
rspec-support (~> 3.13.0)
|
59
|
-
rspec-expectations (3.13.
|
55
|
+
rspec-expectations (3.13.1)
|
60
56
|
diff-lcs (>= 1.2.0, < 2.0)
|
61
57
|
rspec-support (~> 3.13.0)
|
62
58
|
rspec-mocks (3.13.1)
|
@@ -85,10 +81,6 @@ GEM
|
|
85
81
|
strscan (3.1.0)
|
86
82
|
unicode-display_width (2.5.0)
|
87
83
|
uri (0.13.0)
|
88
|
-
webmock (3.18.1)
|
89
|
-
addressable (>= 2.8.0)
|
90
|
-
crack (>= 0.3.2)
|
91
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
92
84
|
|
93
85
|
PLATFORMS
|
94
86
|
x86_64-linux
|
@@ -96,11 +88,10 @@ PLATFORMS
|
|
96
88
|
DEPENDENCIES
|
97
89
|
bandwidth-sdk!
|
98
90
|
pry-byebug
|
99
|
-
rake (~> 13.
|
91
|
+
rake (~> 13.2.1)
|
100
92
|
rspec (~> 3.6, >= 3.6.0)
|
101
93
|
rubocop (~> 1.52.0)
|
102
94
|
simplecov (~> 0.21.2)
|
103
|
-
webmock (~> 3.18.0)
|
104
95
|
|
105
96
|
BUNDLED WITH
|
106
97
|
2.2.33
|
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
|
@@ -159,8 +159,10 @@ Class | Method | HTTP request | Description
|
|
159
159
|
- [Bandwidth::CallState](docs/CallState.md)
|
160
160
|
- [Bandwidth::CallStateEnum](docs/CallStateEnum.md)
|
161
161
|
- [Bandwidth::CallTranscription](docs/CallTranscription.md)
|
162
|
+
- [Bandwidth::CallTranscriptionDetectedLanguageEnum](docs/CallTranscriptionDetectedLanguageEnum.md)
|
162
163
|
- [Bandwidth::CallTranscriptionMetadata](docs/CallTranscriptionMetadata.md)
|
163
164
|
- [Bandwidth::CallTranscriptionResponse](docs/CallTranscriptionResponse.md)
|
165
|
+
- [Bandwidth::CallTranscriptionTrackEnum](docs/CallTranscriptionTrackEnum.md)
|
164
166
|
- [Bandwidth::CallbackMethodEnum](docs/CallbackMethodEnum.md)
|
165
167
|
- [Bandwidth::CodeRequest](docs/CodeRequest.md)
|
166
168
|
- [Bandwidth::Conference](docs/Conference.md)
|
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-sdk.gemspec
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Contact: letstalk@bandwidth.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
|
11
|
+
Generator version: 7.7.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -26,10 +26,12 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.description = 'The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs'
|
27
27
|
s.license = 'MIT'
|
28
28
|
s.required_ruby_version = '>=2.7'
|
29
|
+
s.metadata = {}
|
29
30
|
|
30
31
|
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
|
31
32
|
s.add_runtime_dependency 'faraday-multipart'
|
32
33
|
s.add_runtime_dependency 'ox', '~> 2.4'
|
34
|
+
s.add_runtime_dependency 'marcel'
|
33
35
|
|
34
36
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
35
37
|
|
data/bandwidth.yml
CHANGED
@@ -1173,7 +1173,7 @@ paths:
|
|
1173
1173
|
[startTranscription](/docs/voice/bxml/startTranscription).
|
1174
1174
|
|
1175
1175
|
|
1176
|
-
Note: After the deletion is requested and a `
|
1176
|
+
Note: After the deletion is requested and a `200` is returned, the
|
1177
1177
|
transcription will not be accessible anymore. However, it is not deleted
|
1178
1178
|
immediately. This deletion process, while transparent and irreversible,
|
1179
1179
|
can take an additional 24 to 48 hours.
|
@@ -1183,7 +1183,7 @@ paths:
|
|
1183
1183
|
- $ref: '#/components/parameters/callId'
|
1184
1184
|
- $ref: '#/components/parameters/transcriptionId'
|
1185
1185
|
responses:
|
1186
|
-
'
|
1186
|
+
'200':
|
1187
1187
|
$ref: '#/components/responses/deleteCallTranscriptionResponse'
|
1188
1188
|
'400':
|
1189
1189
|
$ref: '#/components/responses/voiceBadRequestError'
|
@@ -2131,6 +2131,21 @@ components:
|
|
2131
2131
|
|
2132
2132
|
and will include its result.
|
2133
2133
|
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
|
2134
2149
|
createCall:
|
2135
2150
|
type: object
|
2136
2151
|
required:
|
@@ -2152,11 +2167,16 @@ components:
|
|
2152
2167
|
description: >-
|
2153
2168
|
A Bandwidth phone number on your account the call should come
|
2154
2169
|
|
2155
|
-
from (must be in E.164 format, like `+15555551212
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2170
|
+
from (must be in E.164 format, like `+15555551212`) even if
|
2171
|
+
`privacy` is set to true.
|
2172
|
+
example: '+15555551212'
|
2173
|
+
privacy:
|
2174
|
+
nullable: true
|
2175
|
+
type: boolean
|
2176
|
+
description: >-
|
2177
|
+
Hide the calling number. The `displayName` field can be used to
|
2178
|
+
customize the displayed name.
|
2179
|
+
example: false
|
2160
2180
|
displayName:
|
2161
2181
|
nullable: true
|
2162
2182
|
type: string
|
@@ -2165,6 +2185,9 @@ components:
|
|
2165
2185
|
|
2166
2186
|
May not exceed 256 characters nor contain control characters such as
|
2167
2187
|
new lines.
|
2188
|
+
|
2189
|
+
If `privacy` is true, only the following values are valid:
|
2190
|
+
`Restricted`, `Anonymous`, `Private`, or `Unavailable`.
|
2168
2191
|
maxLength: 256
|
2169
2192
|
example: John Doe
|
2170
2193
|
uui:
|
@@ -2488,7 +2511,7 @@ components:
|
|
2488
2511
|
description: >-
|
2489
2512
|
The phone number that made the call, in E.164 format (e.g.
|
2490
2513
|
+15555555555).
|
2491
|
-
example: '19195554321'
|
2514
|
+
example: '+19195554321'
|
2492
2515
|
direction:
|
2493
2516
|
$ref: '#/components/schemas/callDirectionEnum'
|
2494
2517
|
state:
|
@@ -3023,7 +3046,10 @@ components:
|
|
3023
3046
|
description: >-
|
3024
3047
|
The machine detection request used to perform <a
|
3025
3048
|
href='/docs/voice/guides/machineDetection'>machine detection</a> on the
|
3026
|
-
call.
|
3049
|
+
call. Currently, there is an issue where decimal values are not getting
|
3050
|
+
processed correctly. Please use whole number values. We are working to
|
3051
|
+
resolve this issue. Please contact Bandwidth Support if you need more
|
3052
|
+
information.
|
3027
3053
|
properties:
|
3028
3054
|
mode:
|
3029
3055
|
$ref: '#/components/schemas/machineDetectionModeEnum'
|
@@ -3254,7 +3280,7 @@ components:
|
|
3254
3280
|
accountId:
|
3255
3281
|
type: string
|
3256
3282
|
description: The user account associated with the call.
|
3257
|
-
example: '
|
3283
|
+
example: '9900000'
|
3258
3284
|
callId:
|
3259
3285
|
type: string
|
3260
3286
|
description: The call id associated with the event.
|
@@ -3270,27 +3296,16 @@ components:
|
|
3270
3296
|
example:
|
3271
3297
|
- detectedLanguage: en-US
|
3272
3298
|
track: inbound
|
3273
|
-
|
3299
|
+
transcript: Hello World! This is an example.
|
3274
3300
|
confidence: 0.9
|
3275
3301
|
callTranscription:
|
3276
3302
|
type: object
|
3277
3303
|
properties:
|
3278
3304
|
detectedLanguage:
|
3279
|
-
|
3280
|
-
enum:
|
3281
|
-
- en-US
|
3282
|
-
- es-US
|
3283
|
-
- fr-FR
|
3284
|
-
description: The detected language for this transcription.
|
3285
|
-
example: en-US
|
3305
|
+
$ref: '#/components/schemas/callTranscriptionDetectedLanguageEnum'
|
3286
3306
|
track:
|
3287
|
-
|
3288
|
-
|
3289
|
-
- inbound
|
3290
|
-
- outbound
|
3291
|
-
description: Which `track` this transcription is derived from.
|
3292
|
-
example: inbound
|
3293
|
-
text:
|
3307
|
+
$ref: '#/components/schemas/callTranscriptionTrackEnum'
|
3308
|
+
transcript:
|
3294
3309
|
type: string
|
3295
3310
|
description: The transcription itself.
|
3296
3311
|
example: Hello World! This is an example.
|
@@ -3316,6 +3331,7 @@ components:
|
|
3316
3331
|
$ref: '#/components/schemas/status'
|
3317
3332
|
completedTime:
|
3318
3333
|
type: string
|
3334
|
+
format: date-time
|
3319
3335
|
description: The time that the transcription was completed
|
3320
3336
|
example: '2022-06-13T18:46:29.715Z'
|
3321
3337
|
url:
|
@@ -4128,7 +4144,7 @@ components:
|
|
4128
4144
|
accountId:
|
4129
4145
|
type: string
|
4130
4146
|
description: The user account associated with the call.
|
4131
|
-
example: '
|
4147
|
+
example: '9900000'
|
4132
4148
|
applicationId:
|
4133
4149
|
type: string
|
4134
4150
|
description: The id of the application associated with the call.
|
@@ -4142,9 +4158,8 @@ components:
|
|
4142
4158
|
from:
|
4143
4159
|
type: string
|
4144
4160
|
description: >-
|
4145
|
-
The provided identifier of the caller
|
4146
|
-
format (e.g. +15555555555)
|
4147
|
-
or Anonymous.
|
4161
|
+
The provided identifier of the caller. Must be a phone number in E.164
|
4162
|
+
format (e.g. +15555555555).
|
4148
4163
|
example: '+15555555555'
|
4149
4164
|
conferenceId:
|
4150
4165
|
type: string
|
@@ -4223,15 +4238,14 @@ components:
|
|
4223
4238
|
type: string
|
4224
4239
|
description: >-
|
4225
4240
|
The phone number used as the from field of the B-leg call, in E.164
|
4226
|
-
format (e.g. +15555555555)
|
4227
|
-
Unavailable.
|
4241
|
+
format (e.g. +15555555555).
|
4228
4242
|
example: '+15555555555'
|
4229
4243
|
transferTo:
|
4230
4244
|
type: string
|
4231
4245
|
description: >-
|
4232
4246
|
The phone number used as the to field of the B-leg call, in E.164 format
|
4233
4247
|
(e.g. +15555555555).
|
4234
|
-
example: +15555555555
|
4248
|
+
example: '+15555555555'
|
4235
4249
|
mediaUrl:
|
4236
4250
|
nullable: true
|
4237
4251
|
type: string
|
@@ -4442,7 +4456,7 @@ components:
|
|
4442
4456
|
messageId:
|
4443
4457
|
type: string
|
4444
4458
|
description: Messaging API Message ID.
|
4445
|
-
example:
|
4459
|
+
example: 1589228074636lm4k2je7j7jklbn2
|
4446
4460
|
verifyCodeRequest:
|
4447
4461
|
type: object
|
4448
4462
|
properties:
|
@@ -5778,6 +5792,7 @@ components:
|
|
5778
5792
|
answerMethod: POST
|
5779
5793
|
answerUrl: https://myServer.example/bandwidth/webhooks/answer
|
5780
5794
|
answerFallbackMethod: POST
|
5795
|
+
answerFallbackUrl: https://myServer.example/bandwidth/webhooks/answerFallback
|
5781
5796
|
disconnectMethod: POST
|
5782
5797
|
disconnectUrl: https://myServer.example/bandwidth/webhooks/disconnect
|
5783
5798
|
username: mySecretUsername
|
data/coverage/.last_run.json
CHANGED