twilio-ruby 5.22.1 → 5.22.2
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/CHANGES.md +12 -0
 - data/README.md +2 -2
 - data/lib/twilio-ruby/rest/api/v2010/account/address.rb +7 -0
 - data/lib/twilio-ruby/rest/autopilot.rb +1 -1
 - data/lib/twilio-ruby/rest/autopilot/v1.rb +2 -2
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +55 -61
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +17 -9
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +18 -10
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +37 -28
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +39 -32
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +37 -27
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +58 -53
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +15 -9
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +53 -43
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +38 -25
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +56 -50
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +27 -15
 - data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +24 -18
 - data/lib/twilio-ruby/rest/client.rb +39 -39
 - data/lib/twilio-ruby/rest/notify.rb +4 -2
 - data/lib/twilio-ruby/rest/notify/v1.rb +4 -2
 - data/lib/twilio-ruby/rest/notify/v1/credential.rb +47 -42
 - data/lib/twilio-ruby/rest/notify/v1/service.rb +118 -103
 - data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +74 -63
 - data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +108 -111
 - data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +7 -0
 - data/lib/twilio-ruby/rest/trunking.rb +2 -2
 - data/lib/twilio-ruby/rest/trunking/v1.rb +2 -2
 - data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +82 -82
 - data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +19 -14
 - data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +16 -15
 - data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +51 -50
 - data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +41 -32
 - data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +30 -31
 - data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
 - data/lib/twilio-ruby/version.rb +1 -1
 - data/spec/integration/api/v2010/account/address_spec.rb +4 -0
 - data/spec/integration/proxy/v1/service/phone_number_spec.rb +8 -4
 - metadata +2 -2
 
| 
         @@ -94,9 +94,10 @@ module Twilio 
     | 
|
| 
       94 
94 
     | 
    
         
             
                  # hints:: Speech recognition hints
         
     | 
| 
       95 
95 
     | 
    
         
             
                  # barge_in:: Stop playing media upon speech
         
     | 
| 
       96 
96 
     | 
    
         
             
                  # debug:: Allow debug for gather
         
     | 
| 
      
 97 
     | 
    
         
            +
                  # action_on_empty_result:: Force webhook to the action URL event if there is no input
         
     | 
| 
       97 
98 
     | 
    
         
             
                  # keyword_args:: additional attributes
         
     | 
| 
       98 
     | 
    
         
            -
                  def gather(input: nil, action: nil, method: nil, timeout: nil, speech_timeout: nil, max_speech_time: nil, profanity_filter: nil, finish_on_key: nil, num_digits: nil, partial_result_callback: nil, partial_result_callback_method: nil, language: nil, hints: nil, barge_in: nil, debug: nil, **keyword_args)
         
     | 
| 
       99 
     | 
    
         
            -
                    gather = Gather.new(input: input, action: action, method: method, timeout: timeout, speech_timeout: speech_timeout, max_speech_time: max_speech_time, profanity_filter: profanity_filter, finish_on_key: finish_on_key, num_digits: num_digits, partial_result_callback: partial_result_callback, partial_result_callback_method: partial_result_callback_method, language: language, hints: hints, barge_in: barge_in, debug: debug, **keyword_args)
         
     | 
| 
      
 99 
     | 
    
         
            +
                  def gather(input: nil, action: nil, method: nil, timeout: nil, speech_timeout: nil, max_speech_time: nil, profanity_filter: nil, finish_on_key: nil, num_digits: nil, partial_result_callback: nil, partial_result_callback_method: nil, language: nil, hints: nil, barge_in: nil, debug: nil, action_on_empty_result: nil, **keyword_args)
         
     | 
| 
      
 100 
     | 
    
         
            +
                    gather = Gather.new(input: input, action: action, method: method, timeout: timeout, speech_timeout: speech_timeout, max_speech_time: max_speech_time, profanity_filter: profanity_filter, finish_on_key: finish_on_key, num_digits: num_digits, partial_result_callback: partial_result_callback, partial_result_callback_method: partial_result_callback_method, language: language, hints: hints, barge_in: barge_in, debug: debug, action_on_empty_result: action_on_empty_result, **keyword_args)
         
     | 
| 
       100 
101 
     | 
    
         | 
| 
       101 
102 
     | 
    
         
             
                    yield(gather) if block_given?
         
     | 
| 
       102 
103 
     | 
    
         
             
                    append(gather)
         
     | 
    
        data/lib/twilio-ruby/version.rb
    CHANGED
    
    
| 
         @@ -51,6 +51,7 @@ describe 'Address' do 
     | 
|
| 
       51 
51 
     | 
    
         
             
                      "sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       52 
52 
     | 
    
         
             
                      "street": "4th",
         
     | 
| 
       53 
53 
     | 
    
         
             
                      "validated": false,
         
     | 
| 
      
 54 
     | 
    
         
            +
                      "verified": false,
         
     | 
| 
       54 
55 
     | 
    
         
             
                      "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
         
     | 
| 
       55 
56 
     | 
    
         
             
                  }
         
     | 
| 
       56 
57 
     | 
    
         
             
                  ]
         
     | 
| 
         @@ -124,6 +125,7 @@ describe 'Address' do 
     | 
|
| 
       124 
125 
     | 
    
         
             
                      "sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       125 
126 
     | 
    
         
             
                      "street": "4th",
         
     | 
| 
       126 
127 
     | 
    
         
             
                      "validated": false,
         
     | 
| 
      
 128 
     | 
    
         
            +
                      "verified": false,
         
     | 
| 
       127 
129 
     | 
    
         
             
                      "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
         
     | 
| 
       128 
130 
     | 
    
         
             
                  }
         
     | 
| 
       129 
131 
     | 
    
         
             
                  ]
         
     | 
| 
         @@ -169,6 +171,7 @@ describe 'Address' do 
     | 
|
| 
       169 
171 
     | 
    
         
             
                      "sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       170 
172 
     | 
    
         
             
                      "street": "4th",
         
     | 
| 
       171 
173 
     | 
    
         
             
                      "validated": false,
         
     | 
| 
      
 174 
     | 
    
         
            +
                      "verified": false,
         
     | 
| 
       172 
175 
     | 
    
         
             
                      "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
         
     | 
| 
       173 
176 
     | 
    
         
             
                  }
         
     | 
| 
       174 
177 
     | 
    
         
             
                  ]
         
     | 
| 
         @@ -216,6 +219,7 @@ describe 'Address' do 
     | 
|
| 
       216 
219 
     | 
    
         
             
                              "sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       217 
220 
     | 
    
         
             
                              "street": "4th",
         
     | 
| 
       218 
221 
     | 
    
         
             
                              "validated": false,
         
     | 
| 
      
 222 
     | 
    
         
            +
                              "verified": false,
         
     | 
| 
       219 
223 
     | 
    
         
             
                              "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
         
     | 
| 
       220 
224 
     | 
    
         
             
                          }
         
     | 
| 
       221 
225 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -43,7 +43,8 @@ describe 'PhoneNumber' do 
     | 
|
| 
       43 
43 
     | 
    
         
             
                          "voice_inbound": false
         
     | 
| 
       44 
44 
     | 
    
         
             
                      },
         
     | 
| 
       45 
45 
     | 
    
         
             
                      "url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       46 
     | 
    
         
            -
                      "is_reserved": false
         
     | 
| 
      
 46 
     | 
    
         
            +
                      "is_reserved": false,
         
     | 
| 
      
 47 
     | 
    
         
            +
                      "in_use": 0
         
     | 
| 
       47 
48 
     | 
    
         
             
                  }
         
     | 
| 
       48 
49 
     | 
    
         
             
                  ]
         
     | 
| 
       49 
50 
     | 
    
         
             
                ))
         
     | 
| 
         @@ -127,7 +128,8 @@ describe 'PhoneNumber' do 
     | 
|
| 
       127 
128 
     | 
    
         
             
                                  "voice_inbound": false
         
     | 
| 
       128 
129 
     | 
    
         
             
                              },
         
     | 
| 
       129 
130 
     | 
    
         
             
                              "url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       130 
     | 
    
         
            -
                              "is_reserved": false
         
     | 
| 
      
 131 
     | 
    
         
            +
                              "is_reserved": false,
         
     | 
| 
      
 132 
     | 
    
         
            +
                              "in_use": 0
         
     | 
| 
       131 
133 
     | 
    
         
             
                          }
         
     | 
| 
       132 
134 
     | 
    
         
             
                      ]
         
     | 
| 
       133 
135 
     | 
    
         
             
                  }
         
     | 
| 
         @@ -174,7 +176,8 @@ describe 'PhoneNumber' do 
     | 
|
| 
       174 
176 
     | 
    
         
             
                          "voice_inbound": false
         
     | 
| 
       175 
177 
     | 
    
         
             
                      },
         
     | 
| 
       176 
178 
     | 
    
         
             
                      "url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       177 
     | 
    
         
            -
                      "is_reserved": false
         
     | 
| 
      
 179 
     | 
    
         
            +
                      "is_reserved": false,
         
     | 
| 
      
 180 
     | 
    
         
            +
                      "in_use": 0
         
     | 
| 
       178 
181 
     | 
    
         
             
                  }
         
     | 
| 
       179 
182 
     | 
    
         
             
                  ]
         
     | 
| 
       180 
183 
     | 
    
         
             
                ))
         
     | 
| 
         @@ -219,7 +222,8 @@ describe 'PhoneNumber' do 
     | 
|
| 
       219 
222 
     | 
    
         
             
                          "voice_inbound": false
         
     | 
| 
       220 
223 
     | 
    
         
             
                      },
         
     | 
| 
       221 
224 
     | 
    
         
             
                      "url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       222 
     | 
    
         
            -
                      "is_reserved": true
         
     | 
| 
      
 225 
     | 
    
         
            +
                      "is_reserved": true,
         
     | 
| 
      
 226 
     | 
    
         
            +
                      "in_use": 0
         
     | 
| 
       223 
227 
     | 
    
         
             
                  }
         
     | 
| 
       224 
228 
     | 
    
         
             
                  ]
         
     | 
| 
       225 
229 
     | 
    
         
             
                ))
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: twilio-ruby
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 5.22. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 5.22.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Twilio API Team
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2019-04- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2019-04-24 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: jwt
         
     |