bandwidth-sdk 3.13.0 → 6.0.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/bandwidth/configuration.rb +1 -1
  4. data/lib/bandwidth/http/api_response.rb +2 -0
  5. data/lib/bandwidth/http/faraday_client.rb +9 -2
  6. data/lib/bandwidth/messaging_lib/messaging.rb +4 -0
  7. data/lib/bandwidth/messaging_lib/messaging/controllers/api_controller.rb +138 -23
  8. data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +1 -1
  9. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message.rb +23 -13
  10. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message_item.rb +125 -0
  11. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_messages_list.rb +60 -0
  12. data/lib/bandwidth/messaging_lib/messaging/models/media.rb +4 -4
  13. data/lib/bandwidth/messaging_lib/messaging/models/message_request.rb +21 -8
  14. data/lib/bandwidth/messaging_lib/messaging/models/page_info.rb +62 -0
  15. data/lib/bandwidth/messaging_lib/messaging/models/priority_enum.rb +19 -0
  16. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth.rb +4 -2
  17. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/client.rb +4 -4
  18. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/base_controller.rb +1 -1
  19. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/{api_controller.rb → mfa_controller.rb} +65 -14
  20. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/exceptions/error_with_request_exception.rb +34 -0
  21. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/exceptions/{invalid_request_exception.rb → forbidden_request_exception.rb} +5 -5
  22. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/exceptions/unauthorized_request_exception.rb +29 -0
  23. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_verify_request_schema.rb +0 -19
  24. data/lib/bandwidth/voice_lib/bxml/verbs/transfer.rb +8 -4
  25. data/lib/bandwidth/voice_lib/voice.rb +1 -1
  26. data/lib/bandwidth/voice_lib/voice/controllers/api_controller.rb +51 -52
  27. data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +1 -1
  28. data/lib/bandwidth/voice_lib/voice/models/api_create_call_request.rb +77 -17
  29. data/lib/bandwidth/voice_lib/voice/models/{call_engine_modify_conference_request.rb → api_modify_conference_request.rb} +14 -14
  30. data/lib/bandwidth/voice_lib/voice/models/state_enum.rb +3 -3
  31. data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/api_controller.rb +24 -24
  32. data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/base_controller.rb +1 -1
  33. data/test/controllers/controller_test_base.rb +21 -0
  34. data/test/http_response_catcher.rb +19 -0
  35. data/test/test_helper.rb +94 -0
  36. metadata +50 -7
@@ -4,11 +4,11 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module Bandwidth
7
- # InvalidRequest class.
8
- class InvalidRequestException < APIException
9
- # An error message pertaining to what the issue could be
7
+ # ForbiddenRequest class.
8
+ class ForbiddenRequestException < APIException
9
+ # The message containing the reason behind the request being forbidden
10
10
  # @return [String]
11
- attr_accessor :result
11
+ attr_accessor :message
12
12
 
13
13
  # The constructor.
14
14
  # @param [String] The reason for raising an exception.
@@ -23,7 +23,7 @@ module Bandwidth
23
23
  # @param [Hash] The deserialized response sent by the server in the
24
24
  # response body.
25
25
  def unbox(hash)
26
- @result = hash['result']
26
+ @message = hash['Message']
27
27
  end
28
28
  end
29
29
  end
@@ -0,0 +1,29 @@
1
+ # bandwidth
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module Bandwidth
7
+ # UnauthorizedRequest class.
8
+ class UnauthorizedRequestException < APIException
9
+ # The message containing the reason behind the request being unauthorized
10
+ # @return [String]
11
+ attr_accessor :message
12
+
13
+ # The constructor.
14
+ # @param [String] The reason for raising an exception.
15
+ # @param [HttpResponse] The HttpReponse of the API call.
16
+ def initialize(reason, response)
17
+ super(reason, response)
18
+ hash = APIHelper.json_deserialize(@response.raw_body)
19
+ unbox(hash)
20
+ end
21
+
22
+ # Populates this object by extracting properties from a hash.
23
+ # @param [Hash] The deserialized response sent by the server in the
24
+ # response body.
25
+ def unbox(hash)
26
+ @message = hash['message']
27
+ end
28
+ end
29
+ end
@@ -10,10 +10,6 @@ module Bandwidth
10
10
  # @return [String]
11
11
  attr_accessor :to
12
12
 
13
- # The application phone number, the sender of the 2fa code.
14
- # @return [String]
15
- attr_accessor :from
16
-
17
13
  # The application unique ID, obtained from Bandwidth.
18
14
  # @return [String]
19
15
  attr_accessor :application_id
@@ -23,11 +19,6 @@ module Bandwidth
23
19
  # @return [String]
24
20
  attr_accessor :scope
25
21
 
26
- # The number of digits for your 2fa code. The valid number ranges from 2 to
27
- # 8, inclusively.
28
- # @return [Float]
29
- attr_accessor :digits
30
-
31
22
  # The time period, in minutes, to validate the 2fa code. By setting this to
32
23
  # 3 minutes, it will mean any code generated within the last 3 minutes are
33
24
  # still valid. The valid range for expiration time is between 0 and 15
@@ -43,27 +34,21 @@ module Bandwidth
43
34
  def self.names
44
35
  @_hash = {} if @_hash.nil?
45
36
  @_hash['to'] = 'to'
46
- @_hash['from'] = 'from'
47
37
  @_hash['application_id'] = 'applicationId'
48
38
  @_hash['scope'] = 'scope'
49
- @_hash['digits'] = 'digits'
50
39
  @_hash['expiration_time_in_minutes'] = 'expirationTimeInMinutes'
51
40
  @_hash['code'] = 'code'
52
41
  @_hash
53
42
  end
54
43
 
55
44
  def initialize(to = nil,
56
- from = nil,
57
45
  application_id = nil,
58
- digits = nil,
59
46
  expiration_time_in_minutes = nil,
60
47
  code = nil,
61
48
  scope = nil)
62
49
  @to = to
63
- @from = from
64
50
  @application_id = application_id
65
51
  @scope = scope
66
- @digits = digits
67
52
  @expiration_time_in_minutes = expiration_time_in_minutes
68
53
  @code = code
69
54
  end
@@ -74,18 +59,14 @@ module Bandwidth
74
59
 
75
60
  # Extract variables from the hash.
76
61
  to = hash['to']
77
- from = hash['from']
78
62
  application_id = hash['applicationId']
79
- digits = hash['digits']
80
63
  expiration_time_in_minutes = hash['expirationTimeInMinutes']
81
64
  code = hash['code']
82
65
  scope = hash['scope']
83
66
 
84
67
  # Create object from extracted values.
85
68
  TwoFactorVerifyRequestSchema.new(to,
86
- from,
87
69
  application_id,
88
- digits,
89
70
  expiration_time_in_minutes,
90
71
  code,
91
72
  scope)
@@ -31,11 +31,15 @@ module Bandwidth
31
31
  s.to_bxml(xml)
32
32
  end
33
33
  end
34
- phone_numbers.each do |number|
35
- embedded_xml(xml, number, PhoneNumber)
34
+ if not phone_numbers.nil?
35
+ phone_numbers.each do |number|
36
+ embedded_xml(xml, number, PhoneNumber)
37
+ end
36
38
  end
37
- sip_uris.each do |sip_uri|
38
- embedded_xml(xml, sip_uri, SipUri)
39
+ if not sip_uris.nil?
40
+ sip_uris.each do |sip_uri|
41
+ embedded_xml(xml, sip_uri, SipUri)
42
+ end
39
43
  end
40
44
  end
41
45
  end
@@ -11,7 +11,7 @@ require_relative 'voice/models/api_call_response.rb'
11
11
  require_relative 'voice/models/api_call_state_response.rb'
12
12
  require_relative 'voice/models/api_create_call_request.rb'
13
13
  require_relative 'voice/models/api_modify_call_request.rb'
14
- require_relative 'voice/models/call_engine_modify_conference_request.rb'
14
+ require_relative 'voice/models/api_modify_conference_request.rb'
15
15
  require_relative 'voice/models/api_transcribe_recording_request.rb'
16
16
  require_relative 'voice/models/conference_detail.rb'
17
17
  require_relative 'voice/models/conference_member_detail.rb'
@@ -22,7 +22,7 @@ module Voice
22
22
  _query_builder << '/api/v2/accounts/{accountId}/calls'
23
23
  _query_builder = APIHelper.append_url_with_template_parameters(
24
24
  _query_builder,
25
- 'accountId' => { 'value' => account_id, 'encode' => true }
25
+ 'accountId' => { 'value' => account_id, 'encode' => false }
26
26
  )
27
27
  _query_url = APIHelper.clean_url _query_builder
28
28
 
@@ -102,8 +102,8 @@ module Voice
102
102
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}'
103
103
  _query_builder = APIHelper.append_url_with_template_parameters(
104
104
  _query_builder,
105
- 'accountId' => { 'value' => account_id, 'encode' => true },
106
- 'callId' => { 'value' => call_id, 'encode' => true }
105
+ 'accountId' => { 'value' => account_id, 'encode' => false },
106
+ 'callId' => { 'value' => call_id, 'encode' => false }
107
107
  )
108
108
  _query_url = APIHelper.clean_url _query_builder
109
109
 
@@ -183,8 +183,8 @@ module Voice
183
183
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}'
184
184
  _query_builder = APIHelper.append_url_with_template_parameters(
185
185
  _query_builder,
186
- 'accountId' => { 'value' => account_id, 'encode' => true },
187
- 'callId' => { 'value' => call_id, 'encode' => true }
186
+ 'accountId' => { 'value' => account_id, 'encode' => false },
187
+ 'callId' => { 'value' => call_id, 'encode' => false }
188
188
  )
189
189
  _query_url = APIHelper.clean_url _query_builder
190
190
 
@@ -262,8 +262,8 @@ module Voice
262
262
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recording'
263
263
  _query_builder = APIHelper.append_url_with_template_parameters(
264
264
  _query_builder,
265
- 'accountId' => { 'value' => account_id, 'encode' => true },
266
- 'callId' => { 'value' => call_id, 'encode' => true }
265
+ 'accountId' => { 'value' => account_id, 'encode' => false },
266
+ 'callId' => { 'value' => call_id, 'encode' => false }
267
267
  )
268
268
  _query_url = APIHelper.clean_url _query_builder
269
269
 
@@ -340,8 +340,8 @@ module Voice
340
340
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings'
341
341
  _query_builder = APIHelper.append_url_with_template_parameters(
342
342
  _query_builder,
343
- 'accountId' => { 'value' => account_id, 'encode' => true },
344
- 'callId' => { 'value' => call_id, 'encode' => true }
343
+ 'accountId' => { 'value' => account_id, 'encode' => false },
344
+ 'callId' => { 'value' => call_id, 'encode' => false }
345
345
  )
346
346
  _query_url = APIHelper.clean_url _query_builder
347
347
 
@@ -422,9 +422,9 @@ module Voice
422
422
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}'
423
423
  _query_builder = APIHelper.append_url_with_template_parameters(
424
424
  _query_builder,
425
- 'accountId' => { 'value' => account_id, 'encode' => true },
426
- 'callId' => { 'value' => call_id, 'encode' => true },
427
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
425
+ 'accountId' => { 'value' => account_id, 'encode' => false },
426
+ 'callId' => { 'value' => call_id, 'encode' => false },
427
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
428
428
  )
429
429
  _query_url = APIHelper.clean_url _query_builder
430
430
 
@@ -504,9 +504,9 @@ module Voice
504
504
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}'
505
505
  _query_builder = APIHelper.append_url_with_template_parameters(
506
506
  _query_builder,
507
- 'accountId' => { 'value' => account_id, 'encode' => true },
508
- 'callId' => { 'value' => call_id, 'encode' => true },
509
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
507
+ 'accountId' => { 'value' => account_id, 'encode' => false },
508
+ 'callId' => { 'value' => call_id, 'encode' => false },
509
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
510
510
  )
511
511
  _query_url = APIHelper.clean_url _query_builder
512
512
 
@@ -577,9 +577,9 @@ module Voice
577
577
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media'
578
578
  _query_builder = APIHelper.append_url_with_template_parameters(
579
579
  _query_builder,
580
- 'accountId' => { 'value' => account_id, 'encode' => true },
581
- 'callId' => { 'value' => call_id, 'encode' => true },
582
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
580
+ 'accountId' => { 'value' => account_id, 'encode' => false },
581
+ 'callId' => { 'value' => call_id, 'encode' => false },
582
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
583
583
  )
584
584
  _query_url = APIHelper.clean_url _query_builder
585
585
 
@@ -652,9 +652,9 @@ module Voice
652
652
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media'
653
653
  _query_builder = APIHelper.append_url_with_template_parameters(
654
654
  _query_builder,
655
- 'accountId' => { 'value' => account_id, 'encode' => true },
656
- 'callId' => { 'value' => call_id, 'encode' => true },
657
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
655
+ 'accountId' => { 'value' => account_id, 'encode' => false },
656
+ 'callId' => { 'value' => call_id, 'encode' => false },
657
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
658
658
  )
659
659
  _query_url = APIHelper.clean_url _query_builder
660
660
 
@@ -725,9 +725,9 @@ module Voice
725
725
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription'
726
726
  _query_builder = APIHelper.append_url_with_template_parameters(
727
727
  _query_builder,
728
- 'accountId' => { 'value' => account_id, 'encode' => true },
729
- 'callId' => { 'value' => call_id, 'encode' => true },
730
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
728
+ 'accountId' => { 'value' => account_id, 'encode' => false },
729
+ 'callId' => { 'value' => call_id, 'encode' => false },
730
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
731
731
  )
732
732
  _query_url = APIHelper.clean_url _query_builder
733
733
 
@@ -809,9 +809,9 @@ module Voice
809
809
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription'
810
810
  _query_builder = APIHelper.append_url_with_template_parameters(
811
811
  _query_builder,
812
- 'accountId' => { 'value' => account_id, 'encode' => true },
813
- 'callId' => { 'value' => call_id, 'encode' => true },
814
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
812
+ 'accountId' => { 'value' => account_id, 'encode' => false },
813
+ 'callId' => { 'value' => call_id, 'encode' => false },
814
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
815
815
  )
816
816
  _query_url = APIHelper.clean_url _query_builder
817
817
 
@@ -895,9 +895,9 @@ module Voice
895
895
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription'
896
896
  _query_builder = APIHelper.append_url_with_template_parameters(
897
897
  _query_builder,
898
- 'accountId' => { 'value' => account_id, 'encode' => true },
899
- 'callId' => { 'value' => call_id, 'encode' => true },
900
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
898
+ 'accountId' => { 'value' => account_id, 'encode' => false },
899
+ 'callId' => { 'value' => call_id, 'encode' => false },
900
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
901
901
  )
902
902
  _query_url = APIHelper.clean_url _query_builder
903
903
 
@@ -974,7 +974,7 @@ module Voice
974
974
  _query_builder << '/api/v2/accounts/{accountId}/conferences'
975
975
  _query_builder = APIHelper.append_url_with_template_parameters(
976
976
  _query_builder,
977
- 'accountId' => { 'value' => account_id, 'encode' => true }
977
+ 'accountId' => { 'value' => account_id, 'encode' => false }
978
978
  )
979
979
  _query_builder = APIHelper.append_url_with_query_parameters(
980
980
  _query_builder,
@@ -1061,8 +1061,8 @@ module Voice
1061
1061
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}'
1062
1062
  _query_builder = APIHelper.append_url_with_template_parameters(
1063
1063
  _query_builder,
1064
- 'accountId' => { 'value' => account_id, 'encode' => true },
1065
- 'conferenceId' => { 'value' => conference_id, 'encode' => true }
1064
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1065
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false }
1066
1066
  )
1067
1067
  _query_url = APIHelper.clean_url _query_builder
1068
1068
 
@@ -1132,8 +1132,7 @@ module Voice
1132
1132
  # Modify the conference state
1133
1133
  # @param [String] account_id Required parameter: Example:
1134
1134
  # @param [String] conference_id Required parameter: Example:
1135
- # @param [CallEngineModifyConferenceRequest] body Optional parameter:
1136
- # Example:
1135
+ # @param [ApiModifyConferenceRequest] body Optional parameter: Example:
1137
1136
  # @return [void] response from the API call
1138
1137
  def modify_conference(account_id,
1139
1138
  conference_id,
@@ -1143,8 +1142,8 @@ module Voice
1143
1142
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}'
1144
1143
  _query_builder = APIHelper.append_url_with_template_parameters(
1145
1144
  _query_builder,
1146
- 'accountId' => { 'value' => account_id, 'encode' => true },
1147
- 'conferenceId' => { 'value' => conference_id, 'encode' => true }
1145
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1146
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false }
1148
1147
  )
1149
1148
  _query_url = APIHelper.clean_url _query_builder
1150
1149
 
@@ -1224,9 +1223,9 @@ module Voice
1224
1223
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/members/{callId}'
1225
1224
  _query_builder = APIHelper.append_url_with_template_parameters(
1226
1225
  _query_builder,
1227
- 'accountId' => { 'value' => account_id, 'encode' => true },
1228
- 'conferenceId' => { 'value' => conference_id, 'encode' => true },
1229
- 'callId' => { 'value' => call_id, 'encode' => true }
1226
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1227
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false },
1228
+ 'callId' => { 'value' => call_id, 'encode' => false }
1230
1229
  )
1231
1230
  _query_url = APIHelper.clean_url _query_builder
1232
1231
 
@@ -1304,9 +1303,9 @@ module Voice
1304
1303
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}'
1305
1304
  _query_builder = APIHelper.append_url_with_template_parameters(
1306
1305
  _query_builder,
1307
- 'accountId' => { 'value' => account_id, 'encode' => true },
1308
- 'conferenceId' => { 'value' => conference_id, 'encode' => true },
1309
- 'memberId' => { 'value' => member_id, 'encode' => true }
1306
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1307
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false },
1308
+ 'memberId' => { 'value' => member_id, 'encode' => false }
1310
1309
  )
1311
1310
  _query_url = APIHelper.clean_url _query_builder
1312
1311
 
@@ -1385,8 +1384,8 @@ module Voice
1385
1384
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/recordings'
1386
1385
  _query_builder = APIHelper.append_url_with_template_parameters(
1387
1386
  _query_builder,
1388
- 'accountId' => { 'value' => account_id, 'encode' => true },
1389
- 'conferenceId' => { 'value' => conference_id, 'encode' => true }
1387
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1388
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false }
1390
1389
  )
1391
1390
  _query_url = APIHelper.clean_url _query_builder
1392
1391
 
@@ -1467,9 +1466,9 @@ module Voice
1467
1466
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}'
1468
1467
  _query_builder = APIHelper.append_url_with_template_parameters(
1469
1468
  _query_builder,
1470
- 'accountId' => { 'value' => account_id, 'encode' => true },
1471
- 'conferenceId' => { 'value' => conference_id, 'encode' => true },
1472
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
1469
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1470
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false },
1471
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
1473
1472
  )
1474
1473
  _query_url = APIHelper.clean_url _query_builder
1475
1474
 
@@ -1549,9 +1548,9 @@ module Voice
1549
1548
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media'
1550
1549
  _query_builder = APIHelper.append_url_with_template_parameters(
1551
1550
  _query_builder,
1552
- 'accountId' => { 'value' => account_id, 'encode' => true },
1553
- 'conferenceId' => { 'value' => conference_id, 'encode' => true },
1554
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
1551
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1552
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false },
1553
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
1555
1554
  )
1556
1555
  _query_url = APIHelper.clean_url _query_builder
1557
1556
 
@@ -1631,7 +1630,7 @@ module Voice
1631
1630
  _query_builder << '/api/v2/accounts/{accountId}/recordings'
1632
1631
  _query_builder = APIHelper.append_url_with_template_parameters(
1633
1632
  _query_builder,
1634
- 'accountId' => { 'value' => account_id, 'encode' => true }
1633
+ 'accountId' => { 'value' => account_id, 'encode' => false }
1635
1634
  )
1636
1635
  _query_builder = APIHelper.append_url_with_query_parameters(
1637
1636
  _query_builder,
@@ -13,7 +13,7 @@ module Bandwidth
13
13
  @http_call_back = http_call_back
14
14
 
15
15
  @global_headers = {
16
- 'user-agent' => 'ruby-sdk-refs/tags/ruby3.12.1'
16
+ 'user-agent' => 'ruby-sdk'
17
17
  }
18
18
  end
19
19
 
@@ -10,71 +10,126 @@ module Bandwidth
10
10
  # @return [String]
11
11
  attr_accessor :from
12
12
 
13
- # Format is E164
13
+ # Format is E164 or SIP URI
14
14
  # @return [String]
15
15
  attr_accessor :to
16
16
 
17
- # Format is E164
17
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
18
+ # within the initial INVITE. An 'encoding' parameter must be specified as
19
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
20
+ # exceed 256 characters, including the encoding parameter.
21
+ # @return [String]
22
+ attr_accessor :uui
23
+
24
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
25
+ # within the initial INVITE. An 'encoding' parameter must be specified as
26
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
27
+ # exceed 256 characters, including the encoding parameter.
18
28
  # @return [Float]
19
29
  attr_accessor :call_timeout
20
30
 
21
- # Format is E164
31
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
32
+ # within the initial INVITE. An 'encoding' parameter must be specified as
33
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
34
+ # exceed 256 characters, including the encoding parameter.
22
35
  # @return [Float]
23
36
  attr_accessor :callback_timeout
24
37
 
25
- # Format is E164
38
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
39
+ # within the initial INVITE. An 'encoding' parameter must be specified as
40
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
41
+ # exceed 256 characters, including the encoding parameter.
26
42
  # @return [String]
27
43
  attr_accessor :answer_url
28
44
 
29
- # Format is E164
45
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
46
+ # within the initial INVITE. An 'encoding' parameter must be specified as
47
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
48
+ # exceed 256 characters, including the encoding parameter.
30
49
  # @return [String]
31
50
  attr_accessor :answer_fallback_url
32
51
 
33
- # Format is E164
52
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
53
+ # within the initial INVITE. An 'encoding' parameter must be specified as
54
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
55
+ # exceed 256 characters, including the encoding parameter.
34
56
  # @return [String]
35
57
  attr_accessor :username
36
58
 
37
- # Format is E164
59
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
60
+ # within the initial INVITE. An 'encoding' parameter must be specified as
61
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
62
+ # exceed 256 characters, including the encoding parameter.
38
63
  # @return [String]
39
64
  attr_accessor :password
40
65
 
41
- # Format is E164
66
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
67
+ # within the initial INVITE. An 'encoding' parameter must be specified as
68
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
69
+ # exceed 256 characters, including the encoding parameter.
42
70
  # @return [String]
43
71
  attr_accessor :fallback_username
44
72
 
45
- # Format is E164
73
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
74
+ # within the initial INVITE. An 'encoding' parameter must be specified as
75
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
76
+ # exceed 256 characters, including the encoding parameter.
46
77
  # @return [String]
47
78
  attr_accessor :fallback_password
48
79
 
49
- # Format is E164
80
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
81
+ # within the initial INVITE. An 'encoding' parameter must be specified as
82
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
83
+ # exceed 256 characters, including the encoding parameter.
50
84
  # @return [AnswerMethodEnum]
51
85
  attr_accessor :answer_method
52
86
 
53
- # Format is E164
87
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
88
+ # within the initial INVITE. An 'encoding' parameter must be specified as
89
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
90
+ # exceed 256 characters, including the encoding parameter.
54
91
  # @return [AnswerFallbackMethodEnum]
55
92
  attr_accessor :answer_fallback_method
56
93
 
57
- # Format is E164
94
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
95
+ # within the initial INVITE. An 'encoding' parameter must be specified as
96
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
97
+ # exceed 256 characters, including the encoding parameter.
58
98
  # @return [String]
59
99
  attr_accessor :disconnect_url
60
100
 
61
- # Format is E164
101
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
102
+ # within the initial INVITE. An 'encoding' parameter must be specified as
103
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
104
+ # exceed 256 characters, including the encoding parameter.
62
105
  # @return [DisconnectMethodEnum]
63
106
  attr_accessor :disconnect_method
64
107
 
65
- # Format is E164
108
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
109
+ # within the initial INVITE. An 'encoding' parameter must be specified as
110
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
111
+ # exceed 256 characters, including the encoding parameter.
66
112
  # @return [String]
67
113
  attr_accessor :tag
68
114
 
69
- # Format is E164
115
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
116
+ # within the initial INVITE. An 'encoding' parameter must be specified as
117
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
118
+ # exceed 256 characters, including the encoding parameter.
70
119
  # @return [String]
71
120
  attr_accessor :application_id
72
121
 
73
- # Format is E164
122
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
123
+ # within the initial INVITE. An 'encoding' parameter must be specified as
124
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
125
+ # exceed 256 characters, including the encoding parameter.
74
126
  # @return [String]
75
127
  attr_accessor :obfuscated_to
76
128
 
77
- # Format is E164
129
+ # When calling a SIP URI, this will be sent as the 'User-To-User' header
130
+ # within the initial INVITE. An 'encoding' parameter must be specified as
131
+ # described in https://tools.ietf.org/html/rfc7433. This header cannot
132
+ # exceed 256 characters, including the encoding parameter.
78
133
  # @return [String]
79
134
  attr_accessor :obfuscated_from
80
135
 
@@ -83,6 +138,7 @@ module Bandwidth
83
138
  @_hash = {} if @_hash.nil?
84
139
  @_hash['from'] = 'from'
85
140
  @_hash['to'] = 'to'
141
+ @_hash['uui'] = 'uui'
86
142
  @_hash['call_timeout'] = 'callTimeout'
87
143
  @_hash['callback_timeout'] = 'callbackTimeout'
88
144
  @_hash['answer_url'] = 'answerUrl'
@@ -106,6 +162,7 @@ module Bandwidth
106
162
  to = nil,
107
163
  answer_url = nil,
108
164
  application_id = nil,
165
+ uui = nil,
109
166
  call_timeout = nil,
110
167
  callback_timeout = nil,
111
168
  answer_fallback_url = nil,
@@ -122,6 +179,7 @@ module Bandwidth
122
179
  obfuscated_from = nil)
123
180
  @from = from
124
181
  @to = to
182
+ @uui = uui
125
183
  @call_timeout = call_timeout
126
184
  @callback_timeout = callback_timeout
127
185
  @answer_url = answer_url
@@ -149,6 +207,7 @@ module Bandwidth
149
207
  to = hash['to']
150
208
  answer_url = hash['answerUrl']
151
209
  application_id = hash['applicationId']
210
+ uui = hash['uui']
152
211
  call_timeout = hash['callTimeout']
153
212
  callback_timeout = hash['callbackTimeout']
154
213
  answer_fallback_url = hash['answerFallbackUrl']
@@ -169,6 +228,7 @@ module Bandwidth
169
228
  to,
170
229
  answer_url,
171
230
  application_id,
231
+ uui,
172
232
  call_timeout,
173
233
  callback_timeout,
174
234
  answer_fallback_url,