twilio-ruby 7.10.7 → 7.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +43 -67
- data/.gitignore +0 -1
- data/CHANGES.md +267 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +154 -0
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +25 -65
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +48 -71
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +11 -60
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +2 -61
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +43 -21
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +584 -21
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +28 -28
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +10 -69
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +58 -58
- data/lib/twilio-ruby/rest/conversations/v2.rb +55 -49
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +2 -61
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +15 -61
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/iam_base.rb +6 -1
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +7 -59
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
- data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
- data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
- data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
- data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +17 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +8 -8
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +443 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +28 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +38 -0
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +8 -176
- data/lib/twilio-ruby/rest/knowledge/v2.rb +1 -2
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +9 -177
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +15 -9
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +6 -12
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +1 -81
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +11 -191
- data/lib/twilio-ruby/rest/memory/v1/import.rb +28 -5
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +72 -22
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +2 -2
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +3 -5
- data/lib/twilio-ruby/rest/memory/v1/store.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +56 -6
- data/lib/twilio-ruby/rest/memory/v1.rb +3 -46
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -18
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +23 -4
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +4 -63
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +172 -0
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +179 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +186 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +165 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1.rb +24 -0
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +14 -61
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +200 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +10 -63
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -78
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +406 -0
- data/lib/twilio-ruby/rest/routes/v3.rb +50 -0
- data/lib/twilio-ruby/rest/routes_base.rb +6 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +174 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +262 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +174 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +386 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +386 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +74 -0
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +497 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +297 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +353 -0
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +557 -0
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +532 -0
- data/lib/twilio-ruby/rest/voice/v2/type.rb +459 -0
- data/lib/twilio-ruby/rest/voice/v2.rb +141 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/rest/voice_base.rb +5 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +6 -68
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +36 -22
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +0 -431
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +0 -296
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +0 -927
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +0 -325
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +0 -349
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +0 -871
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +0 -364
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +0 -360
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +0 -501
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +0 -847
- data/lib/twilio-ruby/rest/assistants/v1.rb +0 -104
- data/lib/twilio-ruby/rest/assistants.rb +0 -6
- data/lib/twilio-ruby/rest/assistants_base.rb +0 -38
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
|
@@ -275,65 +275,6 @@ module Twilio
|
|
|
275
275
|
end
|
|
276
276
|
end
|
|
277
277
|
|
|
278
|
-
class AccessTokenPageMetadata < PageMetadata
|
|
279
|
-
attr_reader :access_token_page
|
|
280
|
-
|
|
281
|
-
def initialize(version, response, solution, limit)
|
|
282
|
-
super(version, response)
|
|
283
|
-
@access_token_page = []
|
|
284
|
-
@limit = limit
|
|
285
|
-
key = get_key(response.body)
|
|
286
|
-
records = 0
|
|
287
|
-
while( limit != :unset && records < limit )
|
|
288
|
-
@access_token_page << AccessTokenListResponse.new(version, @payload, key, limit - records)
|
|
289
|
-
@payload = self.next_page
|
|
290
|
-
break unless @payload
|
|
291
|
-
records += (@payload.body[key] || []).size
|
|
292
|
-
end
|
|
293
|
-
# Path Solution
|
|
294
|
-
@solution = solution
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
def each
|
|
298
|
-
@access_token_page.each do |record|
|
|
299
|
-
yield record
|
|
300
|
-
end
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
def to_s
|
|
304
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
305
|
-
end
|
|
306
|
-
end
|
|
307
|
-
class AccessTokenListResponse < InstanceListResource
|
|
308
|
-
|
|
309
|
-
# @param [Array<AccessTokenInstance>] instance
|
|
310
|
-
# @param [Hash{String => Object}] headers
|
|
311
|
-
# @param [Integer] status_code
|
|
312
|
-
def initialize(version, payload, key, limit = :unset)
|
|
313
|
-
data_list = payload.body[key] || []
|
|
314
|
-
if limit != :unset
|
|
315
|
-
data_list = data_list[0, limit]
|
|
316
|
-
end
|
|
317
|
-
@access_token = data_list.map do |data|
|
|
318
|
-
AccessTokenInstance.new(version, data)
|
|
319
|
-
end
|
|
320
|
-
@headers = payload.headers
|
|
321
|
-
@status_code = payload.status_code
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
def access_token
|
|
325
|
-
@access_token
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
def headers
|
|
329
|
-
@headers
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
def status_code
|
|
333
|
-
@status_code
|
|
334
|
-
end
|
|
335
|
-
end
|
|
336
|
-
|
|
337
278
|
class AccessTokenInstance < InstanceResource
|
|
338
279
|
##
|
|
339
280
|
# Initialize the AccessTokenInstance
|
|
@@ -168,65 +168,6 @@ module Twilio
|
|
|
168
168
|
end
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
-
class ApproveChallengePageMetadata < PageMetadata
|
|
172
|
-
attr_reader :approve_challenge_page
|
|
173
|
-
|
|
174
|
-
def initialize(version, response, solution, limit)
|
|
175
|
-
super(version, response)
|
|
176
|
-
@approve_challenge_page = []
|
|
177
|
-
@limit = limit
|
|
178
|
-
key = get_key(response.body)
|
|
179
|
-
records = 0
|
|
180
|
-
while( limit != :unset && records < limit )
|
|
181
|
-
@approve_challenge_page << ApproveChallengeListResponse.new(version, @payload, key, limit - records)
|
|
182
|
-
@payload = self.next_page
|
|
183
|
-
break unless @payload
|
|
184
|
-
records += (@payload.body[key] || []).size
|
|
185
|
-
end
|
|
186
|
-
# Path Solution
|
|
187
|
-
@solution = solution
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def each
|
|
191
|
-
@approve_challenge_page.each do |record|
|
|
192
|
-
yield record
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def to_s
|
|
197
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
class ApproveChallengeListResponse < InstanceListResource
|
|
201
|
-
|
|
202
|
-
# @param [Array<ApproveChallengeInstance>] instance
|
|
203
|
-
# @param [Hash{String => Object}] headers
|
|
204
|
-
# @param [Integer] status_code
|
|
205
|
-
def initialize(version, payload, key, limit = :unset)
|
|
206
|
-
data_list = payload.body[key] || []
|
|
207
|
-
if limit != :unset
|
|
208
|
-
data_list = data_list[0, limit]
|
|
209
|
-
end
|
|
210
|
-
@approve_challenge = data_list.map do |data|
|
|
211
|
-
ApproveChallengeInstance.new(version, data)
|
|
212
|
-
end
|
|
213
|
-
@headers = payload.headers
|
|
214
|
-
@status_code = payload.status_code
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
def approve_challenge
|
|
218
|
-
@approve_challenge
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
def headers
|
|
222
|
-
@headers
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def status_code
|
|
226
|
-
@status_code
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
|
|
230
171
|
class ApproveChallengeInstance < InstanceResource
|
|
231
172
|
##
|
|
232
173
|
# Initialize the ApproveChallengeInstance
|
|
@@ -136,65 +136,6 @@ module Twilio
|
|
|
136
136
|
end
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
class NotificationPageMetadata < PageMetadata
|
|
140
|
-
attr_reader :notification_page
|
|
141
|
-
|
|
142
|
-
def initialize(version, response, solution, limit)
|
|
143
|
-
super(version, response)
|
|
144
|
-
@notification_page = []
|
|
145
|
-
@limit = limit
|
|
146
|
-
key = get_key(response.body)
|
|
147
|
-
records = 0
|
|
148
|
-
while( limit != :unset && records < limit )
|
|
149
|
-
@notification_page << NotificationListResponse.new(version, @payload, key, limit - records)
|
|
150
|
-
@payload = self.next_page
|
|
151
|
-
break unless @payload
|
|
152
|
-
records += (@payload.body[key] || []).size
|
|
153
|
-
end
|
|
154
|
-
# Path Solution
|
|
155
|
-
@solution = solution
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
def each
|
|
159
|
-
@notification_page.each do |record|
|
|
160
|
-
yield record
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
def to_s
|
|
165
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
166
|
-
end
|
|
167
|
-
end
|
|
168
|
-
class NotificationListResponse < InstanceListResource
|
|
169
|
-
|
|
170
|
-
# @param [Array<NotificationInstance>] instance
|
|
171
|
-
# @param [Hash{String => Object}] headers
|
|
172
|
-
# @param [Integer] status_code
|
|
173
|
-
def initialize(version, payload, key, limit = :unset)
|
|
174
|
-
data_list = payload.body[key] || []
|
|
175
|
-
if limit != :unset
|
|
176
|
-
data_list = data_list[0, limit]
|
|
177
|
-
end
|
|
178
|
-
@notification = data_list.map do |data|
|
|
179
|
-
NotificationInstance.new(version, data)
|
|
180
|
-
end
|
|
181
|
-
@headers = payload.headers
|
|
182
|
-
@status_code = payload.status_code
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
def notification
|
|
186
|
-
@notification
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
def headers
|
|
190
|
-
@headers
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
def status_code
|
|
194
|
-
@status_code
|
|
195
|
-
end
|
|
196
|
-
end
|
|
197
|
-
|
|
198
139
|
class NotificationInstance < InstanceResource
|
|
199
140
|
##
|
|
200
141
|
# Initialize the NotificationInstance
|
|
@@ -211,65 +211,6 @@ module Twilio
|
|
|
211
211
|
end
|
|
212
212
|
end
|
|
213
213
|
|
|
214
|
-
class NewFactorPageMetadata < PageMetadata
|
|
215
|
-
attr_reader :new_factor_page
|
|
216
|
-
|
|
217
|
-
def initialize(version, response, solution, limit)
|
|
218
|
-
super(version, response)
|
|
219
|
-
@new_factor_page = []
|
|
220
|
-
@limit = limit
|
|
221
|
-
key = get_key(response.body)
|
|
222
|
-
records = 0
|
|
223
|
-
while( limit != :unset && records < limit )
|
|
224
|
-
@new_factor_page << NewFactorListResponse.new(version, @payload, key, limit - records)
|
|
225
|
-
@payload = self.next_page
|
|
226
|
-
break unless @payload
|
|
227
|
-
records += (@payload.body[key] || []).size
|
|
228
|
-
end
|
|
229
|
-
# Path Solution
|
|
230
|
-
@solution = solution
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
def each
|
|
234
|
-
@new_factor_page.each do |record|
|
|
235
|
-
yield record
|
|
236
|
-
end
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
def to_s
|
|
240
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
class NewFactorListResponse < InstanceListResource
|
|
244
|
-
|
|
245
|
-
# @param [Array<NewFactorInstance>] instance
|
|
246
|
-
# @param [Hash{String => Object}] headers
|
|
247
|
-
# @param [Integer] status_code
|
|
248
|
-
def initialize(version, payload, key, limit = :unset)
|
|
249
|
-
data_list = payload.body[key] || []
|
|
250
|
-
if limit != :unset
|
|
251
|
-
data_list = data_list[0, limit]
|
|
252
|
-
end
|
|
253
|
-
@new_factor = data_list.map do |data|
|
|
254
|
-
NewFactorInstance.new(version, data)
|
|
255
|
-
end
|
|
256
|
-
@headers = payload.headers
|
|
257
|
-
@status_code = payload.status_code
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def new_factor
|
|
261
|
-
@new_factor
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
def headers
|
|
265
|
-
@headers
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
def status_code
|
|
269
|
-
@status_code
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
|
|
273
214
|
class NewFactorInstance < InstanceResource
|
|
274
215
|
##
|
|
275
216
|
# Initialize the NewFactorInstance
|
|
@@ -80,7 +80,7 @@ module Twilio
|
|
|
80
80
|
# Create the NewChallengeInstance
|
|
81
81
|
# @param [CreatePasskeysChallengeRequest] create_passkeys_challenge_request
|
|
82
82
|
# @return [NewChallengeInstance] Created NewChallengeInstance
|
|
83
|
-
def create(create_passkeys_challenge_request:
|
|
83
|
+
def create(create_passkeys_challenge_request: :unset
|
|
84
84
|
)
|
|
85
85
|
|
|
86
86
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -101,7 +101,7 @@ module Twilio
|
|
|
101
101
|
# Create the NewChallengeInstanceMetadata
|
|
102
102
|
# @param [CreatePasskeysChallengeRequest] create_passkeys_challenge_request
|
|
103
103
|
# @return [NewChallengeInstance] Created NewChallengeInstance
|
|
104
|
-
def create_with_metadata(create_passkeys_challenge_request:
|
|
104
|
+
def create_with_metadata(create_passkeys_challenge_request: :unset
|
|
105
105
|
)
|
|
106
106
|
|
|
107
107
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -217,65 +217,6 @@ module Twilio
|
|
|
217
217
|
end
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
-
class NewChallengePageMetadata < PageMetadata
|
|
221
|
-
attr_reader :new_challenge_page
|
|
222
|
-
|
|
223
|
-
def initialize(version, response, solution, limit)
|
|
224
|
-
super(version, response)
|
|
225
|
-
@new_challenge_page = []
|
|
226
|
-
@limit = limit
|
|
227
|
-
key = get_key(response.body)
|
|
228
|
-
records = 0
|
|
229
|
-
while( limit != :unset && records < limit )
|
|
230
|
-
@new_challenge_page << NewChallengeListResponse.new(version, @payload, key, limit - records)
|
|
231
|
-
@payload = self.next_page
|
|
232
|
-
break unless @payload
|
|
233
|
-
records += (@payload.body[key] || []).size
|
|
234
|
-
end
|
|
235
|
-
# Path Solution
|
|
236
|
-
@solution = solution
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
def each
|
|
240
|
-
@new_challenge_page.each do |record|
|
|
241
|
-
yield record
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
def to_s
|
|
246
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
247
|
-
end
|
|
248
|
-
end
|
|
249
|
-
class NewChallengeListResponse < InstanceListResource
|
|
250
|
-
|
|
251
|
-
# @param [Array<NewChallengeInstance>] instance
|
|
252
|
-
# @param [Hash{String => Object}] headers
|
|
253
|
-
# @param [Integer] status_code
|
|
254
|
-
def initialize(version, payload, key, limit = :unset)
|
|
255
|
-
data_list = payload.body[key] || []
|
|
256
|
-
if limit != :unset
|
|
257
|
-
data_list = data_list[0, limit]
|
|
258
|
-
end
|
|
259
|
-
@new_challenge = data_list.map do |data|
|
|
260
|
-
NewChallengeInstance.new(version, data)
|
|
261
|
-
end
|
|
262
|
-
@headers = payload.headers
|
|
263
|
-
@status_code = payload.status_code
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
def new_challenge
|
|
267
|
-
@new_challenge
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
def headers
|
|
271
|
-
@headers
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
def status_code
|
|
275
|
-
@status_code
|
|
276
|
-
end
|
|
277
|
-
end
|
|
278
|
-
|
|
279
220
|
class NewChallengeInstance < InstanceResource
|
|
280
221
|
##
|
|
281
222
|
# Initialize the NewChallengeInstance
|
|
@@ -447,7 +388,7 @@ module Twilio
|
|
|
447
388
|
# Create the NewChallengeInstance
|
|
448
389
|
# @param [CreatePasskeysChallengeRequest] create_passkeys_challenge_request
|
|
449
390
|
# @return [NewChallengeInstance] Created NewChallengeInstance
|
|
450
|
-
def create(create_passkeys_challenge_request:
|
|
391
|
+
def create(create_passkeys_challenge_request: :unset
|
|
451
392
|
)
|
|
452
393
|
|
|
453
394
|
context.create(
|
|
@@ -181,65 +181,6 @@ module Twilio
|
|
|
181
181
|
end
|
|
182
182
|
end
|
|
183
183
|
|
|
184
|
-
class NewFactorPageMetadata < PageMetadata
|
|
185
|
-
attr_reader :new_factor_page
|
|
186
|
-
|
|
187
|
-
def initialize(version, response, solution, limit)
|
|
188
|
-
super(version, response)
|
|
189
|
-
@new_factor_page = []
|
|
190
|
-
@limit = limit
|
|
191
|
-
key = get_key(response.body)
|
|
192
|
-
records = 0
|
|
193
|
-
while( limit != :unset && records < limit )
|
|
194
|
-
@new_factor_page << NewFactorListResponse.new(version, @payload, key, limit - records)
|
|
195
|
-
@payload = self.next_page
|
|
196
|
-
break unless @payload
|
|
197
|
-
records += (@payload.body[key] || []).size
|
|
198
|
-
end
|
|
199
|
-
# Path Solution
|
|
200
|
-
@solution = solution
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
def each
|
|
204
|
-
@new_factor_page.each do |record|
|
|
205
|
-
yield record
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
def to_s
|
|
210
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
class NewFactorListResponse < InstanceListResource
|
|
214
|
-
|
|
215
|
-
# @param [Array<NewFactorInstance>] instance
|
|
216
|
-
# @param [Hash{String => Object}] headers
|
|
217
|
-
# @param [Integer] status_code
|
|
218
|
-
def initialize(version, payload, key, limit = :unset)
|
|
219
|
-
data_list = payload.body[key] || []
|
|
220
|
-
if limit != :unset
|
|
221
|
-
data_list = data_list[0, limit]
|
|
222
|
-
end
|
|
223
|
-
@new_factor = data_list.map do |data|
|
|
224
|
-
NewFactorInstance.new(version, data)
|
|
225
|
-
end
|
|
226
|
-
@headers = payload.headers
|
|
227
|
-
@status_code = payload.status_code
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def new_factor
|
|
231
|
-
@new_factor
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
def headers
|
|
235
|
-
@headers
|
|
236
|
-
end
|
|
237
|
-
|
|
238
|
-
def status_code
|
|
239
|
-
@status_code
|
|
240
|
-
end
|
|
241
|
-
end
|
|
242
|
-
|
|
243
184
|
class NewFactorInstance < InstanceResource
|
|
244
185
|
##
|
|
245
186
|
# Initialize the NewFactorInstance
|
|
@@ -165,65 +165,6 @@ module Twilio
|
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
class NewVerifyFactorPageMetadata < PageMetadata
|
|
169
|
-
attr_reader :new_verify_factor_page
|
|
170
|
-
|
|
171
|
-
def initialize(version, response, solution, limit)
|
|
172
|
-
super(version, response)
|
|
173
|
-
@new_verify_factor_page = []
|
|
174
|
-
@limit = limit
|
|
175
|
-
key = get_key(response.body)
|
|
176
|
-
records = 0
|
|
177
|
-
while( limit != :unset && records < limit )
|
|
178
|
-
@new_verify_factor_page << NewVerifyFactorListResponse.new(version, @payload, key, limit - records)
|
|
179
|
-
@payload = self.next_page
|
|
180
|
-
break unless @payload
|
|
181
|
-
records += (@payload.body[key] || []).size
|
|
182
|
-
end
|
|
183
|
-
# Path Solution
|
|
184
|
-
@solution = solution
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
def each
|
|
188
|
-
@new_verify_factor_page.each do |record|
|
|
189
|
-
yield record
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
def to_s
|
|
194
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
195
|
-
end
|
|
196
|
-
end
|
|
197
|
-
class NewVerifyFactorListResponse < InstanceListResource
|
|
198
|
-
|
|
199
|
-
# @param [Array<NewVerifyFactorInstance>] instance
|
|
200
|
-
# @param [Hash{String => Object}] headers
|
|
201
|
-
# @param [Integer] status_code
|
|
202
|
-
def initialize(version, payload, key, limit = :unset)
|
|
203
|
-
data_list = payload.body[key] || []
|
|
204
|
-
if limit != :unset
|
|
205
|
-
data_list = data_list[0, limit]
|
|
206
|
-
end
|
|
207
|
-
@new_verify_factor = data_list.map do |data|
|
|
208
|
-
NewVerifyFactorInstance.new(version, data)
|
|
209
|
-
end
|
|
210
|
-
@headers = payload.headers
|
|
211
|
-
@status_code = payload.status_code
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
def new_verify_factor
|
|
215
|
-
@new_verify_factor
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
def headers
|
|
219
|
-
@headers
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def status_code
|
|
223
|
-
@status_code
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
|
|
227
168
|
class NewVerifyFactorInstance < InstanceResource
|
|
228
169
|
##
|
|
229
170
|
# Initialize the NewVerifyFactorInstance
|
|
@@ -47,8 +47,9 @@ module Twilio
|
|
|
47
47
|
# @param [Object] rate_limits The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request.
|
|
48
48
|
# @param [Object] channel_configuration [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. The fields 'from' and 'from_name' are optional but if included the 'from' field must have a valid email address.
|
|
49
49
|
# @param [String] app_hash Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
|
50
|
-
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only.
|
|
50
|
+
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. If the `Templates` parameter is also provided, `Templates` takes precedence over this parameter.
|
|
51
51
|
# @param [String] template_custom_substitutions A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
|
|
52
|
+
# @param [String] templates A stringified JSON array of template entries, ordered by preference. Each entry is an object with the following fields: `sid` (string, required, matching `^HJ[0-9a-fA-F]{32}$`) — the SID of the message [template](https://www.twilio.com/docs/verify/api/templates) to apply; and `substitutions` (object, optional) — a key-value map in which the keys are the template's special variables and the values are their substitution values. The array may contain up to 10 entries. If provided, `Templates` takes precedence over `TemplateSid` and `TemplateCustomSubstitutions`.
|
|
52
53
|
# @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
|
|
53
54
|
# @param [Boolean] enable_sna_client_token An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
|
|
54
55
|
# @param [RiskCheck] risk_check
|
|
@@ -69,6 +70,7 @@ module Twilio
|
|
|
69
70
|
app_hash: :unset,
|
|
70
71
|
template_sid: :unset,
|
|
71
72
|
template_custom_substitutions: :unset,
|
|
73
|
+
templates: :unset,
|
|
72
74
|
device_ip: :unset,
|
|
73
75
|
enable_sna_client_token: :unset,
|
|
74
76
|
risk_check: :unset,
|
|
@@ -90,6 +92,7 @@ module Twilio
|
|
|
90
92
|
'AppHash' => app_hash,
|
|
91
93
|
'TemplateSid' => template_sid,
|
|
92
94
|
'TemplateCustomSubstitutions' => template_custom_substitutions,
|
|
95
|
+
'Templates' => templates,
|
|
93
96
|
'DeviceIp' => device_ip,
|
|
94
97
|
'EnableSnaClientToken' => enable_sna_client_token,
|
|
95
98
|
'RiskCheck' => risk_check,
|
|
@@ -124,8 +127,9 @@ module Twilio
|
|
|
124
127
|
# @param [Object] rate_limits The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request.
|
|
125
128
|
# @param [Object] channel_configuration [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. The fields 'from' and 'from_name' are optional but if included the 'from' field must have a valid email address.
|
|
126
129
|
# @param [String] app_hash Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
|
127
|
-
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only.
|
|
130
|
+
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. If the `Templates` parameter is also provided, `Templates` takes precedence over this parameter.
|
|
128
131
|
# @param [String] template_custom_substitutions A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
|
|
132
|
+
# @param [String] templates A stringified JSON array of template entries, ordered by preference. Each entry is an object with the following fields: `sid` (string, required, matching `^HJ[0-9a-fA-F]{32}$`) — the SID of the message [template](https://www.twilio.com/docs/verify/api/templates) to apply; and `substitutions` (object, optional) — a key-value map in which the keys are the template's special variables and the values are their substitution values. The array may contain up to 10 entries. If provided, `Templates` takes precedence over `TemplateSid` and `TemplateCustomSubstitutions`.
|
|
129
133
|
# @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
|
|
130
134
|
# @param [Boolean] enable_sna_client_token An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
|
|
131
135
|
# @param [RiskCheck] risk_check
|
|
@@ -146,6 +150,7 @@ module Twilio
|
|
|
146
150
|
app_hash: :unset,
|
|
147
151
|
template_sid: :unset,
|
|
148
152
|
template_custom_substitutions: :unset,
|
|
153
|
+
templates: :unset,
|
|
149
154
|
device_ip: :unset,
|
|
150
155
|
enable_sna_client_token: :unset,
|
|
151
156
|
risk_check: :unset,
|
|
@@ -167,6 +172,7 @@ module Twilio
|
|
|
167
172
|
'AppHash' => app_hash,
|
|
168
173
|
'TemplateSid' => template_sid,
|
|
169
174
|
'TemplateCustomSubstitutions' => template_custom_substitutions,
|
|
175
|
+
'Templates' => templates,
|
|
170
176
|
'DeviceIp' => device_ip,
|
|
171
177
|
'EnableSnaClientToken' => enable_sna_client_token,
|
|
172
178
|
'RiskCheck' => risk_check,
|
|
@@ -419,65 +425,6 @@ module Twilio
|
|
|
419
425
|
end
|
|
420
426
|
end
|
|
421
427
|
|
|
422
|
-
class VerificationPageMetadata < PageMetadata
|
|
423
|
-
attr_reader :verification_page
|
|
424
|
-
|
|
425
|
-
def initialize(version, response, solution, limit)
|
|
426
|
-
super(version, response)
|
|
427
|
-
@verification_page = []
|
|
428
|
-
@limit = limit
|
|
429
|
-
key = get_key(response.body)
|
|
430
|
-
records = 0
|
|
431
|
-
while( limit != :unset && records < limit )
|
|
432
|
-
@verification_page << VerificationListResponse.new(version, @payload, key, limit - records)
|
|
433
|
-
@payload = self.next_page
|
|
434
|
-
break unless @payload
|
|
435
|
-
records += (@payload.body[key] || []).size
|
|
436
|
-
end
|
|
437
|
-
# Path Solution
|
|
438
|
-
@solution = solution
|
|
439
|
-
end
|
|
440
|
-
|
|
441
|
-
def each
|
|
442
|
-
@verification_page.each do |record|
|
|
443
|
-
yield record
|
|
444
|
-
end
|
|
445
|
-
end
|
|
446
|
-
|
|
447
|
-
def to_s
|
|
448
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
449
|
-
end
|
|
450
|
-
end
|
|
451
|
-
class VerificationListResponse < InstanceListResource
|
|
452
|
-
|
|
453
|
-
# @param [Array<VerificationInstance>] instance
|
|
454
|
-
# @param [Hash{String => Object}] headers
|
|
455
|
-
# @param [Integer] status_code
|
|
456
|
-
def initialize(version, payload, key, limit = :unset)
|
|
457
|
-
data_list = payload.body[key] || []
|
|
458
|
-
if limit != :unset
|
|
459
|
-
data_list = data_list[0, limit]
|
|
460
|
-
end
|
|
461
|
-
@verification = data_list.map do |data|
|
|
462
|
-
VerificationInstance.new(version, data)
|
|
463
|
-
end
|
|
464
|
-
@headers = payload.headers
|
|
465
|
-
@status_code = payload.status_code
|
|
466
|
-
end
|
|
467
|
-
|
|
468
|
-
def verification
|
|
469
|
-
@verification
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
def headers
|
|
473
|
-
@headers
|
|
474
|
-
end
|
|
475
|
-
|
|
476
|
-
def status_code
|
|
477
|
-
@status_code
|
|
478
|
-
end
|
|
479
|
-
end
|
|
480
|
-
|
|
481
428
|
class VerificationInstance < InstanceResource
|
|
482
429
|
##
|
|
483
430
|
# Initialize the VerificationInstance
|
|
@@ -160,65 +160,6 @@ module Twilio
|
|
|
160
160
|
end
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
-
class VerificationCheckPageMetadata < PageMetadata
|
|
164
|
-
attr_reader :verification_check_page
|
|
165
|
-
|
|
166
|
-
def initialize(version, response, solution, limit)
|
|
167
|
-
super(version, response)
|
|
168
|
-
@verification_check_page = []
|
|
169
|
-
@limit = limit
|
|
170
|
-
key = get_key(response.body)
|
|
171
|
-
records = 0
|
|
172
|
-
while( limit != :unset && records < limit )
|
|
173
|
-
@verification_check_page << VerificationCheckListResponse.new(version, @payload, key, limit - records)
|
|
174
|
-
@payload = self.next_page
|
|
175
|
-
break unless @payload
|
|
176
|
-
records += (@payload.body[key] || []).size
|
|
177
|
-
end
|
|
178
|
-
# Path Solution
|
|
179
|
-
@solution = solution
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
def each
|
|
183
|
-
@verification_check_page.each do |record|
|
|
184
|
-
yield record
|
|
185
|
-
end
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
def to_s
|
|
189
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
class VerificationCheckListResponse < InstanceListResource
|
|
193
|
-
|
|
194
|
-
# @param [Array<VerificationCheckInstance>] instance
|
|
195
|
-
# @param [Hash{String => Object}] headers
|
|
196
|
-
# @param [Integer] status_code
|
|
197
|
-
def initialize(version, payload, key, limit = :unset)
|
|
198
|
-
data_list = payload.body[key] || []
|
|
199
|
-
if limit != :unset
|
|
200
|
-
data_list = data_list[0, limit]
|
|
201
|
-
end
|
|
202
|
-
@verification_check = data_list.map do |data|
|
|
203
|
-
VerificationCheckInstance.new(version, data)
|
|
204
|
-
end
|
|
205
|
-
@headers = payload.headers
|
|
206
|
-
@status_code = payload.status_code
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
def verification_check
|
|
210
|
-
@verification_check
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
def headers
|
|
214
|
-
@headers
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
def status_code
|
|
218
|
-
@status_code
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
163
|
class VerificationCheckInstance < InstanceResource
|
|
223
164
|
##
|
|
224
165
|
# Initialize the VerificationCheckInstance
|