twilio-ruby 6.8.0 → 7.10.7
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 +5 -5
- data/.dockerignore +1 -1
- data/.github/ISSUE_TEMPLATE/bug_report.yml +69 -0
- data/.github/workflows/test-and-deploy.yml +17 -8
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -0
- data/CHANGES.md +1303 -1
- data/Dockerfile +3 -2
- data/Gemfile +5 -0
- data/Makefile +4 -1
- data/README.md +7 -2
- data/UPGRADE.md +11 -0
- data/cluster/cluster_oauth_spec.rb +19 -0
- data/cluster/cluster_orgs_spec.rb +40 -0
- data/{cluster_spec.rb → cluster/cluster_spec.rb} +0 -2
- data/examples/public_oauth.rb +13 -0
- data/lib/twilio-ruby/auth_strategy/auth_strategy.rb +19 -0
- data/lib/twilio-ruby/auth_strategy/no_auth_strategy.rb +17 -0
- data/lib/twilio-ruby/auth_strategy/token_auth_strategy.rb +39 -0
- data/lib/twilio-ruby/base/client_base.rb +12 -2
- data/lib/twilio-ruby/credential/auth_type.rb +17 -0
- data/lib/twilio-ruby/credential/client_credential_provider.rb +28 -0
- data/lib/twilio-ruby/credential/credential_provider.rb +11 -0
- data/lib/twilio-ruby/credential/orgs_credential_provider.rb +30 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/framework/rest/api_v1_version.rb +22 -0
- data/lib/twilio-ruby/framework/rest/domain.rb +0 -1
- data/lib/twilio-ruby/framework/rest/error.rb +27 -0
- data/lib/twilio-ruby/framework/rest/page.rb +1 -0
- data/lib/twilio-ruby/framework/rest/page_metadata.rb +83 -0
- data/lib/twilio-ruby/framework/rest/resource.rb +16 -0
- data/lib/twilio-ruby/framework/rest/token_page.rb +73 -0
- data/lib/twilio-ruby/framework/rest/version.rb +91 -4
- data/lib/twilio-ruby/http/client_token_manager.rb +31 -0
- data/lib/twilio-ruby/http/http_client.rb +22 -5
- data/lib/twilio-ruby/http/org_token_manager.rb +31 -0
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +143 -1
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +64 -0
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +285 -0
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +177 -10
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +168 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +29 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +385 -42
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +427 -57
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +183 -20
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +183 -6
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +96 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +192 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +283 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +330 -19
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +1004 -207
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +1010 -213
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +559 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +109 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +186 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +550 -120
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +572 -86
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +263 -12
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +274 -36
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +285 -24
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +185 -8
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +250 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +507 -79
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +105 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +215 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +421 -52
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +191 -6
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +254 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +232 -11
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +299 -15
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +343 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +232 -8
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +229 -10
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +254 -19
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +297 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +398 -48
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +311 -18
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +208 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +335 -27
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +124 -7
- data/lib/twilio-ruby/rest/api/v2010/account.rb +271 -13
- data/lib/twilio-ruby/rest/api/v2010.rb +1 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +431 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +296 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +927 -0
- data/lib/twilio-ruby/rest/{microvisor/v1/app.rb → assistants/v1/knowledge/chunk.rb} +145 -169
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +871 -0
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +364 -0
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +360 -0
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +501 -0
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +847 -0
- data/lib/twilio-ruby/rest/assistants/v1.rb +104 -0
- data/lib/twilio-ruby/rest/assistants.rb +6 -0
- data/lib/twilio-ruby/rest/{autopilot_base.rb → assistants_base.rb} +6 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +183 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +163 -13
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +170 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +144 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +195 -8
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/chat/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +266 -16
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/chat/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +162 -7
- data/lib/twilio-ruby/rest/chat/v3.rb +6 -0
- data/lib/twilio-ruby/rest/client.rb +26 -11
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +280 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +144 -3
- data/lib/twilio-ruby/rest/content/v1/content.rb +1577 -10
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1.rb +1 -0
- data/lib/twilio-ruby/rest/content/v2/content.rb +433 -0
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +426 -0
- data/lib/twilio-ruby/rest/content/v2.rb +46 -0
- data/lib/twilio-ruby/rest/content_base.rb +6 -1
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +373 -39
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +206 -15
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +198 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +184 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +360 -37
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +367 -40
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +334 -26
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +421 -76
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +392 -0
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +341 -30
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +295 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +217 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +245 -28
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +200 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +216 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +185 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +363 -37
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +370 -40
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +337 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +425 -77
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +399 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +262 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +321 -24
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +283 -27
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +260 -14
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +318 -24
- data/lib/twilio-ruby/rest/conversations/v1.rb +12 -0
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +507 -0
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +698 -0
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +1208 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +1365 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +369 -0
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +745 -0
- data/lib/twilio-ruby/rest/conversations/v2.rb +142 -0
- data/lib/twilio-ruby/rest/conversations_base.rb +6 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +198 -8
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +183 -8
- data/lib/twilio-ruby/rest/events/v1/schema.rb +144 -3
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +96 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +104 -2
- data/lib/twilio-ruby/rest/events/v1/sink.rb +299 -16
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +298 -19
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +297 -22
- data/lib/twilio-ruby/rest/events/v1.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +288 -31
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +282 -18
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +216 -3
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +433 -60
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +172 -16
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +106 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +331 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +266 -18
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +305 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +109 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +143 -7
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +251 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +548 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +257 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +275 -5
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +629 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +708 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +390 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +572 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +607 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +376 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +547 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +400 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +327 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +312 -19
- data/lib/twilio-ruby/rest/flex_api/v1.rb +137 -0
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +515 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +125 -5
- data/lib/twilio-ruby/rest/flex_api/v2.rb +43 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +200 -12
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +1 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +471 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +328 -0
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +284 -0
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +647 -0
- data/lib/twilio-ruby/rest/iam/v1/role_permission.rb +327 -0
- data/lib/twilio-ruby/rest/iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +99 -0
- data/lib/twilio-ruby/rest/iam.rb +6 -0
- data/lib/twilio-ruby/rest/iam_base.rb +33 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +216 -19
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +162 -13
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +108 -9
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +106 -5
- data/lib/twilio-ruby/rest/insights/v1/call.rb +144 -1
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +267 -26
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +202 -10
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +202 -6
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +183 -8
- data/lib/twilio-ruby/rest/insights/v1/room.rb +194 -8
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +201 -10
- data/lib/twilio-ruby/rest/insights/v1.rb +3 -0
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +579 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +650 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +941 -0
- data/lib/twilio-ruby/rest/insights/v2.rb +82 -0
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +227 -0
- data/lib/twilio-ruby/rest/insights/v3/query.rb +394 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +46 -0
- data/lib/twilio-ruby/rest/insights_base.rb +11 -1
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +728 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +380 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +337 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +539 -0
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +392 -50
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +152 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +207 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +124 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +333 -30
- data/lib/twilio-ruby/rest/intelligence/v2.rb +125 -0
- data/lib/twilio-ruby/rest/intelligence/v3/configuration.rb +1073 -0
- data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +602 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator.rb +784 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator_result.rb +622 -0
- data/lib/twilio-ruby/rest/intelligence/v3/version.rb +556 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +120 -0
- data/lib/twilio-ruby/rest/intelligence_base.rb +6 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +262 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +325 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +865 -0
- data/lib/twilio-ruby/rest/{preview/sync.rb → knowledge/v1.rb} +17 -16
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +306 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +714 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb +739 -0
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +376 -0
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +355 -0
- data/lib/twilio-ruby/rest/knowledge/v2.rb +145 -0
- data/lib/twilio-ruby/rest/knowledge.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge_base.rb +43 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +170 -12
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -0
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +501 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +605 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +252 -44
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +351 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +229 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +99 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +483 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +509 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +563 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +252 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +743 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +342 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +511 -0
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +235 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +94 -0
- data/lib/twilio-ruby/rest/marketplace.rb +6 -0
- data/lib/twilio-ruby/rest/marketplace_base.rb +38 -0
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +362 -0
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +798 -0
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +843 -0
- data/lib/twilio-ruby/rest/memory/v1/event.rb +320 -0
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +710 -0
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +442 -0
- data/lib/twilio-ruby/rest/memory/v1/import.rb +574 -0
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +250 -0
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +786 -0
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +376 -0
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +721 -0
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +366 -0
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +349 -0
- data/lib/twilio-ruby/rest/memory/v1/store.rb +746 -0
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +336 -0
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +904 -0
- data/lib/twilio-ruby/rest/memory/v1.rb +475 -0
- data/lib/twilio-ruby/rest/memory.rb +6 -0
- data/lib/twilio-ruby/rest/{media_base.rb → memory_base.rb} +6 -6
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +96 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +229 -11
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +296 -17
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +151 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +210 -7
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +200 -12
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +344 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +113 -3
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +170 -4
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +379 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +282 -9
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +616 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +543 -30
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +103 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +453 -63
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +870 -83
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +95 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +46 -1
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +1017 -0
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +386 -0
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +237 -0
- data/lib/twilio-ruby/rest/messaging/v2.rb +72 -0
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +247 -0
- data/lib/twilio-ruby/rest/messaging/v3.rb +40 -0
- data/lib/twilio-ruby/rest/messaging_base.rb +11 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +188 -6
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +195 -7
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +336 -30
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +282 -17
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +173 -20
- data/lib/twilio-ruby/rest/notify/v1/service.rb +410 -57
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +190 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +221 -0
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +251 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +375 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +616 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +485 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +168 -26
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +242 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +301 -0
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +333 -0
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +403 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +252 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +125 -12
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +715 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +110 -5
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +270 -16
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +198 -5
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +430 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +448 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +142 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +215 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +248 -9
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +104 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +376 -30
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +218 -11
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +307 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +64 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +35 -0
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +484 -0
- data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
- data/lib/twilio-ruby/rest/numbers_base.rb +5 -0
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +149 -27
- data/lib/twilio-ruby/rest/oauth/v1.rb +4 -22
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +311 -0
- data/lib/twilio-ruby/rest/oauth/v2.rb +46 -0
- data/lib/twilio-ruby/rest/oauth.rb +2 -29
- data/lib/twilio-ruby/rest/oauth_base.rb +6 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +112 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +316 -30
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +406 -48
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +183 -8
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +182 -8
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +225 -11
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +304 -19
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +253 -16
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +328 -25
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +157 -7
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +308 -41
- data/lib/twilio-ruby/rest/preview/wireless.rb +3 -0
- data/lib/twilio-ruby/rest/preview.rb +1 -20
- data/lib/twilio-ruby/rest/preview_base.rb +0 -15
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/preview_iam/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +476 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +603 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +981 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +413 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +50 -0
- data/lib/twilio-ruby/rest/preview_iam.rb +9 -0
- data/lib/twilio-ruby/rest/{microvisor_base.rb → preview_iam_base.rb} +6 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +144 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +22 -4
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v2.rb +13 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +298 -16
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +210 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +231 -11
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +262 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +320 -23
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +350 -62
- data/lib/twilio-ruby/rest/proxy/v1.rb +1 -0
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2.rb +3 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +145 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +260 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +231 -10
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +191 -9
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +302 -17
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +252 -12
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +146 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +309 -21
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +256 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +302 -14
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +207 -7
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +333 -16
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +190 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +185 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +336 -21
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +115 -5
- data/lib/twilio-ruby/rest/studio/v2.rb +1 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +243 -17
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +326 -33
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +249 -15
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +188 -8
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +248 -11
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +266 -14
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +106 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +297 -24
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +239 -13
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +118 -5
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +306 -18
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +333 -25
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +337 -26
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +105 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +294 -13
- data/lib/twilio-ruby/rest/sync/v1/service.rb +341 -30
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +298 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +205 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +505 -117
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +411 -41
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +303 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +258 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +154 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +114 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +351 -27
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +493 -113
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +232 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +168 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +167 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +182 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +336 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +153 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +333 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +339 -29
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +326 -24
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +249 -10
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +190 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +357 -33
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +213 -5
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +656 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +474 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +327 -21
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +345 -39
- data/lib/twilio-ruby/rest/trusthub/v1.rb +31 -1
- data/lib/twilio-ruby/rest/verify/v2/form.rb +144 -3
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +208 -6
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +197 -6
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +402 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +106 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +299 -18
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +292 -26
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +164 -15
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +248 -9
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +479 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +387 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +357 -0
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +302 -15
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +301 -23
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +127 -7
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +332 -30
- data/lib/twilio-ruby/rest/verify/v2/service.rb +667 -65
- data/lib/twilio-ruby/rest/verify/v2/template.rb +104 -5
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +202 -10
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +179 -16
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +286 -17
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +376 -39
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/recording.rb +220 -7
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +145 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +138 -3
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +233 -9
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +136 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +216 -7
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +665 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +379 -39
- data/lib/twilio-ruby/rest/video/v1.rb +4 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +137 -3
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +368 -39
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +326 -24
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +287 -12
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +103 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +102 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +194 -8
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +183 -6
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +64 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +295 -14
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +291 -13
- data/lib/twilio-ruby/rest/voice/v1.rb +10 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +514 -0
- data/lib/twilio-ruby/rest/voice/v3.rb +50 -0
- data/lib/twilio-ruby/rest/voice_base.rb +6 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +278 -15
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +338 -24
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +102 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +343 -44
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +403 -24
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +4 -3
- metadata +193 -88
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -264
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -328
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
- data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
- data/lib/twilio-ruby/rest/autopilot.rb +0 -22
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -420
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -404
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -252
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -432
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
- data/lib/twilio-ruby/rest/media.rb +0 -35
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -358
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -351
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -208
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -374
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -367
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -427
- data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
- data/lib/twilio-ruby/rest/microvisor.rb +0 -24
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -229
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +0 -185
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -417
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -401
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -456
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -414
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -504
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +0 -49
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -449
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -445
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -448
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -505
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
- data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -406
|
@@ -18,12 +18,14 @@ module Twilio
|
|
|
18
18
|
class Verify < VerifyBase
|
|
19
19
|
class V2 < Version
|
|
20
20
|
class ServiceList < ListResource
|
|
21
|
+
|
|
21
22
|
##
|
|
22
23
|
# Initialize the ServiceList
|
|
23
24
|
# @param [Version] version Version that contains the resource
|
|
24
25
|
# @return [ServiceList] ServiceList
|
|
25
26
|
def initialize(version)
|
|
26
27
|
super(version)
|
|
28
|
+
|
|
27
29
|
# Path Solution
|
|
28
30
|
@solution = { }
|
|
29
31
|
@uri = "/Services"
|
|
@@ -39,7 +41,7 @@ module Twilio
|
|
|
39
41
|
# @param [String] tts_name The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.
|
|
40
42
|
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when starting a verification.
|
|
41
43
|
# @param [Boolean] do_not_share_warning_enabled Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code`
|
|
42
|
-
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
44
|
+
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
43
45
|
# @param [Boolean] push_include_date Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter. This timestamp value is the same one as the one found in `date_created`, please use that one instead.
|
|
44
46
|
# @param [String] push_apn_credential_sid Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
45
47
|
# @param [String] push_fcm_credential_sid Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
@@ -48,25 +50,43 @@ module Twilio
|
|
|
48
50
|
# @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
|
|
49
51
|
# @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
|
|
50
52
|
# @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
|
|
53
|
+
# @param [String] whatsapp_msg_service_sid The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users.
|
|
54
|
+
# @param [String] whatsapp_from The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID.
|
|
55
|
+
# @param [String] passkeys_relying_party_id The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys.
|
|
56
|
+
# @param [String] passkeys_relying_party_name The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys.
|
|
57
|
+
# @param [String] passkeys_relying_party_origins The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`.
|
|
58
|
+
# @param [String] passkeys_authenticator_attachment The Authenticator Attachment for Passkeys. This is the type of authenticator that will be used to create Passkeys. It can be empty or it can have the values `platform`, `cross-platform` or `any`.
|
|
59
|
+
# @param [String] passkeys_discoverable_credentials Indicates whether credentials must be discoverable by the authenticator. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
60
|
+
# @param [String] passkeys_user_verification The User Verification for Passkeys. This is the type of user verification that will be used to create Passkeys. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
61
|
+
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
51
62
|
# @return [ServiceInstance] Created ServiceInstance
|
|
52
63
|
def create(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
friendly_name: nil,
|
|
65
|
+
code_length: :unset,
|
|
66
|
+
lookup_enabled: :unset,
|
|
67
|
+
skip_sms_to_landlines: :unset,
|
|
68
|
+
dtmf_input_required: :unset,
|
|
69
|
+
tts_name: :unset,
|
|
70
|
+
psd2_enabled: :unset,
|
|
71
|
+
do_not_share_warning_enabled: :unset,
|
|
72
|
+
custom_code_enabled: :unset,
|
|
73
|
+
push_include_date: :unset,
|
|
74
|
+
push_apn_credential_sid: :unset,
|
|
75
|
+
push_fcm_credential_sid: :unset,
|
|
76
|
+
totp_issuer: :unset,
|
|
77
|
+
totp_time_step: :unset,
|
|
78
|
+
totp_code_length: :unset,
|
|
79
|
+
totp_skew: :unset,
|
|
80
|
+
default_template_sid: :unset,
|
|
81
|
+
whatsapp_msg_service_sid: :unset,
|
|
82
|
+
whatsapp_from: :unset,
|
|
83
|
+
passkeys_relying_party_id: :unset,
|
|
84
|
+
passkeys_relying_party_name: :unset,
|
|
85
|
+
passkeys_relying_party_origins: :unset,
|
|
86
|
+
passkeys_authenticator_attachment: :unset,
|
|
87
|
+
passkeys_discoverable_credentials: :unset,
|
|
88
|
+
passkeys_user_verification: :unset,
|
|
89
|
+
verify_event_subscription_enabled: :unset
|
|
70
90
|
)
|
|
71
91
|
|
|
72
92
|
data = Twilio::Values.of({
|
|
@@ -87,15 +107,136 @@ module Twilio
|
|
|
87
107
|
'Totp.CodeLength' => totp_code_length,
|
|
88
108
|
'Totp.Skew' => totp_skew,
|
|
89
109
|
'DefaultTemplateSid' => default_template_sid,
|
|
110
|
+
'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
|
|
111
|
+
'Whatsapp.From' => whatsapp_from,
|
|
112
|
+
'Passkeys.RelyingParty.Id' => passkeys_relying_party_id,
|
|
113
|
+
'Passkeys.RelyingParty.Name' => passkeys_relying_party_name,
|
|
114
|
+
'Passkeys.RelyingParty.Origins' => passkeys_relying_party_origins,
|
|
115
|
+
'Passkeys.AuthenticatorAttachment' => passkeys_authenticator_attachment,
|
|
116
|
+
'Passkeys.DiscoverableCredentials' => passkeys_discoverable_credentials,
|
|
117
|
+
'Passkeys.UserVerification' => passkeys_user_verification,
|
|
118
|
+
'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
|
|
90
119
|
})
|
|
91
120
|
|
|
92
|
-
|
|
121
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
93
128
|
ServiceInstance.new(
|
|
94
129
|
@version,
|
|
95
130
|
payload,
|
|
96
131
|
)
|
|
97
132
|
end
|
|
98
133
|
|
|
134
|
+
##
|
|
135
|
+
# Create the ServiceInstanceMetadata
|
|
136
|
+
# @param [String] friendly_name A descriptive string that you create to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.**
|
|
137
|
+
# @param [String] code_length The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive.
|
|
138
|
+
# @param [Boolean] lookup_enabled Whether to perform a lookup with each verification started and return info about the phone number.
|
|
139
|
+
# @param [Boolean] skip_sms_to_landlines Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`.
|
|
140
|
+
# @param [Boolean] dtmf_input_required Whether to ask the user to press a number before delivering the verify code in a phone call.
|
|
141
|
+
# @param [String] tts_name The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.
|
|
142
|
+
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when starting a verification.
|
|
143
|
+
# @param [Boolean] do_not_share_warning_enabled Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code`
|
|
144
|
+
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
145
|
+
# @param [Boolean] push_include_date Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter. This timestamp value is the same one as the one found in `date_created`, please use that one instead.
|
|
146
|
+
# @param [String] push_apn_credential_sid Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
147
|
+
# @param [String] push_fcm_credential_sid Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
148
|
+
# @param [String] totp_issuer Optional configuration for the TOTP factors. Set TOTP Issuer for this service. This will allow to configure the issuer of the TOTP URI. Defaults to the service friendly name if not provided.
|
|
149
|
+
# @param [String] totp_time_step Optional configuration for the TOTP factors. Defines how often, in seconds, are TOTP codes generated. i.e, a new TOTP code is generated every time_step seconds. Must be between 20 and 60 seconds, inclusive. Defaults to 30 seconds
|
|
150
|
+
# @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
|
|
151
|
+
# @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
|
|
152
|
+
# @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
|
|
153
|
+
# @param [String] whatsapp_msg_service_sid The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users.
|
|
154
|
+
# @param [String] whatsapp_from The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID.
|
|
155
|
+
# @param [String] passkeys_relying_party_id The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys.
|
|
156
|
+
# @param [String] passkeys_relying_party_name The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys.
|
|
157
|
+
# @param [String] passkeys_relying_party_origins The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`.
|
|
158
|
+
# @param [String] passkeys_authenticator_attachment The Authenticator Attachment for Passkeys. This is the type of authenticator that will be used to create Passkeys. It can be empty or it can have the values `platform`, `cross-platform` or `any`.
|
|
159
|
+
# @param [String] passkeys_discoverable_credentials Indicates whether credentials must be discoverable by the authenticator. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
160
|
+
# @param [String] passkeys_user_verification The User Verification for Passkeys. This is the type of user verification that will be used to create Passkeys. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
161
|
+
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
162
|
+
# @return [ServiceInstance] Created ServiceInstance
|
|
163
|
+
def create_with_metadata(
|
|
164
|
+
friendly_name: nil,
|
|
165
|
+
code_length: :unset,
|
|
166
|
+
lookup_enabled: :unset,
|
|
167
|
+
skip_sms_to_landlines: :unset,
|
|
168
|
+
dtmf_input_required: :unset,
|
|
169
|
+
tts_name: :unset,
|
|
170
|
+
psd2_enabled: :unset,
|
|
171
|
+
do_not_share_warning_enabled: :unset,
|
|
172
|
+
custom_code_enabled: :unset,
|
|
173
|
+
push_include_date: :unset,
|
|
174
|
+
push_apn_credential_sid: :unset,
|
|
175
|
+
push_fcm_credential_sid: :unset,
|
|
176
|
+
totp_issuer: :unset,
|
|
177
|
+
totp_time_step: :unset,
|
|
178
|
+
totp_code_length: :unset,
|
|
179
|
+
totp_skew: :unset,
|
|
180
|
+
default_template_sid: :unset,
|
|
181
|
+
whatsapp_msg_service_sid: :unset,
|
|
182
|
+
whatsapp_from: :unset,
|
|
183
|
+
passkeys_relying_party_id: :unset,
|
|
184
|
+
passkeys_relying_party_name: :unset,
|
|
185
|
+
passkeys_relying_party_origins: :unset,
|
|
186
|
+
passkeys_authenticator_attachment: :unset,
|
|
187
|
+
passkeys_discoverable_credentials: :unset,
|
|
188
|
+
passkeys_user_verification: :unset,
|
|
189
|
+
verify_event_subscription_enabled: :unset
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
data = Twilio::Values.of({
|
|
193
|
+
'FriendlyName' => friendly_name,
|
|
194
|
+
'CodeLength' => code_length,
|
|
195
|
+
'LookupEnabled' => lookup_enabled,
|
|
196
|
+
'SkipSmsToLandlines' => skip_sms_to_landlines,
|
|
197
|
+
'DtmfInputRequired' => dtmf_input_required,
|
|
198
|
+
'TtsName' => tts_name,
|
|
199
|
+
'Psd2Enabled' => psd2_enabled,
|
|
200
|
+
'DoNotShareWarningEnabled' => do_not_share_warning_enabled,
|
|
201
|
+
'CustomCodeEnabled' => custom_code_enabled,
|
|
202
|
+
'Push.IncludeDate' => push_include_date,
|
|
203
|
+
'Push.ApnCredentialSid' => push_apn_credential_sid,
|
|
204
|
+
'Push.FcmCredentialSid' => push_fcm_credential_sid,
|
|
205
|
+
'Totp.Issuer' => totp_issuer,
|
|
206
|
+
'Totp.TimeStep' => totp_time_step,
|
|
207
|
+
'Totp.CodeLength' => totp_code_length,
|
|
208
|
+
'Totp.Skew' => totp_skew,
|
|
209
|
+
'DefaultTemplateSid' => default_template_sid,
|
|
210
|
+
'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
|
|
211
|
+
'Whatsapp.From' => whatsapp_from,
|
|
212
|
+
'Passkeys.RelyingParty.Id' => passkeys_relying_party_id,
|
|
213
|
+
'Passkeys.RelyingParty.Name' => passkeys_relying_party_name,
|
|
214
|
+
'Passkeys.RelyingParty.Origins' => passkeys_relying_party_origins,
|
|
215
|
+
'Passkeys.AuthenticatorAttachment' => passkeys_authenticator_attachment,
|
|
216
|
+
'Passkeys.DiscoverableCredentials' => passkeys_discoverable_credentials,
|
|
217
|
+
'Passkeys.UserVerification' => passkeys_user_verification,
|
|
218
|
+
'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
|
|
219
|
+
})
|
|
220
|
+
|
|
221
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
228
|
+
service_instance = ServiceInstance.new(
|
|
229
|
+
@version,
|
|
230
|
+
response.body,
|
|
231
|
+
)
|
|
232
|
+
ServiceInstanceMetadata.new(
|
|
233
|
+
@version,
|
|
234
|
+
service_instance,
|
|
235
|
+
response.headers,
|
|
236
|
+
response.status_code
|
|
237
|
+
)
|
|
238
|
+
end
|
|
239
|
+
|
|
99
240
|
|
|
100
241
|
##
|
|
101
242
|
# Lists ServiceInstance records from the API as a list.
|
|
@@ -132,7 +273,33 @@ module Twilio
|
|
|
132
273
|
page = self.page(
|
|
133
274
|
page_size: limits[:page_size], )
|
|
134
275
|
|
|
135
|
-
|
|
276
|
+
return [].each if page.nil?
|
|
277
|
+
|
|
278
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
279
|
+
return [].each if result.nil?
|
|
280
|
+
result
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
##
|
|
284
|
+
# Lists ServicePageMetadata records from the API as a list.
|
|
285
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
286
|
+
# guarantees to never return more than limit. Default is no limit
|
|
287
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
288
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
289
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
290
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
291
|
+
# @return [Array] Array of up to limit results
|
|
292
|
+
def list_with_metadata(limit: nil, page_size: nil)
|
|
293
|
+
limits = @version.read_limits(limit, page_size)
|
|
294
|
+
params = Twilio::Values.of({
|
|
295
|
+
|
|
296
|
+
'PageSize' => limits[:page_size],
|
|
297
|
+
});
|
|
298
|
+
headers = Twilio::Values.of({})
|
|
299
|
+
|
|
300
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
301
|
+
|
|
302
|
+
ServicePageMetadata.new(@version, response, @solution, limits[:limit])
|
|
136
303
|
end
|
|
137
304
|
|
|
138
305
|
##
|
|
@@ -144,9 +311,13 @@ module Twilio
|
|
|
144
311
|
|
|
145
312
|
page = self.page(page_size: limits[:page_size], )
|
|
146
313
|
|
|
147
|
-
|
|
314
|
+
return [].each if page.nil?
|
|
315
|
+
|
|
316
|
+
result = @version.stream(page,
|
|
148
317
|
limit: limits[:limit],
|
|
149
|
-
page_limit: limits[:page_limit])
|
|
318
|
+
page_limit: limits[:page_limit])
|
|
319
|
+
return [].each if result.nil?
|
|
320
|
+
result.each {|x| yield x}
|
|
150
321
|
end
|
|
151
322
|
|
|
152
323
|
##
|
|
@@ -156,14 +327,17 @@ module Twilio
|
|
|
156
327
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
157
328
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
158
329
|
# @return [Page] Page of ServiceInstance
|
|
159
|
-
def page(page_token: :unset, page_number: :unset,
|
|
330
|
+
def page(page_token: :unset, page_number: :unset,page_size: :unset)
|
|
160
331
|
params = Twilio::Values.of({
|
|
161
332
|
'PageToken' => page_token,
|
|
162
333
|
'Page' => page_number,
|
|
163
334
|
'PageSize' => page_size,
|
|
164
335
|
})
|
|
336
|
+
headers = Twilio::Values.of({})
|
|
337
|
+
|
|
338
|
+
|
|
165
339
|
|
|
166
|
-
response = @version.page('GET', @uri, params: params)
|
|
340
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
167
341
|
|
|
168
342
|
ServicePage.new(@version, response, @solution)
|
|
169
343
|
end
|
|
@@ -198,6 +372,7 @@ module Twilio
|
|
|
198
372
|
# @return [ServiceContext] ServiceContext
|
|
199
373
|
def initialize(version, sid)
|
|
200
374
|
super(version)
|
|
375
|
+
|
|
201
376
|
|
|
202
377
|
# Path Solution
|
|
203
378
|
@solution = { sid: sid, }
|
|
@@ -205,10 +380,14 @@ module Twilio
|
|
|
205
380
|
|
|
206
381
|
# Dependents
|
|
207
382
|
@verification_checks = nil
|
|
383
|
+
@new_verify_factors = nil
|
|
384
|
+
@new_factors = nil
|
|
385
|
+
@approve_challenge = nil
|
|
208
386
|
@verifications = nil
|
|
209
387
|
@access_tokens = nil
|
|
210
388
|
@webhooks = nil
|
|
211
389
|
@messaging_configurations = nil
|
|
390
|
+
@new_challenge = nil
|
|
212
391
|
@entities = nil
|
|
213
392
|
@rate_limits = nil
|
|
214
393
|
end
|
|
@@ -217,7 +396,31 @@ module Twilio
|
|
|
217
396
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
218
397
|
def delete
|
|
219
398
|
|
|
220
|
-
|
|
399
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
@version.delete('DELETE', @uri, headers: headers)
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
##
|
|
408
|
+
# Delete the ServiceInstanceMetadata
|
|
409
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
410
|
+
def delete_with_metadata
|
|
411
|
+
|
|
412
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
417
|
+
service_instance = ServiceInstance.new(
|
|
418
|
+
@version,
|
|
419
|
+
response.body,
|
|
420
|
+
account_sid: @solution[:account_sid],
|
|
421
|
+
sid: @solution[:sid],
|
|
422
|
+
)
|
|
423
|
+
ServiceInstanceMetadata.new(@version, service_instance, response.headers, response.status_code)
|
|
221
424
|
end
|
|
222
425
|
|
|
223
426
|
##
|
|
@@ -225,7 +428,13 @@ module Twilio
|
|
|
225
428
|
# @return [ServiceInstance] Fetched ServiceInstance
|
|
226
429
|
def fetch
|
|
227
430
|
|
|
228
|
-
|
|
431
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
229
438
|
ServiceInstance.new(
|
|
230
439
|
@version,
|
|
231
440
|
payload,
|
|
@@ -233,6 +442,31 @@ module Twilio
|
|
|
233
442
|
)
|
|
234
443
|
end
|
|
235
444
|
|
|
445
|
+
##
|
|
446
|
+
# Fetch the ServiceInstanceMetadata
|
|
447
|
+
# @return [ServiceInstance] Fetched ServiceInstance
|
|
448
|
+
def fetch_with_metadata
|
|
449
|
+
|
|
450
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
457
|
+
service_instance = ServiceInstance.new(
|
|
458
|
+
@version,
|
|
459
|
+
response.body,
|
|
460
|
+
sid: @solution[:sid],
|
|
461
|
+
)
|
|
462
|
+
ServiceInstanceMetadata.new(
|
|
463
|
+
@version,
|
|
464
|
+
service_instance,
|
|
465
|
+
response.headers,
|
|
466
|
+
response.status_code
|
|
467
|
+
)
|
|
468
|
+
end
|
|
469
|
+
|
|
236
470
|
##
|
|
237
471
|
# Update the ServiceInstance
|
|
238
472
|
# @param [String] friendly_name A descriptive string that you create to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.**
|
|
@@ -243,7 +477,7 @@ module Twilio
|
|
|
243
477
|
# @param [String] tts_name The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.
|
|
244
478
|
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when starting a verification.
|
|
245
479
|
# @param [Boolean] do_not_share_warning_enabled Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.**
|
|
246
|
-
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
480
|
+
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
247
481
|
# @param [Boolean] push_include_date Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter.
|
|
248
482
|
# @param [String] push_apn_credential_sid Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
249
483
|
# @param [String] push_fcm_credential_sid Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
@@ -252,25 +486,43 @@ module Twilio
|
|
|
252
486
|
# @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
|
|
253
487
|
# @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
|
|
254
488
|
# @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
|
|
489
|
+
# @param [String] whatsapp_msg_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service.
|
|
490
|
+
# @param [String] whatsapp_from The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service.
|
|
491
|
+
# @param [String] passkeys_relying_party_id The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys.
|
|
492
|
+
# @param [String] passkeys_relying_party_name The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys.
|
|
493
|
+
# @param [String] passkeys_relying_party_origins The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`.
|
|
494
|
+
# @param [String] passkeys_authenticator_attachment The Authenticator Attachment for Passkeys. This is the type of authenticator that will be used to create Passkeys. It can be empty or it can have the values `platform`, `cross-platform` or `any`.
|
|
495
|
+
# @param [String] passkeys_discoverable_credentials Indicates whether credentials must be discoverable by the authenticator. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
496
|
+
# @param [String] passkeys_user_verification The User Verification for Passkeys. This is the type of user verification that will be used to create Passkeys. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
497
|
+
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
255
498
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
256
499
|
def update(
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
500
|
+
friendly_name: :unset,
|
|
501
|
+
code_length: :unset,
|
|
502
|
+
lookup_enabled: :unset,
|
|
503
|
+
skip_sms_to_landlines: :unset,
|
|
504
|
+
dtmf_input_required: :unset,
|
|
505
|
+
tts_name: :unset,
|
|
506
|
+
psd2_enabled: :unset,
|
|
507
|
+
do_not_share_warning_enabled: :unset,
|
|
508
|
+
custom_code_enabled: :unset,
|
|
509
|
+
push_include_date: :unset,
|
|
510
|
+
push_apn_credential_sid: :unset,
|
|
511
|
+
push_fcm_credential_sid: :unset,
|
|
512
|
+
totp_issuer: :unset,
|
|
513
|
+
totp_time_step: :unset,
|
|
514
|
+
totp_code_length: :unset,
|
|
515
|
+
totp_skew: :unset,
|
|
516
|
+
default_template_sid: :unset,
|
|
517
|
+
whatsapp_msg_service_sid: :unset,
|
|
518
|
+
whatsapp_from: :unset,
|
|
519
|
+
passkeys_relying_party_id: :unset,
|
|
520
|
+
passkeys_relying_party_name: :unset,
|
|
521
|
+
passkeys_relying_party_origins: :unset,
|
|
522
|
+
passkeys_authenticator_attachment: :unset,
|
|
523
|
+
passkeys_discoverable_credentials: :unset,
|
|
524
|
+
passkeys_user_verification: :unset,
|
|
525
|
+
verify_event_subscription_enabled: :unset
|
|
274
526
|
)
|
|
275
527
|
|
|
276
528
|
data = Twilio::Values.of({
|
|
@@ -291,9 +543,24 @@ module Twilio
|
|
|
291
543
|
'Totp.CodeLength' => totp_code_length,
|
|
292
544
|
'Totp.Skew' => totp_skew,
|
|
293
545
|
'DefaultTemplateSid' => default_template_sid,
|
|
546
|
+
'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
|
|
547
|
+
'Whatsapp.From' => whatsapp_from,
|
|
548
|
+
'Passkeys.RelyingParty.Id' => passkeys_relying_party_id,
|
|
549
|
+
'Passkeys.RelyingParty.Name' => passkeys_relying_party_name,
|
|
550
|
+
'Passkeys.RelyingParty.Origins' => passkeys_relying_party_origins,
|
|
551
|
+
'Passkeys.AuthenticatorAttachment' => passkeys_authenticator_attachment,
|
|
552
|
+
'Passkeys.DiscoverableCredentials' => passkeys_discoverable_credentials,
|
|
553
|
+
'Passkeys.UserVerification' => passkeys_user_verification,
|
|
554
|
+
'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
|
|
294
555
|
})
|
|
295
556
|
|
|
296
|
-
|
|
557
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
|
297
564
|
ServiceInstance.new(
|
|
298
565
|
@version,
|
|
299
566
|
payload,
|
|
@@ -301,6 +568,113 @@ module Twilio
|
|
|
301
568
|
)
|
|
302
569
|
end
|
|
303
570
|
|
|
571
|
+
##
|
|
572
|
+
# Update the ServiceInstanceMetadata
|
|
573
|
+
# @param [String] friendly_name A descriptive string that you create to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.**
|
|
574
|
+
# @param [String] code_length The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive.
|
|
575
|
+
# @param [Boolean] lookup_enabled Whether to perform a lookup with each verification started and return info about the phone number.
|
|
576
|
+
# @param [Boolean] skip_sms_to_landlines Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`.
|
|
577
|
+
# @param [Boolean] dtmf_input_required Whether to ask the user to press a number before delivering the verify code in a phone call.
|
|
578
|
+
# @param [String] tts_name The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.
|
|
579
|
+
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when starting a verification.
|
|
580
|
+
# @param [Boolean] do_not_share_warning_enabled Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.**
|
|
581
|
+
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
582
|
+
# @param [Boolean] push_include_date Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter.
|
|
583
|
+
# @param [String] push_apn_credential_sid Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
584
|
+
# @param [String] push_fcm_credential_sid Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
585
|
+
# @param [String] totp_issuer Optional configuration for the TOTP factors. Set TOTP Issuer for this service. This will allow to configure the issuer of the TOTP URI.
|
|
586
|
+
# @param [String] totp_time_step Optional configuration for the TOTP factors. Defines how often, in seconds, are TOTP codes generated. i.e, a new TOTP code is generated every time_step seconds. Must be between 20 and 60 seconds, inclusive. Defaults to 30 seconds
|
|
587
|
+
# @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
|
|
588
|
+
# @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
|
|
589
|
+
# @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
|
|
590
|
+
# @param [String] whatsapp_msg_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service.
|
|
591
|
+
# @param [String] whatsapp_from The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service.
|
|
592
|
+
# @param [String] passkeys_relying_party_id The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys.
|
|
593
|
+
# @param [String] passkeys_relying_party_name The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys.
|
|
594
|
+
# @param [String] passkeys_relying_party_origins The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`.
|
|
595
|
+
# @param [String] passkeys_authenticator_attachment The Authenticator Attachment for Passkeys. This is the type of authenticator that will be used to create Passkeys. It can be empty or it can have the values `platform`, `cross-platform` or `any`.
|
|
596
|
+
# @param [String] passkeys_discoverable_credentials Indicates whether credentials must be discoverable by the authenticator. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
597
|
+
# @param [String] passkeys_user_verification The User Verification for Passkeys. This is the type of user verification that will be used to create Passkeys. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
598
|
+
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
599
|
+
# @return [ServiceInstance] Updated ServiceInstance
|
|
600
|
+
def update_with_metadata(
|
|
601
|
+
friendly_name: :unset,
|
|
602
|
+
code_length: :unset,
|
|
603
|
+
lookup_enabled: :unset,
|
|
604
|
+
skip_sms_to_landlines: :unset,
|
|
605
|
+
dtmf_input_required: :unset,
|
|
606
|
+
tts_name: :unset,
|
|
607
|
+
psd2_enabled: :unset,
|
|
608
|
+
do_not_share_warning_enabled: :unset,
|
|
609
|
+
custom_code_enabled: :unset,
|
|
610
|
+
push_include_date: :unset,
|
|
611
|
+
push_apn_credential_sid: :unset,
|
|
612
|
+
push_fcm_credential_sid: :unset,
|
|
613
|
+
totp_issuer: :unset,
|
|
614
|
+
totp_time_step: :unset,
|
|
615
|
+
totp_code_length: :unset,
|
|
616
|
+
totp_skew: :unset,
|
|
617
|
+
default_template_sid: :unset,
|
|
618
|
+
whatsapp_msg_service_sid: :unset,
|
|
619
|
+
whatsapp_from: :unset,
|
|
620
|
+
passkeys_relying_party_id: :unset,
|
|
621
|
+
passkeys_relying_party_name: :unset,
|
|
622
|
+
passkeys_relying_party_origins: :unset,
|
|
623
|
+
passkeys_authenticator_attachment: :unset,
|
|
624
|
+
passkeys_discoverable_credentials: :unset,
|
|
625
|
+
passkeys_user_verification: :unset,
|
|
626
|
+
verify_event_subscription_enabled: :unset
|
|
627
|
+
)
|
|
628
|
+
|
|
629
|
+
data = Twilio::Values.of({
|
|
630
|
+
'FriendlyName' => friendly_name,
|
|
631
|
+
'CodeLength' => code_length,
|
|
632
|
+
'LookupEnabled' => lookup_enabled,
|
|
633
|
+
'SkipSmsToLandlines' => skip_sms_to_landlines,
|
|
634
|
+
'DtmfInputRequired' => dtmf_input_required,
|
|
635
|
+
'TtsName' => tts_name,
|
|
636
|
+
'Psd2Enabled' => psd2_enabled,
|
|
637
|
+
'DoNotShareWarningEnabled' => do_not_share_warning_enabled,
|
|
638
|
+
'CustomCodeEnabled' => custom_code_enabled,
|
|
639
|
+
'Push.IncludeDate' => push_include_date,
|
|
640
|
+
'Push.ApnCredentialSid' => push_apn_credential_sid,
|
|
641
|
+
'Push.FcmCredentialSid' => push_fcm_credential_sid,
|
|
642
|
+
'Totp.Issuer' => totp_issuer,
|
|
643
|
+
'Totp.TimeStep' => totp_time_step,
|
|
644
|
+
'Totp.CodeLength' => totp_code_length,
|
|
645
|
+
'Totp.Skew' => totp_skew,
|
|
646
|
+
'DefaultTemplateSid' => default_template_sid,
|
|
647
|
+
'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
|
|
648
|
+
'Whatsapp.From' => whatsapp_from,
|
|
649
|
+
'Passkeys.RelyingParty.Id' => passkeys_relying_party_id,
|
|
650
|
+
'Passkeys.RelyingParty.Name' => passkeys_relying_party_name,
|
|
651
|
+
'Passkeys.RelyingParty.Origins' => passkeys_relying_party_origins,
|
|
652
|
+
'Passkeys.AuthenticatorAttachment' => passkeys_authenticator_attachment,
|
|
653
|
+
'Passkeys.DiscoverableCredentials' => passkeys_discoverable_credentials,
|
|
654
|
+
'Passkeys.UserVerification' => passkeys_user_verification,
|
|
655
|
+
'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
|
|
656
|
+
})
|
|
657
|
+
|
|
658
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
665
|
+
service_instance = ServiceInstance.new(
|
|
666
|
+
@version,
|
|
667
|
+
response.body,
|
|
668
|
+
sid: @solution[:sid],
|
|
669
|
+
)
|
|
670
|
+
ServiceInstanceMetadata.new(
|
|
671
|
+
@version,
|
|
672
|
+
service_instance,
|
|
673
|
+
response.headers,
|
|
674
|
+
response.status_code
|
|
675
|
+
)
|
|
676
|
+
end
|
|
677
|
+
|
|
304
678
|
##
|
|
305
679
|
# Access the verification_checks
|
|
306
680
|
# @return [VerificationCheckList]
|
|
@@ -313,6 +687,39 @@ module Twilio
|
|
|
313
687
|
@verification_checks
|
|
314
688
|
end
|
|
315
689
|
##
|
|
690
|
+
# Access the new_verify_factors
|
|
691
|
+
# @return [NewVerifyFactorList]
|
|
692
|
+
# @return [NewVerifyFactorContext]
|
|
693
|
+
def new_verify_factors
|
|
694
|
+
unless @new_verify_factors
|
|
695
|
+
@new_verify_factors = NewVerifyFactorList.new(
|
|
696
|
+
@version, )
|
|
697
|
+
end
|
|
698
|
+
@new_verify_factors
|
|
699
|
+
end
|
|
700
|
+
##
|
|
701
|
+
# Access the new_factors
|
|
702
|
+
# @return [NewFactorList]
|
|
703
|
+
# @return [NewFactorContext]
|
|
704
|
+
def new_factors
|
|
705
|
+
unless @new_factors
|
|
706
|
+
@new_factors = NewFactorList.new(
|
|
707
|
+
@version, )
|
|
708
|
+
end
|
|
709
|
+
@new_factors
|
|
710
|
+
end
|
|
711
|
+
##
|
|
712
|
+
# Access the approve_challenge
|
|
713
|
+
# @return [ApproveChallengeList]
|
|
714
|
+
# @return [ApproveChallengeContext]
|
|
715
|
+
def approve_challenge
|
|
716
|
+
unless @approve_challenge
|
|
717
|
+
@approve_challenge = ApproveChallengeList.new(
|
|
718
|
+
@version, )
|
|
719
|
+
end
|
|
720
|
+
@approve_challenge
|
|
721
|
+
end
|
|
722
|
+
##
|
|
316
723
|
# Access the verifications
|
|
317
724
|
# @return [VerificationList]
|
|
318
725
|
# @return [VerificationContext] if sid was passed.
|
|
@@ -389,6 +796,16 @@ module Twilio
|
|
|
389
796
|
@messaging_configurations
|
|
390
797
|
end
|
|
391
798
|
##
|
|
799
|
+
# Access the new_challenge
|
|
800
|
+
# @return [NewChallengeList]
|
|
801
|
+
# @return [NewChallengeContext]
|
|
802
|
+
def new_challenge
|
|
803
|
+
NewChallengeContext.new(
|
|
804
|
+
@version,
|
|
805
|
+
@solution[:sid]
|
|
806
|
+
)
|
|
807
|
+
end
|
|
808
|
+
##
|
|
392
809
|
# Access the entities
|
|
393
810
|
# @return [EntityList]
|
|
394
811
|
# @return [EntityContext] if sid was passed.
|
|
@@ -442,6 +859,53 @@ module Twilio
|
|
|
442
859
|
end
|
|
443
860
|
end
|
|
444
861
|
|
|
862
|
+
class ServiceInstanceMetadata < InstanceResourceMetadata
|
|
863
|
+
##
|
|
864
|
+
# Initializes a new ServiceInstanceMetadata.
|
|
865
|
+
# @param [Version] version Version that contains the resource
|
|
866
|
+
# @param [}ServiceInstance] service_instance The instance associated with the metadata.
|
|
867
|
+
# @param [Hash] headers Header object with response headers.
|
|
868
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
869
|
+
# @return [ServiceInstanceMetadata] The initialized instance with metadata.
|
|
870
|
+
def initialize(version, service_instance, headers, status_code)
|
|
871
|
+
super(version, headers, status_code)
|
|
872
|
+
@service_instance = service_instance
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
def service
|
|
876
|
+
@service_instance
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
def headers
|
|
880
|
+
@headers
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
def status_code
|
|
884
|
+
@status_code
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
def to_s
|
|
888
|
+
"<Twilio.Api.V2010.ServiceInstanceMetadata status=#{@status_code}>"
|
|
889
|
+
end
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
class ServiceListResponse < InstanceListResource
|
|
893
|
+
# @param [Array<ServiceInstance>] instance
|
|
894
|
+
# @param [Hash{String => Object}] headers
|
|
895
|
+
# @param [Integer] status_code
|
|
896
|
+
def initialize(version, payload, key)
|
|
897
|
+
@service_instance = payload.body[key].map do |data|
|
|
898
|
+
ServiceInstance.new(version, data)
|
|
899
|
+
end
|
|
900
|
+
@headers = payload.headers
|
|
901
|
+
@status_code = payload.status_code
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
def service_instance
|
|
905
|
+
@instance
|
|
906
|
+
end
|
|
907
|
+
end
|
|
908
|
+
|
|
445
909
|
class ServicePage < Page
|
|
446
910
|
##
|
|
447
911
|
# Initialize the ServicePage
|
|
@@ -451,6 +915,7 @@ module Twilio
|
|
|
451
915
|
# @return [ServicePage] ServicePage
|
|
452
916
|
def initialize(version, response, solution)
|
|
453
917
|
super(version, response)
|
|
918
|
+
|
|
454
919
|
|
|
455
920
|
# Path Solution
|
|
456
921
|
@solution = solution
|
|
@@ -470,6 +935,66 @@ module Twilio
|
|
|
470
935
|
'<Twilio.Verify.V2.ServicePage>'
|
|
471
936
|
end
|
|
472
937
|
end
|
|
938
|
+
|
|
939
|
+
class ServicePageMetadata < PageMetadata
|
|
940
|
+
attr_reader :service_page
|
|
941
|
+
|
|
942
|
+
def initialize(version, response, solution, limit)
|
|
943
|
+
super(version, response)
|
|
944
|
+
@service_page = []
|
|
945
|
+
@limit = limit
|
|
946
|
+
key = get_key(response.body)
|
|
947
|
+
records = 0
|
|
948
|
+
while( limit != :unset && records < limit )
|
|
949
|
+
@service_page << ServiceListResponse.new(version, @payload, key, limit - records)
|
|
950
|
+
@payload = self.next_page
|
|
951
|
+
break unless @payload
|
|
952
|
+
records += (@payload.body[key] || []).size
|
|
953
|
+
end
|
|
954
|
+
# Path Solution
|
|
955
|
+
@solution = solution
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
def each
|
|
959
|
+
@service_page.each do |record|
|
|
960
|
+
yield record
|
|
961
|
+
end
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
def to_s
|
|
965
|
+
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
966
|
+
end
|
|
967
|
+
end
|
|
968
|
+
class ServiceListResponse < InstanceListResource
|
|
969
|
+
|
|
970
|
+
# @param [Array<ServiceInstance>] instance
|
|
971
|
+
# @param [Hash{String => Object}] headers
|
|
972
|
+
# @param [Integer] status_code
|
|
973
|
+
def initialize(version, payload, key, limit = :unset)
|
|
974
|
+
data_list = payload.body[key] || []
|
|
975
|
+
if limit != :unset
|
|
976
|
+
data_list = data_list[0, limit]
|
|
977
|
+
end
|
|
978
|
+
@service = data_list.map do |data|
|
|
979
|
+
ServiceInstance.new(version, data)
|
|
980
|
+
end
|
|
981
|
+
@headers = payload.headers
|
|
982
|
+
@status_code = payload.status_code
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
def service
|
|
986
|
+
@service
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
def headers
|
|
990
|
+
@headers
|
|
991
|
+
end
|
|
992
|
+
|
|
993
|
+
def status_code
|
|
994
|
+
@status_code
|
|
995
|
+
end
|
|
996
|
+
end
|
|
997
|
+
|
|
473
998
|
class ServiceInstance < InstanceResource
|
|
474
999
|
##
|
|
475
1000
|
# Initialize the ServiceInstance
|
|
@@ -483,6 +1008,7 @@ module Twilio
|
|
|
483
1008
|
def initialize(version, payload , sid: nil)
|
|
484
1009
|
super(version)
|
|
485
1010
|
|
|
1011
|
+
|
|
486
1012
|
# Marshaled Properties
|
|
487
1013
|
@properties = {
|
|
488
1014
|
'sid' => payload['sid'],
|
|
@@ -499,6 +1025,9 @@ module Twilio
|
|
|
499
1025
|
'push' => payload['push'],
|
|
500
1026
|
'totp' => payload['totp'],
|
|
501
1027
|
'default_template_sid' => payload['default_template_sid'],
|
|
1028
|
+
'whatsapp' => payload['whatsapp'],
|
|
1029
|
+
'passkeys' => payload['passkeys'],
|
|
1030
|
+
'verify_event_subscription_enabled' => payload['verify_event_subscription_enabled'],
|
|
502
1031
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
503
1032
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
504
1033
|
'url' => payload['url'],
|
|
@@ -534,7 +1063,7 @@ module Twilio
|
|
|
534
1063
|
end
|
|
535
1064
|
|
|
536
1065
|
##
|
|
537
|
-
# @return [String] The
|
|
1066
|
+
# @return [String] The name that appears in the body of your verification messages. It can be up to 30 characters long and can include letters, numbers, spaces, dashes, underscores. Phone numbers, special characters or links are NOT allowed. It cannot contain more than 4 (consecutive or non-consecutive) digits. **This value should not contain PII.**
|
|
538
1067
|
def friendly_name
|
|
539
1068
|
@properties['friendly_name']
|
|
540
1069
|
end
|
|
@@ -582,7 +1111,7 @@ module Twilio
|
|
|
582
1111
|
end
|
|
583
1112
|
|
|
584
1113
|
##
|
|
585
|
-
# @return [Boolean] Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
1114
|
+
# @return [Boolean] Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
586
1115
|
def custom_code_enabled
|
|
587
1116
|
@properties['custom_code_enabled']
|
|
588
1117
|
end
|
|
@@ -605,6 +1134,24 @@ module Twilio
|
|
|
605
1134
|
@properties['default_template_sid']
|
|
606
1135
|
end
|
|
607
1136
|
|
|
1137
|
+
##
|
|
1138
|
+
# @return [Hash]
|
|
1139
|
+
def whatsapp
|
|
1140
|
+
@properties['whatsapp']
|
|
1141
|
+
end
|
|
1142
|
+
|
|
1143
|
+
##
|
|
1144
|
+
# @return [Hash]
|
|
1145
|
+
def passkeys
|
|
1146
|
+
@properties['passkeys']
|
|
1147
|
+
end
|
|
1148
|
+
|
|
1149
|
+
##
|
|
1150
|
+
# @return [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
1151
|
+
def verify_event_subscription_enabled
|
|
1152
|
+
@properties['verify_event_subscription_enabled']
|
|
1153
|
+
end
|
|
1154
|
+
|
|
608
1155
|
##
|
|
609
1156
|
# @return [Time] The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
610
1157
|
def date_created
|
|
@@ -655,7 +1202,7 @@ module Twilio
|
|
|
655
1202
|
# @param [String] tts_name The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.
|
|
656
1203
|
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when starting a verification.
|
|
657
1204
|
# @param [Boolean] do_not_share_warning_enabled Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.**
|
|
658
|
-
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
1205
|
+
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
|
659
1206
|
# @param [Boolean] push_include_date Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter.
|
|
660
1207
|
# @param [String] push_apn_credential_sid Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
661
1208
|
# @param [String] push_fcm_credential_sid Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
|
@@ -664,25 +1211,43 @@ module Twilio
|
|
|
664
1211
|
# @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
|
|
665
1212
|
# @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
|
|
666
1213
|
# @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
|
|
1214
|
+
# @param [String] whatsapp_msg_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service.
|
|
1215
|
+
# @param [String] whatsapp_from The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service.
|
|
1216
|
+
# @param [String] passkeys_relying_party_id The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys.
|
|
1217
|
+
# @param [String] passkeys_relying_party_name The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys.
|
|
1218
|
+
# @param [String] passkeys_relying_party_origins The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`.
|
|
1219
|
+
# @param [String] passkeys_authenticator_attachment The Authenticator Attachment for Passkeys. This is the type of authenticator that will be used to create Passkeys. It can be empty or it can have the values `platform`, `cross-platform` or `any`.
|
|
1220
|
+
# @param [String] passkeys_discoverable_credentials Indicates whether credentials must be discoverable by the authenticator. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
1221
|
+
# @param [String] passkeys_user_verification The User Verification for Passkeys. This is the type of user verification that will be used to create Passkeys. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
|
1222
|
+
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
667
1223
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
668
1224
|
def update(
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
1225
|
+
friendly_name: :unset,
|
|
1226
|
+
code_length: :unset,
|
|
1227
|
+
lookup_enabled: :unset,
|
|
1228
|
+
skip_sms_to_landlines: :unset,
|
|
1229
|
+
dtmf_input_required: :unset,
|
|
1230
|
+
tts_name: :unset,
|
|
1231
|
+
psd2_enabled: :unset,
|
|
1232
|
+
do_not_share_warning_enabled: :unset,
|
|
1233
|
+
custom_code_enabled: :unset,
|
|
1234
|
+
push_include_date: :unset,
|
|
1235
|
+
push_apn_credential_sid: :unset,
|
|
1236
|
+
push_fcm_credential_sid: :unset,
|
|
1237
|
+
totp_issuer: :unset,
|
|
1238
|
+
totp_time_step: :unset,
|
|
1239
|
+
totp_code_length: :unset,
|
|
1240
|
+
totp_skew: :unset,
|
|
1241
|
+
default_template_sid: :unset,
|
|
1242
|
+
whatsapp_msg_service_sid: :unset,
|
|
1243
|
+
whatsapp_from: :unset,
|
|
1244
|
+
passkeys_relying_party_id: :unset,
|
|
1245
|
+
passkeys_relying_party_name: :unset,
|
|
1246
|
+
passkeys_relying_party_origins: :unset,
|
|
1247
|
+
passkeys_authenticator_attachment: :unset,
|
|
1248
|
+
passkeys_discoverable_credentials: :unset,
|
|
1249
|
+
passkeys_user_verification: :unset,
|
|
1250
|
+
verify_event_subscription_enabled: :unset
|
|
686
1251
|
)
|
|
687
1252
|
|
|
688
1253
|
context.update(
|
|
@@ -703,6 +1268,15 @@ module Twilio
|
|
|
703
1268
|
totp_code_length: totp_code_length,
|
|
704
1269
|
totp_skew: totp_skew,
|
|
705
1270
|
default_template_sid: default_template_sid,
|
|
1271
|
+
whatsapp_msg_service_sid: whatsapp_msg_service_sid,
|
|
1272
|
+
whatsapp_from: whatsapp_from,
|
|
1273
|
+
passkeys_relying_party_id: passkeys_relying_party_id,
|
|
1274
|
+
passkeys_relying_party_name: passkeys_relying_party_name,
|
|
1275
|
+
passkeys_relying_party_origins: passkeys_relying_party_origins,
|
|
1276
|
+
passkeys_authenticator_attachment: passkeys_authenticator_attachment,
|
|
1277
|
+
passkeys_discoverable_credentials: passkeys_discoverable_credentials,
|
|
1278
|
+
passkeys_user_verification: passkeys_user_verification,
|
|
1279
|
+
verify_event_subscription_enabled: verify_event_subscription_enabled,
|
|
706
1280
|
)
|
|
707
1281
|
end
|
|
708
1282
|
|
|
@@ -713,6 +1287,27 @@ module Twilio
|
|
|
713
1287
|
context.verification_checks
|
|
714
1288
|
end
|
|
715
1289
|
|
|
1290
|
+
##
|
|
1291
|
+
# Access the new_verify_factors
|
|
1292
|
+
# @return [new_verify_factors] new_verify_factors
|
|
1293
|
+
def new_verify_factors
|
|
1294
|
+
context.new_verify_factors
|
|
1295
|
+
end
|
|
1296
|
+
|
|
1297
|
+
##
|
|
1298
|
+
# Access the new_factors
|
|
1299
|
+
# @return [new_factors] new_factors
|
|
1300
|
+
def new_factors
|
|
1301
|
+
context.new_factors
|
|
1302
|
+
end
|
|
1303
|
+
|
|
1304
|
+
##
|
|
1305
|
+
# Access the approve_challenge
|
|
1306
|
+
# @return [approve_challenge] approve_challenge
|
|
1307
|
+
def approve_challenge
|
|
1308
|
+
context.approve_challenge
|
|
1309
|
+
end
|
|
1310
|
+
|
|
716
1311
|
##
|
|
717
1312
|
# Access the verifications
|
|
718
1313
|
# @return [verifications] verifications
|
|
@@ -741,6 +1336,13 @@ module Twilio
|
|
|
741
1336
|
context.messaging_configurations
|
|
742
1337
|
end
|
|
743
1338
|
|
|
1339
|
+
##
|
|
1340
|
+
# Access the new_challenge
|
|
1341
|
+
# @return [new_challenge] new_challenge
|
|
1342
|
+
def new_challenge
|
|
1343
|
+
context.new_challenge
|
|
1344
|
+
end
|
|
1345
|
+
|
|
744
1346
|
##
|
|
745
1347
|
# Access the entities
|
|
746
1348
|
# @return [entities] entities
|