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
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Numbers
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Numbers < NumbersBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class VoiceVerificationCheckList < ListResource
|
|
21
|
+
|
|
22
|
+
##
|
|
23
|
+
# Initialize the VoiceVerificationCheckList
|
|
24
|
+
# @param [Version] version Version that contains the resource
|
|
25
|
+
# @return [VoiceVerificationCheckList] VoiceVerificationCheckList
|
|
26
|
+
def initialize(version)
|
|
27
|
+
super(version)
|
|
28
|
+
|
|
29
|
+
# Path Solution
|
|
30
|
+
@solution = { }
|
|
31
|
+
@uri = "/CallerIds/VoiceVerificationChecks"
|
|
32
|
+
|
|
33
|
+
end
|
|
34
|
+
##
|
|
35
|
+
# Create the VoiceVerificationCheckInstance
|
|
36
|
+
# @return [VoiceVerificationCheckInstance] Created VoiceVerificationCheckInstance
|
|
37
|
+
def create
|
|
38
|
+
|
|
39
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
payload = @version.create('POST', @uri, headers: headers)
|
|
46
|
+
VoiceVerificationCheckInstance.new(
|
|
47
|
+
@version,
|
|
48
|
+
payload,
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
##
|
|
53
|
+
# Create the VoiceVerificationCheckInstanceMetadata
|
|
54
|
+
# @return [VoiceVerificationCheckInstance] Created VoiceVerificationCheckInstance
|
|
55
|
+
def create_with_metadata
|
|
56
|
+
|
|
57
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
response = @version.create_with_metadata('POST', @uri, headers: headers)
|
|
64
|
+
voice_verification_check_instance = VoiceVerificationCheckInstance.new(
|
|
65
|
+
@version,
|
|
66
|
+
response.body,
|
|
67
|
+
)
|
|
68
|
+
VoiceVerificationCheckInstanceMetadata.new(
|
|
69
|
+
@version,
|
|
70
|
+
voice_verification_check_instance,
|
|
71
|
+
response.headers,
|
|
72
|
+
response.status_code
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# Provide a user friendly representation
|
|
80
|
+
def to_s
|
|
81
|
+
'#<Twilio.Numbers.V1.VoiceVerificationCheckList>'
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class VoiceVerificationCheckPage < Page
|
|
86
|
+
##
|
|
87
|
+
# Initialize the VoiceVerificationCheckPage
|
|
88
|
+
# @param [Version] version Version that contains the resource
|
|
89
|
+
# @param [Response] response Response from the API
|
|
90
|
+
# @param [Hash] solution Path solution for the resource
|
|
91
|
+
# @return [VoiceVerificationCheckPage] VoiceVerificationCheckPage
|
|
92
|
+
def initialize(version, response, solution)
|
|
93
|
+
super(version, response)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
# Path Solution
|
|
97
|
+
@solution = solution
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
##
|
|
101
|
+
# Build an instance of VoiceVerificationCheckInstance
|
|
102
|
+
# @param [Hash] payload Payload response from the API
|
|
103
|
+
# @return [VoiceVerificationCheckInstance] VoiceVerificationCheckInstance
|
|
104
|
+
def get_instance(payload)
|
|
105
|
+
VoiceVerificationCheckInstance.new(@version, payload)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
##
|
|
109
|
+
# Provide a user friendly representation
|
|
110
|
+
def to_s
|
|
111
|
+
'<Twilio.Numbers.V1.VoiceVerificationCheckPage>'
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class VoiceVerificationCheckInstance < InstanceResource
|
|
116
|
+
##
|
|
117
|
+
# Initialize the VoiceVerificationCheckInstance
|
|
118
|
+
# @param [Version] version Version that contains the resource
|
|
119
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
120
|
+
# @param [String] account_sid The SID of the
|
|
121
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this VoiceVerificationCheck
|
|
122
|
+
# resource.
|
|
123
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
124
|
+
# @return [VoiceVerificationCheckInstance] VoiceVerificationCheckInstance
|
|
125
|
+
def initialize(version, payload )
|
|
126
|
+
super(version)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
# Marshaled Properties
|
|
130
|
+
@properties = {
|
|
131
|
+
'to' => payload['to'],
|
|
132
|
+
'caller_id_sid' => payload['caller_id_sid'],
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
##
|
|
138
|
+
# @return [String] The phone number that was verified in E.164 format.
|
|
139
|
+
def to
|
|
140
|
+
@properties['to']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
##
|
|
144
|
+
# @return [String] The Caller ID SID created upon successful verification.
|
|
145
|
+
def caller_id_sid
|
|
146
|
+
@properties['caller_id_sid']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
##
|
|
150
|
+
# Provide a user friendly representation
|
|
151
|
+
def to_s
|
|
152
|
+
"<Twilio.Numbers.V1.VoiceVerificationCheckInstance>"
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
##
|
|
156
|
+
# Provide a detailed, user friendly representation
|
|
157
|
+
def inspect
|
|
158
|
+
"<Twilio.Numbers.V1.VoiceVerificationCheckInstance>"
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
@@ -112,65 +112,6 @@ module Twilio
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
class WebhookPageMetadata < PageMetadata
|
|
116
|
-
attr_reader :webhook_page
|
|
117
|
-
|
|
118
|
-
def initialize(version, response, solution, limit)
|
|
119
|
-
super(version, response)
|
|
120
|
-
@webhook_page = []
|
|
121
|
-
@limit = limit
|
|
122
|
-
key = get_key(response.body)
|
|
123
|
-
records = 0
|
|
124
|
-
while( limit != :unset && records < limit )
|
|
125
|
-
@webhook_page << WebhookListResponse.new(version, @payload, key, limit - records)
|
|
126
|
-
@payload = self.next_page
|
|
127
|
-
break unless @payload
|
|
128
|
-
records += (@payload.body[key] || []).size
|
|
129
|
-
end
|
|
130
|
-
# Path Solution
|
|
131
|
-
@solution = solution
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
def each
|
|
135
|
-
@webhook_page.each do |record|
|
|
136
|
-
yield record
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def to_s
|
|
141
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
class WebhookListResponse < InstanceListResource
|
|
145
|
-
|
|
146
|
-
# @param [Array<WebhookInstance>] instance
|
|
147
|
-
# @param [Hash{String => Object}] headers
|
|
148
|
-
# @param [Integer] status_code
|
|
149
|
-
def initialize(version, payload, key, limit = :unset)
|
|
150
|
-
data_list = payload.body[key] || []
|
|
151
|
-
if limit != :unset
|
|
152
|
-
data_list = data_list[0, limit]
|
|
153
|
-
end
|
|
154
|
-
@webhook = data_list.map do |data|
|
|
155
|
-
WebhookInstance.new(version, data)
|
|
156
|
-
end
|
|
157
|
-
@headers = payload.headers
|
|
158
|
-
@status_code = payload.status_code
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
def webhook
|
|
162
|
-
@webhook
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def headers
|
|
166
|
-
@headers
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def status_code
|
|
170
|
-
@status_code
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
115
|
class WebhookInstance < InstanceResource
|
|
175
116
|
##
|
|
176
117
|
# Initialize the WebhookInstance
|
|
@@ -32,6 +32,10 @@ module Twilio
|
|
|
32
32
|
@porting_webhook_configurations_delete = nil
|
|
33
33
|
@sender_id_registrations = nil
|
|
34
34
|
@signing_request_configurations = nil
|
|
35
|
+
@sms_verifications = nil
|
|
36
|
+
@sms_verification_checks = nil
|
|
37
|
+
@voice_verifications = nil
|
|
38
|
+
@voice_verification_checks = nil
|
|
35
39
|
@webhook = nil
|
|
36
40
|
end
|
|
37
41
|
|
|
@@ -177,6 +181,26 @@ module Twilio
|
|
|
177
181
|
@signing_request_configurations ||= SigningRequestConfigurationList.new self
|
|
178
182
|
end
|
|
179
183
|
##
|
|
184
|
+
# @return [Twilio::REST::Numbers::V1::SmsVerificationList]
|
|
185
|
+
def sms_verifications
|
|
186
|
+
@sms_verifications ||= SmsVerificationList.new self
|
|
187
|
+
end
|
|
188
|
+
##
|
|
189
|
+
# @return [Twilio::REST::Numbers::V1::SmsVerificationCheckList]
|
|
190
|
+
def sms_verification_checks
|
|
191
|
+
@sms_verification_checks ||= SmsVerificationCheckList.new self
|
|
192
|
+
end
|
|
193
|
+
##
|
|
194
|
+
# @return [Twilio::REST::Numbers::V1::VoiceVerificationList]
|
|
195
|
+
def voice_verifications
|
|
196
|
+
@voice_verifications ||= VoiceVerificationList.new self
|
|
197
|
+
end
|
|
198
|
+
##
|
|
199
|
+
# @return [Twilio::REST::Numbers::V1::VoiceVerificationCheckList]
|
|
200
|
+
def voice_verification_checks
|
|
201
|
+
@voice_verification_checks ||= VoiceVerificationCheckList.new self
|
|
202
|
+
end
|
|
203
|
+
##
|
|
180
204
|
# @return [Twilio::REST::Numbers::V1::WebhookList]
|
|
181
205
|
def webhook
|
|
182
206
|
@webhook ||= WebhookList.new self
|
|
@@ -252,65 +252,6 @@ module Twilio
|
|
|
252
252
|
end
|
|
253
253
|
end
|
|
254
254
|
|
|
255
|
-
class BulkHostedNumberOrderPageMetadata < PageMetadata
|
|
256
|
-
attr_reader :bulk_hosted_number_order_page
|
|
257
|
-
|
|
258
|
-
def initialize(version, response, solution, limit)
|
|
259
|
-
super(version, response)
|
|
260
|
-
@bulk_hosted_number_order_page = []
|
|
261
|
-
@limit = limit
|
|
262
|
-
key = get_key(response.body)
|
|
263
|
-
records = 0
|
|
264
|
-
while( limit != :unset && records < limit )
|
|
265
|
-
@bulk_hosted_number_order_page << BulkHostedNumberOrderListResponse.new(version, @payload, key, limit - records)
|
|
266
|
-
@payload = self.next_page
|
|
267
|
-
break unless @payload
|
|
268
|
-
records += (@payload.body[key] || []).size
|
|
269
|
-
end
|
|
270
|
-
# Path Solution
|
|
271
|
-
@solution = solution
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
def each
|
|
275
|
-
@bulk_hosted_number_order_page.each do |record|
|
|
276
|
-
yield record
|
|
277
|
-
end
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
def to_s
|
|
281
|
-
'<Twilio::REST::Numbers::V2PageMetadata>';
|
|
282
|
-
end
|
|
283
|
-
end
|
|
284
|
-
class BulkHostedNumberOrderListResponse < InstanceListResource
|
|
285
|
-
|
|
286
|
-
# @param [Array<BulkHostedNumberOrderInstance>] instance
|
|
287
|
-
# @param [Hash{String => Object}] headers
|
|
288
|
-
# @param [Integer] status_code
|
|
289
|
-
def initialize(version, payload, key, limit = :unset)
|
|
290
|
-
data_list = payload.body[key] || []
|
|
291
|
-
if limit != :unset
|
|
292
|
-
data_list = data_list[0, limit]
|
|
293
|
-
end
|
|
294
|
-
@bulk_hosted_number_order = data_list.map do |data|
|
|
295
|
-
BulkHostedNumberOrderInstance.new(version, data)
|
|
296
|
-
end
|
|
297
|
-
@headers = payload.headers
|
|
298
|
-
@status_code = payload.status_code
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
def bulk_hosted_number_order
|
|
302
|
-
@bulk_hosted_number_order
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
def headers
|
|
306
|
-
@headers
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
def status_code
|
|
310
|
-
@status_code
|
|
311
|
-
end
|
|
312
|
-
end
|
|
313
|
-
|
|
314
255
|
class BulkHostedNumberOrderInstance < InstanceResource
|
|
315
256
|
##
|
|
316
257
|
# Initialize the BulkHostedNumberOrderInstance
|
|
@@ -220,65 +220,6 @@ module Twilio
|
|
|
220
220
|
end
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
-
class BundleClonePageMetadata < PageMetadata
|
|
224
|
-
attr_reader :bundle_clone_page
|
|
225
|
-
|
|
226
|
-
def initialize(version, response, solution, limit)
|
|
227
|
-
super(version, response)
|
|
228
|
-
@bundle_clone_page = []
|
|
229
|
-
@limit = limit
|
|
230
|
-
key = get_key(response.body)
|
|
231
|
-
records = 0
|
|
232
|
-
while( limit != :unset && records < limit )
|
|
233
|
-
@bundle_clone_page << BundleCloneListResponse.new(version, @payload, key, limit - records)
|
|
234
|
-
@payload = self.next_page
|
|
235
|
-
break unless @payload
|
|
236
|
-
records += (@payload.body[key] || []).size
|
|
237
|
-
end
|
|
238
|
-
# Path Solution
|
|
239
|
-
@solution = solution
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
def each
|
|
243
|
-
@bundle_clone_page.each do |record|
|
|
244
|
-
yield record
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
|
|
248
|
-
def to_s
|
|
249
|
-
'<Twilio::REST::Numbers::V2PageMetadata>';
|
|
250
|
-
end
|
|
251
|
-
end
|
|
252
|
-
class BundleCloneListResponse < InstanceListResource
|
|
253
|
-
|
|
254
|
-
# @param [Array<BundleCloneInstance>] instance
|
|
255
|
-
# @param [Hash{String => Object}] headers
|
|
256
|
-
# @param [Integer] status_code
|
|
257
|
-
def initialize(version, payload, key, limit = :unset)
|
|
258
|
-
data_list = payload.body[key] || []
|
|
259
|
-
if limit != :unset
|
|
260
|
-
data_list = data_list[0, limit]
|
|
261
|
-
end
|
|
262
|
-
@bundle_clone = data_list.map do |data|
|
|
263
|
-
BundleCloneInstance.new(version, data)
|
|
264
|
-
end
|
|
265
|
-
@headers = payload.headers
|
|
266
|
-
@status_code = payload.status_code
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
def bundle_clone
|
|
270
|
-
@bundle_clone
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
def headers
|
|
274
|
-
@headers
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
def status_code
|
|
278
|
-
@status_code
|
|
279
|
-
end
|
|
280
|
-
end
|
|
281
|
-
|
|
282
223
|
class BundleCloneInstance < InstanceResource
|
|
283
224
|
##
|
|
284
225
|
# Initialize the BundleCloneInstance
|
|
@@ -131,65 +131,6 @@ module Twilio
|
|
|
131
131
|
end
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
-
class ReplaceItemsPageMetadata < PageMetadata
|
|
135
|
-
attr_reader :replace_items_page
|
|
136
|
-
|
|
137
|
-
def initialize(version, response, solution, limit)
|
|
138
|
-
super(version, response)
|
|
139
|
-
@replace_items_page = []
|
|
140
|
-
@limit = limit
|
|
141
|
-
key = get_key(response.body)
|
|
142
|
-
records = 0
|
|
143
|
-
while( limit != :unset && records < limit )
|
|
144
|
-
@replace_items_page << ReplaceItemsListResponse.new(version, @payload, key, limit - records)
|
|
145
|
-
@payload = self.next_page
|
|
146
|
-
break unless @payload
|
|
147
|
-
records += (@payload.body[key] || []).size
|
|
148
|
-
end
|
|
149
|
-
# Path Solution
|
|
150
|
-
@solution = solution
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
def each
|
|
154
|
-
@replace_items_page.each do |record|
|
|
155
|
-
yield record
|
|
156
|
-
end
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
def to_s
|
|
160
|
-
'<Twilio::REST::Numbers::V2PageMetadata>';
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
class ReplaceItemsListResponse < InstanceListResource
|
|
164
|
-
|
|
165
|
-
# @param [Array<ReplaceItemsInstance>] instance
|
|
166
|
-
# @param [Hash{String => Object}] headers
|
|
167
|
-
# @param [Integer] status_code
|
|
168
|
-
def initialize(version, payload, key, limit = :unset)
|
|
169
|
-
data_list = payload.body[key] || []
|
|
170
|
-
if limit != :unset
|
|
171
|
-
data_list = data_list[0, limit]
|
|
172
|
-
end
|
|
173
|
-
@replace_items = data_list.map do |data|
|
|
174
|
-
ReplaceItemsInstance.new(version, data)
|
|
175
|
-
end
|
|
176
|
-
@headers = payload.headers
|
|
177
|
-
@status_code = payload.status_code
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
def replace_items
|
|
181
|
-
@replace_items
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
def headers
|
|
185
|
-
@headers
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
def status_code
|
|
189
|
-
@status_code
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
|
|
193
134
|
class ReplaceItemsInstance < InstanceResource
|
|
194
135
|
##
|
|
195
136
|
# Initialize the ReplaceItemsInstance
|
|
@@ -154,65 +154,6 @@ module Twilio
|
|
|
154
154
|
end
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
class RegulatoryCompliancePageMetadata < PageMetadata
|
|
158
|
-
attr_reader :regulatory_compliance_page
|
|
159
|
-
|
|
160
|
-
def initialize(version, response, solution, limit)
|
|
161
|
-
super(version, response)
|
|
162
|
-
@regulatory_compliance_page = []
|
|
163
|
-
@limit = limit
|
|
164
|
-
key = get_key(response.body)
|
|
165
|
-
records = 0
|
|
166
|
-
while( limit != :unset && records < limit )
|
|
167
|
-
@regulatory_compliance_page << RegulatoryComplianceListResponse.new(version, @payload, key, limit - records)
|
|
168
|
-
@payload = self.next_page
|
|
169
|
-
break unless @payload
|
|
170
|
-
records += (@payload.body[key] || []).size
|
|
171
|
-
end
|
|
172
|
-
# Path Solution
|
|
173
|
-
@solution = solution
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
def each
|
|
177
|
-
@regulatory_compliance_page.each do |record|
|
|
178
|
-
yield record
|
|
179
|
-
end
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
def to_s
|
|
183
|
-
'<Twilio::REST::Numbers::V2PageMetadata>';
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
class RegulatoryComplianceListResponse < InstanceListResource
|
|
187
|
-
|
|
188
|
-
# @param [Array<RegulatoryComplianceInstance>] instance
|
|
189
|
-
# @param [Hash{String => Object}] headers
|
|
190
|
-
# @param [Integer] status_code
|
|
191
|
-
def initialize(version, payload, key, limit = :unset)
|
|
192
|
-
data_list = payload.body[key] || []
|
|
193
|
-
if limit != :unset
|
|
194
|
-
data_list = data_list[0, limit]
|
|
195
|
-
end
|
|
196
|
-
@regulatory_compliance = data_list.map do |data|
|
|
197
|
-
RegulatoryComplianceInstance.new(version, data)
|
|
198
|
-
end
|
|
199
|
-
@headers = payload.headers
|
|
200
|
-
@status_code = payload.status_code
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
def regulatory_compliance
|
|
204
|
-
@regulatory_compliance
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
def headers
|
|
208
|
-
@headers
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
def status_code
|
|
212
|
-
@status_code
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
|
-
|
|
216
157
|
class RegulatoryComplianceInstance < InstanceResource
|
|
217
158
|
##
|
|
218
159
|
# Initialize the RegulatoryComplianceInstance
|
|
@@ -224,65 +224,6 @@ module Twilio
|
|
|
224
224
|
end
|
|
225
225
|
end
|
|
226
226
|
|
|
227
|
-
class HostedNumberOrderPageMetadata < PageMetadata
|
|
228
|
-
attr_reader :hosted_number_order_page
|
|
229
|
-
|
|
230
|
-
def initialize(version, response, solution, limit)
|
|
231
|
-
super(version, response)
|
|
232
|
-
@hosted_number_order_page = []
|
|
233
|
-
@limit = limit
|
|
234
|
-
key = get_key(response.body)
|
|
235
|
-
records = 0
|
|
236
|
-
while( limit != :unset && records < limit )
|
|
237
|
-
@hosted_number_order_page << HostedNumberOrderListResponse.new(version, @payload, key, limit - records)
|
|
238
|
-
@payload = self.next_page
|
|
239
|
-
break unless @payload
|
|
240
|
-
records += (@payload.body[key] || []).size
|
|
241
|
-
end
|
|
242
|
-
# Path Solution
|
|
243
|
-
@solution = solution
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
def each
|
|
247
|
-
@hosted_number_order_page.each do |record|
|
|
248
|
-
yield record
|
|
249
|
-
end
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
def to_s
|
|
253
|
-
'<Twilio::REST::Numbers::V3PageMetadata>';
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
class HostedNumberOrderListResponse < InstanceListResource
|
|
257
|
-
|
|
258
|
-
# @param [Array<HostedNumberOrderInstance>] instance
|
|
259
|
-
# @param [Hash{String => Object}] headers
|
|
260
|
-
# @param [Integer] status_code
|
|
261
|
-
def initialize(version, payload, key, limit = :unset)
|
|
262
|
-
data_list = payload.body[key] || []
|
|
263
|
-
if limit != :unset
|
|
264
|
-
data_list = data_list[0, limit]
|
|
265
|
-
end
|
|
266
|
-
@hosted_number_order = data_list.map do |data|
|
|
267
|
-
HostedNumberOrderInstance.new(version, data)
|
|
268
|
-
end
|
|
269
|
-
@headers = payload.headers
|
|
270
|
-
@status_code = payload.status_code
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
def hosted_number_order
|
|
274
|
-
@hosted_number_order
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
def headers
|
|
278
|
-
@headers
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
def status_code
|
|
282
|
-
@status_code
|
|
283
|
-
end
|
|
284
|
-
end
|
|
285
|
-
|
|
286
227
|
class HostedNumberOrderInstance < InstanceResource
|
|
287
228
|
##
|
|
288
229
|
# Initialize the HostedNumberOrderInstance
|
|
@@ -148,65 +148,6 @@ module Twilio
|
|
|
148
148
|
end
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
-
class AuthorizePageMetadata < PageMetadata
|
|
152
|
-
attr_reader :authorize_page
|
|
153
|
-
|
|
154
|
-
def initialize(version, response, solution, limit)
|
|
155
|
-
super(version, response)
|
|
156
|
-
@authorize_page = []
|
|
157
|
-
@limit = limit
|
|
158
|
-
key = get_key(response.body)
|
|
159
|
-
records = 0
|
|
160
|
-
while( limit != :unset && records < limit )
|
|
161
|
-
@authorize_page << AuthorizeListResponse.new(version, @payload, key, limit - records)
|
|
162
|
-
@payload = self.next_page
|
|
163
|
-
break unless @payload
|
|
164
|
-
records += (@payload.body[key] || []).size
|
|
165
|
-
end
|
|
166
|
-
# Path Solution
|
|
167
|
-
@solution = solution
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
def each
|
|
171
|
-
@authorize_page.each do |record|
|
|
172
|
-
yield record
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
def to_s
|
|
177
|
-
'<Twilio::REST::Oauth::V1PageMetadata>';
|
|
178
|
-
end
|
|
179
|
-
end
|
|
180
|
-
class AuthorizeListResponse < InstanceListResource
|
|
181
|
-
|
|
182
|
-
# @param [Array<AuthorizeInstance>] instance
|
|
183
|
-
# @param [Hash{String => Object}] headers
|
|
184
|
-
# @param [Integer] status_code
|
|
185
|
-
def initialize(version, payload, key, limit = :unset)
|
|
186
|
-
data_list = payload.body[key] || []
|
|
187
|
-
if limit != :unset
|
|
188
|
-
data_list = data_list[0, limit]
|
|
189
|
-
end
|
|
190
|
-
@authorize = data_list.map do |data|
|
|
191
|
-
AuthorizeInstance.new(version, data)
|
|
192
|
-
end
|
|
193
|
-
@headers = payload.headers
|
|
194
|
-
@status_code = payload.status_code
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
def authorize
|
|
198
|
-
@authorize
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
def headers
|
|
202
|
-
@headers
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
def status_code
|
|
206
|
-
@status_code
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
|
|
210
151
|
class AuthorizeInstance < InstanceResource
|
|
211
152
|
##
|
|
212
153
|
# Initialize the AuthorizeInstance
|