twilio-ruby 5.34.1 → 5.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +126 -0
- data/README.md +24 -3
- data/lib/twilio-ruby.rb +1 -1
- 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 +100 -117
- 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 +4 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +13 -30
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +21 -19
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +60 -39
- 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 +6 -13
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +6 -13
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +6 -13
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +10 -22
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +84 -101
- 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 +42 -59
- 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 +15 -20
- 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 +25 -33
- 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 +35 -15
- 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 +70 -37
- 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 +14 -26
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +16 -34
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +19 -33
- 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 +33 -31
- 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.rb +6 -0
- 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.rb +7 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +3 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +195 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +29 -9
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +233 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +260 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +189 -0
- 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 +13 -30
- 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 +13 -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.rb +11 -1
- data/lib/twilio-ruby/rest/supersim/v1.rb +16 -1
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +9 -22
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +44 -48
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +307 -0
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +63 -39
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +339 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +7 -19
- 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 +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/form.rb +15 -21
- data/lib/twilio-ruby/rest/verify/v2/service.rb +110 -33
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +124 -0
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity.rb +82 -48
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +477 -0
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor.rb +74 -108
- 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 +7 -22
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +3 -8
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +408 -0
- 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 +16 -24
- data/lib/twilio-ruby/rest/video/v1/recording.rb +9 -17
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +16 -24
- 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/util/configuration.rb +9 -1
- data/lib/twilio-ruby/version.rb +1 -1
- 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 +5 -9
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +177 -4
- data/spec/integration/api/v2010/account/conference/recording_spec.rb +0 -3
- data/spec/integration/api/v2010/account/conference_spec.rb +42 -17
- 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 +0 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +0 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +0 -1
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +43 -20
- 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 +0 -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 +8 -18
- 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/validation_request_spec.rb +1 -1
- 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 +4 -8
- 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 +93 -15
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +44 -8
- data/spec/integration/conversations/v1/conversation/webhook_spec.rb +0 -4
- data/spec/integration/conversations/v1/conversation_spec.rb +25 -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 +3 -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 +45 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +51 -0
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +48 -0
- data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -1
- data/spec/integration/preview/trusted_comms/business_spec.rb +1 -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 +1 -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 +8 -6
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +176 -0
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +20 -9
- data/spec/integration/supersim/v1/network_spec.rb +137 -0
- data/spec/integration/supersim/v1/sim_spec.rb +78 -9
- 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 +13 -16
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -26
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -32
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -20
- data/spec/integration/trunking/v1/trunk_spec.rb +33 -38
- data/spec/integration/{authy/v1 → 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/challenge_spec.rb +252 -0
- data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor_spec.rb +61 -67
- data/spec/integration/verify/v2/service/entity_spec.rb +209 -0
- 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 +32 -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
- data/spec/rest/client_spec.rb +168 -58
- data/spec/util/configuration_spec.rb +12 -0
- metadata +42 -24
- 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/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/spec/integration/authy/v1/service/entity/factor/challenge_spec.rb +0 -353
- 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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -320,19 +320,11 @@ files:
|
|
320
320
|
- lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb
|
321
321
|
- lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb
|
322
322
|
- lib/twilio-ruby/rest/api/v2010/account/validation_request.rb
|
323
|
-
- lib/twilio-ruby/rest/authy.rb
|
324
|
-
- lib/twilio-ruby/rest/authy/v1.rb
|
325
|
-
- lib/twilio-ruby/rest/authy/v1/form.rb
|
326
|
-
- lib/twilio-ruby/rest/authy/v1/service.rb
|
327
|
-
- lib/twilio-ruby/rest/authy/v1/service/entity.rb
|
328
|
-
- lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb
|
329
|
-
- lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb
|
330
323
|
- lib/twilio-ruby/rest/autopilot.rb
|
331
324
|
- lib/twilio-ruby/rest/autopilot/v1.rb
|
332
325
|
- lib/twilio-ruby/rest/autopilot/v1/assistant.rb
|
333
326
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb
|
334
327
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb
|
335
|
-
- lib/twilio-ruby/rest/autopilot/v1/assistant/export_assistant.rb
|
336
328
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb
|
337
329
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb
|
338
330
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb
|
@@ -381,6 +373,7 @@ files:
|
|
381
373
|
- lib/twilio-ruby/rest/conversations/v1.rb
|
382
374
|
- lib/twilio-ruby/rest/conversations/v1/conversation.rb
|
383
375
|
- lib/twilio-ruby/rest/conversations/v1/conversation/message.rb
|
376
|
+
- lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb
|
384
377
|
- lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb
|
385
378
|
- lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb
|
386
379
|
- lib/twilio-ruby/rest/conversations/v1/webhook.rb
|
@@ -488,7 +481,11 @@ files:
|
|
488
481
|
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb
|
489
482
|
- lib/twilio-ruby/rest/preview/trusted_comms.rb
|
490
483
|
- lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb
|
484
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
|
491
485
|
- lib/twilio-ruby/rest/preview/trusted_comms/business.rb
|
486
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb
|
487
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb
|
488
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb
|
492
489
|
- lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb
|
493
490
|
- lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb
|
494
491
|
- lib/twilio-ruby/rest/preview/trusted_comms/cps.rb
|
@@ -573,7 +570,9 @@ files:
|
|
573
570
|
- lib/twilio-ruby/rest/supersim/v1.rb
|
574
571
|
- lib/twilio-ruby/rest/supersim/v1/command.rb
|
575
572
|
- lib/twilio-ruby/rest/supersim/v1/fleet.rb
|
573
|
+
- lib/twilio-ruby/rest/supersim/v1/network.rb
|
576
574
|
- lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb
|
575
|
+
- lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
|
577
576
|
- lib/twilio-ruby/rest/supersim/v1/sim.rb
|
578
577
|
- lib/twilio-ruby/rest/supersim/v1/usage_record.rb
|
579
578
|
- lib/twilio-ruby/rest/sync.rb
|
@@ -625,12 +624,18 @@ files:
|
|
625
624
|
- lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb
|
626
625
|
- lib/twilio-ruby/rest/verify.rb
|
627
626
|
- lib/twilio-ruby/rest/verify/v2.rb
|
627
|
+
- lib/twilio-ruby/rest/verify/v2/form.rb
|
628
628
|
- lib/twilio-ruby/rest/verify/v2/service.rb
|
629
|
+
- lib/twilio-ruby/rest/verify/v2/service/access_token.rb
|
630
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity.rb
|
631
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb
|
632
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
|
629
633
|
- lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb
|
630
634
|
- lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb
|
631
635
|
- lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb
|
632
636
|
- lib/twilio-ruby/rest/verify/v2/service/verification.rb
|
633
637
|
- lib/twilio-ruby/rest/verify/v2/service/verification_check.rb
|
638
|
+
- lib/twilio-ruby/rest/verify/v2/service/webhook.rb
|
634
639
|
- lib/twilio-ruby/rest/video.rb
|
635
640
|
- lib/twilio-ruby/rest/video/v1.rb
|
636
641
|
- lib/twilio-ruby/rest/video/v1/composition.rb
|
@@ -754,14 +759,8 @@ files:
|
|
754
759
|
- spec/integration/api/v2010/account/usage_spec.rb
|
755
760
|
- spec/integration/api/v2010/account/validation_request_spec.rb
|
756
761
|
- spec/integration/api/v2010/account_spec.rb
|
757
|
-
- spec/integration/authy/v1/form_spec.rb
|
758
|
-
- spec/integration/authy/v1/service/entity/factor/challenge_spec.rb
|
759
|
-
- spec/integration/authy/v1/service/entity/factor_spec.rb
|
760
|
-
- spec/integration/authy/v1/service/entity_spec.rb
|
761
|
-
- spec/integration/authy/v1/service_spec.rb
|
762
762
|
- spec/integration/autopilot/v1/assistant/defaults_spec.rb
|
763
763
|
- spec/integration/autopilot/v1/assistant/dialogue_spec.rb
|
764
|
-
- spec/integration/autopilot/v1/assistant/export_assistant_spec.rb
|
765
764
|
- spec/integration/autopilot/v1/assistant/field_type/field_value_spec.rb
|
766
765
|
- spec/integration/autopilot/v1/assistant/field_type_spec.rb
|
767
766
|
- spec/integration/autopilot/v1/assistant/model_build_spec.rb
|
@@ -801,6 +800,7 @@ files:
|
|
801
800
|
- spec/integration/chat/v2/service/user/user_channel_spec.rb
|
802
801
|
- spec/integration/chat/v2/service/user_spec.rb
|
803
802
|
- spec/integration/chat/v2/service_spec.rb
|
803
|
+
- spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb
|
804
804
|
- spec/integration/conversations/v1/conversation/message_spec.rb
|
805
805
|
- spec/integration/conversations/v1/conversation/participant_spec.rb
|
806
806
|
- spec/integration/conversations/v1/conversation/webhook_spec.rb
|
@@ -884,6 +884,10 @@ files:
|
|
884
884
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
885
885
|
- spec/integration/preview/sync/service_spec.rb
|
886
886
|
- spec/integration/preview/trusted_comms/branded_call_spec.rb
|
887
|
+
- spec/integration/preview/trusted_comms/brands_information_spec.rb
|
888
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb
|
889
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb
|
890
|
+
- spec/integration/preview/trusted_comms/business/brand_spec.rb
|
887
891
|
- spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb
|
888
892
|
- spec/integration/preview/trusted_comms/business/insights_spec.rb
|
889
893
|
- spec/integration/preview/trusted_comms/business_spec.rb
|
@@ -955,7 +959,9 @@ files:
|
|
955
959
|
- spec/integration/studio/v2/flow_validate_spec.rb
|
956
960
|
- spec/integration/supersim/v1/command_spec.rb
|
957
961
|
- spec/integration/supersim/v1/fleet_spec.rb
|
962
|
+
- spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb
|
958
963
|
- spec/integration/supersim/v1/network_access_profile_spec.rb
|
964
|
+
- spec/integration/supersim/v1/network_spec.rb
|
959
965
|
- spec/integration/supersim/v1/sim_spec.rb
|
960
966
|
- spec/integration/supersim/v1/usage_record_spec.rb
|
961
967
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
@@ -999,11 +1005,17 @@ files:
|
|
999
1005
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
1000
1006
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
1001
1007
|
- spec/integration/trunking/v1/trunk_spec.rb
|
1008
|
+
- spec/integration/verify/v2/form_spec.rb
|
1009
|
+
- spec/integration/verify/v2/service/access_token_spec.rb
|
1010
|
+
- spec/integration/verify/v2/service/entity/challenge_spec.rb
|
1011
|
+
- spec/integration/verify/v2/service/entity/factor_spec.rb
|
1012
|
+
- spec/integration/verify/v2/service/entity_spec.rb
|
1002
1013
|
- spec/integration/verify/v2/service/messaging_configuration_spec.rb
|
1003
1014
|
- spec/integration/verify/v2/service/rate_limit/bucket_spec.rb
|
1004
1015
|
- spec/integration/verify/v2/service/rate_limit_spec.rb
|
1005
1016
|
- spec/integration/verify/v2/service/verification_check_spec.rb
|
1006
1017
|
- spec/integration/verify/v2/service/verification_spec.rb
|
1018
|
+
- spec/integration/verify/v2/service/webhook_spec.rb
|
1007
1019
|
- spec/integration/verify/v2/service_spec.rb
|
1008
1020
|
- spec/integration/video/v1/composition_hook_spec.rb
|
1009
1021
|
- spec/integration/video/v1/composition_settings_spec.rb
|
@@ -1072,8 +1084,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1072
1084
|
- !ruby/object:Gem::Version
|
1073
1085
|
version: '0'
|
1074
1086
|
requirements: []
|
1075
|
-
|
1076
|
-
rubygems_version: 2.7.10
|
1087
|
+
rubygems_version: 3.0.8
|
1077
1088
|
signing_key:
|
1078
1089
|
specification_version: 4
|
1079
1090
|
summary: The official library for communicating with the Twilio REST API, building
|
@@ -1161,14 +1172,8 @@ test_files:
|
|
1161
1172
|
- spec/integration/api/v2010/account/usage_spec.rb
|
1162
1173
|
- spec/integration/api/v2010/account/validation_request_spec.rb
|
1163
1174
|
- spec/integration/api/v2010/account_spec.rb
|
1164
|
-
- spec/integration/authy/v1/form_spec.rb
|
1165
|
-
- spec/integration/authy/v1/service/entity/factor/challenge_spec.rb
|
1166
|
-
- spec/integration/authy/v1/service/entity/factor_spec.rb
|
1167
|
-
- spec/integration/authy/v1/service/entity_spec.rb
|
1168
|
-
- spec/integration/authy/v1/service_spec.rb
|
1169
1175
|
- spec/integration/autopilot/v1/assistant/defaults_spec.rb
|
1170
1176
|
- spec/integration/autopilot/v1/assistant/dialogue_spec.rb
|
1171
|
-
- spec/integration/autopilot/v1/assistant/export_assistant_spec.rb
|
1172
1177
|
- spec/integration/autopilot/v1/assistant/field_type/field_value_spec.rb
|
1173
1178
|
- spec/integration/autopilot/v1/assistant/field_type_spec.rb
|
1174
1179
|
- spec/integration/autopilot/v1/assistant/model_build_spec.rb
|
@@ -1208,6 +1213,7 @@ test_files:
|
|
1208
1213
|
- spec/integration/chat/v2/service/user/user_channel_spec.rb
|
1209
1214
|
- spec/integration/chat/v2/service/user_spec.rb
|
1210
1215
|
- spec/integration/chat/v2/service_spec.rb
|
1216
|
+
- spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb
|
1211
1217
|
- spec/integration/conversations/v1/conversation/message_spec.rb
|
1212
1218
|
- spec/integration/conversations/v1/conversation/participant_spec.rb
|
1213
1219
|
- spec/integration/conversations/v1/conversation/webhook_spec.rb
|
@@ -1291,6 +1297,10 @@ test_files:
|
|
1291
1297
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
1292
1298
|
- spec/integration/preview/sync/service_spec.rb
|
1293
1299
|
- spec/integration/preview/trusted_comms/branded_call_spec.rb
|
1300
|
+
- spec/integration/preview/trusted_comms/brands_information_spec.rb
|
1301
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb
|
1302
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb
|
1303
|
+
- spec/integration/preview/trusted_comms/business/brand_spec.rb
|
1294
1304
|
- spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb
|
1295
1305
|
- spec/integration/preview/trusted_comms/business/insights_spec.rb
|
1296
1306
|
- spec/integration/preview/trusted_comms/business_spec.rb
|
@@ -1362,7 +1372,9 @@ test_files:
|
|
1362
1372
|
- spec/integration/studio/v2/flow_validate_spec.rb
|
1363
1373
|
- spec/integration/supersim/v1/command_spec.rb
|
1364
1374
|
- spec/integration/supersim/v1/fleet_spec.rb
|
1375
|
+
- spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb
|
1365
1376
|
- spec/integration/supersim/v1/network_access_profile_spec.rb
|
1377
|
+
- spec/integration/supersim/v1/network_spec.rb
|
1366
1378
|
- spec/integration/supersim/v1/sim_spec.rb
|
1367
1379
|
- spec/integration/supersim/v1/usage_record_spec.rb
|
1368
1380
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
@@ -1406,11 +1418,17 @@ test_files:
|
|
1406
1418
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
1407
1419
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
1408
1420
|
- spec/integration/trunking/v1/trunk_spec.rb
|
1421
|
+
- spec/integration/verify/v2/form_spec.rb
|
1422
|
+
- spec/integration/verify/v2/service/access_token_spec.rb
|
1423
|
+
- spec/integration/verify/v2/service/entity/challenge_spec.rb
|
1424
|
+
- spec/integration/verify/v2/service/entity/factor_spec.rb
|
1425
|
+
- spec/integration/verify/v2/service/entity_spec.rb
|
1409
1426
|
- spec/integration/verify/v2/service/messaging_configuration_spec.rb
|
1410
1427
|
- spec/integration/verify/v2/service/rate_limit/bucket_spec.rb
|
1411
1428
|
- spec/integration/verify/v2/service/rate_limit_spec.rb
|
1412
1429
|
- spec/integration/verify/v2/service/verification_check_spec.rb
|
1413
1430
|
- spec/integration/verify/v2/service/verification_spec.rb
|
1431
|
+
- spec/integration/verify/v2/service/webhook_spec.rb
|
1414
1432
|
- spec/integration/verify/v2/service_spec.rb
|
1415
1433
|
- spec/integration/video/v1/composition_hook_spec.rb
|
1416
1434
|
- spec/integration/video/v1/composition_settings_spec.rb
|
@@ -1,55 +0,0 @@
|
|
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 Authy < Domain
|
12
|
-
##
|
13
|
-
# Initialize the Authy Domain
|
14
|
-
def initialize(twilio)
|
15
|
-
super
|
16
|
-
|
17
|
-
@base_url = 'https://authy.twilio.com'
|
18
|
-
@host = 'authy.twilio.com'
|
19
|
-
@port = 443
|
20
|
-
|
21
|
-
# Versions
|
22
|
-
@v1 = nil
|
23
|
-
end
|
24
|
-
|
25
|
-
##
|
26
|
-
# Version v1 of authy
|
27
|
-
def v1
|
28
|
-
@v1 ||= V1.new self
|
29
|
-
end
|
30
|
-
|
31
|
-
##
|
32
|
-
# @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
|
33
|
-
# `form-sms` or `form-totp`.
|
34
|
-
# @return [Twilio::REST::Authy::V1::FormInstance] if form_type was passed.
|
35
|
-
# @return [Twilio::REST::Authy::V1::FormList]
|
36
|
-
def forms(form_type=:unset)
|
37
|
-
self.v1.forms(form_type)
|
38
|
-
end
|
39
|
-
|
40
|
-
##
|
41
|
-
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
42
|
-
# @return [Twilio::REST::Authy::V1::ServiceInstance] if sid was passed.
|
43
|
-
# @return [Twilio::REST::Authy::V1::ServiceList]
|
44
|
-
def services(sid=:unset)
|
45
|
-
self.v1.services(sid)
|
46
|
-
end
|
47
|
-
|
48
|
-
##
|
49
|
-
# Provide a user friendly representation
|
50
|
-
def to_s
|
51
|
-
'#<Twilio::REST::Authy>'
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,59 +0,0 @@
|
|
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 Authy
|
12
|
-
class V1 < Version
|
13
|
-
##
|
14
|
-
# Initialize the V1 version of Authy
|
15
|
-
def initialize(domain)
|
16
|
-
super
|
17
|
-
@version = 'v1'
|
18
|
-
@forms = nil
|
19
|
-
@services = nil
|
20
|
-
end
|
21
|
-
|
22
|
-
##
|
23
|
-
# @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
|
24
|
-
# `form-sms` or `form-totp`.
|
25
|
-
# @return [Twilio::REST::Authy::V1::FormContext] if form_type was passed.
|
26
|
-
# @return [Twilio::REST::Authy::V1::FormList]
|
27
|
-
def forms(form_type=:unset)
|
28
|
-
if form_type.nil?
|
29
|
-
raise ArgumentError, 'form_type cannot be nil'
|
30
|
-
elsif form_type == :unset
|
31
|
-
@forms ||= FormList.new self
|
32
|
-
else
|
33
|
-
FormContext.new(self, form_type)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
##
|
38
|
-
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
39
|
-
# @return [Twilio::REST::Authy::V1::ServiceContext] if sid was passed.
|
40
|
-
# @return [Twilio::REST::Authy::V1::ServiceList]
|
41
|
-
def services(sid=:unset)
|
42
|
-
if sid.nil?
|
43
|
-
raise ArgumentError, 'sid cannot be nil'
|
44
|
-
elsif sid == :unset
|
45
|
-
@services ||= ServiceList.new self
|
46
|
-
else
|
47
|
-
ServiceContext.new(self, sid)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
##
|
52
|
-
# Provide a user friendly representation
|
53
|
-
def to_s
|
54
|
-
'<Twilio::REST::Authy::V1>'
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
@@ -1,404 +0,0 @@
|
|
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 Authy < Domain
|
12
|
-
class V1 < Version
|
13
|
-
##
|
14
|
-
# 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.
|
15
|
-
class ServiceList < ListResource
|
16
|
-
##
|
17
|
-
# Initialize the ServiceList
|
18
|
-
# @param [Version] version Version that contains the resource
|
19
|
-
# @return [ServiceList] ServiceList
|
20
|
-
def initialize(version)
|
21
|
-
super(version)
|
22
|
-
|
23
|
-
# Path Solution
|
24
|
-
@solution = {}
|
25
|
-
@uri = "/Services"
|
26
|
-
end
|
27
|
-
|
28
|
-
##
|
29
|
-
# Retrieve a single page of ServiceInstance records from the API.
|
30
|
-
# Request is executed immediately.
|
31
|
-
# @param [String] friendly_name A human readable description of this resource, up
|
32
|
-
# to 64 characters.
|
33
|
-
# @param [String] push The optional service level push factors configuration. If
|
34
|
-
# present it must be a json string with the following format:
|
35
|
-
# {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
|
36
|
-
# true}
|
37
|
-
# @return [ServiceInstance] Newly created ServiceInstance
|
38
|
-
def create(friendly_name: nil, push: :unset)
|
39
|
-
data = Twilio::Values.of({'FriendlyName' => friendly_name, 'Push' => push, })
|
40
|
-
|
41
|
-
payload = @version.create(
|
42
|
-
'POST',
|
43
|
-
@uri,
|
44
|
-
data: data
|
45
|
-
)
|
46
|
-
|
47
|
-
ServiceInstance.new(@version, payload, )
|
48
|
-
end
|
49
|
-
|
50
|
-
##
|
51
|
-
# Lists ServiceInstance records from the API as a list.
|
52
|
-
# Unlike stream(), this operation is eager and will load `limit` records into
|
53
|
-
# memory before returning.
|
54
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
55
|
-
# guarantees to never return more than limit. Default is no limit
|
56
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
57
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
58
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
59
|
-
# efficient page size, i.e. min(limit, 1000)
|
60
|
-
# @return [Array] Array of up to limit results
|
61
|
-
def list(limit: nil, page_size: nil)
|
62
|
-
self.stream(limit: limit, page_size: page_size).entries
|
63
|
-
end
|
64
|
-
|
65
|
-
##
|
66
|
-
# Streams ServiceInstance records from the API as an Enumerable.
|
67
|
-
# This operation lazily loads records as efficiently as possible until the limit
|
68
|
-
# is reached.
|
69
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
70
|
-
# guarantees to never return more than limit. Default is no limit.
|
71
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
72
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
73
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
74
|
-
# efficient page size, i.e. min(limit, 1000)
|
75
|
-
# @return [Enumerable] Enumerable that will yield up to limit results
|
76
|
-
def stream(limit: nil, page_size: nil)
|
77
|
-
limits = @version.read_limits(limit, page_size)
|
78
|
-
|
79
|
-
page = self.page(page_size: limits[:page_size], )
|
80
|
-
|
81
|
-
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
82
|
-
end
|
83
|
-
|
84
|
-
##
|
85
|
-
# When passed a block, yields ServiceInstance records from the API.
|
86
|
-
# This operation lazily loads records as efficiently as possible until the limit
|
87
|
-
# is reached.
|
88
|
-
def each
|
89
|
-
limits = @version.read_limits
|
90
|
-
|
91
|
-
page = self.page(page_size: limits[:page_size], )
|
92
|
-
|
93
|
-
@version.stream(page,
|
94
|
-
limit: limits[:limit],
|
95
|
-
page_limit: limits[:page_limit]).each {|x| yield x}
|
96
|
-
end
|
97
|
-
|
98
|
-
##
|
99
|
-
# Retrieve a single page of ServiceInstance records from the API.
|
100
|
-
# Request is executed immediately.
|
101
|
-
# @param [String] page_token PageToken provided by the API
|
102
|
-
# @param [Integer] page_number Page Number, this value is simply for client state
|
103
|
-
# @param [Integer] page_size Number of records to return, defaults to 50
|
104
|
-
# @return [Page] Page of ServiceInstance
|
105
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
106
|
-
params = Twilio::Values.of({
|
107
|
-
'PageToken' => page_token,
|
108
|
-
'Page' => page_number,
|
109
|
-
'PageSize' => page_size,
|
110
|
-
})
|
111
|
-
response = @version.page(
|
112
|
-
'GET',
|
113
|
-
@uri,
|
114
|
-
params
|
115
|
-
)
|
116
|
-
ServicePage.new(@version, response, @solution)
|
117
|
-
end
|
118
|
-
|
119
|
-
##
|
120
|
-
# Retrieve a single page of ServiceInstance records from the API.
|
121
|
-
# Request is executed immediately.
|
122
|
-
# @param [String] target_url API-generated URL for the requested results page
|
123
|
-
# @return [Page] Page of ServiceInstance
|
124
|
-
def get_page(target_url)
|
125
|
-
response = @version.domain.request(
|
126
|
-
'GET',
|
127
|
-
target_url
|
128
|
-
)
|
129
|
-
ServicePage.new(@version, response, @solution)
|
130
|
-
end
|
131
|
-
|
132
|
-
##
|
133
|
-
# Provide a user friendly representation
|
134
|
-
def to_s
|
135
|
-
'#<Twilio.Authy.V1.ServiceList>'
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
|
-
##
|
140
|
-
# 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.
|
141
|
-
class ServicePage < Page
|
142
|
-
##
|
143
|
-
# Initialize the ServicePage
|
144
|
-
# @param [Version] version Version that contains the resource
|
145
|
-
# @param [Response] response Response from the API
|
146
|
-
# @param [Hash] solution Path solution for the resource
|
147
|
-
# @return [ServicePage] ServicePage
|
148
|
-
def initialize(version, response, solution)
|
149
|
-
super(version, response)
|
150
|
-
|
151
|
-
# Path Solution
|
152
|
-
@solution = solution
|
153
|
-
end
|
154
|
-
|
155
|
-
##
|
156
|
-
# Build an instance of ServiceInstance
|
157
|
-
# @param [Hash] payload Payload response from the API
|
158
|
-
# @return [ServiceInstance] ServiceInstance
|
159
|
-
def get_instance(payload)
|
160
|
-
ServiceInstance.new(@version, payload, )
|
161
|
-
end
|
162
|
-
|
163
|
-
##
|
164
|
-
# Provide a user friendly representation
|
165
|
-
def to_s
|
166
|
-
'<Twilio.Authy.V1.ServicePage>'
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
|
-
##
|
171
|
-
# 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.
|
172
|
-
class ServiceContext < InstanceContext
|
173
|
-
##
|
174
|
-
# Initialize the ServiceContext
|
175
|
-
# @param [Version] version Version that contains the resource
|
176
|
-
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
177
|
-
# @return [ServiceContext] ServiceContext
|
178
|
-
def initialize(version, sid)
|
179
|
-
super(version)
|
180
|
-
|
181
|
-
# Path Solution
|
182
|
-
@solution = {sid: sid, }
|
183
|
-
@uri = "/Services/#{@solution[:sid]}"
|
184
|
-
|
185
|
-
# Dependents
|
186
|
-
@entities = nil
|
187
|
-
end
|
188
|
-
|
189
|
-
##
|
190
|
-
# Deletes the ServiceInstance
|
191
|
-
# @return [Boolean] true if delete succeeds, false otherwise
|
192
|
-
def delete
|
193
|
-
@version.delete('delete', @uri)
|
194
|
-
end
|
195
|
-
|
196
|
-
##
|
197
|
-
# Fetch a ServiceInstance
|
198
|
-
# @return [ServiceInstance] Fetched ServiceInstance
|
199
|
-
def fetch
|
200
|
-
params = Twilio::Values.of({})
|
201
|
-
|
202
|
-
payload = @version.fetch(
|
203
|
-
'GET',
|
204
|
-
@uri,
|
205
|
-
params,
|
206
|
-
)
|
207
|
-
|
208
|
-
ServiceInstance.new(@version, payload, sid: @solution[:sid], )
|
209
|
-
end
|
210
|
-
|
211
|
-
##
|
212
|
-
# Update the ServiceInstance
|
213
|
-
# @param [String] friendly_name A human readable description of this resource, up
|
214
|
-
# to 64 characters.
|
215
|
-
# @param [String] push The optional service level push factors configuration. If
|
216
|
-
# present it must be a json string with the following format:
|
217
|
-
# {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
|
218
|
-
# true}
|
219
|
-
# @return [ServiceInstance] Updated ServiceInstance
|
220
|
-
def update(friendly_name: :unset, push: :unset)
|
221
|
-
data = Twilio::Values.of({'FriendlyName' => friendly_name, 'Push' => push, })
|
222
|
-
|
223
|
-
payload = @version.update(
|
224
|
-
'POST',
|
225
|
-
@uri,
|
226
|
-
data: data,
|
227
|
-
)
|
228
|
-
|
229
|
-
ServiceInstance.new(@version, payload, sid: @solution[:sid], )
|
230
|
-
end
|
231
|
-
|
232
|
-
##
|
233
|
-
# Access the entities
|
234
|
-
# @return [EntityList]
|
235
|
-
# @return [EntityContext] if identity was passed.
|
236
|
-
def entities(identity=:unset)
|
237
|
-
raise ArgumentError, 'identity cannot be nil' if identity.nil?
|
238
|
-
|
239
|
-
if identity != :unset
|
240
|
-
return EntityContext.new(@version, @solution[:sid], identity, )
|
241
|
-
end
|
242
|
-
|
243
|
-
unless @entities
|
244
|
-
@entities = EntityList.new(@version, service_sid: @solution[:sid], )
|
245
|
-
end
|
246
|
-
|
247
|
-
@entities
|
248
|
-
end
|
249
|
-
|
250
|
-
##
|
251
|
-
# Provide a user friendly representation
|
252
|
-
def to_s
|
253
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
254
|
-
"#<Twilio.Authy.V1.ServiceContext #{context}>"
|
255
|
-
end
|
256
|
-
|
257
|
-
##
|
258
|
-
# Provide a detailed, user friendly representation
|
259
|
-
def inspect
|
260
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
261
|
-
"#<Twilio.Authy.V1.ServiceContext #{context}>"
|
262
|
-
end
|
263
|
-
end
|
264
|
-
|
265
|
-
##
|
266
|
-
# 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.
|
267
|
-
class ServiceInstance < InstanceResource
|
268
|
-
##
|
269
|
-
# Initialize the ServiceInstance
|
270
|
-
# @param [Version] version Version that contains the resource
|
271
|
-
# @param [Hash] payload payload that contains response from Twilio
|
272
|
-
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
273
|
-
# @return [ServiceInstance] ServiceInstance
|
274
|
-
def initialize(version, payload, sid: nil)
|
275
|
-
super(version)
|
276
|
-
|
277
|
-
# Marshaled Properties
|
278
|
-
@properties = {
|
279
|
-
'sid' => payload['sid'],
|
280
|
-
'friendly_name' => payload['friendly_name'],
|
281
|
-
'account_sid' => payload['account_sid'],
|
282
|
-
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
283
|
-
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
284
|
-
'url' => payload['url'],
|
285
|
-
'links' => payload['links'],
|
286
|
-
'configuration' => payload['configuration'],
|
287
|
-
}
|
288
|
-
|
289
|
-
# Context
|
290
|
-
@instance_context = nil
|
291
|
-
@params = {'sid' => sid || @properties['sid'], }
|
292
|
-
end
|
293
|
-
|
294
|
-
##
|
295
|
-
# Generate an instance context for the instance, the context is capable of
|
296
|
-
# performing various actions. All instance actions are proxied to the context
|
297
|
-
# @return [ServiceContext] ServiceContext for this ServiceInstance
|
298
|
-
def context
|
299
|
-
unless @instance_context
|
300
|
-
@instance_context = ServiceContext.new(@version, @params['sid'], )
|
301
|
-
end
|
302
|
-
@instance_context
|
303
|
-
end
|
304
|
-
|
305
|
-
##
|
306
|
-
# @return [String] A string that uniquely identifies this Service.
|
307
|
-
def sid
|
308
|
-
@properties['sid']
|
309
|
-
end
|
310
|
-
|
311
|
-
##
|
312
|
-
# @return [String] A human readable description of this resource.
|
313
|
-
def friendly_name
|
314
|
-
@properties['friendly_name']
|
315
|
-
end
|
316
|
-
|
317
|
-
##
|
318
|
-
# @return [String] Account Sid.
|
319
|
-
def account_sid
|
320
|
-
@properties['account_sid']
|
321
|
-
end
|
322
|
-
|
323
|
-
##
|
324
|
-
# @return [Time] The date this Service was created
|
325
|
-
def date_created
|
326
|
-
@properties['date_created']
|
327
|
-
end
|
328
|
-
|
329
|
-
##
|
330
|
-
# @return [Time] The date this Service was updated
|
331
|
-
def date_updated
|
332
|
-
@properties['date_updated']
|
333
|
-
end
|
334
|
-
|
335
|
-
##
|
336
|
-
# @return [String] The URL of this resource.
|
337
|
-
def url
|
338
|
-
@properties['url']
|
339
|
-
end
|
340
|
-
|
341
|
-
##
|
342
|
-
# @return [String] Nested resource URLs.
|
343
|
-
def links
|
344
|
-
@properties['links']
|
345
|
-
end
|
346
|
-
|
347
|
-
##
|
348
|
-
# @return [Hash] The service level configuration of all the factor types.
|
349
|
-
def configuration
|
350
|
-
@properties['configuration']
|
351
|
-
end
|
352
|
-
|
353
|
-
##
|
354
|
-
# Deletes the ServiceInstance
|
355
|
-
# @return [Boolean] true if delete succeeds, false otherwise
|
356
|
-
def delete
|
357
|
-
context.delete
|
358
|
-
end
|
359
|
-
|
360
|
-
##
|
361
|
-
# Fetch a ServiceInstance
|
362
|
-
# @return [ServiceInstance] Fetched ServiceInstance
|
363
|
-
def fetch
|
364
|
-
context.fetch
|
365
|
-
end
|
366
|
-
|
367
|
-
##
|
368
|
-
# Update the ServiceInstance
|
369
|
-
# @param [String] friendly_name A human readable description of this resource, up
|
370
|
-
# to 64 characters.
|
371
|
-
# @param [String] push The optional service level push factors configuration. If
|
372
|
-
# present it must be a json string with the following format:
|
373
|
-
# {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
|
374
|
-
# true}
|
375
|
-
# @return [ServiceInstance] Updated ServiceInstance
|
376
|
-
def update(friendly_name: :unset, push: :unset)
|
377
|
-
context.update(friendly_name: friendly_name, push: push, )
|
378
|
-
end
|
379
|
-
|
380
|
-
##
|
381
|
-
# Access the entities
|
382
|
-
# @return [entities] entities
|
383
|
-
def entities
|
384
|
-
context.entities
|
385
|
-
end
|
386
|
-
|
387
|
-
##
|
388
|
-
# Provide a user friendly representation
|
389
|
-
def to_s
|
390
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
391
|
-
"<Twilio.Authy.V1.ServiceInstance #{values}>"
|
392
|
-
end
|
393
|
-
|
394
|
-
##
|
395
|
-
# Provide a detailed, user friendly representation
|
396
|
-
def inspect
|
397
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
398
|
-
"<Twilio.Authy.V1.ServiceInstance #{values}>"
|
399
|
-
end
|
400
|
-
end
|
401
|
-
end
|
402
|
-
end
|
403
|
-
end
|
404
|
-
end
|