twilio-ruby 5.38.0 → 5.40.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/.travis.yml +1 -1
- data/CHANGES.md +85 -1
- data/CONTRIBUTING.md +2 -2
- data/ISSUE_TEMPLATE.md +5 -1
- data/Makefile +1 -1
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +4 -3
- 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 +19 -34
- 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 +6 -8
- 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 +13 -30
- 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 -30
- 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 +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +34 -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 +56 -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/events.rb +54 -0
- data/lib/twilio-ruby/rest/events/v1.rb +58 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +379 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +118 -0
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +358 -0
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +322 -0
- 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 +6 -14
- 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 +55 -34
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +9 -17
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +25 -26
- 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 +22 -38
- 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 +78 -14
- 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 +70 -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/verify/v2/service/entity/challenge.rb +485 -0
- 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/verify/v2/service/webhook.rb +13 -30
- 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 -19
- 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 +8 -24
- 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 +0 -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 +0 -5
- 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 +39 -8
- data/spec/integration/conversations/v1/webhook_spec.rb +0 -2
- data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
- data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
- data/spec/integration/events/v1/sink_spec.rb +217 -0
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +212 -0
- data/spec/integration/events/v1/subscription_spec.rb +205 -0
- 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 +463 -19
- 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 +0 -4
- data/spec/integration/verify/v2/service_spec.rb +8 -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 +2 -3
- 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 +30 -8
- 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/verify/v2/service/entity/access_token_spec.rb +0 -46
|
@@ -29,8 +29,8 @@ module Twilio
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
##
|
|
32
|
-
# @param [form.FormTypes] form_type The Type of this Form.
|
|
33
|
-
# `form-
|
|
32
|
+
# @param [form.FormTypes] form_type The Type of this Form. Currently only
|
|
33
|
+
# `form-push` is supported.
|
|
34
34
|
# @return [Twilio::REST::Verify::V2::FormInstance] if form_type was passed.
|
|
35
35
|
# @return [Twilio::REST::Verify::V2::FormList]
|
|
36
36
|
def forms(form_type=:unset)
|
|
@@ -20,8 +20,8 @@ module Twilio
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
##
|
|
23
|
-
# @param [form.FormTypes] form_type The Type of this Form.
|
|
24
|
-
# `form-
|
|
23
|
+
# @param [form.FormTypes] form_type The Type of this Form. Currently only
|
|
24
|
+
# `form-push` is supported.
|
|
25
25
|
# @return [Twilio::REST::Verify::V2::FormContext] if form_type was passed.
|
|
26
26
|
# @return [Twilio::REST::Verify::V2::FormList]
|
|
27
27
|
def forms(form_type=:unset)
|
|
@@ -68,8 +68,8 @@ module Twilio
|
|
|
68
68
|
##
|
|
69
69
|
# Initialize the FormContext
|
|
70
70
|
# @param [Version] version Version that contains the resource
|
|
71
|
-
# @param [form.FormTypes] form_type The Type of this Form.
|
|
72
|
-
# `form-
|
|
71
|
+
# @param [form.FormTypes] form_type The Type of this Form. Currently only
|
|
72
|
+
# `form-push` is supported.
|
|
73
73
|
# @return [FormContext] FormContext
|
|
74
74
|
def initialize(version, form_type)
|
|
75
75
|
super(version)
|
|
@@ -80,16 +80,10 @@ module Twilio
|
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
##
|
|
83
|
-
# Fetch
|
|
83
|
+
# Fetch the FormInstance
|
|
84
84
|
# @return [FormInstance] Fetched FormInstance
|
|
85
85
|
def fetch
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
payload = @version.fetch(
|
|
89
|
-
'GET',
|
|
90
|
-
@uri,
|
|
91
|
-
params,
|
|
92
|
-
)
|
|
86
|
+
payload = @version.fetch('GET', @uri)
|
|
93
87
|
|
|
94
88
|
FormInstance.new(@version, payload, form_type: @solution[:form_type], )
|
|
95
89
|
end
|
|
@@ -116,8 +110,8 @@ module Twilio
|
|
|
116
110
|
# Initialize the FormInstance
|
|
117
111
|
# @param [Version] version Version that contains the resource
|
|
118
112
|
# @param [Hash] payload payload that contains response from Twilio
|
|
119
|
-
# @param [form.FormTypes] form_type The Type of this Form.
|
|
120
|
-
# `form-
|
|
113
|
+
# @param [form.FormTypes] form_type The Type of this Form. Currently only
|
|
114
|
+
# `form-push` is supported.
|
|
121
115
|
# @return [FormInstance] FormInstance
|
|
122
116
|
def initialize(version, payload, form_type: nil)
|
|
123
117
|
super(version)
|
|
@@ -171,7 +165,7 @@ module Twilio
|
|
|
171
165
|
end
|
|
172
166
|
|
|
173
167
|
##
|
|
174
|
-
# Fetch
|
|
168
|
+
# Fetch the FormInstance
|
|
175
169
|
# @return [FormInstance] Fetched FormInstance
|
|
176
170
|
def fetch
|
|
177
171
|
context.fetch
|
|
@@ -24,8 +24,7 @@ module Twilio
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
##
|
|
27
|
-
#
|
|
28
|
-
# Request is executed immediately.
|
|
27
|
+
# Create the ServiceInstance
|
|
29
28
|
# @param [String] friendly_name A descriptive string that you create to describe
|
|
30
29
|
# the verification service. It can be up to 64 characters long. **This value
|
|
31
30
|
# should not contain PII.**
|
|
@@ -48,8 +47,16 @@ module Twilio
|
|
|
48
47
|
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with
|
|
49
48
|
# a custom code instead of a randomly generated one. Not available for all
|
|
50
49
|
# customers.
|
|
51
|
-
# @
|
|
52
|
-
|
|
50
|
+
# @param [Hash] push Configurations for the Push factors (channel) created under
|
|
51
|
+
# this Service. If present, it must be a json string with the following format:
|
|
52
|
+
# {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
|
|
53
|
+
# true}. If `include_date` is set to `true`, which is the default, that means that
|
|
54
|
+
# the push challenge’s response will include the date created value. If
|
|
55
|
+
# `include_date` is set to `false`, then the date created value will not be
|
|
56
|
+
# included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge)
|
|
57
|
+
# resource’s details parameter for more info
|
|
58
|
+
# @return [ServiceInstance] Created ServiceInstance
|
|
59
|
+
def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
|
|
53
60
|
data = Twilio::Values.of({
|
|
54
61
|
'FriendlyName' => friendly_name,
|
|
55
62
|
'CodeLength' => code_length,
|
|
@@ -60,13 +67,10 @@ module Twilio
|
|
|
60
67
|
'Psd2Enabled' => psd2_enabled,
|
|
61
68
|
'DoNotShareWarningEnabled' => do_not_share_warning_enabled,
|
|
62
69
|
'CustomCodeEnabled' => custom_code_enabled,
|
|
70
|
+
'Push' => Twilio.serialize_object(push),
|
|
63
71
|
})
|
|
64
72
|
|
|
65
|
-
payload = @version.create(
|
|
66
|
-
'POST',
|
|
67
|
-
@uri,
|
|
68
|
-
data: data
|
|
69
|
-
)
|
|
73
|
+
payload = @version.create('POST', @uri, data: data)
|
|
70
74
|
|
|
71
75
|
ServiceInstance.new(@version, payload, )
|
|
72
76
|
end
|
|
@@ -132,11 +136,9 @@ module Twilio
|
|
|
132
136
|
'Page' => page_number,
|
|
133
137
|
'PageSize' => page_size,
|
|
134
138
|
})
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
params
|
|
139
|
-
)
|
|
139
|
+
|
|
140
|
+
response = @version.page('GET', @uri, params: params)
|
|
141
|
+
|
|
140
142
|
ServicePage.new(@version, response, @solution)
|
|
141
143
|
end
|
|
142
144
|
|
|
@@ -210,28 +212,23 @@ module Twilio
|
|
|
210
212
|
@messaging_configurations = nil
|
|
211
213
|
@entities = nil
|
|
212
214
|
@webhooks = nil
|
|
215
|
+
@access_tokens = nil
|
|
213
216
|
end
|
|
214
217
|
|
|
215
218
|
##
|
|
216
|
-
# Fetch
|
|
219
|
+
# Fetch the ServiceInstance
|
|
217
220
|
# @return [ServiceInstance] Fetched ServiceInstance
|
|
218
221
|
def fetch
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
payload = @version.fetch(
|
|
222
|
-
'GET',
|
|
223
|
-
@uri,
|
|
224
|
-
params,
|
|
225
|
-
)
|
|
222
|
+
payload = @version.fetch('GET', @uri)
|
|
226
223
|
|
|
227
224
|
ServiceInstance.new(@version, payload, sid: @solution[:sid], )
|
|
228
225
|
end
|
|
229
226
|
|
|
230
227
|
##
|
|
231
|
-
#
|
|
228
|
+
# Delete the ServiceInstance
|
|
232
229
|
# @return [Boolean] true if delete succeeds, false otherwise
|
|
233
230
|
def delete
|
|
234
|
-
|
|
231
|
+
@version.delete('DELETE', @uri)
|
|
235
232
|
end
|
|
236
233
|
|
|
237
234
|
##
|
|
@@ -256,8 +253,16 @@ module Twilio
|
|
|
256
253
|
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with
|
|
257
254
|
# a custom code instead of a randomly generated one. Not available for all
|
|
258
255
|
# customers.
|
|
256
|
+
# @param [Hash] push Configurations for the Push factors (channel) created under
|
|
257
|
+
# this Service. If present, it must be a json string with the following format:
|
|
258
|
+
# {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
|
|
259
|
+
# true}. If `include_date` is set to `true`, which is the default, that means that
|
|
260
|
+
# the push challenge’s response will include the date created value. If
|
|
261
|
+
# `include_date` is set to `false`, then the date created value will not be
|
|
262
|
+
# included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge)
|
|
263
|
+
# resource’s details parameter for more info
|
|
259
264
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
260
|
-
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset)
|
|
265
|
+
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
|
|
261
266
|
data = Twilio::Values.of({
|
|
262
267
|
'FriendlyName' => friendly_name,
|
|
263
268
|
'CodeLength' => code_length,
|
|
@@ -268,13 +273,10 @@ module Twilio
|
|
|
268
273
|
'Psd2Enabled' => psd2_enabled,
|
|
269
274
|
'DoNotShareWarningEnabled' => do_not_share_warning_enabled,
|
|
270
275
|
'CustomCodeEnabled' => custom_code_enabled,
|
|
276
|
+
'Push' => Twilio.serialize_object(push),
|
|
271
277
|
})
|
|
272
278
|
|
|
273
|
-
payload = @version.update(
|
|
274
|
-
'POST',
|
|
275
|
-
@uri,
|
|
276
|
-
data: data,
|
|
277
|
-
)
|
|
279
|
+
payload = @version.update('POST', @uri, data: data)
|
|
278
280
|
|
|
279
281
|
ServiceInstance.new(@version, payload, sid: @solution[:sid], )
|
|
280
282
|
end
|
|
@@ -381,6 +383,18 @@ module Twilio
|
|
|
381
383
|
@webhooks
|
|
382
384
|
end
|
|
383
385
|
|
|
386
|
+
##
|
|
387
|
+
# Access the access_tokens
|
|
388
|
+
# @return [AccessTokenList]
|
|
389
|
+
# @return [AccessTokenContext]
|
|
390
|
+
def access_tokens
|
|
391
|
+
unless @access_tokens
|
|
392
|
+
@access_tokens = AccessTokenList.new(@version, service_sid: @solution[:sid], )
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
@access_tokens
|
|
396
|
+
end
|
|
397
|
+
|
|
384
398
|
##
|
|
385
399
|
# Provide a user friendly representation
|
|
386
400
|
def to_s
|
|
@@ -420,6 +434,7 @@ module Twilio
|
|
|
420
434
|
'tts_name' => payload['tts_name'],
|
|
421
435
|
'do_not_share_warning_enabled' => payload['do_not_share_warning_enabled'],
|
|
422
436
|
'custom_code_enabled' => payload['custom_code_enabled'],
|
|
437
|
+
'push' => payload['push'],
|
|
423
438
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
424
439
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
425
440
|
'url' => payload['url'],
|
|
@@ -508,6 +523,12 @@ module Twilio
|
|
|
508
523
|
@properties['custom_code_enabled']
|
|
509
524
|
end
|
|
510
525
|
|
|
526
|
+
##
|
|
527
|
+
# @return [Hash] The service level configuration of factor push type.
|
|
528
|
+
def push
|
|
529
|
+
@properties['push']
|
|
530
|
+
end
|
|
531
|
+
|
|
511
532
|
##
|
|
512
533
|
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
|
513
534
|
def date_created
|
|
@@ -533,14 +554,14 @@ module Twilio
|
|
|
533
554
|
end
|
|
534
555
|
|
|
535
556
|
##
|
|
536
|
-
# Fetch
|
|
557
|
+
# Fetch the ServiceInstance
|
|
537
558
|
# @return [ServiceInstance] Fetched ServiceInstance
|
|
538
559
|
def fetch
|
|
539
560
|
context.fetch
|
|
540
561
|
end
|
|
541
562
|
|
|
542
563
|
##
|
|
543
|
-
#
|
|
564
|
+
# Delete the ServiceInstance
|
|
544
565
|
# @return [Boolean] true if delete succeeds, false otherwise
|
|
545
566
|
def delete
|
|
546
567
|
context.delete
|
|
@@ -568,8 +589,16 @@ module Twilio
|
|
|
568
589
|
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with
|
|
569
590
|
# a custom code instead of a randomly generated one. Not available for all
|
|
570
591
|
# customers.
|
|
592
|
+
# @param [Hash] push Configurations for the Push factors (channel) created under
|
|
593
|
+
# this Service. If present, it must be a json string with the following format:
|
|
594
|
+
# {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
|
|
595
|
+
# true}. If `include_date` is set to `true`, which is the default, that means that
|
|
596
|
+
# the push challenge’s response will include the date created value. If
|
|
597
|
+
# `include_date` is set to `false`, then the date created value will not be
|
|
598
|
+
# included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge)
|
|
599
|
+
# resource’s details parameter for more info
|
|
571
600
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
572
|
-
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset)
|
|
601
|
+
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
|
|
573
602
|
context.update(
|
|
574
603
|
friendly_name: friendly_name,
|
|
575
604
|
code_length: code_length,
|
|
@@ -580,6 +609,7 @@ module Twilio
|
|
|
580
609
|
psd2_enabled: psd2_enabled,
|
|
581
610
|
do_not_share_warning_enabled: do_not_share_warning_enabled,
|
|
582
611
|
custom_code_enabled: custom_code_enabled,
|
|
612
|
+
push: push,
|
|
583
613
|
)
|
|
584
614
|
end
|
|
585
615
|
|
|
@@ -625,6 +655,13 @@ module Twilio
|
|
|
625
655
|
context.webhooks
|
|
626
656
|
end
|
|
627
657
|
|
|
658
|
+
##
|
|
659
|
+
# Access the access_tokens
|
|
660
|
+
# @return [access_tokens] access_tokens
|
|
661
|
+
def access_tokens
|
|
662
|
+
context.access_tokens
|
|
663
|
+
end
|
|
664
|
+
|
|
628
665
|
##
|
|
629
666
|
# Provide a user friendly representation
|
|
630
667
|
def to_s
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# \ / _ _ _| _ _
|
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
# / /
|
|
6
|
+
#
|
|
7
|
+
# frozen_string_literal: true
|
|
8
|
+
|
|
9
|
+
module Twilio
|
|
10
|
+
module REST
|
|
11
|
+
class Verify < Domain
|
|
12
|
+
class V2 < Version
|
|
13
|
+
class ServiceContext < InstanceContext
|
|
14
|
+
##
|
|
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 AccessTokenList < ListResource
|
|
17
|
+
##
|
|
18
|
+
# Initialize the AccessTokenList
|
|
19
|
+
# @param [Version] version Version that contains the resource
|
|
20
|
+
# @param [String] service_sid The unique string that we created to identify the
|
|
21
|
+
# Service resource.
|
|
22
|
+
# @return [AccessTokenList] AccessTokenList
|
|
23
|
+
def initialize(version, service_sid: nil)
|
|
24
|
+
super(version)
|
|
25
|
+
|
|
26
|
+
# Path Solution
|
|
27
|
+
@solution = {service_sid: service_sid}
|
|
28
|
+
@uri = "/Services/#{@solution[:service_sid]}/AccessTokens"
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
##
|
|
32
|
+
# Create the AccessTokenInstance
|
|
33
|
+
# @param [String] identity The unique external identifier for the Entity of the
|
|
34
|
+
# Service. This identifier should be immutable, not PII, and generated by your
|
|
35
|
+
# external system, such as your user's UUID, GUID, or SID.
|
|
36
|
+
# @param [access_token.FactorTypes] factor_type The Type of this Factor. Eg.
|
|
37
|
+
# `push`
|
|
38
|
+
# @return [AccessTokenInstance] Created AccessTokenInstance
|
|
39
|
+
def create(identity: nil, factor_type: nil)
|
|
40
|
+
data = Twilio::Values.of({'Identity' => identity, 'FactorType' => factor_type, })
|
|
41
|
+
|
|
42
|
+
payload = @version.create('POST', @uri, data: data)
|
|
43
|
+
|
|
44
|
+
AccessTokenInstance.new(@version, payload, service_sid: @solution[:service_sid], )
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
##
|
|
48
|
+
# Provide a user friendly representation
|
|
49
|
+
def to_s
|
|
50
|
+
'#<Twilio.Verify.V2.AccessTokenList>'
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
##
|
|
55
|
+
# 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.
|
|
56
|
+
class AccessTokenPage < Page
|
|
57
|
+
##
|
|
58
|
+
# Initialize the AccessTokenPage
|
|
59
|
+
# @param [Version] version Version that contains the resource
|
|
60
|
+
# @param [Response] response Response from the API
|
|
61
|
+
# @param [Hash] solution Path solution for the resource
|
|
62
|
+
# @return [AccessTokenPage] AccessTokenPage
|
|
63
|
+
def initialize(version, response, solution)
|
|
64
|
+
super(version, response)
|
|
65
|
+
|
|
66
|
+
# Path Solution
|
|
67
|
+
@solution = solution
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
##
|
|
71
|
+
# Build an instance of AccessTokenInstance
|
|
72
|
+
# @param [Hash] payload Payload response from the API
|
|
73
|
+
# @return [AccessTokenInstance] AccessTokenInstance
|
|
74
|
+
def get_instance(payload)
|
|
75
|
+
AccessTokenInstance.new(@version, payload, service_sid: @solution[:service_sid], )
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
##
|
|
79
|
+
# Provide a user friendly representation
|
|
80
|
+
def to_s
|
|
81
|
+
'<Twilio.Verify.V2.AccessTokenPage>'
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
##
|
|
86
|
+
# 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.
|
|
87
|
+
class AccessTokenInstance < InstanceResource
|
|
88
|
+
##
|
|
89
|
+
# Initialize the AccessTokenInstance
|
|
90
|
+
# @param [Version] version Version that contains the resource
|
|
91
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
92
|
+
# @param [String] service_sid The unique string that we created to identify the
|
|
93
|
+
# Service resource.
|
|
94
|
+
# @return [AccessTokenInstance] AccessTokenInstance
|
|
95
|
+
def initialize(version, payload, service_sid: nil)
|
|
96
|
+
super(version)
|
|
97
|
+
|
|
98
|
+
# Marshaled Properties
|
|
99
|
+
@properties = {'token' => payload['token'], }
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
##
|
|
103
|
+
# @return [String] Generated access token.
|
|
104
|
+
def token
|
|
105
|
+
@properties['token']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
##
|
|
109
|
+
# Provide a user friendly representation
|
|
110
|
+
def to_s
|
|
111
|
+
"<Twilio.Verify.V2.AccessTokenInstance>"
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
##
|
|
115
|
+
# Provide a detailed, user friendly representation
|
|
116
|
+
def inspect
|
|
117
|
+
"<Twilio.Verify.V2.AccessTokenInstance>"
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
@@ -28,18 +28,16 @@ module Twilio
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
##
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
# @
|
|
35
|
-
|
|
31
|
+
# Create the EntityInstance
|
|
32
|
+
# @param [String] identity The unique external identifier for the Entity of the
|
|
33
|
+
# Service
|
|
34
|
+
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
35
|
+
# @return [EntityInstance] Created EntityInstance
|
|
36
|
+
def create(identity: nil, twilio_sandbox_mode: :unset)
|
|
36
37
|
data = Twilio::Values.of({'Identity' => identity, })
|
|
38
|
+
headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
|
|
37
39
|
|
|
38
|
-
payload = @version.create(
|
|
39
|
-
'POST',
|
|
40
|
-
@uri,
|
|
41
|
-
data: data
|
|
42
|
-
)
|
|
40
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
43
41
|
|
|
44
42
|
EntityInstance.new(@version, payload, service_sid: @solution[:service_sid], )
|
|
45
43
|
end
|
|
@@ -48,6 +46,7 @@ module Twilio
|
|
|
48
46
|
# Lists EntityInstance records from the API as a list.
|
|
49
47
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
50
48
|
# memory before returning.
|
|
49
|
+
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
51
50
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
52
51
|
# guarantees to never return more than limit. Default is no limit
|
|
53
52
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -55,14 +54,15 @@ module Twilio
|
|
|
55
54
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
56
55
|
# efficient page size, i.e. min(limit, 1000)
|
|
57
56
|
# @return [Array] Array of up to limit results
|
|
58
|
-
def list(limit: nil, page_size: nil)
|
|
59
|
-
self.stream(limit: limit, page_size: page_size).entries
|
|
57
|
+
def list(twilio_sandbox_mode: :unset, limit: nil, page_size: nil)
|
|
58
|
+
self.stream(twilio_sandbox_mode: twilio_sandbox_mode, limit: limit, page_size: page_size).entries
|
|
60
59
|
end
|
|
61
60
|
|
|
62
61
|
##
|
|
63
62
|
# Streams EntityInstance records from the API as an Enumerable.
|
|
64
63
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
65
64
|
# is reached.
|
|
65
|
+
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
66
66
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
67
67
|
# guarantees to never return more than limit. Default is no limit.
|
|
68
68
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -70,10 +70,10 @@ module Twilio
|
|
|
70
70
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
71
71
|
# efficient page size, i.e. min(limit, 1000)
|
|
72
72
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
73
|
-
def stream(limit: nil, page_size: nil)
|
|
73
|
+
def stream(twilio_sandbox_mode: :unset, limit: nil, page_size: nil)
|
|
74
74
|
limits = @version.read_limits(limit, page_size)
|
|
75
75
|
|
|
76
|
-
page = self.page(page_size: limits[:page_size], )
|
|
76
|
+
page = self.page(twilio_sandbox_mode: twilio_sandbox_mode, page_size: limits[:page_size], )
|
|
77
77
|
|
|
78
78
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
79
79
|
end
|
|
@@ -95,21 +95,21 @@ module Twilio
|
|
|
95
95
|
##
|
|
96
96
|
# Retrieve a single page of EntityInstance records from the API.
|
|
97
97
|
# Request is executed immediately.
|
|
98
|
+
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
98
99
|
# @param [String] page_token PageToken provided by the API
|
|
99
100
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
100
101
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
101
102
|
# @return [Page] Page of EntityInstance
|
|
102
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
103
|
+
def page(twilio_sandbox_mode: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
103
104
|
params = Twilio::Values.of({
|
|
104
105
|
'PageToken' => page_token,
|
|
105
106
|
'Page' => page_number,
|
|
106
107
|
'PageSize' => page_size,
|
|
107
108
|
})
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
)
|
|
109
|
+
headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
|
|
110
|
+
|
|
111
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
112
|
+
|
|
113
113
|
EntityPage.new(@version, response, @solution)
|
|
114
114
|
end
|
|
115
115
|
|
|
@@ -171,7 +171,8 @@ module Twilio
|
|
|
171
171
|
# Initialize the EntityContext
|
|
172
172
|
# @param [Version] version Version that contains the resource
|
|
173
173
|
# @param [String] service_sid The unique SID identifier of the Service.
|
|
174
|
-
# @param [String] identity
|
|
174
|
+
# @param [String] identity The unique external identifier for the Entity of the
|
|
175
|
+
# Service
|
|
175
176
|
# @return [EntityContext] EntityContext
|
|
176
177
|
def initialize(version, service_sid, identity)
|
|
177
178
|
super(version)
|
|
@@ -182,27 +183,27 @@ module Twilio
|
|
|
182
183
|
|
|
183
184
|
# Dependents
|
|
184
185
|
@factors = nil
|
|
185
|
-
@
|
|
186
|
+
@challenges = nil
|
|
186
187
|
end
|
|
187
188
|
|
|
188
189
|
##
|
|
189
|
-
#
|
|
190
|
+
# Delete the EntityInstance
|
|
191
|
+
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
190
192
|
# @return [Boolean] true if delete succeeds, false otherwise
|
|
191
|
-
def delete
|
|
192
|
-
|
|
193
|
+
def delete(twilio_sandbox_mode: :unset)
|
|
194
|
+
headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
|
|
195
|
+
|
|
196
|
+
@version.delete('DELETE', @uri, headers: headers)
|
|
193
197
|
end
|
|
194
198
|
|
|
195
199
|
##
|
|
196
|
-
# Fetch
|
|
200
|
+
# Fetch the EntityInstance
|
|
201
|
+
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
197
202
|
# @return [EntityInstance] Fetched EntityInstance
|
|
198
|
-
def fetch
|
|
199
|
-
|
|
203
|
+
def fetch(twilio_sandbox_mode: :unset)
|
|
204
|
+
headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
|
|
200
205
|
|
|
201
|
-
payload = @version.fetch(
|
|
202
|
-
'GET',
|
|
203
|
-
@uri,
|
|
204
|
-
params,
|
|
205
|
-
)
|
|
206
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
206
207
|
|
|
207
208
|
EntityInstance.new(
|
|
208
209
|
@version,
|
|
@@ -235,19 +236,25 @@ module Twilio
|
|
|
235
236
|
end
|
|
236
237
|
|
|
237
238
|
##
|
|
238
|
-
# Access the
|
|
239
|
-
# @return [
|
|
240
|
-
# @return [
|
|
241
|
-
def
|
|
242
|
-
|
|
243
|
-
|
|
239
|
+
# Access the challenges
|
|
240
|
+
# @return [ChallengeList]
|
|
241
|
+
# @return [ChallengeContext] if sid was passed.
|
|
242
|
+
def challenges(sid=:unset)
|
|
243
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
244
|
+
|
|
245
|
+
if sid != :unset
|
|
246
|
+
return ChallengeContext.new(@version, @solution[:service_sid], @solution[:identity], sid, )
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
unless @challenges
|
|
250
|
+
@challenges = ChallengeList.new(
|
|
244
251
|
@version,
|
|
245
252
|
service_sid: @solution[:service_sid],
|
|
246
253
|
identity: @solution[:identity],
|
|
247
254
|
)
|
|
248
255
|
end
|
|
249
256
|
|
|
250
|
-
@
|
|
257
|
+
@challenges
|
|
251
258
|
end
|
|
252
259
|
|
|
253
260
|
##
|
|
@@ -273,7 +280,8 @@ module Twilio
|
|
|
273
280
|
# @param [Version] version Version that contains the resource
|
|
274
281
|
# @param [Hash] payload payload that contains response from Twilio
|
|
275
282
|
# @param [String] service_sid The unique SID identifier of the Service.
|
|
276
|
-
# @param [String] identity
|
|
283
|
+
# @param [String] identity The unique external identifier for the Entity of the
|
|
284
|
+
# Service
|
|
277
285
|
# @return [EntityInstance] EntityInstance
|
|
278
286
|
def initialize(version, payload, service_sid: nil, identity: nil)
|
|
279
287
|
super(version)
|
|
@@ -313,7 +321,7 @@ module Twilio
|
|
|
313
321
|
end
|
|
314
322
|
|
|
315
323
|
##
|
|
316
|
-
# @return [String] Unique
|
|
324
|
+
# @return [String] Unique external identifier of the Entity
|
|
317
325
|
def identity
|
|
318
326
|
@properties['identity']
|
|
319
327
|
end
|
|
@@ -355,17 +363,19 @@ module Twilio
|
|
|
355
363
|
end
|
|
356
364
|
|
|
357
365
|
##
|
|
358
|
-
#
|
|
366
|
+
# Delete the EntityInstance
|
|
367
|
+
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
359
368
|
# @return [Boolean] true if delete succeeds, false otherwise
|
|
360
|
-
def delete
|
|
361
|
-
context.delete
|
|
369
|
+
def delete(twilio_sandbox_mode: :unset)
|
|
370
|
+
context.delete(twilio_sandbox_mode: twilio_sandbox_mode, )
|
|
362
371
|
end
|
|
363
372
|
|
|
364
373
|
##
|
|
365
|
-
# Fetch
|
|
374
|
+
# Fetch the EntityInstance
|
|
375
|
+
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
366
376
|
# @return [EntityInstance] Fetched EntityInstance
|
|
367
|
-
def fetch
|
|
368
|
-
context.fetch
|
|
377
|
+
def fetch(twilio_sandbox_mode: :unset)
|
|
378
|
+
context.fetch(twilio_sandbox_mode: twilio_sandbox_mode, )
|
|
369
379
|
end
|
|
370
380
|
|
|
371
381
|
##
|
|
@@ -376,10 +386,10 @@ module Twilio
|
|
|
376
386
|
end
|
|
377
387
|
|
|
378
388
|
##
|
|
379
|
-
# Access the
|
|
380
|
-
# @return [
|
|
381
|
-
def
|
|
382
|
-
context.
|
|
389
|
+
# Access the challenges
|
|
390
|
+
# @return [challenges] challenges
|
|
391
|
+
def challenges
|
|
392
|
+
context.challenges
|
|
383
393
|
end
|
|
384
394
|
|
|
385
395
|
##
|