twilio-ruby 7.11.1 → 7.11.3
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 +13 -1
- data/CHANGES.md +417 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/githooks/pre-commit +11 -0
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
- 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 +0 -59
- 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/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/content/v1/content/approval_create.rb +0 -59
- 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_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_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +101 -12
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
- 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 +0 -59
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- 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/capacity.rb +161 -0
- data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +279 -0
- 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 +29 -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/rule_execution.rb +33 -60
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
- 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 +0 -59
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/store.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- 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/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 +0 -59
- 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 +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- 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/v2.rb +0 -16
- 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 +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
- 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 -59
- 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 +0 -59
- 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 +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
- 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 +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
- 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/factor.rb +1 -1
- 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 +1 -60
- 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 +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording_account_default_configuration.rb +547 -0
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2.rb +6 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/twiml/voice_response.rb +12 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -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
|
|
@@ -635,7 +635,7 @@ module Twilio
|
|
|
635
635
|
end
|
|
636
636
|
|
|
637
637
|
##
|
|
638
|
-
# @return [Hash] Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length.
|
|
638
|
+
# @return [Hash] Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length. For `passkeys` factors, it contains the `aaguid` of the authenticator once the factor is verified, and `date_last_approved` (ISO 8601) once the factor has been used to approve a challenge.
|
|
639
639
|
def metadata
|
|
640
640
|
@properties['metadata']
|
|
641
641
|
end
|
|
@@ -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
|
|
@@ -324,7 +265,7 @@ module Twilio
|
|
|
324
265
|
end
|
|
325
266
|
|
|
326
267
|
##
|
|
327
|
-
# @return [Hash]
|
|
268
|
+
# @return [Hash] Metadata associated with the factor. For `passkeys` factors, it contains the `aaguid` of the authenticator once the factor is verified, and `date_last_approved` (ISO 8601) once the factor has been used to approve a challenge.
|
|
328
269
|
def metadata
|
|
329
270
|
@properties['metadata']
|
|
330
271
|
end
|
|
@@ -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
|
|
@@ -233,65 +233,6 @@ module Twilio
|
|
|
233
233
|
end
|
|
234
234
|
end
|
|
235
235
|
|
|
236
|
-
class VerificationAttemptsSummaryPageMetadata < PageMetadata
|
|
237
|
-
attr_reader :verification_attempts_summary_page
|
|
238
|
-
|
|
239
|
-
def initialize(version, response, solution, limit)
|
|
240
|
-
super(version, response)
|
|
241
|
-
@verification_attempts_summary_page = []
|
|
242
|
-
@limit = limit
|
|
243
|
-
key = get_key(response.body)
|
|
244
|
-
records = 0
|
|
245
|
-
while( limit != :unset && records < limit )
|
|
246
|
-
@verification_attempts_summary_page << VerificationAttemptsSummaryListResponse.new(version, @payload, key, limit - records)
|
|
247
|
-
@payload = self.next_page
|
|
248
|
-
break unless @payload
|
|
249
|
-
records += (@payload.body[key] || []).size
|
|
250
|
-
end
|
|
251
|
-
# Path Solution
|
|
252
|
-
@solution = solution
|
|
253
|
-
end
|
|
254
|
-
|
|
255
|
-
def each
|
|
256
|
-
@verification_attempts_summary_page.each do |record|
|
|
257
|
-
yield record
|
|
258
|
-
end
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def to_s
|
|
262
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
class VerificationAttemptsSummaryListResponse < InstanceListResource
|
|
266
|
-
|
|
267
|
-
# @param [Array<VerificationAttemptsSummaryInstance>] instance
|
|
268
|
-
# @param [Hash{String => Object}] headers
|
|
269
|
-
# @param [Integer] status_code
|
|
270
|
-
def initialize(version, payload, key, limit = :unset)
|
|
271
|
-
data_list = payload.body[key] || []
|
|
272
|
-
if limit != :unset
|
|
273
|
-
data_list = data_list[0, limit]
|
|
274
|
-
end
|
|
275
|
-
@verification_attempts_summary = data_list.map do |data|
|
|
276
|
-
VerificationAttemptsSummaryInstance.new(version, data)
|
|
277
|
-
end
|
|
278
|
-
@headers = payload.headers
|
|
279
|
-
@status_code = payload.status_code
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
def verification_attempts_summary
|
|
283
|
-
@verification_attempts_summary
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def headers
|
|
287
|
-
@headers
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
def status_code
|
|
291
|
-
@status_code
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
|
|
295
236
|
class VerificationAttemptsSummaryInstance < InstanceResource
|
|
296
237
|
##
|
|
297
238
|
# Initialize the VerificationAttemptsSummaryInstance
|