twilio-ruby 5.45.0 → 5.60.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.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop_todo.yml +7 -7
- data/.travis.yml +41 -28
- data/CHANGES.md +456 -0
- data/Gemfile +1 -0
- data/LICENSE +1 -1
- data/README.md +29 -6
- data/examples/examples.rb +1 -1
- data/lib/twilio-ruby/framework/{domain.rb → rest/domain.rb} +0 -0
- data/lib/twilio-ruby/framework/{error.rb → rest/error.rb} +0 -0
- data/lib/twilio-ruby/framework/{helper.rb → rest/helper.rb} +0 -0
- data/lib/twilio-ruby/framework/{obsolete_client.rb → rest/obsolete_client.rb} +0 -0
- data/lib/twilio-ruby/framework/{page.rb → rest/page.rb} +0 -0
- data/lib/twilio-ruby/framework/{resource.rb → rest/resource.rb} +0 -0
- data/lib/twilio-ruby/framework/{version.rb → rest/version.rb} +0 -0
- data/lib/twilio-ruby/http/http_client.rb +15 -3
- data/lib/twilio-ruby/http.rb +5 -0
- data/lib/twilio-ruby/jwt/access_token.rb +13 -0
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +40 -40
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +57 -16
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +23 -19
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +17 -10
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +7 -7
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
- 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/api/v2010.rb +5 -4
- data/lib/twilio-ruby/rest/api.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -12
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +20 -10
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +20 -12
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -12
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -11
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +14 -10
- data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
- 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/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
- 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/channel.rb +6 -6
- 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/chat/v2/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
- data/lib/twilio-ruby/rest/client.rb +22 -1
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +13 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +32 -2
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +312 -0
- 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/configuration/notification.rb +18 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +17 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +13 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +324 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +466 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +52 -1
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +23 -0
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +442 -0
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +43 -1
- data/lib/twilio-ruby/rest/conversations/v1.rb +32 -20
- data/lib/twilio-ruby/rest/conversations.rb +6 -0
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +16 -9
- data/lib/twilio-ruby/rest/events/v1/schema/{schema_version.rb → version.rb} +41 -41
- data/lib/twilio-ruby/rest/events/v1/schema.rb +16 -16
- 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/sink.rb +49 -11
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +139 -9
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +15 -8
- data/lib/twilio-ruby/rest/events/v1.rb +20 -16
- data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +25 -4
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +101 -83
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1.rb +16 -13
- data/lib/twilio-ruby/rest/flex_api.rb +1 -1
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +233 -0
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +45 -0
- data/lib/twilio-ruby/rest/frontline_api.rb +47 -0
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +434 -0
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +22 -22
- data/lib/twilio-ruby/rest/insights/v1/room.rb +55 -43
- data/lib/twilio-ruby/rest/insights/v1.rb +18 -9
- data/lib/twilio-ruby/rest/insights.rb +7 -1
- 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/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +10 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
- 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/channel.rb +3 -3
- 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/ip_messaging/v2/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +10 -8
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
- data/lib/twilio-ruby/rest/lookups/v1.rb +5 -4
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +384 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +390 -0
- data/lib/twilio-ruby/rest/media/v1.rb +60 -0
- data/lib/twilio-ruby/rest/media.rb +56 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +272 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +424 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +150 -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/messaging/v1/service/us_app_to_person.rb +433 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +129 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +144 -26
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +111 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +35 -4
- data/lib/twilio-ruby/rest/messaging.rb +20 -0
- data/lib/twilio-ruby/rest/monitor/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/notify/v1.rb +10 -8
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +59 -14
- 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/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.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +14 -10
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
- 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/authorization_document.rb +13 -13
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
- data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
- 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/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
- data/lib/twilio-ruby/rest/preview.rb +4 -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/country.rb +280 -0
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +225 -0
- 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/pricing/v2.rb +37 -0
- data/lib/twilio-ruby/rest/pricing.rb +19 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.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.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
- 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/execution_step_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.rb +1 -9
- 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.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
- data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +86 -13
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +231 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +49 -4
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +371 -0
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
- data/lib/twilio-ruby/rest/supersim/v1.rb +41 -20
- data/lib/twilio-ruby/rest/supersim.rb +9 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +25 -52
- 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_list.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_map.rb +18 -40
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +14 -38
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +17 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +48 -24
- 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 +17 -13
- 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/worker.rb +23 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +37 -28
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +20 -4
- data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
- 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/customer_profiles.rb +523 -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/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/trusthub/v1/trust_products.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +146 -0
- data/lib/twilio-ruby/rest/trusthub.rb +100 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +205 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +91 -18
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +47 -56
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +299 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +31 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -6
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +34 -15
- data/lib/twilio-ruby/rest/verify/v2/service.rb +61 -3
- data/lib/twilio-ruby/rest/verify/v2/template.rb +206 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +33 -8
- data/lib/twilio-ruby/rest/verify.rb +15 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -23
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -34
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- 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 -7
- data/lib/twilio-ruby/rest/video/v1/room.rb +25 -4
- data/lib/twilio-ruby/rest/video/v1.rb +20 -16
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
- data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
- data/lib/twilio-ruby/rest.rb +13 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +39 -8
- data/lib/twilio-ruby/version.rb +1 -1
- data/lib/twilio-ruby.rb +5 -15
- data/sonar-project.properties +13 -0
- data/twilio-ruby.gemspec +1 -1
- metadata +60 -826
- data/spec/framework/request_spec.rb +0 -36
- data/spec/framework/serialize_spec.rb +0 -80
- data/spec/framework/version_spec.rb +0 -219
- data/spec/holodeck/holodeck.rb +0 -66
- data/spec/holodeck/hologram.rb +0 -4
- data/spec/http/http_client_spec.rb +0 -122
- data/spec/integration/accounts/v1/auth_token_promotion_spec.rb +0 -44
- data/spec/integration/accounts/v1/credential/aws_spec.rb +0 -222
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +0 -222
- data/spec/integration/accounts/v1/credential_spec.rb +0 -12
- data/spec/integration/accounts/v1/secondary_auth_token_spec.rb +0 -69
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +0 -106
- data/spec/integration/api/v2010/account/address_spec.rb +0 -269
- data/spec/integration/api/v2010/account/application_spec.rb +0 -274
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +0 -137
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +0 -101
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +0 -101
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +0 -128
- data/spec/integration/api/v2010/account/balance_spec.rb +0 -44
- data/spec/integration/api/v2010/account/call/event_spec.rb +0 -102
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +0 -138
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +0 -149
- data/spec/integration/api/v2010/account/call/notification_spec.rb +0 -143
- data/spec/integration/api/v2010/account/call/payment_spec.rb +0 -135
- data/spec/integration/api/v2010/account/call/recording_spec.rb +0 -287
- data/spec/integration/api/v2010/account/call_spec.rb +0 -660
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +0 -768
- data/spec/integration/api/v2010/account/conference/recording_spec.rb +0 -234
- data/spec/integration/api/v2010/account/conference_spec.rb +0 -458
- data/spec/integration/api/v2010/account/connect_app_spec.rb +0 -197
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +0 -135
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +0 -220
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +0 -189
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +0 -189
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +0 -189
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +0 -370
- data/spec/integration/api/v2010/account/key_spec.rb +0 -176
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +0 -49
- data/spec/integration/api/v2010/account/message/media_spec.rb +0 -161
- data/spec/integration/api/v2010/account/message_spec.rb +0 -507
- data/spec/integration/api/v2010/account/new_key_spec.rb +0 -46
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +0 -46
- data/spec/integration/api/v2010/account/notification_spec.rb +0 -138
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +0 -185
- data/spec/integration/api/v2010/account/queue/member_spec.rb +0 -208
- data/spec/integration/api/v2010/account/queue_spec.rb +0 -244
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +0 -174
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +0 -165
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +0 -173
- data/spec/integration/api/v2010/account/recording_spec.rb +0 -184
- data/spec/integration/api/v2010/account/short_code_spec.rb +0 -179
- data/spec/integration/api/v2010/account/signing_key_spec.rb +0 -176
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +0 -252
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +0 -241
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping_spec.rb +0 -217
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping_spec.rb +0 -217
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping_spec.rb +0 -12
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping_spec.rb +0 -217
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping_spec.rb +0 -12
- data/spec/integration/api/v2010/account/sip/domain/auth_types_spec.rb +0 -12
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +0 -207
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +0 -217
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +0 -303
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +0 -254
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +0 -251
- data/spec/integration/api/v2010/account/sip_spec.rb +0 -12
- data/spec/integration/api/v2010/account/token_spec.rb +0 -71
- data/spec/integration/api/v2010/account/transcription_spec.rb +0 -166
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record_spec.rb +0 -110
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +0 -281
- data/spec/integration/api/v2010/account/usage_spec.rb +0 -12
- data/spec/integration/api/v2010/account/validation_request_spec.rb +0 -48
- data/spec/integration/api/v2010/account_spec.rb +0 -327
- data/spec/integration/autopilot/v1/assistant/defaults_spec.rb +0 -79
- data/spec/integration/autopilot/v1/assistant/dialogue_spec.rb +0 -46
- data/spec/integration/autopilot/v1/assistant/field_type/field_value_spec.rb +0 -207
- data/spec/integration/autopilot/v1/assistant/field_type_spec.rb +0 -242
- data/spec/integration/autopilot/v1/assistant/model_build_spec.rb +0 -236
- data/spec/integration/autopilot/v1/assistant/query_spec.rb +0 -290
- data/spec/integration/autopilot/v1/assistant/style_sheet_spec.rb +0 -79
- data/spec/integration/autopilot/v1/assistant/task/field_spec.rb +0 -204
- data/spec/integration/autopilot/v1/assistant/task/sample_spec.rb +0 -249
- data/spec/integration/autopilot/v1/assistant/task/task_actions_spec.rb +0 -85
- data/spec/integration/autopilot/v1/assistant/task/task_statistics_spec.rb +0 -49
- data/spec/integration/autopilot/v1/assistant/task_spec.rb +0 -258
- data/spec/integration/autopilot/v1/assistant/webhook_spec.rb +0 -242
- data/spec/integration/autopilot/v1/assistant_spec.rb +0 -277
- data/spec/integration/autopilot/v1/restore_assistant_spec.rb +0 -53
- data/spec/integration/bulkexports/v1/export/day_spec.rb +0 -115
- data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +0 -129
- data/spec/integration/bulkexports/v1/export/job_spec.rb +0 -78
- data/spec/integration/bulkexports/v1/export_configuration_spec.rb +0 -77
- data/spec/integration/bulkexports/v1/export_spec.rb +0 -44
- data/spec/integration/chat/v1/credential_spec.rb +0 -219
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +0 -207
- data/spec/integration/chat/v1/service/channel/member_spec.rb +0 -280
- data/spec/integration/chat/v1/service/channel/message_spec.rb +0 -290
- data/spec/integration/chat/v1/service/channel_spec.rb +0 -272
- data/spec/integration/chat/v1/service/role_spec.rb +0 -260
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +0 -93
- data/spec/integration/chat/v1/service/user_spec.rb +0 -262
- data/spec/integration/chat/v1/service_spec.rb +0 -295
- data/spec/integration/chat/v2/credential_spec.rb +0 -219
- data/spec/integration/chat/v2/service/binding_spec.rb +0 -174
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +0 -207
- data/spec/integration/chat/v2/service/channel/member_spec.rb +0 -263
- data/spec/integration/chat/v2/service/channel/message_spec.rb +0 -406
- data/spec/integration/chat/v2/service/channel/webhook_spec.rb +0 -303
- data/spec/integration/chat/v2/service/channel_spec.rb +0 -282
- data/spec/integration/chat/v2/service/role_spec.rb +0 -260
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +0 -177
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +0 -247
- data/spec/integration/chat/v2/service/user_spec.rb +0 -270
- data/spec/integration/chat/v2/service_spec.rb +0 -350
- data/spec/integration/conversations/v1/configuration/webhook_spec.rb +0 -90
- data/spec/integration/conversations/v1/configuration_spec.rb +0 -87
- data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +0 -136
- data/spec/integration/conversations/v1/conversation/message_spec.rb +0 -409
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +0 -382
- data/spec/integration/conversations/v1/conversation/webhook_spec.rb +0 -282
- data/spec/integration/conversations/v1/conversation_spec.rb +0 -278
- data/spec/integration/conversations/v1/credential_spec.rb +0 -219
- data/spec/integration/conversations/v1/role_spec.rb +0 -249
- data/spec/integration/conversations/v1/service/binding_spec.rb +0 -166
- data/spec/integration/conversations/v1/service/configuration/notification_spec.rb +0 -115
- data/spec/integration/conversations/v1/service/configuration_spec.rb +0 -87
- data/spec/integration/conversations/v1/service/conversation/message/delivery_receipt_spec.rb +0 -144
- data/spec/integration/conversations/v1/service/conversation/message_spec.rb +0 -429
- data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +0 -407
- data/spec/integration/conversations/v1/service/conversation/webhook_spec.rb +0 -299
- data/spec/integration/conversations/v1/service/conversation_spec.rb +0 -289
- data/spec/integration/conversations/v1/service/role_spec.rb +0 -260
- data/spec/integration/conversations/v1/service/user_spec.rb +0 -236
- data/spec/integration/conversations/v1/service_spec.rb +0 -174
- data/spec/integration/conversations/v1/user_spec.rb +0 -226
- data/spec/integration/events/v1/event_type_spec.rb +0 -133
- data/spec/integration/events/v1/schema/schema_version_spec.rb +0 -126
- data/spec/integration/events/v1/schema_spec.rb +0 -46
- data/spec/integration/events/v1/sink/sink_test_spec.rb +0 -42
- data/spec/integration/events/v1/sink/sink_validate_spec.rb +0 -44
- data/spec/integration/events/v1/sink_spec.rb +0 -217
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +0 -91
- data/spec/integration/events/v1/subscription_spec.rb +0 -292
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +0 -125
- data/spec/integration/fax/v1/fax_spec.rb +0 -267
- data/spec/integration/flex_api/v1/channel_spec.rb +0 -188
- data/spec/integration/flex_api/v1/configuration_spec.rb +0 -554
- data/spec/integration/flex_api/v1/flex_flow_spec.rb +0 -259
- data/spec/integration/flex_api/v1/web_channel_spec.rb +0 -216
- data/spec/integration/insights/v1/call/event_spec.rb +0 -166
- data/spec/integration/insights/v1/call/metric_spec.rb +0 -154
- data/spec/integration/insights/v1/call/summary_spec.rb +0 -63
- data/spec/integration/insights/v1/call_spec.rb +0 -46
- data/spec/integration/insights/v1/room/participant_spec.rb +0 -147
- data/spec/integration/insights/v1/room_spec.rb +0 -164
- data/spec/integration/ip_messaging/v1/credential_spec.rb +0 -219
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +0 -207
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +0 -280
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +0 -290
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +0 -272
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +0 -260
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +0 -93
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +0 -262
- data/spec/integration/ip_messaging/v1/service_spec.rb +0 -295
- data/spec/integration/ip_messaging/v2/credential_spec.rb +0 -219
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +0 -174
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +0 -207
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +0 -263
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +0 -406
- data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +0 -303
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +0 -282
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +0 -260
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +0 -177
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +0 -247
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +0 -270
- data/spec/integration/ip_messaging/v2/service_spec.rb +0 -350
- data/spec/integration/lookups/v1/phone_number_spec.rb +0 -336
- data/spec/integration/messaging/v1/deactivation_spec.rb +0 -40
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +0 -173
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +0 -198
- data/spec/integration/messaging/v1/service/short_code_spec.rb +0 -176
- data/spec/integration/messaging/v1/service_spec.rb +0 -267
- data/spec/integration/monitor/v1/alert_spec.rb +0 -138
- data/spec/integration/monitor/v1/event_spec.rb +0 -148
- data/spec/integration/notify/v1/credential_spec.rb +0 -219
- data/spec/integration/notify/v1/service/binding_spec.rb +0 -222
- data/spec/integration/notify/v1/service/notification_spec.rb +0 -98
- data/spec/integration/notify/v1/service_spec.rb +0 -289
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +0 -620
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb +0 -195
- data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +0 -258
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +0 -238
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_type_spec.rb +0 -141
- data/spec/integration/numbers/v2/regulatory_compliance/regulation_spec.rb +0 -181
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +0 -250
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_type_spec.rb +0 -131
- data/spec/integration/numbers/v2/regulatory_compliance_spec.rb +0 -12
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +0 -115
- data/spec/integration/preview/bulk_exports/export/export_custom_job_spec.rb +0 -129
- data/spec/integration/preview/bulk_exports/export/job_spec.rb +0 -78
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +0 -77
- data/spec/integration/preview/bulk_exports/export_spec.rb +0 -44
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +0 -234
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +0 -228
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +0 -244
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +0 -232
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +0 -241
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +0 -110
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +0 -224
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +0 -389
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +0 -121
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +0 -142
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +0 -162
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +0 -250
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +0 -201
- data/spec/integration/preview/sync/service/document_spec.rb +0 -254
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +0 -255
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +0 -201
- data/spec/integration/preview/sync/service/sync_list_spec.rb +0 -205
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +0 -255
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +0 -201
- data/spec/integration/preview/sync/service/sync_map_spec.rb +0 -205
- data/spec/integration/preview/sync/service_spec.rb +0 -241
- data/spec/integration/preview/trusted_comms/branded_channel/channel_spec.rb +0 -50
- data/spec/integration/preview/trusted_comms/branded_channel_spec.rb +0 -47
- data/spec/integration/preview/trusted_comms/brands_information_spec.rb +0 -45
- data/spec/integration/preview/trusted_comms/cps_spec.rb +0 -44
- data/spec/integration/preview/trusted_comms/current_call_spec.rb +0 -58
- data/spec/integration/preview/understand/assistant/assistant_fallback_actions_spec.rb +0 -79
- data/spec/integration/preview/understand/assistant/assistant_initiation_actions_spec.rb +0 -79
- data/spec/integration/preview/understand/assistant/dialogue_spec.rb +0 -46
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +0 -207
- data/spec/integration/preview/understand/assistant/field_type_spec.rb +0 -242
- data/spec/integration/preview/understand/assistant/model_build_spec.rb +0 -236
- data/spec/integration/preview/understand/assistant/query_spec.rb +0 -302
- data/spec/integration/preview/understand/assistant/style_sheet_spec.rb +0 -79
- data/spec/integration/preview/understand/assistant/task/field_spec.rb +0 -204
- data/spec/integration/preview/understand/assistant/task/sample_spec.rb +0 -249
- data/spec/integration/preview/understand/assistant/task/task_actions_spec.rb +0 -85
- data/spec/integration/preview/understand/assistant/task/task_statistics_spec.rb +0 -49
- data/spec/integration/preview/understand/assistant/task_spec.rb +0 -258
- data/spec/integration/preview/understand/assistant_spec.rb +0 -269
- data/spec/integration/preview/wireless/command_spec.rb +0 -167
- data/spec/integration/preview/wireless/rate_plan_spec.rb +0 -257
- data/spec/integration/preview/wireless/sim/usage_spec.rb +0 -50
- data/spec/integration/preview/wireless/sim_spec.rb +0 -207
- data/spec/integration/pricing/v1/messaging/country_spec.rb +0 -137
- data/spec/integration/pricing/v1/messaging_spec.rb +0 -12
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +0 -128
- data/spec/integration/pricing/v1/phone_number_spec.rb +0 -12
- data/spec/integration/pricing/v1/voice/country_spec.rb +0 -138
- data/spec/integration/pricing/v1/voice/number_spec.rb +0 -55
- data/spec/integration/pricing/v1/voice_spec.rb +0 -12
- data/spec/integration/pricing/v2/voice/country_spec.rb +0 -179
- data/spec/integration/pricing/v2/voice/number_spec.rb +0 -61
- data/spec/integration/pricing/v2/voice_spec.rb +0 -12
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +0 -231
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +0 -133
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +0 -163
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +0 -240
- data/spec/integration/proxy/v1/service/session_spec.rb +0 -225
- data/spec/integration/proxy/v1/service/short_code_spec.rb +0 -225
- data/spec/integration/proxy/v1/service_spec.rb +0 -214
- data/spec/integration/serverless/v1/service/asset/asset_version_spec.rb +0 -93
- data/spec/integration/serverless/v1/service/asset_spec.rb +0 -202
- data/spec/integration/serverless/v1/service/build/build_status_spec.rb +0 -48
- data/spec/integration/serverless/v1/service/build_spec.rb +0 -214
- data/spec/integration/serverless/v1/service/environment/deployment_spec.rb +0 -133
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +0 -97
- data/spec/integration/serverless/v1/service/environment/variable_spec.rb +0 -207
- data/spec/integration/serverless/v1/service/environment_spec.rb +0 -170
- data/spec/integration/serverless/v1/service/function/function_version/function_version_content_spec.rb +0 -51
- data/spec/integration/serverless/v1/service/function/function_version_spec.rb +0 -96
- data/spec/integration/serverless/v1/service/function_spec.rb +0 -202
- data/spec/integration/serverless/v1/service_spec.rb +0 -205
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +0 -50
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +0 -53
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +0 -99
- data/spec/integration/studio/v1/flow/engagement_spec.rb +0 -168
- data/spec/integration/studio/v1/flow/execution/execution_context_spec.rb +0 -50
- data/spec/integration/studio/v1/flow/execution/execution_step/execution_step_context_spec.rb +0 -53
- data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +0 -100
- data/spec/integration/studio/v1/flow/execution_spec.rb +0 -214
- data/spec/integration/studio/v1/flow_spec.rb +0 -114
- data/spec/integration/studio/v2/flow/execution/execution_context_spec.rb +0 -50
- data/spec/integration/studio/v2/flow/execution/execution_step/execution_step_context_spec.rb +0 -53
- data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +0 -100
- data/spec/integration/studio/v2/flow/execution_spec.rb +0 -211
- data/spec/integration/studio/v2/flow/flow_revision_spec.rb +0 -110
- data/spec/integration/studio/v2/flow/test_user_spec.rb +0 -85
- data/spec/integration/studio/v2/flow_spec.rb +0 -251
- data/spec/integration/studio/v2/flow_validate_spec.rb +0 -46
- data/spec/integration/supersim/v1/command_spec.rb +0 -184
- data/spec/integration/supersim/v1/fleet_spec.rb +0 -214
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +0 -176
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +0 -219
- data/spec/integration/supersim/v1/network_spec.rb +0 -137
- data/spec/integration/supersim/v1/sim_spec.rb +0 -323
- data/spec/integration/supersim/v1/usage_record_spec.rb +0 -647
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +0 -201
- data/spec/integration/sync/v1/service/document_spec.rb +0 -256
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +0 -257
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +0 -201
- data/spec/integration/sync/v1/service/sync_list_spec.rb +0 -252
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +0 -201
- data/spec/integration/sync/v1/service/sync_map_spec.rb +0 -252
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +0 -47
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +0 -244
- data/spec/integration/sync/v1/service_spec.rb +0 -261
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +0 -232
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +0 -163
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +0 -222
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +0 -312
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +0 -101
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +0 -83
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +0 -107
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +0 -145
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +0 -290
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +0 -325
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +0 -191
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +0 -185
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +0 -91
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +0 -88
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +0 -69
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +0 -115
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +0 -290
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +0 -96
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +0 -57
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +0 -70
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +0 -266
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +0 -93
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +0 -72
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +0 -104
- data/spec/integration/taskrouter/v1/workspace_spec.rb +0 -291
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +0 -189
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +0 -189
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +0 -248
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +0 -264
- data/spec/integration/trunking/v1/trunk/recording_spec.rb +0 -75
- data/spec/integration/trunking/v1/trunk_spec.rb +0 -281
- data/spec/integration/verify/v2/form_spec.rb +0 -47
- data/spec/integration/verify/v2/service/access_token_spec.rb +0 -44
- data/spec/integration/verify/v2/service/entity/challenge_spec.rb +0 -288
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +0 -277
- data/spec/integration/verify/v2/service/entity_spec.rb +0 -201
- data/spec/integration/verify/v2/service/messaging_configuration_spec.rb +0 -228
- data/spec/integration/verify/v2/service/rate_limit/bucket_spec.rb +0 -245
- data/spec/integration/verify/v2/service/rate_limit_spec.rb +0 -217
- data/spec/integration/verify/v2/service/verification_check_spec.rb +0 -80
- data/spec/integration/verify/v2/service/verification_spec.rb +0 -318
- data/spec/integration/verify/v2/service/webhook_spec.rb +0 -258
- data/spec/integration/verify/v2/service_spec.rb +0 -279
- data/spec/integration/video/v1/composition_hook_spec.rb +0 -407
- data/spec/integration/video/v1/composition_settings_spec.rb +0 -85
- data/spec/integration/video/v1/composition_spec.rb +0 -347
- data/spec/integration/video/v1/recording_settings_spec.rb +0 -85
- data/spec/integration/video/v1/recording_spec.rb +0 -176
- data/spec/integration/video/v1/room/recording_spec.rb +0 -185
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +0 -94
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribe_rule_spec.rb +0 -103
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +0 -95
- data/spec/integration/video/v1/room/room_participant_spec.rb +0 -187
- data/spec/integration/video/v1/room/room_recording_rule_spec.rb +0 -89
- data/spec/integration/video/v1/room_spec.rb +0 -296
- data/spec/integration/voice/v1/byoc_trunk_spec.rb +0 -245
- data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +0 -242
- data/spec/integration/voice/v1/connection_policy_spec.rb +0 -221
- data/spec/integration/voice/v1/dialing_permissions/bulk_country_update_spec.rb +0 -45
- data/spec/integration/voice/v1/dialing_permissions/country/highrisk_special_prefix_spec.rb +0 -60
- data/spec/integration/voice/v1/dialing_permissions/country_spec.rb +0 -110
- data/spec/integration/voice/v1/dialing_permissions/settings_spec.rb +0 -75
- data/spec/integration/voice/v1/dialing_permissions_spec.rb +0 -12
- data/spec/integration/voice/v1/ip_record_spec.rb +0 -219
- data/spec/integration/voice/v1/source_ip_mapping_spec.rb +0 -216
- data/spec/integration/wireless/v1/command_spec.rb +0 -286
- data/spec/integration/wireless/v1/rate_plan_spec.rb +0 -277
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +0 -88
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +0 -114
- data/spec/integration/wireless/v1/sim_spec.rb +0 -325
- data/spec/integration/wireless/v1/usage_record_spec.rb +0 -110
- data/spec/jwt/access_token_spec.rb +0 -159
- data/spec/jwt/client_capability_spec.rb +0 -104
- data/spec/jwt/task_router_spec.rb +0 -172
- data/spec/rack/twilio_webhook_authentication_spec.rb +0 -106
- data/spec/rest/client_spec.rb +0 -255
- data/spec/security/request_validator_spec.rb +0 -125
- data/spec/spec_helper.rb +0 -38
- data/spec/support/fakeweb.rb +0 -2
- data/spec/twilio_spec.rb +0 -17
- data/spec/twiml/messaging_response_spec.rb +0 -235
- data/spec/twiml/voice_response_spec.rb +0 -847
- data/spec/util/configuration_spec.rb +0 -33
- data/spec/util/url_encode_spec.rb +0 -12
|
@@ -57,8 +57,8 @@ module Twilio
|
|
|
57
57
|
# Lists ChannelInstance records from the API as a list.
|
|
58
58
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
59
59
|
# memory before returning.
|
|
60
|
-
# @param [channel.ChannelType] type The visibility of the Channels to read.
|
|
61
|
-
# be: `public` or `private` and defaults to `public`.
|
|
60
|
+
# @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
|
|
61
|
+
# Can be: `public` or `private` and defaults to `public`.
|
|
62
62
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
63
63
|
# guarantees to never return more than limit. Default is no limit
|
|
64
64
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -74,8 +74,8 @@ module Twilio
|
|
|
74
74
|
# Streams ChannelInstance records from the API as an Enumerable.
|
|
75
75
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
76
76
|
# is reached.
|
|
77
|
-
# @param [channel.ChannelType] type The visibility of the Channels to read.
|
|
78
|
-
# be: `public` or `private` and defaults to `public`.
|
|
77
|
+
# @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
|
|
78
|
+
# Can be: `public` or `private` and defaults to `public`.
|
|
79
79
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
80
80
|
# guarantees to never return more than limit. Default is no limit.
|
|
81
81
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -108,8 +108,8 @@ module Twilio
|
|
|
108
108
|
##
|
|
109
109
|
# Retrieve a single page of ChannelInstance records from the API.
|
|
110
110
|
# Request is executed immediately.
|
|
111
|
-
# @param [channel.ChannelType] type The visibility of the Channels to read.
|
|
112
|
-
# be: `public` or `private` and defaults to `public`.
|
|
111
|
+
# @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
|
|
112
|
+
# Can be: `public` or `private` and defaults to `public`.
|
|
113
113
|
# @param [String] page_token PageToken provided by the API
|
|
114
114
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
115
115
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -34,10 +34,10 @@ module Twilio
|
|
|
34
34
|
# @param [role.RoleType] type The type of role. Can be: `channel` for
|
|
35
35
|
# {Channel}[https://www.twilio.com/docs/chat/api/channels] roles or `deployment`
|
|
36
36
|
# for {Service}[https://www.twilio.com/docs/chat/api/services] roles.
|
|
37
|
-
# @param [String] permission A permission that you grant to the new role.
|
|
38
|
-
# permission can be granted per parameter. To assign more than one
|
|
39
|
-
# repeat this parameter for each permission value. The values for this
|
|
40
|
-
# depend on the role's `type` and are described in the documentation.
|
|
37
|
+
# @param [Array[String]] permission A permission that you grant to the new role.
|
|
38
|
+
# Only one permission can be granted per parameter. To assign more than one
|
|
39
|
+
# permission, repeat this parameter for each permission value. The values for this
|
|
40
|
+
# parameter depend on the role's `type` and are described in the documentation.
|
|
41
41
|
# @return [RoleInstance] Created RoleInstance
|
|
42
42
|
def create(friendly_name: nil, type: nil, permission: nil)
|
|
43
43
|
data = Twilio::Values.of({
|
|
@@ -203,8 +203,8 @@ module Twilio
|
|
|
203
203
|
|
|
204
204
|
##
|
|
205
205
|
# Update the RoleInstance
|
|
206
|
-
# @param [String] permission A permission that you grant to the role. Only
|
|
207
|
-
# permission can be granted per parameter. To assign more than one permission,
|
|
206
|
+
# @param [Array[String]] permission A permission that you grant to the role. Only
|
|
207
|
+
# one permission can be granted per parameter. To assign more than one permission,
|
|
208
208
|
# repeat this parameter for each permission value. The values for this parameter
|
|
209
209
|
# depend on the role's `type` and are described in the documentation.
|
|
210
210
|
# @return [RoleInstance] Updated RoleInstance
|
|
@@ -305,7 +305,7 @@ module Twilio
|
|
|
305
305
|
end
|
|
306
306
|
|
|
307
307
|
##
|
|
308
|
-
# @return [String] An array of the permissions the role has been granted
|
|
308
|
+
# @return [Array[String]] An array of the permissions the role has been granted
|
|
309
309
|
def permissions
|
|
310
310
|
@properties['permissions']
|
|
311
311
|
end
|
|
@@ -344,8 +344,8 @@ module Twilio
|
|
|
344
344
|
|
|
345
345
|
##
|
|
346
346
|
# Update the RoleInstance
|
|
347
|
-
# @param [String] permission A permission that you grant to the role. Only
|
|
348
|
-
# permission can be granted per parameter. To assign more than one permission,
|
|
347
|
+
# @param [Array[String]] permission A permission that you grant to the role. Only
|
|
348
|
+
# one permission can be granted per parameter. To assign more than one permission,
|
|
349
349
|
# repeat this parameter for each permission value. The values for this parameter
|
|
350
350
|
# depend on the role's `type` and are described in the documentation.
|
|
351
351
|
# @return [RoleInstance] Updated RoleInstance
|
|
@@ -246,8 +246,8 @@ module Twilio
|
|
|
246
246
|
# `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
|
|
247
247
|
# the default is `POST`. See {Webhook
|
|
248
248
|
# Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
|
|
249
|
-
# @param [String] webhook_filters The list of WebHook events that are
|
|
250
|
-
# this Service instance. See {Webhook
|
|
249
|
+
# @param [Array[String]] webhook_filters The list of WebHook events that are
|
|
250
|
+
# enabled for this Service instance. See {Webhook
|
|
251
251
|
# Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
|
|
252
252
|
# @param [String] webhooks_on_message_send_url The URL of the webhook to call in
|
|
253
253
|
# response to the `on_message_send` event using the
|
|
@@ -621,7 +621,7 @@ module Twilio
|
|
|
621
621
|
end
|
|
622
622
|
|
|
623
623
|
##
|
|
624
|
-
# @return [String] The list of WebHook events that are enabled for this Service instance
|
|
624
|
+
# @return [Array[String]] The list of WebHook events that are enabled for this Service instance
|
|
625
625
|
def webhook_filters
|
|
626
626
|
@properties['webhook_filters']
|
|
627
627
|
end
|
|
@@ -716,8 +716,8 @@ module Twilio
|
|
|
716
716
|
# `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
|
|
717
717
|
# the default is `POST`. See {Webhook
|
|
718
718
|
# Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
|
|
719
|
-
# @param [String] webhook_filters The list of WebHook events that are
|
|
720
|
-
# this Service instance. See {Webhook
|
|
719
|
+
# @param [Array[String]] webhook_filters The list of WebHook events that are
|
|
720
|
+
# enabled for this Service instance. See {Webhook
|
|
721
721
|
# Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
|
|
722
722
|
# @param [String] webhooks_on_message_send_url The URL of the webhook to call in
|
|
723
723
|
# response to the `on_message_send` event using the
|
|
@@ -26,11 +26,12 @@ module Twilio
|
|
|
26
26
|
# @return [Twilio::REST::Chat::V1::CredentialList]
|
|
27
27
|
def credentials(sid=:unset)
|
|
28
28
|
if sid.nil?
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
raise ArgumentError, 'sid cannot be nil'
|
|
30
|
+
end
|
|
31
|
+
if sid == :unset
|
|
32
|
+
@credentials ||= CredentialList.new self
|
|
32
33
|
else
|
|
33
|
-
|
|
34
|
+
CredentialContext.new(self, sid)
|
|
34
35
|
end
|
|
35
36
|
end
|
|
36
37
|
|
|
@@ -41,11 +42,12 @@ module Twilio
|
|
|
41
42
|
# @return [Twilio::REST::Chat::V1::ServiceList]
|
|
42
43
|
def services(sid=:unset)
|
|
43
44
|
if sid.nil?
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
raise ArgumentError, 'sid cannot be nil'
|
|
46
|
+
end
|
|
47
|
+
if sid == :unset
|
|
48
|
+
@services ||= ServiceList.new self
|
|
47
49
|
else
|
|
48
|
-
|
|
50
|
+
ServiceContext.new(self, sid)
|
|
49
51
|
end
|
|
50
52
|
end
|
|
51
53
|
|
|
@@ -31,12 +31,12 @@ module Twilio
|
|
|
31
31
|
# Lists BindingInstance records from the API as a list.
|
|
32
32
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
33
33
|
# memory before returning.
|
|
34
|
-
# @param [binding.BindingType] binding_type The push technology used by the
|
|
34
|
+
# @param [Array[binding.BindingType]] binding_type The push technology used by the
|
|
35
35
|
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
|
|
36
36
|
# notification
|
|
37
37
|
# configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
|
|
38
38
|
# for more info.
|
|
39
|
-
# @param [String] identity The
|
|
39
|
+
# @param [Array[String]] identity The
|
|
40
40
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
41
41
|
# of the resources to read. See {access
|
|
42
42
|
# tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
|
|
@@ -60,12 +60,12 @@ module Twilio
|
|
|
60
60
|
# Streams BindingInstance records from the API as an Enumerable.
|
|
61
61
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
62
62
|
# is reached.
|
|
63
|
-
# @param [binding.BindingType] binding_type The push technology used by the
|
|
63
|
+
# @param [Array[binding.BindingType]] binding_type The push technology used by the
|
|
64
64
|
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
|
|
65
65
|
# notification
|
|
66
66
|
# configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
|
|
67
67
|
# for more info.
|
|
68
|
-
# @param [String] identity The
|
|
68
|
+
# @param [Array[String]] identity The
|
|
69
69
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
70
70
|
# of the resources to read. See {access
|
|
71
71
|
# tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
|
|
@@ -101,12 +101,12 @@ module Twilio
|
|
|
101
101
|
##
|
|
102
102
|
# Retrieve a single page of BindingInstance records from the API.
|
|
103
103
|
# Request is executed immediately.
|
|
104
|
-
# @param [binding.BindingType] binding_type The push technology used by the
|
|
104
|
+
# @param [Array[binding.BindingType]] binding_type The push technology used by the
|
|
105
105
|
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
|
|
106
106
|
# notification
|
|
107
107
|
# configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
|
|
108
108
|
# for more info.
|
|
109
|
-
# @param [String] identity The
|
|
109
|
+
# @param [Array[String]] identity The
|
|
110
110
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
111
111
|
# of the resources to read. See {access
|
|
112
112
|
# tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
|
|
@@ -325,7 +325,7 @@ module Twilio
|
|
|
325
325
|
end
|
|
326
326
|
|
|
327
327
|
##
|
|
328
|
-
# @return [String] The Programmable Chat message types the binding is subscribed to
|
|
328
|
+
# @return [Array[String]] The Programmable Chat message types the binding is subscribed to
|
|
329
329
|
def message_types
|
|
330
330
|
@properties['message_types']
|
|
331
331
|
end
|
|
@@ -58,7 +58,7 @@ module Twilio
|
|
|
58
58
|
# Lists InviteInstance records from the API as a list.
|
|
59
59
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
60
60
|
# memory before returning.
|
|
61
|
-
# @param [String] identity The
|
|
61
|
+
# @param [Array[String]] identity The
|
|
62
62
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
63
63
|
# of the resources to read. See {access
|
|
64
64
|
# tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
|
|
@@ -77,7 +77,7 @@ module Twilio
|
|
|
77
77
|
# Streams InviteInstance records from the API as an Enumerable.
|
|
78
78
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
79
79
|
# is reached.
|
|
80
|
-
# @param [String] identity The
|
|
80
|
+
# @param [Array[String]] identity The
|
|
81
81
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
82
82
|
# of the resources to read. See {access
|
|
83
83
|
# tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
|
|
@@ -113,7 +113,7 @@ module Twilio
|
|
|
113
113
|
##
|
|
114
114
|
# Retrieve a single page of InviteInstance records from the API.
|
|
115
115
|
# Request is executed immediately.
|
|
116
|
-
# @param [String] identity The
|
|
116
|
+
# @param [Array[String]] identity The
|
|
117
117
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
118
118
|
# of the resources to read. See {access
|
|
119
119
|
# tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
|
|
@@ -91,7 +91,7 @@ module Twilio
|
|
|
91
91
|
# Lists MemberInstance records from the API as a list.
|
|
92
92
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
93
93
|
# memory before returning.
|
|
94
|
-
# @param [String] identity The
|
|
94
|
+
# @param [Array[String]] identity The
|
|
95
95
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
96
96
|
# of the Member resources to read. See {access
|
|
97
97
|
# tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
|
|
@@ -110,7 +110,7 @@ module Twilio
|
|
|
110
110
|
# Streams MemberInstance records from the API as an Enumerable.
|
|
111
111
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
112
112
|
# is reached.
|
|
113
|
-
# @param [String] identity The
|
|
113
|
+
# @param [Array[String]] identity The
|
|
114
114
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
115
115
|
# of the Member resources to read. See {access
|
|
116
116
|
# tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
|
|
@@ -146,7 +146,7 @@ module Twilio
|
|
|
146
146
|
##
|
|
147
147
|
# Retrieve a single page of MemberInstance records from the API.
|
|
148
148
|
# Request is executed immediately.
|
|
149
|
-
# @param [String] identity The
|
|
149
|
+
# @param [Array[String]] identity The
|
|
150
150
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
151
151
|
# of the Member resources to read. See {access
|
|
152
152
|
# tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
|
|
@@ -119,15 +119,16 @@ module Twilio
|
|
|
119
119
|
# `configuration.method`.
|
|
120
120
|
# @param [webhook.Method] configuration_method The HTTP method used to call
|
|
121
121
|
# `configuration.url`. Can be: `GET` or `POST` and the default is `POST`.
|
|
122
|
-
# @param [String] configuration_filters The events that cause us to call
|
|
123
|
-
# Channel Webhook. Used when `type` is `webhook`. This parameter takes only
|
|
124
|
-
# event. To specify more than one event, repeat this parameter for each event.
|
|
125
|
-
# the list of possible events, see {Webhook Event
|
|
122
|
+
# @param [Array[String]] configuration_filters The events that cause us to call
|
|
123
|
+
# the Channel Webhook. Used when `type` is `webhook`. This parameter takes only
|
|
124
|
+
# one event. To specify more than one event, repeat this parameter for each event.
|
|
125
|
+
# For the list of possible events, see {Webhook Event
|
|
126
126
|
# Triggers}[https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger].
|
|
127
|
-
# @param [String] configuration_triggers A string that will cause us to
|
|
128
|
-
# webhook when it is present in a message body. This parameter takes only
|
|
129
|
-
# trigger string. To specify more than one, repeat this parameter for each
|
|
130
|
-
# string up to a total of 5 trigger strings. Used only when `type` =
|
|
127
|
+
# @param [Array[String]] configuration_triggers A string that will cause us to
|
|
128
|
+
# call the webhook when it is present in a message body. This parameter takes only
|
|
129
|
+
# one trigger string. To specify more than one, repeat this parameter for each
|
|
130
|
+
# trigger string up to a total of 5 trigger strings. Used only when `type` =
|
|
131
|
+
# `trigger`.
|
|
131
132
|
# @param [String] configuration_flow_sid The SID of the Studio
|
|
132
133
|
# {Flow}[https://www.twilio.com/docs/studio/rest-api/flow] to call when an event
|
|
133
134
|
# in `configuration.filters` occurs. Used only when `type` is `studio`.
|
|
@@ -239,15 +240,16 @@ module Twilio
|
|
|
239
240
|
# `configuration.method`.
|
|
240
241
|
# @param [webhook.Method] configuration_method The HTTP method used to call
|
|
241
242
|
# `configuration.url`. Can be: `GET` or `POST` and the default is `POST`.
|
|
242
|
-
# @param [String] configuration_filters The events that cause us to call
|
|
243
|
-
# Channel Webhook. Used when `type` is `webhook`. This parameter takes only
|
|
244
|
-
# event. To specify more than one event, repeat this parameter for each event.
|
|
245
|
-
# the list of possible events, see {Webhook Event
|
|
243
|
+
# @param [Array[String]] configuration_filters The events that cause us to call
|
|
244
|
+
# the Channel Webhook. Used when `type` is `webhook`. This parameter takes only
|
|
245
|
+
# one event. To specify more than one event, repeat this parameter for each event.
|
|
246
|
+
# For the list of possible events, see {Webhook Event
|
|
246
247
|
# Triggers}[https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger].
|
|
247
|
-
# @param [String] configuration_triggers A string that will cause us to
|
|
248
|
-
# webhook when it is present in a message body. This parameter takes only
|
|
249
|
-
# trigger string. To specify more than one, repeat this parameter for each
|
|
250
|
-
# string up to a total of 5 trigger strings. Used only when `type` =
|
|
248
|
+
# @param [Array[String]] configuration_triggers A string that will cause us to
|
|
249
|
+
# call the webhook when it is present in a message body. This parameter takes only
|
|
250
|
+
# one trigger string. To specify more than one, repeat this parameter for each
|
|
251
|
+
# trigger string up to a total of 5 trigger strings. Used only when `type` =
|
|
252
|
+
# `trigger`.
|
|
251
253
|
# @param [String] configuration_flow_sid The SID of the Studio
|
|
252
254
|
# {Flow}[https://www.twilio.com/docs/studio/rest-api/flow] to call when an event
|
|
253
255
|
# in `configuration.filters` occurs. Used only when `type` = `studio`.
|
|
@@ -419,15 +421,16 @@ module Twilio
|
|
|
419
421
|
# `configuration.method`.
|
|
420
422
|
# @param [webhook.Method] configuration_method The HTTP method used to call
|
|
421
423
|
# `configuration.url`. Can be: `GET` or `POST` and the default is `POST`.
|
|
422
|
-
# @param [String] configuration_filters The events that cause us to call
|
|
423
|
-
# Channel Webhook. Used when `type` is `webhook`. This parameter takes only
|
|
424
|
-
# event. To specify more than one event, repeat this parameter for each event.
|
|
425
|
-
# the list of possible events, see {Webhook Event
|
|
424
|
+
# @param [Array[String]] configuration_filters The events that cause us to call
|
|
425
|
+
# the Channel Webhook. Used when `type` is `webhook`. This parameter takes only
|
|
426
|
+
# one event. To specify more than one event, repeat this parameter for each event.
|
|
427
|
+
# For the list of possible events, see {Webhook Event
|
|
426
428
|
# Triggers}[https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger].
|
|
427
|
-
# @param [String] configuration_triggers A string that will cause us to
|
|
428
|
-
# webhook when it is present in a message body. This parameter takes only
|
|
429
|
-
# trigger string. To specify more than one, repeat this parameter for each
|
|
430
|
-
# string up to a total of 5 trigger strings. Used only when `type` =
|
|
429
|
+
# @param [Array[String]] configuration_triggers A string that will cause us to
|
|
430
|
+
# call the webhook when it is present in a message body. This parameter takes only
|
|
431
|
+
# one trigger string. To specify more than one, repeat this parameter for each
|
|
432
|
+
# trigger string up to a total of 5 trigger strings. Used only when `type` =
|
|
433
|
+
# `trigger`.
|
|
431
434
|
# @param [String] configuration_flow_sid The SID of the Studio
|
|
432
435
|
# {Flow}[https://www.twilio.com/docs/studio/rest-api/flow] to call when an event
|
|
433
436
|
# in `configuration.filters` occurs. Used only when `type` = `studio`.
|
|
@@ -75,8 +75,8 @@ module Twilio
|
|
|
75
75
|
# Lists ChannelInstance records from the API as a list.
|
|
76
76
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
77
77
|
# memory before returning.
|
|
78
|
-
# @param [channel.ChannelType] type The visibility of the Channels to read.
|
|
79
|
-
# be: `public` or `private` and defaults to `public`.
|
|
78
|
+
# @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
|
|
79
|
+
# Can be: `public` or `private` and defaults to `public`.
|
|
80
80
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
81
81
|
# guarantees to never return more than limit. Default is no limit
|
|
82
82
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -92,8 +92,8 @@ module Twilio
|
|
|
92
92
|
# Streams ChannelInstance records from the API as an Enumerable.
|
|
93
93
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
94
94
|
# is reached.
|
|
95
|
-
# @param [channel.ChannelType] type The visibility of the Channels to read.
|
|
96
|
-
# be: `public` or `private` and defaults to `public`.
|
|
95
|
+
# @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
|
|
96
|
+
# Can be: `public` or `private` and defaults to `public`.
|
|
97
97
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
98
98
|
# guarantees to never return more than limit. Default is no limit.
|
|
99
99
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -126,8 +126,8 @@ module Twilio
|
|
|
126
126
|
##
|
|
127
127
|
# Retrieve a single page of ChannelInstance records from the API.
|
|
128
128
|
# Request is executed immediately.
|
|
129
|
-
# @param [channel.ChannelType] type The visibility of the Channels to read.
|
|
130
|
-
# be: `public` or `private` and defaults to `public`.
|
|
129
|
+
# @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
|
|
130
|
+
# Can be: `public` or `private` and defaults to `public`.
|
|
131
131
|
# @param [String] page_token PageToken provided by the API
|
|
132
132
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
133
133
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -34,10 +34,10 @@ module Twilio
|
|
|
34
34
|
# @param [role.RoleType] type The type of role. Can be: `channel` for
|
|
35
35
|
# {Channel}[https://www.twilio.com/docs/chat/channels] roles or `deployment` for
|
|
36
36
|
# {Service}[https://www.twilio.com/docs/chat/rest/service-resource] roles.
|
|
37
|
-
# @param [String] permission A permission that you grant to the new role.
|
|
38
|
-
# permission can be granted per parameter. To assign more than one
|
|
39
|
-
# repeat this parameter for each permission value. The values for this
|
|
40
|
-
# depend on the role's `type`.
|
|
37
|
+
# @param [Array[String]] permission A permission that you grant to the new role.
|
|
38
|
+
# Only one permission can be granted per parameter. To assign more than one
|
|
39
|
+
# permission, repeat this parameter for each permission value. The values for this
|
|
40
|
+
# parameter depend on the role's `type`.
|
|
41
41
|
# @return [RoleInstance] Created RoleInstance
|
|
42
42
|
def create(friendly_name: nil, type: nil, permission: nil)
|
|
43
43
|
data = Twilio::Values.of({
|
|
@@ -202,8 +202,8 @@ module Twilio
|
|
|
202
202
|
|
|
203
203
|
##
|
|
204
204
|
# Update the RoleInstance
|
|
205
|
-
# @param [String] permission A permission that you grant to the role. Only
|
|
206
|
-
# permission can be granted per parameter. To assign more than one permission,
|
|
205
|
+
# @param [Array[String]] permission A permission that you grant to the role. Only
|
|
206
|
+
# one permission can be granted per parameter. To assign more than one permission,
|
|
207
207
|
# repeat this parameter for each permission value. Note that the update action
|
|
208
208
|
# replaces all previously assigned permissions with those defined in the update
|
|
209
209
|
# action. To remove a permission, do not include it in the subsequent update
|
|
@@ -305,7 +305,7 @@ module Twilio
|
|
|
305
305
|
end
|
|
306
306
|
|
|
307
307
|
##
|
|
308
|
-
# @return [String] An array of the permissions the role has been granted
|
|
308
|
+
# @return [Array[String]] An array of the permissions the role has been granted
|
|
309
309
|
def permissions
|
|
310
310
|
@properties['permissions']
|
|
311
311
|
end
|
|
@@ -344,8 +344,8 @@ module Twilio
|
|
|
344
344
|
|
|
345
345
|
##
|
|
346
346
|
# Update the RoleInstance
|
|
347
|
-
# @param [String] permission A permission that you grant to the role. Only
|
|
348
|
-
# permission can be granted per parameter. To assign more than one permission,
|
|
347
|
+
# @param [Array[String]] permission A permission that you grant to the role. Only
|
|
348
|
+
# one permission can be granted per parameter. To assign more than one permission,
|
|
349
349
|
# repeat this parameter for each permission value. Note that the update action
|
|
350
350
|
# replaces all previously assigned permissions with those defined in the update
|
|
351
351
|
# action. To remove a permission, do not include it in the subsequent update
|
|
@@ -37,9 +37,9 @@ module Twilio
|
|
|
37
37
|
# Lists UserBindingInstance records from the API as a list.
|
|
38
38
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
39
39
|
# memory before returning.
|
|
40
|
-
# @param [user_binding.BindingType] binding_type The push technology used
|
|
41
|
-
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See
|
|
42
|
-
# notification
|
|
40
|
+
# @param [Array[user_binding.BindingType]] binding_type The push technology used
|
|
41
|
+
# by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See
|
|
42
|
+
# {push notification
|
|
43
43
|
# configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
|
|
44
44
|
# for more info.
|
|
45
45
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -57,9 +57,9 @@ module Twilio
|
|
|
57
57
|
# Streams UserBindingInstance records from the API as an Enumerable.
|
|
58
58
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
59
59
|
# is reached.
|
|
60
|
-
# @param [user_binding.BindingType] binding_type The push technology used
|
|
61
|
-
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See
|
|
62
|
-
# notification
|
|
60
|
+
# @param [Array[user_binding.BindingType]] binding_type The push technology used
|
|
61
|
+
# by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See
|
|
62
|
+
# {push notification
|
|
63
63
|
# configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
|
|
64
64
|
# for more info.
|
|
65
65
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -94,9 +94,9 @@ module Twilio
|
|
|
94
94
|
##
|
|
95
95
|
# Retrieve a single page of UserBindingInstance records from the API.
|
|
96
96
|
# Request is executed immediately.
|
|
97
|
-
# @param [user_binding.BindingType] binding_type The push technology used
|
|
98
|
-
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See
|
|
99
|
-
# notification
|
|
97
|
+
# @param [Array[user_binding.BindingType]] binding_type The push technology used
|
|
98
|
+
# by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See
|
|
99
|
+
# {push notification
|
|
100
100
|
# configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
|
|
101
101
|
# for more info.
|
|
102
102
|
# @param [String] page_token PageToken provided by the API
|
|
@@ -345,7 +345,7 @@ module Twilio
|
|
|
345
345
|
end
|
|
346
346
|
|
|
347
347
|
##
|
|
348
|
-
# @return [String] The Programmable Chat message types the binding is subscribed to
|
|
348
|
+
# @return [Array[String]] The Programmable Chat message types the binding is subscribed to
|
|
349
349
|
def message_types
|
|
350
350
|
@properties['message_types']
|
|
351
351
|
end
|
|
@@ -260,8 +260,8 @@ module Twilio
|
|
|
260
260
|
# `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
|
|
261
261
|
# the default is `POST`. See {Webhook
|
|
262
262
|
# Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
|
|
263
|
-
# @param [String] webhook_filters The list of webhook events that are
|
|
264
|
-
# this Service instance. See {Webhook
|
|
263
|
+
# @param [Array[String]] webhook_filters The list of webhook events that are
|
|
264
|
+
# enabled for this Service instance. See {Webhook
|
|
265
265
|
# Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
|
|
266
266
|
# @param [String] limits_channel_members The maximum number of Members that can be
|
|
267
267
|
# added to Channels within this Service. Can be up to 1,000.
|
|
@@ -557,7 +557,7 @@ module Twilio
|
|
|
557
557
|
end
|
|
558
558
|
|
|
559
559
|
##
|
|
560
|
-
# @return [String] The list of webhook events that are enabled for this Service instance
|
|
560
|
+
# @return [Array[String]] The list of webhook events that are enabled for this Service instance
|
|
561
561
|
def webhook_filters
|
|
562
562
|
@properties['webhook_filters']
|
|
563
563
|
end
|
|
@@ -684,8 +684,8 @@ module Twilio
|
|
|
684
684
|
# `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
|
|
685
685
|
# the default is `POST`. See {Webhook
|
|
686
686
|
# Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
|
|
687
|
-
# @param [String] webhook_filters The list of webhook events that are
|
|
688
|
-
# this Service instance. See {Webhook
|
|
687
|
+
# @param [Array[String]] webhook_filters The list of webhook events that are
|
|
688
|
+
# enabled for this Service instance. See {Webhook
|
|
689
689
|
# Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
|
|
690
690
|
# @param [String] limits_channel_members The maximum number of Members that can be
|
|
691
691
|
# added to Channels within this Service. Can be up to 1,000.
|
|
@@ -25,11 +25,12 @@ module Twilio
|
|
|
25
25
|
# @return [Twilio::REST::Chat::V2::CredentialList]
|
|
26
26
|
def credentials(sid=:unset)
|
|
27
27
|
if sid.nil?
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
|
29
|
+
end
|
|
30
|
+
if sid == :unset
|
|
31
|
+
@credentials ||= CredentialList.new self
|
|
31
32
|
else
|
|
32
|
-
|
|
33
|
+
CredentialContext.new(self, sid)
|
|
33
34
|
end
|
|
34
35
|
end
|
|
35
36
|
|
|
@@ -39,11 +40,12 @@ module Twilio
|
|
|
39
40
|
# @return [Twilio::REST::Chat::V2::ServiceList]
|
|
40
41
|
def services(sid=:unset)
|
|
41
42
|
if sid.nil?
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
raise ArgumentError, 'sid cannot be nil'
|
|
44
|
+
end
|
|
45
|
+
if sid == :unset
|
|
46
|
+
@services ||= ServiceList.new self
|
|
45
47
|
else
|
|
46
|
-
|
|
48
|
+
ServiceContext.new(self, sid)
|
|
47
49
|
end
|
|
48
50
|
end
|
|
49
51
|
|
|
@@ -37,9 +37,11 @@ module Twilio
|
|
|
37
37
|
@events = nil
|
|
38
38
|
@fax = nil
|
|
39
39
|
@flex_api = nil
|
|
40
|
+
@frontline_api = nil
|
|
40
41
|
@insights = nil
|
|
41
42
|
@ip_messaging = nil
|
|
42
43
|
@lookups = nil
|
|
44
|
+
@media = nil
|
|
43
45
|
@messaging = nil
|
|
44
46
|
@monitor = nil
|
|
45
47
|
@notify = nil
|
|
@@ -52,6 +54,7 @@ module Twilio
|
|
|
52
54
|
@sync = nil
|
|
53
55
|
@taskrouter = nil
|
|
54
56
|
@trunking = nil
|
|
57
|
+
@trusthub = nil
|
|
55
58
|
@verify = nil
|
|
56
59
|
@video = nil
|
|
57
60
|
@voice = nil
|
|
@@ -205,6 +208,12 @@ module Twilio
|
|
|
205
208
|
@flex_api ||= FlexApi.new self
|
|
206
209
|
end
|
|
207
210
|
|
|
211
|
+
##
|
|
212
|
+
# Access the FrontlineApi Twilio Domain
|
|
213
|
+
def frontline_api
|
|
214
|
+
@frontline_api ||= FrontlineApi.new self
|
|
215
|
+
end
|
|
216
|
+
|
|
208
217
|
##
|
|
209
218
|
# Access the Insights Twilio Domain
|
|
210
219
|
def insights
|
|
@@ -223,6 +232,12 @@ module Twilio
|
|
|
223
232
|
@lookups ||= Lookups.new self
|
|
224
233
|
end
|
|
225
234
|
|
|
235
|
+
##
|
|
236
|
+
# Access the Media Twilio Domain
|
|
237
|
+
def media
|
|
238
|
+
@media ||= Media.new self
|
|
239
|
+
end
|
|
240
|
+
|
|
226
241
|
##
|
|
227
242
|
# Access the Messaging Twilio Domain
|
|
228
243
|
def messaging
|
|
@@ -295,6 +310,12 @@ module Twilio
|
|
|
295
310
|
@trunking ||= Trunking.new self
|
|
296
311
|
end
|
|
297
312
|
|
|
313
|
+
##
|
|
314
|
+
# Access the Trusthub Twilio Domain
|
|
315
|
+
def trusthub
|
|
316
|
+
@trusthub ||= Trusthub.new self
|
|
317
|
+
end
|
|
318
|
+
|
|
298
319
|
##
|
|
299
320
|
# Access the Verify Twilio Domain
|
|
300
321
|
def verify
|
|
@@ -374,7 +395,7 @@ module Twilio
|
|
|
374
395
|
end
|
|
375
396
|
|
|
376
397
|
##
|
|
377
|
-
# @param [String] sid The unique string that
|
|
398
|
+
# @param [String] sid The unique string that we created to identify this Call
|
|
378
399
|
# resource.
|
|
379
400
|
# @return [Twilio::REST::Api::V2010::AccountContext::CallInstance] if sid was passed.
|
|
380
401
|
# @return [Twilio::REST::Api::V2010::AccountContext::CallList]
|
|
@@ -85,10 +85,10 @@ module Twilio
|
|
|
85
85
|
# Update the WebhookInstance
|
|
86
86
|
# @param [String] method The HTTP method to be used when sending a webhook
|
|
87
87
|
# request.
|
|
88
|
-
# @param [String] filters The list of webhook event triggers that are
|
|
89
|
-
# this Service: `onMessageAdded`, `onMessageUpdated`,
|
|
90
|
-
# `
|
|
91
|
-
# `onParticipantUpdated`, `onParticipantRemoved`
|
|
88
|
+
# @param [Array[String]] filters The list of webhook event triggers that are
|
|
89
|
+
# enabled for this Service: `onMessageAdded`, `onMessageUpdated`,
|
|
90
|
+
# `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`,
|
|
91
|
+
# `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
|
|
92
92
|
# @param [String] pre_webhook_url The absolute url the pre-event webhook request
|
|
93
93
|
# should be sent to.
|
|
94
94
|
# @param [String] post_webhook_url The absolute url the post-event webhook request
|
|
@@ -173,7 +173,7 @@ module Twilio
|
|
|
173
173
|
end
|
|
174
174
|
|
|
175
175
|
##
|
|
176
|
-
# @return [String] The list of webhook event triggers that are enabled for this Service.
|
|
176
|
+
# @return [Array[String]] The list of webhook event triggers that are enabled for this Service.
|
|
177
177
|
def filters
|
|
178
178
|
@properties['filters']
|
|
179
179
|
end
|
|
@@ -213,10 +213,10 @@ module Twilio
|
|
|
213
213
|
# Update the WebhookInstance
|
|
214
214
|
# @param [String] method The HTTP method to be used when sending a webhook
|
|
215
215
|
# request.
|
|
216
|
-
# @param [String] filters The list of webhook event triggers that are
|
|
217
|
-
# this Service: `onMessageAdded`, `onMessageUpdated`,
|
|
218
|
-
# `
|
|
219
|
-
# `onParticipantUpdated`, `onParticipantRemoved`
|
|
216
|
+
# @param [Array[String]] filters The list of webhook event triggers that are
|
|
217
|
+
# enabled for this Service: `onMessageAdded`, `onMessageUpdated`,
|
|
218
|
+
# `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`,
|
|
219
|
+
# `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
|
|
220
220
|
# @param [String] pre_webhook_url The absolute url the pre-event webhook request
|
|
221
221
|
# should be sent to.
|
|
222
222
|
# @param [String] post_webhook_url The absolute url the post-event webhook request
|