bandwidth-sdk 12.0.0 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/README.md +1 -1
  4. data/Rakefile +4 -12
  5. data/bandwidth.yml +20 -11
  6. data/coverage/.last_run.json +1 -1
  7. data/coverage/.resultset.json +1065 -1063
  8. data/coverage/index.html +2579 -2557
  9. data/docs/AnswerCallback.md +1 -1
  10. data/docs/BridgeCompleteCallback.md +1 -1
  11. data/docs/BridgeTargetCompleteCallback.md +1 -1
  12. data/docs/CallRecordingMetadata.md +2 -2
  13. data/docs/CallsApi.md +1 -1
  14. data/docs/ConferenceMemberExitCallback.md +1 -1
  15. data/docs/ConferenceMemberJoinCallback.md +1 -1
  16. data/docs/CreateCall.md +5 -3
  17. data/docs/DisconnectCallback.md +1 -1
  18. data/docs/DtmfCallback.md +2 -2
  19. data/docs/GatherCallback.md +2 -2
  20. data/docs/InitiateCallback.md +1 -1
  21. data/docs/MachineDetectionCompleteCallback.md +1 -1
  22. data/docs/RecordingAvailableCallback.md +2 -2
  23. data/docs/RecordingCompleteCallback.md +2 -2
  24. data/docs/RedirectCallback.md +2 -2
  25. data/docs/TranscriptionAvailableCallback.md +2 -2
  26. data/docs/TransferAnswerCallback.md +2 -2
  27. data/docs/TransferCompleteCallback.md +2 -2
  28. data/docs/TransferDisconnectCallback.md +2 -2
  29. data/lib/bandwidth-sdk/models/answer_callback.rb +1 -1
  30. data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +1 -1
  31. data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +1 -1
  32. data/lib/bandwidth-sdk/models/call_recording_metadata.rb +2 -2
  33. data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +1 -1
  34. data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +1 -1
  35. data/lib/bandwidth-sdk/models/create_call.rb +14 -3
  36. data/lib/bandwidth-sdk/models/disconnect_callback.rb +1 -1
  37. data/lib/bandwidth-sdk/models/dtmf_callback.rb +2 -2
  38. data/lib/bandwidth-sdk/models/gather_callback.rb +2 -2
  39. data/lib/bandwidth-sdk/models/initiate_callback.rb +1 -1
  40. data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +1 -1
  41. data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +1 -1
  42. data/lib/bandwidth-sdk/models/recording_available_callback.rb +2 -2
  43. data/lib/bandwidth-sdk/models/recording_complete_callback.rb +2 -2
  44. data/lib/bandwidth-sdk/models/redirect_callback.rb +2 -2
  45. data/lib/bandwidth-sdk/models/transcription_available_callback.rb +2 -2
  46. data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +2 -2
  47. data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +2 -2
  48. data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +2 -2
  49. data/lib/bandwidth-sdk/version.rb +1 -1
  50. data/spec/{integration/calls_api_integration_spec.rb → smoke/calls_api_spec.rb} +2 -0
  51. data/spec/spec_helper.rb +2 -2
  52. data/spec/{api → unit/api}/calls_api_spec.rb +2 -0
  53. metadata +118 -118
  54. /data/spec/{integration/conferences_api_integration_spec.rb → smoke/conferences_api_spec.rb} +0 -0
  55. /data/spec/{integration/media_api_integration_spec.rb → smoke/media_api_spec.rb} +0 -0
  56. /data/spec/{integration/messages_api_integration_spec.rb → smoke/messages_api_spec.rb} +0 -0
  57. /data/spec/{integration/mfa_api_integration_spec.rb → smoke/mfa_api_spec.rb} +0 -0
  58. /data/spec/{integration/phone_number_lookup_api_integration_spec.rb → smoke/phone_number_lookup_api_spec.rb} +0 -0
  59. /data/spec/{integration/recordings_api_integration_spec.rb → smoke/recordings_api_spec.rb} +0 -0
  60. /data/spec/{integration/statistics_api_integration_spec.rb → smoke/statistics_api_spec.rb} +0 -0
  61. /data/spec/{integration/transcriptions_api_integration_spec.rb → smoke/transcriptions_api_spec.rb} +0 -0
  62. /data/spec/{api → unit/api}/conferences_api_spec.rb +0 -0
  63. /data/spec/{api → unit/api}/media_api_spec.rb +0 -0
  64. /data/spec/{api → unit/api}/messages_api_spec.rb +0 -0
  65. /data/spec/{api → unit/api}/mfa_api_spec.rb +0 -0
  66. /data/spec/{api → unit/api}/phone_number_lookup_api_spec.rb +0 -0
  67. /data/spec/{api → unit/api}/recordings_api_spec.rb +0 -0
  68. /data/spec/{api → unit/api}/statistics_api_spec.rb +0 -0
  69. /data/spec/{api → unit/api}/transcriptions_api_spec.rb +0 -0
  70. /data/spec/{api_client_spec.rb → unit/client/api_client_spec.rb} +0 -0
  71. /data/spec/{api_error_spec.rb → unit/client/api_error_spec.rb} +0 -0
  72. /data/spec/{configuration_spec.rb → unit/client/configuration_spec.rb} +0 -0
  73. /data/spec/{models → unit/models}/bxml/bxml_spec.rb +0 -0
  74. /data/spec/{models → unit/models}/bxml/nestable_verb_spec.rb +0 -0
  75. /data/spec/{models → unit/models}/bxml/response_spec.rb +0 -0
  76. /data/spec/{models → unit/models}/bxml/verb_spec.rb +0 -0
  77. /data/spec/{models → unit/models}/bxml/verbs/bridge_spec.rb +0 -0
  78. /data/spec/{models → unit/models}/bxml/verbs/conference_spec.rb +0 -0
  79. /data/spec/{models → unit/models}/bxml/verbs/custom_param_spec.rb +0 -0
  80. /data/spec/{models → unit/models}/bxml/verbs/forward_spec.rb +0 -0
  81. /data/spec/{models → unit/models}/bxml/verbs/gather_spec.rb +0 -0
  82. /data/spec/{models → unit/models}/bxml/verbs/hangup_spec.rb +0 -0
  83. /data/spec/{models → unit/models}/bxml/verbs/pause_recording_spec.rb +0 -0
  84. /data/spec/{models → unit/models}/bxml/verbs/pause_spec.rb +0 -0
  85. /data/spec/{models → unit/models}/bxml/verbs/phone_number_spec.rb +0 -0
  86. /data/spec/{models → unit/models}/bxml/verbs/play_audio_spec.rb +0 -0
  87. /data/spec/{models → unit/models}/bxml/verbs/record_spec.rb +0 -0
  88. /data/spec/{models → unit/models}/bxml/verbs/redirect_spec.rb +0 -0
  89. /data/spec/{models → unit/models}/bxml/verbs/resume_recording_spec.rb +0 -0
  90. /data/spec/{models → unit/models}/bxml/verbs/ring_spec.rb +0 -0
  91. /data/spec/{models → unit/models}/bxml/verbs/send_dtmf_spec.rb +0 -0
  92. /data/spec/{models → unit/models}/bxml/verbs/sip_uri_spec.rb +0 -0
  93. /data/spec/{models → unit/models}/bxml/verbs/speak_sentence_spec.rb +0 -0
  94. /data/spec/{models → unit/models}/bxml/verbs/start_gather_spec.rb +0 -0
  95. /data/spec/{models → unit/models}/bxml/verbs/start_recording_spec.rb +0 -0
  96. /data/spec/{models → unit/models}/bxml/verbs/start_stream_spec.rb +0 -0
  97. /data/spec/{models → unit/models}/bxml/verbs/start_transcription_spec.rb +0 -0
  98. /data/spec/{models → unit/models}/bxml/verbs/stop_gather_spec.rb +0 -0
  99. /data/spec/{models → unit/models}/bxml/verbs/stop_recording_spec.rb +0 -0
  100. /data/spec/{models → unit/models}/bxml/verbs/stop_stream_spec.rb +0 -0
  101. /data/spec/{models → unit/models}/bxml/verbs/stop_transcription_spec.rb +0 -0
  102. /data/spec/{models → unit/models}/bxml/verbs/stream_param_spec.rb +0 -0
  103. /data/spec/{models → unit/models}/bxml/verbs/tag_spec.rb +0 -0
  104. /data/spec/{models → unit/models}/bxml/verbs/transfer_spec.rb +0 -0
  105. /data/spec/{models → unit/models}/call_state_enum_spec.rb +0 -0
  106. /data/spec/{models → unit/models}/call_state_spec.rb +0 -0
  107. /data/spec/{models → unit/models}/deferred_result_spec.rb +0 -0
  108. /data/spec/{models → unit/models}/message_spec.rb +0 -0
  109. /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: 8662624b333e7ef9e559a91d8381165ff184c97187500be72d1e9f1304f17273
4
- data.tar.gz: 2f676acc2d04e155a090201511f25949fad51f12135763dc39fec2dd011df7d7
3
+ metadata.gz: cd4a580afa3bf764a51ad78f518b5e9d93f7f7bba839ab1ca643a511362dc76a
4
+ data.tar.gz: 9839ac94b8ccd790be293cd4278fad2605507c947db07ecf8595284390ffe0ac
5
5
  SHA512:
6
- metadata.gz: 78adbddaaf786746802be4b4ec6a6fb8c1c37339d24b21aa0f1e3fe83e3a09d4250038a38d105f9ee13ffd4660945634b31db5a3f5628c51949808cb3f06c572
7
- data.tar.gz: dcb453a3e133f0c72680f945bfa968a8762500150110b32c945f004dc088f4bcd492142f7c11aefd7e3ab2204c1936b4f0f0208c1fb2e8e056eb1d5fef8553e6
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.0.0)
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.0)
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.24.0)
37
- parser (3.3.1.0)
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.2.8)
52
- strscan (>= 3.0.9)
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: '+19195554321', application_id: '1234-qwer-5679-tyui', answer_url: 'https://www.myCallbackServer.example/webhooks/answer'}) # CreateCall | JSON object containing information to create an outbound call
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/api/**/*_spec.rb'
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 Client Unit Tests'
23
- RSpec::Core::RakeTask.new(:client) do |t|
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`, or be one of the
2156
- following
2157
-
2158
- strings: `Restricted`, `Anonymous`, `Private`, or `Unavailable`).
2159
- example: '+19195554321'
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: can be a phone number in E.164
4146
- format (e.g. +15555555555) or one of Private, Restricted, Unavailable,
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) or one of Restricted, Anonymous, Private, or
4227
- Unavailable.
4236
+ format (e.g. +15555555555).
4228
4237
  example: '+15555555555'
4229
4238
  transferTo:
4230
4239
  type: string
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "result": {
3
- "line": 96.21
3
+ "line": 96.18
4
4
  }
5
5
  }