twilio-ruby 5.45.1 → 5.49.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +108 -0
- data/LICENSE +1 -1
- data/README.md +16 -2
- data/lib/twilio-ruby/rest/api.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010.rb +5 -4
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +17 -17
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
- data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +14 -10
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
- data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
- data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
- data/lib/twilio-ruby/rest/client.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1.rb +25 -20
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/events/v1.rb +20 -16
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/sink.rb +8 -6
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +7 -6
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +3 -3
- data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
- data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -12
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
- data/lib/twilio-ruby/rest/insights.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1.rb +11 -9
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
- data/lib/twilio-ruby/rest/insights/v1/room.rb +55 -43
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +22 -22
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +10 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +10 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v1.rb +5 -4
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
- data/lib/twilio-ruby/rest/messaging.rb +8 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +21 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/monitor/v1.rb +10 -8
- data/lib/twilio-ruby/rest/notify/v1.rb +10 -8
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +4 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +14 -10
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
- data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +5 -4
- data/lib/twilio-ruby/rest/preview/understand.rb +5 -4
- data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
- data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
- data/lib/twilio-ruby/rest/supersim/v1.rb +25 -20
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +25 -52
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +18 -40
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +46 -76
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +18 -40
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +47 -79
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +14 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
- data/lib/twilio-ruby/rest/trusthub.rb +100 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +146 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +356 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +262 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +369 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/verify.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +26 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +7 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +64 -13
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
- data/lib/twilio-ruby/rest/video/v1.rb +20 -16
- data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
- data/lib/twilio-ruby/twiml/voice_response.rb +38 -8
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +4 -16
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/events/v1/sink_spec.rb +14 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
- data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
- data/spec/integration/preview/sync/service/document_spec.rb +1 -3
- data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
- data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
- data/spec/integration/sync/v1/service/document_spec.rb +1 -3
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment_spec.rb +192 -0
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_entity_assignments_spec.rb +186 -0
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_evaluations_spec.rb +615 -0
- data/spec/integration/trusthub/v1/customer_profiles_spec.rb +255 -0
- data/spec/integration/trusthub/v1/end_user_spec.rb +247 -0
- data/spec/integration/trusthub/v1/end_user_type_spec.rb +176 -0
- data/spec/integration/trusthub/v1/policies_spec.rb +252 -0
- data/spec/integration/trusthub/v1/supporting_document_spec.rb +235 -0
- data/spec/integration/trusthub/v1/supporting_document_type_spec.rb +159 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment_spec.rb +192 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_entity_assignments_spec.rb +186 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_evaluations_spec.rb +615 -0
- data/spec/integration/trusthub/v1/trust_products_spec.rb +255 -0
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +3 -3
- data/spec/integration/verify/v2/verification_attempt_spec.rb +146 -0
- data/spec/integration/video/v1/room_spec.rb +5 -0
- data/spec/twiml/voice_response_spec.rb +1 -1
- metadata +49 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22d3f1dbff39d52a6ca1bf1359af11445923587ab7b120eaccc70593fd1f9288
|
4
|
+
data.tar.gz: 4d2a1250feb5d9fb012310ad8412d773fc4b23ffdca3c60d3b8ce2291c74f576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b067c7548e4cd004d6ae454109a539fd5024a9cc79bcfeb55aa1dcedf3b6a64d273259a6501cf1a466b0916fc8f3b480a8830985dca2c635cc66b36a4c11b320
|
7
|
+
data.tar.gz: 82c65f7a0ab86731ccb3ec20b3350837f21e646ce67c6a08bcd20df135c0f2252ca745f587d58da08cfb39dd956b873d527027e275acf7315e03864f72f540bf
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
@@ -1,6 +1,114 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2021-03-15] Version 5.49.0
|
5
|
+
---------------------------
|
6
|
+
**Library - Fix**
|
7
|
+
- [PR #550](https://github.com/twilio/twilio-ruby/pull/550): regenerating with the path parameter fix. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
|
8
|
+
|
9
|
+
**Events**
|
10
|
+
- Set maturity to beta
|
11
|
+
|
12
|
+
**Messaging**
|
13
|
+
- Adjust A2P brand registration status enum **(breaking change)**
|
14
|
+
|
15
|
+
**Studio**
|
16
|
+
- Remove internal safeguards for Studio V2 API usage now that it's GA
|
17
|
+
|
18
|
+
**Verify**
|
19
|
+
- Add support for creating and verifying totp factors. Support for totp factors is behind the `api.verify.totp` beta feature.
|
20
|
+
|
21
|
+
**Twiml**
|
22
|
+
- Add support for `<VirtualAgent>` noun
|
23
|
+
|
24
|
+
|
25
|
+
[2021-02-24] Version 5.48.0
|
26
|
+
---------------------------
|
27
|
+
**Events**
|
28
|
+
- Update description of types in the create sink resource
|
29
|
+
|
30
|
+
**Messaging**
|
31
|
+
- Add WA template header and footer
|
32
|
+
- Remove A2P campaign and use cases API **(breaking change)**
|
33
|
+
- Add number_registration_status field to read and fetch campaign responses
|
34
|
+
|
35
|
+
**Trusthub**
|
36
|
+
- Make all resources public
|
37
|
+
|
38
|
+
**Verify**
|
39
|
+
- Verify List Attempts API endpoints added.
|
40
|
+
|
41
|
+
|
42
|
+
[2021-02-10] Version 5.47.0
|
43
|
+
---------------------------
|
44
|
+
**Library - Fix**
|
45
|
+
- [PR #548](https://github.com/twilio/twilio-ruby/pull/548): shortcut syntax for new non-GA versions. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
46
|
+
|
47
|
+
**Api**
|
48
|
+
- Revert change that conference participant create `from` and `to` param to be endpoint type for supporting client identifier and sip address
|
49
|
+
- Update the conference participant create `from` and `to` param to be endpoint type for supporting client identifier and sip address
|
50
|
+
|
51
|
+
**Events**
|
52
|
+
- Documentation should state that no fields are PII
|
53
|
+
|
54
|
+
**Flex**
|
55
|
+
- Adding `notifications` and `markdown` to Flex Configuration
|
56
|
+
|
57
|
+
**Messaging**
|
58
|
+
- Add A2P use cases API
|
59
|
+
- Add Brand Registrations API
|
60
|
+
- Add Campaigns API
|
61
|
+
|
62
|
+
**Serverless**
|
63
|
+
- Add runtime field to Build response and as an optional parameter to the Build create endpoint.
|
64
|
+
- Add @twilio/runtime-handler dependency to Build response example.
|
65
|
+
|
66
|
+
**Sync**
|
67
|
+
- Remove If-Match header for Document **(breaking change)**
|
68
|
+
|
69
|
+
**Twiml**
|
70
|
+
- Add `refer_url` and `refer_method` to `Dial`.
|
71
|
+
|
72
|
+
|
73
|
+
[2021-01-27] Version 5.46.1
|
74
|
+
---------------------------
|
75
|
+
**Library - Docs**
|
76
|
+
- [PR #547](https://github.com/twilio/twilio-ruby/pull/547): Document how to use an API Key. Thanks to [@davetron5000](https://github.com/davetron5000)!
|
77
|
+
|
78
|
+
**Studio**
|
79
|
+
- Studio V2 API is now GA
|
80
|
+
|
81
|
+
**Supersim**
|
82
|
+
- Allow updating `CommandsUrl` and `CommandsMethod` on a Fleet
|
83
|
+
|
84
|
+
**Twiml**
|
85
|
+
- Add `status_callback` and `status_callback_method` to `Stream`.
|
86
|
+
|
87
|
+
|
88
|
+
[2021-01-13] Version 5.46.0
|
89
|
+
---------------------------
|
90
|
+
**Library - Docs**
|
91
|
+
- [PR #546](https://github.com/twilio/twilio-ruby/pull/546): Fixing docs for list parameter types. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
|
92
|
+
|
93
|
+
**Library - Fix**
|
94
|
+
- [PR #545](https://github.com/twilio/twilio-ruby/pull/545): Adds Ruby 3.0 to Travis. Fixes test. Thanks to [@philnash](https://github.com/philnash)!
|
95
|
+
|
96
|
+
**Api**
|
97
|
+
- Add 'Electric Imp v1 Usage' to usage categories
|
98
|
+
|
99
|
+
**Conversations**
|
100
|
+
- Changed `last_read_message_index` type in Participant's resource **(breaking change)**
|
101
|
+
|
102
|
+
**Insights**
|
103
|
+
- Added `created_time` to call summary.
|
104
|
+
|
105
|
+
**Sync**
|
106
|
+
- Remove HideExpired query parameter for filtering Sync Documents with expired **(breaking change)**
|
107
|
+
|
108
|
+
**Video**
|
109
|
+
- [Rooms] Expose maxConcurrentPublishedTracks property in Room resource
|
110
|
+
|
111
|
+
|
4
112
|
[2020-12-16] Version 5.45.1
|
5
113
|
---------------------------
|
6
114
|
**Api**
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (C)
|
3
|
+
Copyright (C) 2021, Twilio, Inc. <help@twilio.com>
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
data/README.md
CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
34
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
gem 'twilio-ruby', '~> 5.
|
37
|
+
gem 'twilio-ruby', '~> 5.49.0'
|
38
38
|
```
|
39
39
|
|
40
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
41
41
|
|
42
42
|
```bash
|
43
|
-
gem install twilio-ruby -v 5.
|
43
|
+
gem install twilio-ruby -v 5.49.0
|
44
44
|
```
|
45
45
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
@@ -66,6 +66,20 @@ auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
|
|
66
66
|
@client = Twilio::REST::Client.new account_sid, auth_token
|
67
67
|
```
|
68
68
|
|
69
|
+
### Use An API Key
|
70
|
+
|
71
|
+
```ruby
|
72
|
+
require 'twilio-ruby'
|
73
|
+
|
74
|
+
# put your own credentials here
|
75
|
+
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
76
|
+
api_key_sid = 'zzzzzzzzzzzzzzzzzzzzzz'
|
77
|
+
api_key_secret = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
|
78
|
+
|
79
|
+
# set up a client to talk to the Twilio REST API using an API Key
|
80
|
+
@client = Twilio::REST::Client.new api_key_sid, api_key_secret, account_sid
|
81
|
+
```
|
82
|
+
|
69
83
|
### Specify a Region and/or Edge
|
70
84
|
|
71
85
|
To take advantage of Twilio's [Global Infrastructure](https://www.twilio.com/docs/global-infrastructure), specify the target Region and/or Edge for the client:
|
data/lib/twilio-ruby/rest/api.rb
CHANGED
@@ -86,7 +86,7 @@ module Twilio
|
|
86
86
|
end
|
87
87
|
|
88
88
|
##
|
89
|
-
# @param [String] sid The unique string that
|
89
|
+
# @param [String] sid The unique string that we created to identify this Call
|
90
90
|
# resource.
|
91
91
|
# @return [Twilio::REST::Api::V2010::AccountContext::CallInstance] if sid was passed.
|
92
92
|
# @return [Twilio::REST::Api::V2010::AccountContext::CallList]
|
@@ -26,11 +26,12 @@ module Twilio
|
|
26
26
|
# @return [Twilio::REST::Api::V2010::AccountList]
|
27
27
|
def accounts(sid=:unset)
|
28
28
|
if sid.nil?
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
raise ArgumentError, 'sid cannot be nil'
|
30
|
+
end
|
31
|
+
if sid == :unset
|
32
|
+
@accounts ||= AccountList.new self
|
32
33
|
else
|
33
|
-
|
34
|
+
AccountContext.new(self, sid)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
@@ -288,7 +288,7 @@ module Twilio
|
|
288
288
|
end
|
289
289
|
|
290
290
|
##
|
291
|
-
# @return [authorized_connect_app.Permission] Permissions authorized to the app
|
291
|
+
# @return [Array[authorized_connect_app.Permission]] Permissions authorized to the app
|
292
292
|
def permissions
|
293
293
|
@properties['permissions']
|
294
294
|
end
|
@@ -52,10 +52,10 @@ module Twilio
|
|
52
52
|
# `status_callback_event` is specified, we will send the `completed` status. If an
|
53
53
|
# `application_sid` parameter is present, this parameter is ignored. URLs must
|
54
54
|
# contain a valid hostname (underscores are not permitted).
|
55
|
-
# @param [String] status_callback_event The call progress events that we
|
56
|
-
# to the `status_callback` URL. Can be: `initiated`, `ringing`,
|
57
|
-
# `completed`. If no event is specified, we send the `completed`
|
58
|
-
# want to receive multiple events, specify each one in a separate
|
55
|
+
# @param [Array[String]] status_callback_event The call progress events that we
|
56
|
+
# will send to the `status_callback` URL. Can be: `initiated`, `ringing`,
|
57
|
+
# `answered`, and `completed`. If no event is specified, we send the `completed`
|
58
|
+
# status. If you want to receive multiple events, specify each one in a separate
|
59
59
|
# `status_callback_event` parameter. See the code sample for {monitoring call
|
60
60
|
# progress}[https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json].
|
61
61
|
# If an `application_sid` is present, this parameter is ignored.
|
@@ -106,10 +106,10 @@ module Twilio
|
|
106
106
|
# @param [String] machine_detection_timeout The number of seconds that we should
|
107
107
|
# attempt to detect an answering machine before timing out and sending a voice
|
108
108
|
# request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds.
|
109
|
-
# @param [String] recording_status_callback_event The recording status
|
110
|
-
# will trigger calls to the URL specified in
|
111
|
-
# `in-progress`, `completed` and `absent`.
|
112
|
-
# multiple values with a space.
|
109
|
+
# @param [Array[String]] recording_status_callback_event The recording status
|
110
|
+
# events that will trigger calls to the URL specified in
|
111
|
+
# `recording_status_callback`. Can be: `in-progress`, `completed` and `absent`.
|
112
|
+
# Defaults to `completed`. Separate multiple values with a space.
|
113
113
|
# @param [String] trim Whether to trim any leading and trailing silence from the
|
114
114
|
# recording. Can be: `trim-silence` or `do-not-trim` and the default is
|
115
115
|
# `trim-silence`.
|
@@ -19,8 +19,8 @@ module Twilio
|
|
19
19
|
# @param [String] account_sid The SID of the
|
20
20
|
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Call
|
21
21
|
# resource.
|
22
|
-
# @param [String] call_sid The unique string that
|
23
|
-
#
|
22
|
+
# @param [String] call_sid The unique string that we created to identify this Call
|
23
|
+
# resource.
|
24
24
|
# @return [EventList] EventList
|
25
25
|
def initialize(version, account_sid: nil, call_sid: nil)
|
26
26
|
super(version)
|
@@ -159,8 +159,8 @@ module Twilio
|
|
159
159
|
# @param [String] account_sid The SID of the
|
160
160
|
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Call
|
161
161
|
# resource.
|
162
|
-
# @param [String] call_sid The unique string that
|
163
|
-
#
|
162
|
+
# @param [String] call_sid The unique string that we created to identify this Call
|
163
|
+
# resource.
|
164
164
|
# @return [EventInstance] EventInstance
|
165
165
|
def initialize(version, payload, account_sid: nil, call_sid: nil)
|
166
166
|
super(version)
|
@@ -19,8 +19,8 @@ module Twilio
|
|
19
19
|
# @param [String] account_sid The unique id of the
|
20
20
|
# {Account}[https://www.twilio.com/docs/iam/api/account] responsible for this
|
21
21
|
# resource.
|
22
|
-
# @param [String] call_sid The unique string that
|
23
|
-
#
|
22
|
+
# @param [String] call_sid The unique string that we created to identify this Call
|
23
|
+
# resource.
|
24
24
|
# @return [FeedbackList] FeedbackList
|
25
25
|
def initialize(version, account_sid: nil, call_sid: nil)
|
26
26
|
super(version)
|
@@ -92,8 +92,8 @@ module Twilio
|
|
92
92
|
# @param [String] quality_score The call quality expressed as an integer from `1`
|
93
93
|
# to `5` where `1` represents very poor call quality and `5` represents a perfect
|
94
94
|
# call.
|
95
|
-
# @param [feedback.Issues] issue A list of one or more issues experienced
|
96
|
-
# the call. Issues can be: `imperfect-audio`, `dropped-call`,
|
95
|
+
# @param [Array[feedback.Issues]] issue A list of one or more issues experienced
|
96
|
+
# during the call. Issues can be: `imperfect-audio`, `dropped-call`,
|
97
97
|
# `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`,
|
98
98
|
# `audio-latency`, `unsolicited-call`, or `one-way-audio`.
|
99
99
|
# @return [FeedbackInstance] Created FeedbackInstance
|
@@ -132,10 +132,10 @@ module Twilio
|
|
132
132
|
# @param [String] quality_score The call quality expressed as an integer from `1`
|
133
133
|
# to `5` where `1` represents very poor call quality and `5` represents a perfect
|
134
134
|
# call.
|
135
|
-
# @param [feedback.Issues] issue One or more issues experienced during the
|
136
|
-
# The issues can be: `imperfect-audio`, `dropped-call`,
|
137
|
-
# `post-dial-delay`, `digits-not-captured`,
|
138
|
-
# or `one-way-audio`.
|
135
|
+
# @param [Array[feedback.Issues]] issue One or more issues experienced during the
|
136
|
+
# call. The issues can be: `imperfect-audio`, `dropped-call`,
|
137
|
+
# `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`,
|
138
|
+
# `audio-latency`, `unsolicited-call`, or `one-way-audio`.
|
139
139
|
# @return [FeedbackInstance] Updated FeedbackInstance
|
140
140
|
def update(quality_score: nil, issue: :unset)
|
141
141
|
data = Twilio::Values.of({
|
@@ -176,8 +176,8 @@ module Twilio
|
|
176
176
|
# @param [String] account_sid The unique id of the
|
177
177
|
# {Account}[https://www.twilio.com/docs/iam/api/account] responsible for this
|
178
178
|
# resource.
|
179
|
-
# @param [String] call_sid The unique string that
|
180
|
-
#
|
179
|
+
# @param [String] call_sid The unique string that we created to identify this Call
|
180
|
+
# resource.
|
181
181
|
# @return [FeedbackInstance] FeedbackInstance
|
182
182
|
def initialize(version, payload, account_sid: nil, call_sid: nil)
|
183
183
|
super(version)
|
@@ -227,7 +227,7 @@ module Twilio
|
|
227
227
|
end
|
228
228
|
|
229
229
|
##
|
230
|
-
# @return [feedback.Issues] Issues experienced during the call
|
230
|
+
# @return [Array[feedback.Issues]] Issues experienced during the call
|
231
231
|
def issues
|
232
232
|
@properties['issues']
|
233
233
|
end
|
@@ -249,8 +249,8 @@ module Twilio
|
|
249
249
|
# @param [String] quality_score The call quality expressed as an integer from `1`
|
250
250
|
# to `5` where `1` represents very poor call quality and `5` represents a perfect
|
251
251
|
# call.
|
252
|
-
# @param [feedback.Issues] issue A list of one or more issues experienced
|
253
|
-
# the call. Issues can be: `imperfect-audio`, `dropped-call`,
|
252
|
+
# @param [Array[feedback.Issues]] issue A list of one or more issues experienced
|
253
|
+
# during the call. Issues can be: `imperfect-audio`, `dropped-call`,
|
254
254
|
# `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`,
|
255
255
|
# `audio-latency`, `unsolicited-call`, or `one-way-audio`.
|
256
256
|
# @return [FeedbackInstance] Created FeedbackInstance
|
@@ -270,10 +270,10 @@ module Twilio
|
|
270
270
|
# @param [String] quality_score The call quality expressed as an integer from `1`
|
271
271
|
# to `5` where `1` represents very poor call quality and `5` represents a perfect
|
272
272
|
# call.
|
273
|
-
# @param [feedback.Issues] issue One or more issues experienced during the
|
274
|
-
# The issues can be: `imperfect-audio`, `dropped-call`,
|
275
|
-
# `post-dial-delay`, `digits-not-captured`,
|
276
|
-
# or `one-way-audio`.
|
273
|
+
# @param [Array[feedback.Issues]] issue One or more issues experienced during the
|
274
|
+
# call. The issues can be: `imperfect-audio`, `dropped-call`,
|
275
|
+
# `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`,
|
276
|
+
# `audio-latency`, `unsolicited-call`, or `one-way-audio`.
|
277
277
|
# @return [FeedbackInstance] Updated FeedbackInstance
|
278
278
|
def update(quality_score: nil, issue: :unset)
|
279
279
|
context.update(quality_score: quality_score, issue: issue, )
|
@@ -33,10 +33,10 @@ module Twilio
|
|
33
33
|
|
34
34
|
##
|
35
35
|
# Create the RecordingInstance
|
36
|
-
# @param [String] recording_status_callback_event The recording status
|
37
|
-
# which we should call the `recording_status_callback` URL. Can be:
|
38
|
-
# `completed` and `absent` and the default is `completed`. Separate
|
39
|
-
# values with a space.
|
36
|
+
# @param [Array[String]] recording_status_callback_event The recording status
|
37
|
+
# events on which we should call the `recording_status_callback` URL. Can be:
|
38
|
+
# `in-progress`, `completed` and `absent` and the default is `completed`. Separate
|
39
|
+
# multiple event values with a space.
|
40
40
|
# @param [String] recording_status_callback The URL we should call using the
|
41
41
|
# `recording_status_callback_method` on each recording event specified in
|
42
42
|
# `recording_status_callback_event`. For more information, see
|
@@ -52,8 +52,8 @@ module Twilio
|
|
52
52
|
# `status_callback_method` to send status information to your application.
|
53
53
|
# @param [String] status_callback_method The HTTP method we should use to call
|
54
54
|
# `status_callback`. Can be: `GET` and `POST` and defaults to `POST`.
|
55
|
-
# @param [String] status_callback_event The conference state changes that
|
56
|
-
# generate a call to `status_callback`. Can be: `initiated`, `ringing`,
|
55
|
+
# @param [Array[String]] status_callback_event The conference state changes that
|
56
|
+
# should generate a call to `status_callback`. Can be: `initiated`, `ringing`,
|
57
57
|
# `answered`, and `completed`. Separate multiple values with a space. The default
|
58
58
|
# value is `completed`.
|
59
59
|
# @param [String] label A label for this participant. If one is supplied, it may
|
@@ -105,10 +105,10 @@ module Twilio
|
|
105
105
|
# @param [String] conference_status_callback_method The HTTP method we should use
|
106
106
|
# to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to
|
107
107
|
# `POST`.
|
108
|
-
# @param [String] conference_status_callback_event The conference state
|
109
|
-
# that should generate a call to `conference_status_callback`. Can be:
|
110
|
-
# `end`, `join`, `leave`, `mute`, `hold`, and `speaker`. Separate
|
111
|
-
# with a space. Defaults to `start end`.
|
108
|
+
# @param [Array[String]] conference_status_callback_event The conference state
|
109
|
+
# changes that should generate a call to `conference_status_callback`. Can be:
|
110
|
+
# `start`, `end`, `join`, `leave`, `mute`, `hold`, and `speaker`. Separate
|
111
|
+
# multiple values with a space. Defaults to `start end`.
|
112
112
|
# @param [String] recording_channels The recording channels for the final
|
113
113
|
# recording. Can be: `mono` or `dual` and the default is `mono`.
|
114
114
|
# @param [String] recording_status_callback The URL that we should call using the
|
@@ -128,11 +128,11 @@ module Twilio
|
|
128
128
|
# @param [String] conference_recording_status_callback_method The HTTP method we
|
129
129
|
# should use to call `conference_recording_status_callback`. Can be: `GET` or
|
130
130
|
# `POST` and defaults to `POST`.
|
131
|
-
# @param [String] recording_status_callback_event The recording state
|
132
|
-
# should generate a call to `recording_status_callback`. Can be:
|
133
|
-
# `completed`, and `failed`. Separate multiple values with a space.
|
134
|
-
# value is `in-progress completed failed`.
|
135
|
-
# @param [String] conference_recording_status_callback_event The conference
|
131
|
+
# @param [Array[String]] recording_status_callback_event The recording state
|
132
|
+
# changes that should generate a call to `recording_status_callback`. Can be:
|
133
|
+
# `in-progress`, `completed`, and `failed`. Separate multiple values with a space.
|
134
|
+
# The default value is `in-progress completed failed`.
|
135
|
+
# @param [Array[String]] conference_recording_status_callback_event The conference
|
136
136
|
# recording state changes that generate a call to
|
137
137
|
# `conference_recording_status_callback`. Can be: `in-progress`, `completed`, and
|
138
138
|
# `failed`. Separate multiple values with a space. The default value is
|
@@ -189,7 +189,7 @@ module Twilio
|
|
189
189
|
# the resource. It can be up to 64 characters long.
|
190
190
|
# @param [String] homepage_url A public URL where users can obtain more
|
191
191
|
# information about this Connect App.
|
192
|
-
# @param [connect_app.Permission] permissions A comma-separated list of the
|
192
|
+
# @param [Array[connect_app.Permission]] permissions A comma-separated list of the
|
193
193
|
# permissions you will request from the users of this ConnectApp. Can include:
|
194
194
|
# `get-all` and `post-all`.
|
195
195
|
# @return [ConnectAppInstance] Updated ConnectAppInstance
|
@@ -331,7 +331,7 @@ module Twilio
|
|
331
331
|
end
|
332
332
|
|
333
333
|
##
|
334
|
-
# @return [connect_app.Permission] The set of permissions that your ConnectApp requests
|
334
|
+
# @return [Array[connect_app.Permission]] The set of permissions that your ConnectApp requests
|
335
335
|
def permissions
|
336
336
|
@properties['permissions']
|
337
337
|
end
|
@@ -369,7 +369,7 @@ module Twilio
|
|
369
369
|
# the resource. It can be up to 64 characters long.
|
370
370
|
# @param [String] homepage_url A public URL where users can obtain more
|
371
371
|
# information about this Connect App.
|
372
|
-
# @param [connect_app.Permission] permissions A comma-separated list of the
|
372
|
+
# @param [Array[connect_app.Permission]] permissions A comma-separated list of the
|
373
373
|
# permissions you will request from the users of this ConnectApp. Can include:
|
374
374
|
# `get-all` and `post-all`.
|
375
375
|
# @return [ConnectAppInstance] Updated ConnectAppInstance
|