twilio-ruby 5.37.0 → 5.39.3
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 -1
- data/CHANGES.md +93 -9
- data/ISSUE_TEMPLATE.md +5 -1
- data/Makefile +1 -1
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +4 -2
- data/lib/twilio-ruby/framework/version.rb +3 -3
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +13 -30
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account.rb +10 -27
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +6 -14
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +6 -14
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +9 -25
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +9 -20
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +6 -14
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +83 -73
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +7 -19
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +54 -35
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +10 -22
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +10 -22
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +27 -30
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +12 -25
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +6 -14
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +20 -13
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +20 -13
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +20 -13
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +10 -22
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -8
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -17
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +3 -8
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +3 -8
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +6 -14
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +10 -22
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +7 -19
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -17
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +9 -17
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +9 -17
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +9 -17
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +7 -19
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +10 -22
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +12 -25
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +12 -25
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +12 -25
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +12 -25
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +12 -25
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +3 -8
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +9 -17
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +3 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +3 -8
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +13 -46
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +4 -14
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +3 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +13 -30
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +12 -25
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +13 -30
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +13 -30
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +4 -14
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +13 -30
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +12 -25
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +13 -30
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +4 -14
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +3 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +13 -30
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +1 -5
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +3 -9
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +6 -14
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +6 -13
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +6 -12
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +4 -14
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v1/service.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +12 -25
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +3 -5
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v2/service.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +9 -17
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +34 -36
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +12 -25
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +34 -36
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +34 -36
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +13 -30
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +30 -34
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +9 -17
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +10 -22
- data/lib/twilio-ruby/rest/client.rb +0 -7
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +59 -36
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +80 -36
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +348 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +46 -36
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +13 -30
- data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +4 -14
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +13 -30
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +9 -17
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +12 -25
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +9 -34
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +13 -30
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +13 -30
- data/lib/twilio-ruby/rest/insights/v1/call.rb +3 -9
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +3 -5
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +3 -5
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +3 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +12 -25
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +3 -5
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +9 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +34 -36
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +12 -25
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +34 -36
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +34 -36
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +13 -30
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +30 -34
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +9 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +10 -22
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +4 -8
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +13 -30
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +12 -25
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +12 -25
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +12 -25
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +14 -22
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +6 -14
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +13 -30
- data/lib/twilio-ruby/rest/notify/v1/service.rb +13 -30
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +12 -25
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -8
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +31 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +9 -24
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +12 -25
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +10 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +6 -14
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +6 -14
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +10 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +6 -14
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +3 -9
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +6 -14
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +6 -13
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +6 -12
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +4 -14
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +13 -30
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +13 -30
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +13 -30
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +13 -30
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +13 -30
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -27
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +3 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +13 -30
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +6 -14
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +6 -14
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +13 -30
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +7 -19
- data/lib/twilio-ruby/rest/preview/sync/service.rb +13 -30
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +26 -36
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +10 -22
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +12 -25
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +26 -36
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +10 -22
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +12 -25
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +26 -36
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +10 -22
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +3 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +13 -11
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +3 -9
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +3 -9
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +3 -9
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +3 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +3 -7
- data/lib/twilio-ruby/rest/preview/trusted_comms/cps.rb +11 -11
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +25 -11
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +3 -8
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +13 -30
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +4 -14
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +4 -14
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +3 -9
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +13 -30
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +12 -25
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +13 -30
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +13 -30
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +4 -14
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +13 -30
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +12 -25
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +13 -30
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +4 -14
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +3 -9
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +9 -22
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +13 -30
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +7 -19
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +3 -7
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +6 -14
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +6 -14
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +6 -14
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +3 -9
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +6 -14
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +3 -7
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +13 -30
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +13 -30
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +38 -33
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +9 -17
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +12 -25
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +9 -22
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +13 -30
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +13 -30
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +13 -30
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +6 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +12 -25
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +12 -25
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +9 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +6 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +13 -30
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +13 -30
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +6 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +3 -9
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +9 -17
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +12 -25
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +3 -9
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +3 -9
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +13 -30
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +3 -9
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +3 -9
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +13 -30
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +13 -30
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +3 -9
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +3 -9
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +4 -14
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +1 -5
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +9 -22
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +10 -27
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +6 -14
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +10 -27
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +12 -25
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +31 -23
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -5
- data/lib/twilio-ruby/rest/sync/v1/service.rb +13 -30
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +26 -36
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +10 -22
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +13 -30
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +32 -36
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +10 -22
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +13 -30
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +32 -36
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +10 -22
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +13 -30
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +3 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +13 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +13 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +15 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +13 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +13 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +13 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +3 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +13 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +7 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +13 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +3 -7
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +13 -30
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +12 -25
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +12 -25
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +13 -30
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +12 -25
- data/lib/twilio-ruby/rest/verify.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/form.rb +7 -13
- data/lib/twilio-ruby/rest/verify/v2/service.rb +96 -33
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +124 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +62 -52
- data/lib/twilio-ruby/rest/{authy/v1/service/entity/factor.rb → verify/v2/service/entity/challenge.rb} +177 -192
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +66 -100
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +13 -30
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +13 -30
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +13 -30
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +11 -23
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +3 -8
- data/lib/twilio-ruby/rest/{authy/v1/service/entity.rb → verify/v2/service/webhook.rb} +159 -130
- data/lib/twilio-ruby/rest/video/v1/composition.rb +12 -25
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +13 -30
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -20
- data/lib/twilio-ruby/rest/video/v1/recording.rb +9 -17
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -20
- data/lib/twilio-ruby/rest/video/v1/room.rb +10 -27
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +9 -17
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +7 -19
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +6 -14
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +3 -13
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +6 -14
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +13 -30
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +13 -30
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +13 -30
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +3 -8
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +6 -14
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +3 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -14
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +13 -30
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +13 -30
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +12 -25
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +13 -30
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +10 -22
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +3 -5
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +3 -5
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/version_spec.rb +166 -0
- data/spec/holodeck/holodeck.rb +11 -6
- data/spec/integration/accounts/v1/credential/aws_spec.rb +0 -4
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +0 -4
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +0 -1
- data/spec/integration/api/v2010/account/address_spec.rb +0 -4
- data/spec/integration/api/v2010/account/application_spec.rb +0 -5
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +0 -2
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +0 -1
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +0 -1
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +0 -1
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +0 -1
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +0 -1
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +0 -1
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +0 -1
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +0 -2
- data/spec/integration/api/v2010/account/balance_spec.rb +0 -1
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +0 -1
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +0 -2
- data/spec/integration/api/v2010/account/call/notification_spec.rb +0 -2
- data/spec/integration/api/v2010/account/call/recording_spec.rb +0 -4
- data/spec/integration/api/v2010/account/call_spec.rb +0 -4
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +60 -4
- data/spec/integration/api/v2010/account/conference/recording_spec.rb +0 -3
- data/spec/integration/api/v2010/account/conference_spec.rb +0 -3
- data/spec/integration/api/v2010/account/connect_app_spec.rb +0 -4
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +0 -2
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +0 -3
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -37
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -41
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -37
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +68 -43
- data/spec/integration/api/v2010/account/key_spec.rb +0 -4
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +0 -1
- data/spec/integration/api/v2010/account/message/media_spec.rb +0 -3
- data/spec/integration/api/v2010/account/message_spec.rb +37 -3
- data/spec/integration/api/v2010/account/new_key_spec.rb +0 -1
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +0 -1
- data/spec/integration/api/v2010/account/notification_spec.rb +0 -2
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +0 -4
- data/spec/integration/api/v2010/account/queue/member_spec.rb +0 -2
- data/spec/integration/api/v2010/account/queue_spec.rb +0 -4
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +0 -3
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +0 -3
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +0 -3
- data/spec/integration/api/v2010/account/recording_spec.rb +0 -3
- data/spec/integration/api/v2010/account/short_code_spec.rb +0 -3
- data/spec/integration/api/v2010/account/signing_key_spec.rb +0 -4
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +0 -4
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +0 -3
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping_spec.rb +0 -3
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping_spec.rb +0 -3
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping_spec.rb +0 -3
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +0 -3
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +0 -3
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +0 -4
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +0 -4
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +0 -3
- data/spec/integration/api/v2010/account/token_spec.rb +0 -1
- data/spec/integration/api/v2010/account/transcription_spec.rb +0 -3
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +0 -1
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +0 -1
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +0 -1
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +0 -1
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +0 -1
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +0 -1
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +0 -1
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +0 -1
- data/spec/integration/api/v2010/account/usage/record_spec.rb +0 -1
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +0 -4
- data/spec/integration/api/v2010/account_spec.rb +0 -4
- data/spec/integration/autopilot/v1/assistant/defaults_spec.rb +0 -2
- data/spec/integration/autopilot/v1/assistant/dialogue_spec.rb +0 -1
- data/spec/integration/autopilot/v1/assistant/field_type/field_value_spec.rb +0 -3
- data/spec/integration/autopilot/v1/assistant/field_type_spec.rb +0 -4
- data/spec/integration/autopilot/v1/assistant/model_build_spec.rb +0 -5
- data/spec/integration/autopilot/v1/assistant/query_spec.rb +0 -4
- data/spec/integration/autopilot/v1/assistant/style_sheet_spec.rb +0 -2
- data/spec/integration/autopilot/v1/assistant/task/field_spec.rb +0 -3
- data/spec/integration/autopilot/v1/assistant/task/sample_spec.rb +0 -4
- data/spec/integration/autopilot/v1/assistant/task/task_actions_spec.rb +0 -2
- data/spec/integration/autopilot/v1/assistant/task/task_statistics_spec.rb +0 -1
- data/spec/integration/autopilot/v1/assistant/task_spec.rb +0 -4
- data/spec/integration/autopilot/v1/assistant/webhook_spec.rb +0 -4
- data/spec/integration/autopilot/v1/assistant_spec.rb +4 -13
- data/spec/integration/bulkexports/v1/export/day_spec.rb +0 -2
- data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +0 -2
- data/spec/integration/bulkexports/v1/export/job_spec.rb +0 -2
- data/spec/integration/bulkexports/v1/export_configuration_spec.rb +0 -2
- data/spec/integration/bulkexports/v1/export_spec.rb +0 -1
- data/spec/integration/chat/v1/credential_spec.rb +0 -4
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +0 -3
- data/spec/integration/chat/v1/service/channel/member_spec.rb +0 -4
- data/spec/integration/chat/v1/service/channel/message_spec.rb +0 -4
- data/spec/integration/chat/v1/service/channel_spec.rb +0 -5
- data/spec/integration/chat/v1/service/role_spec.rb +0 -3
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +0 -1
- data/spec/integration/chat/v1/service/user_spec.rb +0 -4
- data/spec/integration/chat/v1/service_spec.rb +0 -4
- data/spec/integration/chat/v2/credential_spec.rb +0 -4
- data/spec/integration/chat/v2/service/binding_spec.rb +0 -3
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +0 -3
- data/spec/integration/chat/v2/service/channel/member_spec.rb +9 -7
- data/spec/integration/chat/v2/service/channel/message_spec.rb +9 -8
- data/spec/integration/chat/v2/service/channel/webhook_spec.rb +0 -4
- data/spec/integration/chat/v2/service/channel_spec.rb +9 -8
- data/spec/integration/chat/v2/service/role_spec.rb +0 -3
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +0 -3
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +0 -4
- data/spec/integration/chat/v2/service/user_spec.rb +6 -6
- data/spec/integration/chat/v2/service_spec.rb +0 -4
- data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +132 -0
- data/spec/integration/conversations/v1/conversation/message_spec.rb +131 -15
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +93 -8
- data/spec/integration/conversations/v1/conversation/webhook_spec.rb +0 -4
- data/spec/integration/conversations/v1/conversation_spec.rb +55 -8
- data/spec/integration/conversations/v1/webhook_spec.rb +0 -2
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +0 -3
- data/spec/integration/fax/v1/fax_spec.rb +0 -4
- data/spec/integration/flex_api/v1/channel_spec.rb +0 -3
- data/spec/integration/flex_api/v1/configuration_spec.rb +0 -51
- data/spec/integration/flex_api/v1/flex_flow_spec.rb +0 -4
- data/spec/integration/flex_api/v1/web_channel_spec.rb +0 -4
- data/spec/integration/insights/v1/call/event_spec.rb +0 -1
- data/spec/integration/insights/v1/call/metric_spec.rb +0 -1
- data/spec/integration/insights/v1/call/summary_spec.rb +0 -1
- data/spec/integration/insights/v1/call_spec.rb +0 -1
- data/spec/integration/ip_messaging/v1/credential_spec.rb +0 -4
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +0 -3
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +0 -4
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +0 -4
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +0 -5
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +0 -3
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +0 -1
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +0 -4
- data/spec/integration/ip_messaging/v1/service_spec.rb +0 -4
- data/spec/integration/ip_messaging/v2/credential_spec.rb +0 -4
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +0 -3
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +0 -3
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +9 -7
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +9 -8
- data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +0 -4
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +9 -8
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +0 -3
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +0 -3
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +0 -4
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +6 -6
- data/spec/integration/ip_messaging/v2/service_spec.rb +0 -4
- data/spec/integration/lookups/v1/phone_number_spec.rb +0 -1
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +0 -3
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +0 -3
- data/spec/integration/messaging/v1/service/short_code_spec.rb +0 -3
- data/spec/integration/messaging/v1/service_spec.rb +0 -4
- data/spec/integration/monitor/v1/alert_spec.rb +0 -2
- data/spec/integration/monitor/v1/event_spec.rb +0 -2
- data/spec/integration/notify/v1/credential_spec.rb +0 -4
- data/spec/integration/notify/v1/service/binding_spec.rb +0 -3
- data/spec/integration/notify/v1/service/notification_spec.rb +0 -1
- data/spec/integration/notify/v1/service_spec.rb +0 -5
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +0 -3
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb +0 -3
- data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +32 -4
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +0 -3
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_type_spec.rb +0 -2
- data/spec/integration/numbers/v2/regulatory_compliance/regulation_spec.rb +0 -2
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +0 -3
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_type_spec.rb +0 -2
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +0 -2
- data/spec/integration/preview/bulk_exports/export/export_custom_job_spec.rb +0 -2
- data/spec/integration/preview/bulk_exports/export/job_spec.rb +0 -2
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +0 -2
- data/spec/integration/preview/bulk_exports/export_spec.rb +0 -1
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +0 -4
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +0 -5
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +0 -5
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +0 -5
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +0 -5
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +0 -1
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +0 -3
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +0 -4
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +0 -2
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +0 -2
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +0 -2
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +0 -4
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +0 -3
- data/spec/integration/preview/sync/service/document_spec.rb +6 -6
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +6 -5
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +0 -3
- data/spec/integration/preview/sync/service/sync_list_spec.rb +0 -4
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +6 -5
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +0 -3
- data/spec/integration/preview/sync/service/sync_map_spec.rb +0 -4
- data/spec/integration/preview/sync/service_spec.rb +0 -5
- data/spec/integration/preview/trusted_comms/brands_information_spec.rb +3 -2
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +0 -1
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +0 -1
- data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -1
- data/spec/integration/preview/trusted_comms/business_spec.rb +0 -1
- data/spec/integration/preview/trusted_comms/cps_spec.rb +3 -2
- data/spec/integration/preview/trusted_comms/current_call_spec.rb +6 -2
- data/spec/integration/preview/understand/assistant/assistant_fallback_actions_spec.rb +0 -2
- data/spec/integration/preview/understand/assistant/assistant_initiation_actions_spec.rb +0 -2
- data/spec/integration/preview/understand/assistant/dialogue_spec.rb +0 -1
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +0 -3
- data/spec/integration/preview/understand/assistant/field_type_spec.rb +0 -4
- data/spec/integration/preview/understand/assistant/model_build_spec.rb +0 -5
- data/spec/integration/preview/understand/assistant/query_spec.rb +0 -4
- data/spec/integration/preview/understand/assistant/style_sheet_spec.rb +0 -2
- data/spec/integration/preview/understand/assistant/task/field_spec.rb +0 -3
- data/spec/integration/preview/understand/assistant/task/sample_spec.rb +0 -4
- data/spec/integration/preview/understand/assistant/task/task_actions_spec.rb +0 -2
- data/spec/integration/preview/understand/assistant/task/task_statistics_spec.rb +0 -1
- data/spec/integration/preview/understand/assistant/task_spec.rb +0 -4
- data/spec/integration/preview/understand/assistant_spec.rb +0 -5
- data/spec/integration/preview/wireless/command_spec.rb +0 -2
- data/spec/integration/preview/wireless/rate_plan_spec.rb +0 -5
- data/spec/integration/preview/wireless/sim/usage_spec.rb +0 -1
- data/spec/integration/preview/wireless/sim_spec.rb +0 -3
- data/spec/integration/pricing/v1/messaging/country_spec.rb +0 -2
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +0 -2
- data/spec/integration/pricing/v1/voice/country_spec.rb +0 -2
- data/spec/integration/pricing/v1/voice/number_spec.rb +0 -1
- data/spec/integration/pricing/v2/voice/country_spec.rb +0 -2
- data/spec/integration/pricing/v2/voice/number_spec.rb +0 -1
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +0 -5
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +0 -3
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +0 -3
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +0 -3
- data/spec/integration/proxy/v1/service/session_spec.rb +0 -5
- data/spec/integration/proxy/v1/service/short_code_spec.rb +0 -4
- data/spec/integration/proxy/v1/service_spec.rb +0 -4
- data/spec/integration/serverless/v1/service/asset/asset_version_spec.rb +0 -2
- data/spec/integration/serverless/v1/service/asset_spec.rb +0 -3
- data/spec/integration/serverless/v1/service/build_spec.rb +0 -4
- data/spec/integration/serverless/v1/service/environment/deployment_spec.rb +0 -3
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +0 -2
- data/spec/integration/serverless/v1/service/environment/variable_spec.rb +0 -4
- data/spec/integration/serverless/v1/service/environment_spec.rb +0 -3
- data/spec/integration/serverless/v1/service/function/function_version/function_version_content_spec.rb +0 -1
- data/spec/integration/serverless/v1/service/function/function_version_spec.rb +0 -2
- data/spec/integration/serverless/v1/service/function_spec.rb +0 -3
- data/spec/integration/serverless/v1/service_spec.rb +0 -4
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +0 -1
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +0 -1
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +0 -2
- data/spec/integration/studio/v1/flow/engagement_spec.rb +0 -3
- data/spec/integration/studio/v1/flow/execution/execution_context_spec.rb +0 -1
- data/spec/integration/studio/v1/flow/execution/execution_step/execution_step_context_spec.rb +0 -1
- data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +0 -2
- data/spec/integration/studio/v1/flow/execution_spec.rb +0 -3
- data/spec/integration/studio/v1/flow_spec.rb +0 -3
- data/spec/integration/studio/v2/flow/execution/execution_context_spec.rb +0 -1
- data/spec/integration/studio/v2/flow/execution/execution_step/execution_step_context_spec.rb +0 -1
- data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +0 -2
- data/spec/integration/studio/v2/flow/execution_spec.rb +0 -3
- data/spec/integration/studio/v2/flow/flow_revision_spec.rb +0 -2
- data/spec/integration/studio/v2/flow/test_user_spec.rb +0 -1
- data/spec/integration/studio/v2/flow_spec.rb +0 -3
- data/spec/integration/supersim/v1/command_spec.rb +0 -2
- data/spec/integration/supersim/v1/fleet_spec.rb +0 -3
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +0 -3
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +0 -4
- data/spec/integration/supersim/v1/network_spec.rb +0 -2
- data/spec/integration/supersim/v1/sim_spec.rb +0 -3
- data/spec/integration/supersim/v1/usage_record_spec.rb +0 -1
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +0 -3
- data/spec/integration/sync/v1/service/document_spec.rb +6 -7
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +6 -6
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +0 -3
- data/spec/integration/sync/v1/service/sync_list_spec.rb +0 -5
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +6 -6
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +0 -3
- data/spec/integration/sync/v1/service/sync_map_spec.rb +0 -5
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +0 -5
- data/spec/integration/sync/v1/service_spec.rb +0 -5
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +0 -4
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +0 -2
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +0 -3
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +0 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +0 -4
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +0 -5
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +0 -3
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +0 -3
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +0 -4
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +0 -4
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +0 -1
- data/spec/integration/taskrouter/v1/workspace_spec.rb +0 -4
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +0 -3
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +0 -3
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +0 -4
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +0 -3
- data/spec/integration/trunking/v1/trunk_spec.rb +0 -5
- data/spec/integration/verify/v2/form_spec.rb +5 -6
- data/spec/integration/verify/v2/service/access_token_spec.rb +44 -0
- data/spec/integration/verify/v2/service/entity/{factor/challenge_spec.rb → challenge_spec.rb} +41 -142
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +21 -27
- data/spec/integration/verify/v2/service/entity_spec.rb +15 -10
- data/spec/integration/verify/v2/service/messaging_configuration_spec.rb +0 -3
- data/spec/integration/verify/v2/service/rate_limit/bucket_spec.rb +0 -4
- data/spec/integration/verify/v2/service/rate_limit_spec.rb +0 -4
- data/spec/integration/verify/v2/service/verification_spec.rb +0 -1
- data/spec/integration/verify/v2/service/webhook_spec.rb +258 -0
- data/spec/integration/verify/v2/service_spec.rb +12 -8
- data/spec/integration/video/v1/composition_hook_spec.rb +0 -3
- data/spec/integration/video/v1/composition_settings_spec.rb +0 -1
- data/spec/integration/video/v1/composition_spec.rb +0 -3
- data/spec/integration/video/v1/recording_settings_spec.rb +0 -1
- data/spec/integration/video/v1/recording_spec.rb +0 -3
- data/spec/integration/video/v1/room/recording_spec.rb +0 -3
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +0 -2
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribe_rule_spec.rb +0 -2
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +0 -2
- data/spec/integration/video/v1/room/room_participant_spec.rb +0 -3
- data/spec/integration/video/v1/room_spec.rb +0 -3
- data/spec/integration/voice/v1/byoc_trunk_spec.rb +0 -5
- data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +0 -4
- data/spec/integration/voice/v1/connection_policy_spec.rb +0 -5
- data/spec/integration/voice/v1/dialing_permissions/country/highrisk_special_prefix_spec.rb +0 -1
- data/spec/integration/voice/v1/dialing_permissions/country_spec.rb +0 -2
- data/spec/integration/voice/v1/dialing_permissions/settings_spec.rb +0 -2
- data/spec/integration/voice/v1/ip_record_spec.rb +0 -4
- data/spec/integration/voice/v1/source_ip_mapping_spec.rb +0 -3
- data/spec/integration/wireless/v1/command_spec.rb +0 -3
- data/spec/integration/wireless/v1/rate_plan_spec.rb +0 -5
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +0 -1
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +0 -1
- data/spec/integration/wireless/v1/sim_spec.rb +0 -4
- data/spec/integration/wireless/v1/usage_record_spec.rb +0 -1
- metadata +16 -28
- data/lib/twilio-ruby/rest/authy.rb +0 -55
- data/lib/twilio-ruby/rest/authy/v1.rb +0 -59
- data/lib/twilio-ruby/rest/authy/v1/form.rb +0 -197
- data/lib/twilio-ruby/rest/authy/v1/service.rb +0 -404
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +0 -494
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/export_assistant.rb +0 -222
- data/lib/twilio-ruby/rest/verify/v2/service/entity/access_token.rb +0 -141
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor/challenge.rb +0 -494
- data/spec/integration/authy/v1/form_spec.rb +0 -48
- data/spec/integration/authy/v1/service/entity/factor/challenge_spec.rb +0 -353
- data/spec/integration/authy/v1/service/entity/factor_spec.rb +0 -298
- data/spec/integration/authy/v1/service/entity_spec.rb +0 -201
- data/spec/integration/authy/v1/service_spec.rb +0 -231
- data/spec/integration/autopilot/v1/assistant/export_assistant_spec.rb +0 -49
- data/spec/integration/verify/v2/service/entity/access_token_spec.rb +0 -46
@@ -31,20 +31,15 @@ module Twilio
|
|
31
31
|
end
|
32
32
|
|
33
33
|
##
|
34
|
-
#
|
35
|
-
# Request is executed immediately.
|
34
|
+
# Create the BucketInstance
|
36
35
|
# @param [String] max Maximum number of requests permitted in during the interval.
|
37
36
|
# @param [String] interval Number of seconds that the rate limit will be enforced
|
38
37
|
# over.
|
39
|
-
# @return [BucketInstance]
|
38
|
+
# @return [BucketInstance] Created BucketInstance
|
40
39
|
def create(max: nil, interval: nil)
|
41
40
|
data = Twilio::Values.of({'Max' => max, 'Interval' => interval, })
|
42
41
|
|
43
|
-
payload = @version.create(
|
44
|
-
'POST',
|
45
|
-
@uri,
|
46
|
-
data: data
|
47
|
-
)
|
42
|
+
payload = @version.create('POST', @uri, data: data)
|
48
43
|
|
49
44
|
BucketInstance.new(
|
50
45
|
@version,
|
@@ -115,11 +110,9 @@ module Twilio
|
|
115
110
|
'Page' => page_number,
|
116
111
|
'PageSize' => page_size,
|
117
112
|
})
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
params
|
122
|
-
)
|
113
|
+
|
114
|
+
response = @version.page('GET', @uri, params: params)
|
115
|
+
|
123
116
|
BucketPage.new(@version, response, @solution)
|
124
117
|
end
|
125
118
|
|
@@ -205,11 +198,7 @@ module Twilio
|
|
205
198
|
def update(max: :unset, interval: :unset)
|
206
199
|
data = Twilio::Values.of({'Max' => max, 'Interval' => interval, })
|
207
200
|
|
208
|
-
payload = @version.update(
|
209
|
-
'POST',
|
210
|
-
@uri,
|
211
|
-
data: data,
|
212
|
-
)
|
201
|
+
payload = @version.update('POST', @uri, data: data)
|
213
202
|
|
214
203
|
BucketInstance.new(
|
215
204
|
@version,
|
@@ -221,16 +210,10 @@ module Twilio
|
|
221
210
|
end
|
222
211
|
|
223
212
|
##
|
224
|
-
# Fetch
|
213
|
+
# Fetch the BucketInstance
|
225
214
|
# @return [BucketInstance] Fetched BucketInstance
|
226
215
|
def fetch
|
227
|
-
|
228
|
-
|
229
|
-
payload = @version.fetch(
|
230
|
-
'GET',
|
231
|
-
@uri,
|
232
|
-
params,
|
233
|
-
)
|
216
|
+
payload = @version.fetch('GET', @uri)
|
234
217
|
|
235
218
|
BucketInstance.new(
|
236
219
|
@version,
|
@@ -242,10 +225,10 @@ module Twilio
|
|
242
225
|
end
|
243
226
|
|
244
227
|
##
|
245
|
-
#
|
228
|
+
# Delete the BucketInstance
|
246
229
|
# @return [Boolean] true if delete succeeds, false otherwise
|
247
230
|
def delete
|
248
|
-
|
231
|
+
@version.delete('DELETE', @uri)
|
249
232
|
end
|
250
233
|
|
251
234
|
##
|
@@ -381,14 +364,14 @@ module Twilio
|
|
381
364
|
end
|
382
365
|
|
383
366
|
##
|
384
|
-
# Fetch
|
367
|
+
# Fetch the BucketInstance
|
385
368
|
# @return [BucketInstance] Fetched BucketInstance
|
386
369
|
def fetch
|
387
370
|
context.fetch
|
388
371
|
end
|
389
372
|
|
390
373
|
##
|
391
|
-
#
|
374
|
+
# Delete the BucketInstance
|
392
375
|
# @return [Boolean] true if delete succeeds, false otherwise
|
393
376
|
def delete
|
394
377
|
context.delete
|
@@ -28,13 +28,14 @@ module Twilio
|
|
28
28
|
end
|
29
29
|
|
30
30
|
##
|
31
|
-
#
|
32
|
-
# Request is executed immediately.
|
31
|
+
# Create the VerificationInstance
|
33
32
|
# @param [String] to The phone number or
|
34
33
|
# [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must
|
35
34
|
# be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
|
36
35
|
# @param [String] channel The verification method to use. Can be:
|
37
36
|
# [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`.
|
37
|
+
# @param [String] custom_friendly_name A custom user defined friendly name that
|
38
|
+
# overwrites the existing one in the verification message
|
38
39
|
# @param [String] custom_message The text of a custom message to use for the
|
39
40
|
# verification.
|
40
41
|
# @param [String] send_digits The digits to send after a phone call is answered,
|
@@ -61,11 +62,12 @@ module Twilio
|
|
61
62
|
# json format. Must include 'from' and 'from_name'.
|
62
63
|
# @param [String] app_hash Your [App
|
63
64
|
# Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
64
|
-
# @return [VerificationInstance]
|
65
|
-
def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
|
65
|
+
# @return [VerificationInstance] Created VerificationInstance
|
66
|
+
def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
|
66
67
|
data = Twilio::Values.of({
|
67
68
|
'To' => to,
|
68
69
|
'Channel' => channel,
|
70
|
+
'CustomFriendlyName' => custom_friendly_name,
|
69
71
|
'CustomMessage' => custom_message,
|
70
72
|
'SendDigits' => send_digits,
|
71
73
|
'Locale' => locale,
|
@@ -77,11 +79,7 @@ module Twilio
|
|
77
79
|
'AppHash' => app_hash,
|
78
80
|
})
|
79
81
|
|
80
|
-
payload = @version.create(
|
81
|
-
'POST',
|
82
|
-
@uri,
|
83
|
-
data: data
|
84
|
-
)
|
82
|
+
payload = @version.create('POST', @uri, data: data)
|
85
83
|
|
86
84
|
VerificationInstance.new(@version, payload, service_sid: @solution[:service_sid], )
|
87
85
|
end
|
@@ -148,11 +146,7 @@ module Twilio
|
|
148
146
|
def update(status: nil)
|
149
147
|
data = Twilio::Values.of({'Status' => status, })
|
150
148
|
|
151
|
-
payload = @version.update(
|
152
|
-
'POST',
|
153
|
-
@uri,
|
154
|
-
data: data,
|
155
|
-
)
|
149
|
+
payload = @version.update('POST', @uri, data: data)
|
156
150
|
|
157
151
|
VerificationInstance.new(
|
158
152
|
@version,
|
@@ -163,16 +157,10 @@ module Twilio
|
|
163
157
|
end
|
164
158
|
|
165
159
|
##
|
166
|
-
# Fetch
|
160
|
+
# Fetch the VerificationInstance
|
167
161
|
# @return [VerificationInstance] Fetched VerificationInstance
|
168
162
|
def fetch
|
169
|
-
|
170
|
-
|
171
|
-
payload = @version.fetch(
|
172
|
-
'GET',
|
173
|
-
@uri,
|
174
|
-
params,
|
175
|
-
)
|
163
|
+
payload = @version.fetch('GET', @uri)
|
176
164
|
|
177
165
|
VerificationInstance.new(
|
178
166
|
@version,
|
@@ -339,7 +327,7 @@ module Twilio
|
|
339
327
|
end
|
340
328
|
|
341
329
|
##
|
342
|
-
# Fetch
|
330
|
+
# Fetch the VerificationInstance
|
343
331
|
# @return [VerificationInstance] Fetched VerificationInstance
|
344
332
|
def fetch
|
345
333
|
context.fetch
|
@@ -28,8 +28,7 @@ module Twilio
|
|
28
28
|
end
|
29
29
|
|
30
30
|
##
|
31
|
-
#
|
32
|
-
# Request is executed immediately.
|
31
|
+
# Create the VerificationCheckInstance
|
33
32
|
# @param [String] code The 4-10 character string being verified.
|
34
33
|
# @param [String] to The phone number or
|
35
34
|
# [email](https://www.twilio.com/docs/verify/email) to verify. Either this
|
@@ -42,7 +41,7 @@ module Twilio
|
|
42
41
|
# Requires the PSD2 Service flag enabled.
|
43
42
|
# @param [String] payee The payee of the associated PSD2 compliant transaction.
|
44
43
|
# Requires the PSD2 Service flag enabled.
|
45
|
-
# @return [VerificationCheckInstance]
|
44
|
+
# @return [VerificationCheckInstance] Created VerificationCheckInstance
|
46
45
|
def create(code: nil, to: :unset, verification_sid: :unset, amount: :unset, payee: :unset)
|
47
46
|
data = Twilio::Values.of({
|
48
47
|
'Code' => code,
|
@@ -52,11 +51,7 @@ module Twilio
|
|
52
51
|
'Payee' => payee,
|
53
52
|
})
|
54
53
|
|
55
|
-
payload = @version.create(
|
56
|
-
'POST',
|
57
|
-
@uri,
|
58
|
-
data: data
|
59
|
-
)
|
54
|
+
payload = @version.create('POST', @uri, data: data)
|
60
55
|
|
61
56
|
VerificationCheckInstance.new(@version, payload, service_sid: @solution[:service_sid], )
|
62
57
|
end
|
@@ -8,44 +8,51 @@
|
|
8
8
|
|
9
9
|
module Twilio
|
10
10
|
module REST
|
11
|
-
class
|
12
|
-
class
|
11
|
+
class Verify < Domain
|
12
|
+
class V2 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
14
|
##
|
15
15
|
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
16
|
-
class
|
16
|
+
class WebhookList < ListResource
|
17
17
|
##
|
18
|
-
# Initialize the
|
18
|
+
# Initialize the WebhookList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
20
|
# @param [String] service_sid The unique SID identifier of the Service.
|
21
|
-
# @return [
|
21
|
+
# @return [WebhookList] WebhookList
|
22
22
|
def initialize(version, service_sid: nil)
|
23
23
|
super(version)
|
24
24
|
|
25
25
|
# Path Solution
|
26
26
|
@solution = {service_sid: service_sid}
|
27
|
-
@uri = "/Services/#{@solution[:service_sid]}/
|
28
|
-
end
|
27
|
+
@uri = "/Services/#{@solution[:service_sid]}/Webhooks"
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# Create the WebhookInstance
|
32
|
+
# @param [String] friendly_name The string that you assigned to describe the
|
33
|
+
# webhook. **This value should not contain PII.**
|
34
|
+
# @param [String] event_types The array of events that this Webhook is subscribed
|
35
|
+
# to. Possible event types: `*, factor.deleted, factor.created, factor.verified,
|
36
|
+
# challenge.approved, challenge.denied`
|
37
|
+
# @param [String] webhook_url The URL associated with this Webhook.
|
38
|
+
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
39
|
+
# One of: `enabled` or `disabled`
|
40
|
+
# @return [WebhookInstance] Created WebhookInstance
|
41
|
+
def create(friendly_name: nil, event_types: nil, webhook_url: nil, status: :unset)
|
42
|
+
data = Twilio::Values.of({
|
43
|
+
'FriendlyName' => friendly_name,
|
44
|
+
'EventTypes' => Twilio.serialize_list(event_types) { |e| e },
|
45
|
+
'WebhookUrl' => webhook_url,
|
46
|
+
'Status' => status,
|
47
|
+
})
|
29
48
|
|
30
|
-
|
31
|
-
# Retrieve a single page of EntityInstance records from the API.
|
32
|
-
# Request is executed immediately.
|
33
|
-
# @param [String] identity Customer unique identity for the Entity of the Service
|
34
|
-
# @return [EntityInstance] Newly created EntityInstance
|
35
|
-
def create(identity: nil)
|
36
|
-
data = Twilio::Values.of({'Identity' => identity, })
|
37
|
-
|
38
|
-
payload = @version.create(
|
39
|
-
'POST',
|
40
|
-
@uri,
|
41
|
-
data: data
|
42
|
-
)
|
49
|
+
payload = @version.create('POST', @uri, data: data)
|
43
50
|
|
44
|
-
|
51
|
+
WebhookInstance.new(@version, payload, service_sid: @solution[:service_sid], )
|
45
52
|
end
|
46
53
|
|
47
54
|
##
|
48
|
-
# Lists
|
55
|
+
# Lists WebhookInstance records from the API as a list.
|
49
56
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
50
57
|
# memory before returning.
|
51
58
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
@@ -60,7 +67,7 @@ module Twilio
|
|
60
67
|
end
|
61
68
|
|
62
69
|
##
|
63
|
-
# Streams
|
70
|
+
# Streams WebhookInstance records from the API as an Enumerable.
|
64
71
|
# This operation lazily loads records as efficiently as possible until the limit
|
65
72
|
# is reached.
|
66
73
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
@@ -79,7 +86,7 @@ module Twilio
|
|
79
86
|
end
|
80
87
|
|
81
88
|
##
|
82
|
-
# When passed a block, yields
|
89
|
+
# When passed a block, yields WebhookInstance records from the API.
|
83
90
|
# This operation lazily loads records as efficiently as possible until the limit
|
84
91
|
# is reached.
|
85
92
|
def each
|
@@ -93,55 +100,53 @@ module Twilio
|
|
93
100
|
end
|
94
101
|
|
95
102
|
##
|
96
|
-
# Retrieve a single page of
|
103
|
+
# Retrieve a single page of WebhookInstance records from the API.
|
97
104
|
# Request is executed immediately.
|
98
105
|
# @param [String] page_token PageToken provided by the API
|
99
106
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
100
107
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
101
|
-
# @return [Page] Page of
|
108
|
+
# @return [Page] Page of WebhookInstance
|
102
109
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
103
110
|
params = Twilio::Values.of({
|
104
111
|
'PageToken' => page_token,
|
105
112
|
'Page' => page_number,
|
106
113
|
'PageSize' => page_size,
|
107
114
|
})
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
)
|
113
|
-
EntityPage.new(@version, response, @solution)
|
115
|
+
|
116
|
+
response = @version.page('GET', @uri, params: params)
|
117
|
+
|
118
|
+
WebhookPage.new(@version, response, @solution)
|
114
119
|
end
|
115
120
|
|
116
121
|
##
|
117
|
-
# Retrieve a single page of
|
122
|
+
# Retrieve a single page of WebhookInstance records from the API.
|
118
123
|
# Request is executed immediately.
|
119
124
|
# @param [String] target_url API-generated URL for the requested results page
|
120
|
-
# @return [Page] Page of
|
125
|
+
# @return [Page] Page of WebhookInstance
|
121
126
|
def get_page(target_url)
|
122
127
|
response = @version.domain.request(
|
123
128
|
'GET',
|
124
129
|
target_url
|
125
130
|
)
|
126
|
-
|
131
|
+
WebhookPage.new(@version, response, @solution)
|
127
132
|
end
|
128
133
|
|
129
134
|
##
|
130
135
|
# Provide a user friendly representation
|
131
136
|
def to_s
|
132
|
-
'#<Twilio.
|
137
|
+
'#<Twilio.Verify.V2.WebhookList>'
|
133
138
|
end
|
134
139
|
end
|
135
140
|
|
136
141
|
##
|
137
142
|
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
138
|
-
class
|
143
|
+
class WebhookPage < Page
|
139
144
|
##
|
140
|
-
# Initialize the
|
145
|
+
# Initialize the WebhookPage
|
141
146
|
# @param [Version] version Version that contains the resource
|
142
147
|
# @param [Response] response Response from the API
|
143
148
|
# @param [Hash] solution Path solution for the resource
|
144
|
-
# @return [
|
149
|
+
# @return [WebhookPage] WebhookPage
|
145
150
|
def initialize(version, response, solution)
|
146
151
|
super(version, response)
|
147
152
|
|
@@ -150,226 +155,250 @@ module Twilio
|
|
150
155
|
end
|
151
156
|
|
152
157
|
##
|
153
|
-
# Build an instance of
|
158
|
+
# Build an instance of WebhookInstance
|
154
159
|
# @param [Hash] payload Payload response from the API
|
155
|
-
# @return [
|
160
|
+
# @return [WebhookInstance] WebhookInstance
|
156
161
|
def get_instance(payload)
|
157
|
-
|
162
|
+
WebhookInstance.new(@version, payload, service_sid: @solution[:service_sid], )
|
158
163
|
end
|
159
164
|
|
160
165
|
##
|
161
166
|
# Provide a user friendly representation
|
162
167
|
def to_s
|
163
|
-
'<Twilio.
|
168
|
+
'<Twilio.Verify.V2.WebhookPage>'
|
164
169
|
end
|
165
170
|
end
|
166
171
|
|
167
172
|
##
|
168
173
|
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
169
|
-
class
|
174
|
+
class WebhookContext < InstanceContext
|
170
175
|
##
|
171
|
-
# Initialize the
|
176
|
+
# Initialize the WebhookContext
|
172
177
|
# @param [Version] version Version that contains the resource
|
173
178
|
# @param [String] service_sid The unique SID identifier of the Service.
|
174
|
-
# @param [String]
|
175
|
-
#
|
176
|
-
|
179
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
180
|
+
# Webhook resource to fetch.
|
181
|
+
# @return [WebhookContext] WebhookContext
|
182
|
+
def initialize(version, service_sid, sid)
|
177
183
|
super(version)
|
178
184
|
|
179
185
|
# Path Solution
|
180
|
-
@solution = {service_sid: service_sid,
|
181
|
-
@uri = "/Services/#{@solution[:service_sid]}/
|
186
|
+
@solution = {service_sid: service_sid, sid: sid, }
|
187
|
+
@uri = "/Services/#{@solution[:service_sid]}/Webhooks/#{@solution[:sid]}"
|
188
|
+
end
|
189
|
+
|
190
|
+
##
|
191
|
+
# Update the WebhookInstance
|
192
|
+
# @param [String] friendly_name The string that you assigned to describe the
|
193
|
+
# webhook. **This value should not contain PII.**
|
194
|
+
# @param [String] event_types The array of events that this Webhook is subscribed
|
195
|
+
# to. Possible event types: `*, factor.deleted, factor.created, factor.verified,
|
196
|
+
# challenge.approved, challenge.denied`
|
197
|
+
# @param [String] webhook_url The URL associated with this Webhook.
|
198
|
+
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
199
|
+
# One of: `enabled` or `disabled`
|
200
|
+
# @return [WebhookInstance] Updated WebhookInstance
|
201
|
+
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset)
|
202
|
+
data = Twilio::Values.of({
|
203
|
+
'FriendlyName' => friendly_name,
|
204
|
+
'EventTypes' => Twilio.serialize_list(event_types) { |e| e },
|
205
|
+
'WebhookUrl' => webhook_url,
|
206
|
+
'Status' => status,
|
207
|
+
})
|
208
|
+
|
209
|
+
payload = @version.update('POST', @uri, data: data)
|
182
210
|
|
183
|
-
|
184
|
-
@factors = nil
|
211
|
+
WebhookInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid], )
|
185
212
|
end
|
186
213
|
|
187
214
|
##
|
188
|
-
#
|
215
|
+
# Delete the WebhookInstance
|
189
216
|
# @return [Boolean] true if delete succeeds, false otherwise
|
190
217
|
def delete
|
191
|
-
|
218
|
+
@version.delete('DELETE', @uri)
|
192
219
|
end
|
193
220
|
|
194
221
|
##
|
195
|
-
# Fetch
|
196
|
-
# @return [
|
222
|
+
# Fetch the WebhookInstance
|
223
|
+
# @return [WebhookInstance] Fetched WebhookInstance
|
197
224
|
def fetch
|
198
|
-
|
199
|
-
|
200
|
-
payload = @version.fetch(
|
201
|
-
'GET',
|
202
|
-
@uri,
|
203
|
-
params,
|
204
|
-
)
|
205
|
-
|
206
|
-
EntityInstance.new(
|
207
|
-
@version,
|
208
|
-
payload,
|
209
|
-
service_sid: @solution[:service_sid],
|
210
|
-
identity: @solution[:identity],
|
211
|
-
)
|
212
|
-
end
|
213
|
-
|
214
|
-
##
|
215
|
-
# Access the factors
|
216
|
-
# @return [FactorList]
|
217
|
-
# @return [FactorContext] if sid was passed.
|
218
|
-
def factors(sid=:unset)
|
219
|
-
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
220
|
-
|
221
|
-
if sid != :unset
|
222
|
-
return FactorContext.new(@version, @solution[:service_sid], @solution[:identity], sid, )
|
223
|
-
end
|
225
|
+
payload = @version.fetch('GET', @uri)
|
224
226
|
|
225
|
-
|
226
|
-
@factors = FactorList.new(
|
227
|
-
@version,
|
228
|
-
service_sid: @solution[:service_sid],
|
229
|
-
identity: @solution[:identity],
|
230
|
-
)
|
231
|
-
end
|
232
|
-
|
233
|
-
@factors
|
227
|
+
WebhookInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid], )
|
234
228
|
end
|
235
229
|
|
236
230
|
##
|
237
231
|
# Provide a user friendly representation
|
238
232
|
def to_s
|
239
233
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
240
|
-
"#<Twilio.
|
234
|
+
"#<Twilio.Verify.V2.WebhookContext #{context}>"
|
241
235
|
end
|
242
236
|
|
243
237
|
##
|
244
238
|
# Provide a detailed, user friendly representation
|
245
239
|
def inspect
|
246
240
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
247
|
-
"#<Twilio.
|
241
|
+
"#<Twilio.Verify.V2.WebhookContext #{context}>"
|
248
242
|
end
|
249
243
|
end
|
250
244
|
|
251
245
|
##
|
252
246
|
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
253
|
-
class
|
247
|
+
class WebhookInstance < InstanceResource
|
254
248
|
##
|
255
|
-
# Initialize the
|
249
|
+
# Initialize the WebhookInstance
|
256
250
|
# @param [Version] version Version that contains the resource
|
257
251
|
# @param [Hash] payload payload that contains response from Twilio
|
258
252
|
# @param [String] service_sid The unique SID identifier of the Service.
|
259
|
-
# @param [String]
|
260
|
-
#
|
261
|
-
|
253
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
254
|
+
# Webhook resource to fetch.
|
255
|
+
# @return [WebhookInstance] WebhookInstance
|
256
|
+
def initialize(version, payload, service_sid: nil, sid: nil)
|
262
257
|
super(version)
|
263
258
|
|
264
259
|
# Marshaled Properties
|
265
260
|
@properties = {
|
266
261
|
'sid' => payload['sid'],
|
267
|
-
'identity' => payload['identity'],
|
268
|
-
'account_sid' => payload['account_sid'],
|
269
262
|
'service_sid' => payload['service_sid'],
|
263
|
+
'account_sid' => payload['account_sid'],
|
264
|
+
'friendly_name' => payload['friendly_name'],
|
265
|
+
'event_types' => payload['event_types'],
|
266
|
+
'status' => payload['status'],
|
267
|
+
'webhook_url' => payload['webhook_url'],
|
268
|
+
'webhook_method' => payload['webhook_method'],
|
270
269
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
271
270
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
272
271
|
'url' => payload['url'],
|
273
|
-
'links' => payload['links'],
|
274
272
|
}
|
275
273
|
|
276
274
|
# Context
|
277
275
|
@instance_context = nil
|
278
|
-
@params = {'service_sid' => service_sid, '
|
276
|
+
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid'], }
|
279
277
|
end
|
280
278
|
|
281
279
|
##
|
282
280
|
# Generate an instance context for the instance, the context is capable of
|
283
281
|
# performing various actions. All instance actions are proxied to the context
|
284
|
-
# @return [
|
282
|
+
# @return [WebhookContext] WebhookContext for this WebhookInstance
|
285
283
|
def context
|
286
284
|
unless @instance_context
|
287
|
-
@instance_context =
|
285
|
+
@instance_context = WebhookContext.new(@version, @params['service_sid'], @params['sid'], )
|
288
286
|
end
|
289
287
|
@instance_context
|
290
288
|
end
|
291
289
|
|
292
290
|
##
|
293
|
-
# @return [String]
|
291
|
+
# @return [String] The unique string that identifies the resource
|
294
292
|
def sid
|
295
293
|
@properties['sid']
|
296
294
|
end
|
297
295
|
|
298
296
|
##
|
299
|
-
# @return [String]
|
300
|
-
def
|
301
|
-
@properties['
|
297
|
+
# @return [String] Service Sid.
|
298
|
+
def service_sid
|
299
|
+
@properties['service_sid']
|
302
300
|
end
|
303
301
|
|
304
302
|
##
|
305
|
-
# @return [String] Account
|
303
|
+
# @return [String] The SID of the Account that created the resource
|
306
304
|
def account_sid
|
307
305
|
@properties['account_sid']
|
308
306
|
end
|
309
307
|
|
310
308
|
##
|
311
|
-
# @return [String]
|
312
|
-
def
|
313
|
-
@properties['
|
309
|
+
# @return [String] The string that you assigned to describe the webhook
|
310
|
+
def friendly_name
|
311
|
+
@properties['friendly_name']
|
312
|
+
end
|
313
|
+
|
314
|
+
##
|
315
|
+
# @return [String] The array of events that this Webhook is subscribed to.
|
316
|
+
def event_types
|
317
|
+
@properties['event_types']
|
314
318
|
end
|
315
319
|
|
316
320
|
##
|
317
|
-
# @return [
|
321
|
+
# @return [webhook.Status] The webhook status
|
322
|
+
def status
|
323
|
+
@properties['status']
|
324
|
+
end
|
325
|
+
|
326
|
+
##
|
327
|
+
# @return [String] The URL associated with this Webhook.
|
328
|
+
def webhook_url
|
329
|
+
@properties['webhook_url']
|
330
|
+
end
|
331
|
+
|
332
|
+
##
|
333
|
+
# @return [webhook.Methods] The method used when calling the webhook's URL.
|
334
|
+
def webhook_method
|
335
|
+
@properties['webhook_method']
|
336
|
+
end
|
337
|
+
|
338
|
+
##
|
339
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
318
340
|
def date_created
|
319
341
|
@properties['date_created']
|
320
342
|
end
|
321
343
|
|
322
344
|
##
|
323
|
-
# @return [Time] The date
|
345
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
324
346
|
def date_updated
|
325
347
|
@properties['date_updated']
|
326
348
|
end
|
327
349
|
|
328
350
|
##
|
329
|
-
# @return [String] The URL of
|
351
|
+
# @return [String] The absolute URL of the Webhook resource
|
330
352
|
def url
|
331
353
|
@properties['url']
|
332
354
|
end
|
333
355
|
|
334
356
|
##
|
335
|
-
#
|
336
|
-
|
337
|
-
|
357
|
+
# Update the WebhookInstance
|
358
|
+
# @param [String] friendly_name The string that you assigned to describe the
|
359
|
+
# webhook. **This value should not contain PII.**
|
360
|
+
# @param [String] event_types The array of events that this Webhook is subscribed
|
361
|
+
# to. Possible event types: `*, factor.deleted, factor.created, factor.verified,
|
362
|
+
# challenge.approved, challenge.denied`
|
363
|
+
# @param [String] webhook_url The URL associated with this Webhook.
|
364
|
+
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
365
|
+
# One of: `enabled` or `disabled`
|
366
|
+
# @return [WebhookInstance] Updated WebhookInstance
|
367
|
+
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset)
|
368
|
+
context.update(
|
369
|
+
friendly_name: friendly_name,
|
370
|
+
event_types: event_types,
|
371
|
+
webhook_url: webhook_url,
|
372
|
+
status: status,
|
373
|
+
)
|
338
374
|
end
|
339
375
|
|
340
376
|
##
|
341
|
-
#
|
377
|
+
# Delete the WebhookInstance
|
342
378
|
# @return [Boolean] true if delete succeeds, false otherwise
|
343
379
|
def delete
|
344
380
|
context.delete
|
345
381
|
end
|
346
382
|
|
347
383
|
##
|
348
|
-
# Fetch
|
349
|
-
# @return [
|
384
|
+
# Fetch the WebhookInstance
|
385
|
+
# @return [WebhookInstance] Fetched WebhookInstance
|
350
386
|
def fetch
|
351
387
|
context.fetch
|
352
388
|
end
|
353
389
|
|
354
|
-
##
|
355
|
-
# Access the factors
|
356
|
-
# @return [factors] factors
|
357
|
-
def factors
|
358
|
-
context.factors
|
359
|
-
end
|
360
|
-
|
361
390
|
##
|
362
391
|
# Provide a user friendly representation
|
363
392
|
def to_s
|
364
393
|
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
365
|
-
"<Twilio.
|
394
|
+
"<Twilio.Verify.V2.WebhookInstance #{values}>"
|
366
395
|
end
|
367
396
|
|
368
397
|
##
|
369
398
|
# Provide a detailed, user friendly representation
|
370
399
|
def inspect
|
371
400
|
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
372
|
-
"<Twilio.
|
401
|
+
"<Twilio.Verify.V2.WebhookInstance #{values}>"
|
373
402
|
end
|
374
403
|
end
|
375
404
|
end
|