twilio-ruby 5.39.3 → 5.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +24 -1
  3. data/CONTRIBUTING.md +2 -2
  4. data/README.md +2 -3
  5. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +6 -4
  6. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +3 -3
  7. data/lib/twilio-ruby/rest/client.rb +7 -0
  8. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +12 -2
  9. data/lib/twilio-ruby/rest/events.rb +54 -0
  10. data/lib/twilio-ruby/rest/events/v1.rb +58 -0
  11. data/lib/twilio-ruby/rest/events/v1/sink.rb +379 -0
  12. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
  13. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +118 -0
  14. data/lib/twilio-ruby/rest/events/v1/subscription.rb +358 -0
  15. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +322 -0
  16. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +33 -17
  17. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +13 -1
  18. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +12 -11
  19. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +75 -9
  20. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -6
  21. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +5 -19
  22. data/lib/twilio-ruby/version.rb +1 -1
  23. data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
  24. data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
  25. data/spec/integration/events/v1/sink_spec.rb +217 -0
  26. data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +212 -0
  27. data/spec/integration/events/v1/subscription_spec.rb +205 -0
  28. data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
  29. data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
  30. metadata +19 -2
@@ -68,13 +68,13 @@ describe 'DataSession' do
68
68
  }
69
69
  ],
70
70
  "meta": {
71
- "first_page_url": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DataSessions?Start=2015-07-30T20%3A00%3A00Z&End=2015-07-30T20%3A00%3A00Z&PageSize=50&Page=0",
71
+ "first_page_url": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DataSessions?PageSize=50&Page=0",
72
72
  "key": "data_sessions",
73
73
  "next_page_url": null,
74
74
  "page": 0,
75
75
  "page_size": 50,
76
76
  "previous_page_url": null,
77
- "url": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DataSessions?Start=2015-07-30T20%3A00%3A00Z&End=2015-07-30T20%3A00%3A00Z&PageSize=50&Page=0"
77
+ "url": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DataSessions?PageSize=50&Page=0"
78
78
  }
79
79
  }
80
80
  ]
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.39.3
4
+ version: 5.40.0
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: 2020-08-05 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -377,6 +377,13 @@ files:
377
377
  - lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb
378
378
  - lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb
379
379
  - lib/twilio-ruby/rest/conversations/v1/webhook.rb
380
+ - lib/twilio-ruby/rest/events.rb
381
+ - lib/twilio-ruby/rest/events/v1.rb
382
+ - lib/twilio-ruby/rest/events/v1/sink.rb
383
+ - lib/twilio-ruby/rest/events/v1/sink/sink_test.rb
384
+ - lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb
385
+ - lib/twilio-ruby/rest/events/v1/subscription.rb
386
+ - lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb
380
387
  - lib/twilio-ruby/rest/fax.rb
381
388
  - lib/twilio-ruby/rest/fax/v1.rb
382
389
  - lib/twilio-ruby/rest/fax/v1/fax.rb
@@ -807,6 +814,11 @@ files:
807
814
  - spec/integration/conversations/v1/conversation/webhook_spec.rb
808
815
  - spec/integration/conversations/v1/conversation_spec.rb
809
816
  - spec/integration/conversations/v1/webhook_spec.rb
817
+ - spec/integration/events/v1/sink/sink_test_spec.rb
818
+ - spec/integration/events/v1/sink/sink_validate_spec.rb
819
+ - spec/integration/events/v1/sink_spec.rb
820
+ - spec/integration/events/v1/subscription/subscribed_event_spec.rb
821
+ - spec/integration/events/v1/subscription_spec.rb
810
822
  - spec/integration/fax/v1/fax/fax_media_spec.rb
811
823
  - spec/integration/fax/v1/fax_spec.rb
812
824
  - spec/integration/flex_api/v1/channel_spec.rb
@@ -1221,6 +1233,11 @@ test_files:
1221
1233
  - spec/integration/conversations/v1/conversation/webhook_spec.rb
1222
1234
  - spec/integration/conversations/v1/conversation_spec.rb
1223
1235
  - spec/integration/conversations/v1/webhook_spec.rb
1236
+ - spec/integration/events/v1/sink/sink_test_spec.rb
1237
+ - spec/integration/events/v1/sink/sink_validate_spec.rb
1238
+ - spec/integration/events/v1/sink_spec.rb
1239
+ - spec/integration/events/v1/subscription/subscribed_event_spec.rb
1240
+ - spec/integration/events/v1/subscription_spec.rb
1224
1241
  - spec/integration/fax/v1/fax/fax_media_spec.rb
1225
1242
  - spec/integration/fax/v1/fax_spec.rb
1226
1243
  - spec/integration/flex_api/v1/channel_spec.rb