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
|
@@ -232,65 +232,6 @@ module Twilio
|
|
|
232
232
|
end
|
|
233
233
|
end
|
|
234
234
|
|
|
235
|
-
class NotificationPageMetadata < PageMetadata
|
|
236
|
-
attr_reader :notification_page
|
|
237
|
-
|
|
238
|
-
def initialize(version, response, solution, limit)
|
|
239
|
-
super(version, response)
|
|
240
|
-
@notification_page = []
|
|
241
|
-
@limit = limit
|
|
242
|
-
key = get_key(response.body)
|
|
243
|
-
records = 0
|
|
244
|
-
while( limit != :unset && records < limit )
|
|
245
|
-
@notification_page << NotificationListResponse.new(version, @payload, key, limit - records)
|
|
246
|
-
@payload = self.next_page
|
|
247
|
-
break unless @payload
|
|
248
|
-
records += (@payload.body[key] || []).size
|
|
249
|
-
end
|
|
250
|
-
# Path Solution
|
|
251
|
-
@solution = solution
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
def each
|
|
255
|
-
@notification_page.each do |record|
|
|
256
|
-
yield record
|
|
257
|
-
end
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def to_s
|
|
261
|
-
'<Twilio::REST::Notify::V1PageMetadata>';
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
class NotificationListResponse < InstanceListResource
|
|
265
|
-
|
|
266
|
-
# @param [Array<NotificationInstance>] instance
|
|
267
|
-
# @param [Hash{String => Object}] headers
|
|
268
|
-
# @param [Integer] status_code
|
|
269
|
-
def initialize(version, payload, key, limit = :unset)
|
|
270
|
-
data_list = payload.body[key] || []
|
|
271
|
-
if limit != :unset
|
|
272
|
-
data_list = data_list[0, limit]
|
|
273
|
-
end
|
|
274
|
-
@notification = data_list.map do |data|
|
|
275
|
-
NotificationInstance.new(version, data)
|
|
276
|
-
end
|
|
277
|
-
@headers = payload.headers
|
|
278
|
-
@status_code = payload.status_code
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
def notification
|
|
282
|
-
@notification
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
def headers
|
|
286
|
-
@headers
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
def status_code
|
|
290
|
-
@status_code
|
|
291
|
-
end
|
|
292
|
-
end
|
|
293
|
-
|
|
294
235
|
class NotificationInstance < InstanceResource
|
|
295
236
|
##
|
|
296
237
|
# Initialize the NotificationInstance
|
|
@@ -240,65 +240,6 @@ module Twilio
|
|
|
240
240
|
end
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
class BulkEligibilityPageMetadata < PageMetadata
|
|
244
|
-
attr_reader :bulk_eligibility_page
|
|
245
|
-
|
|
246
|
-
def initialize(version, response, solution, limit)
|
|
247
|
-
super(version, response)
|
|
248
|
-
@bulk_eligibility_page = []
|
|
249
|
-
@limit = limit
|
|
250
|
-
key = get_key(response.body)
|
|
251
|
-
records = 0
|
|
252
|
-
while( limit != :unset && records < limit )
|
|
253
|
-
@bulk_eligibility_page << BulkEligibilityListResponse.new(version, @payload, key, limit - records)
|
|
254
|
-
@payload = self.next_page
|
|
255
|
-
break unless @payload
|
|
256
|
-
records += (@payload.body[key] || []).size
|
|
257
|
-
end
|
|
258
|
-
# Path Solution
|
|
259
|
-
@solution = solution
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
def each
|
|
263
|
-
@bulk_eligibility_page.each do |record|
|
|
264
|
-
yield record
|
|
265
|
-
end
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
def to_s
|
|
269
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
class BulkEligibilityListResponse < InstanceListResource
|
|
273
|
-
|
|
274
|
-
# @param [Array<BulkEligibilityInstance>] instance
|
|
275
|
-
# @param [Hash{String => Object}] headers
|
|
276
|
-
# @param [Integer] status_code
|
|
277
|
-
def initialize(version, payload, key, limit = :unset)
|
|
278
|
-
data_list = payload.body[key] || []
|
|
279
|
-
if limit != :unset
|
|
280
|
-
data_list = data_list[0, limit]
|
|
281
|
-
end
|
|
282
|
-
@bulk_eligibility = data_list.map do |data|
|
|
283
|
-
BulkEligibilityInstance.new(version, data)
|
|
284
|
-
end
|
|
285
|
-
@headers = payload.headers
|
|
286
|
-
@status_code = payload.status_code
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
def bulk_eligibility
|
|
290
|
-
@bulk_eligibility
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
def headers
|
|
294
|
-
@headers
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
def status_code
|
|
298
|
-
@status_code
|
|
299
|
-
end
|
|
300
|
-
end
|
|
301
|
-
|
|
302
243
|
class BulkEligibilityInstance < InstanceResource
|
|
303
244
|
##
|
|
304
245
|
# Initialize the BulkEligibilityInstance
|
|
@@ -116,65 +116,6 @@ module Twilio
|
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
-
class EligibilityPageMetadata < PageMetadata
|
|
120
|
-
attr_reader :eligibility_page
|
|
121
|
-
|
|
122
|
-
def initialize(version, response, solution, limit)
|
|
123
|
-
super(version, response)
|
|
124
|
-
@eligibility_page = []
|
|
125
|
-
@limit = limit
|
|
126
|
-
key = get_key(response.body)
|
|
127
|
-
records = 0
|
|
128
|
-
while( limit != :unset && records < limit )
|
|
129
|
-
@eligibility_page << EligibilityListResponse.new(version, @payload, key, limit - records)
|
|
130
|
-
@payload = self.next_page
|
|
131
|
-
break unless @payload
|
|
132
|
-
records += (@payload.body[key] || []).size
|
|
133
|
-
end
|
|
134
|
-
# Path Solution
|
|
135
|
-
@solution = solution
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
def each
|
|
139
|
-
@eligibility_page.each do |record|
|
|
140
|
-
yield record
|
|
141
|
-
end
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
def to_s
|
|
145
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
146
|
-
end
|
|
147
|
-
end
|
|
148
|
-
class EligibilityListResponse < InstanceListResource
|
|
149
|
-
|
|
150
|
-
# @param [Array<EligibilityInstance>] instance
|
|
151
|
-
# @param [Hash{String => Object}] headers
|
|
152
|
-
# @param [Integer] status_code
|
|
153
|
-
def initialize(version, payload, key, limit = :unset)
|
|
154
|
-
data_list = payload.body[key] || []
|
|
155
|
-
if limit != :unset
|
|
156
|
-
data_list = data_list[0, limit]
|
|
157
|
-
end
|
|
158
|
-
@eligibility = data_list.map do |data|
|
|
159
|
-
EligibilityInstance.new(version, data)
|
|
160
|
-
end
|
|
161
|
-
@headers = payload.headers
|
|
162
|
-
@status_code = payload.status_code
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def eligibility
|
|
166
|
-
@eligibility
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def headers
|
|
170
|
-
@headers
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
def status_code
|
|
174
|
-
@status_code
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
|
|
178
119
|
class EligibilityInstance < InstanceResource
|
|
179
120
|
##
|
|
180
121
|
# Initialize the EligibilityInstance
|
|
@@ -132,65 +132,6 @@ module Twilio
|
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
class EmbeddedSessionPageMetadata < PageMetadata
|
|
136
|
-
attr_reader :embedded_session_page
|
|
137
|
-
|
|
138
|
-
def initialize(version, response, solution, limit)
|
|
139
|
-
super(version, response)
|
|
140
|
-
@embedded_session_page = []
|
|
141
|
-
@limit = limit
|
|
142
|
-
key = get_key(response.body)
|
|
143
|
-
records = 0
|
|
144
|
-
while( limit != :unset && records < limit )
|
|
145
|
-
@embedded_session_page << EmbeddedSessionListResponse.new(version, @payload, key, limit - records)
|
|
146
|
-
@payload = self.next_page
|
|
147
|
-
break unless @payload
|
|
148
|
-
records += (@payload.body[key] || []).size
|
|
149
|
-
end
|
|
150
|
-
# Path Solution
|
|
151
|
-
@solution = solution
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
def each
|
|
155
|
-
@embedded_session_page.each do |record|
|
|
156
|
-
yield record
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
def to_s
|
|
161
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
class EmbeddedSessionListResponse < InstanceListResource
|
|
165
|
-
|
|
166
|
-
# @param [Array<EmbeddedSessionInstance>] instance
|
|
167
|
-
# @param [Hash{String => Object}] headers
|
|
168
|
-
# @param [Integer] status_code
|
|
169
|
-
def initialize(version, payload, key, limit = :unset)
|
|
170
|
-
data_list = payload.body[key] || []
|
|
171
|
-
if limit != :unset
|
|
172
|
-
data_list = data_list[0, limit]
|
|
173
|
-
end
|
|
174
|
-
@embedded_session = data_list.map do |data|
|
|
175
|
-
EmbeddedSessionInstance.new(version, data)
|
|
176
|
-
end
|
|
177
|
-
@headers = payload.headers
|
|
178
|
-
@status_code = payload.status_code
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
def embedded_session
|
|
182
|
-
@embedded_session
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
def headers
|
|
186
|
-
@headers
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
def status_code
|
|
190
|
-
@status_code
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
|
|
194
135
|
class EmbeddedSessionInstance < InstanceResource
|
|
195
136
|
##
|
|
196
137
|
# Initialize the EmbeddedSessionInstance
|
|
@@ -360,65 +360,6 @@ module Twilio
|
|
|
360
360
|
end
|
|
361
361
|
end
|
|
362
362
|
|
|
363
|
-
class PortingPortInPageMetadata < PageMetadata
|
|
364
|
-
attr_reader :porting_port_in_page
|
|
365
|
-
|
|
366
|
-
def initialize(version, response, solution, limit)
|
|
367
|
-
super(version, response)
|
|
368
|
-
@porting_port_in_page = []
|
|
369
|
-
@limit = limit
|
|
370
|
-
key = get_key(response.body)
|
|
371
|
-
records = 0
|
|
372
|
-
while( limit != :unset && records < limit )
|
|
373
|
-
@porting_port_in_page << PortingPortInListResponse.new(version, @payload, key, limit - records)
|
|
374
|
-
@payload = self.next_page
|
|
375
|
-
break unless @payload
|
|
376
|
-
records += (@payload.body[key] || []).size
|
|
377
|
-
end
|
|
378
|
-
# Path Solution
|
|
379
|
-
@solution = solution
|
|
380
|
-
end
|
|
381
|
-
|
|
382
|
-
def each
|
|
383
|
-
@porting_port_in_page.each do |record|
|
|
384
|
-
yield record
|
|
385
|
-
end
|
|
386
|
-
end
|
|
387
|
-
|
|
388
|
-
def to_s
|
|
389
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
390
|
-
end
|
|
391
|
-
end
|
|
392
|
-
class PortingPortInListResponse < InstanceListResource
|
|
393
|
-
|
|
394
|
-
# @param [Array<PortingPortInInstance>] instance
|
|
395
|
-
# @param [Hash{String => Object}] headers
|
|
396
|
-
# @param [Integer] status_code
|
|
397
|
-
def initialize(version, payload, key, limit = :unset)
|
|
398
|
-
data_list = payload.body[key] || []
|
|
399
|
-
if limit != :unset
|
|
400
|
-
data_list = data_list[0, limit]
|
|
401
|
-
end
|
|
402
|
-
@porting_port_in = data_list.map do |data|
|
|
403
|
-
PortingPortInInstance.new(version, data)
|
|
404
|
-
end
|
|
405
|
-
@headers = payload.headers
|
|
406
|
-
@status_code = payload.status_code
|
|
407
|
-
end
|
|
408
|
-
|
|
409
|
-
def porting_port_in
|
|
410
|
-
@porting_port_in
|
|
411
|
-
end
|
|
412
|
-
|
|
413
|
-
def headers
|
|
414
|
-
@headers
|
|
415
|
-
end
|
|
416
|
-
|
|
417
|
-
def status_code
|
|
418
|
-
@status_code
|
|
419
|
-
end
|
|
420
|
-
end
|
|
421
|
-
|
|
422
363
|
class PortingPortInInstance < InstanceResource
|
|
423
364
|
##
|
|
424
365
|
# Initialize the PortingPortInInstance
|
|
@@ -229,65 +229,6 @@ module Twilio
|
|
|
229
229
|
end
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
class PortingPortInPhoneNumberPageMetadata < PageMetadata
|
|
233
|
-
attr_reader :porting_port_in_phone_number_page
|
|
234
|
-
|
|
235
|
-
def initialize(version, response, solution, limit)
|
|
236
|
-
super(version, response)
|
|
237
|
-
@porting_port_in_phone_number_page = []
|
|
238
|
-
@limit = limit
|
|
239
|
-
key = get_key(response.body)
|
|
240
|
-
records = 0
|
|
241
|
-
while( limit != :unset && records < limit )
|
|
242
|
-
@porting_port_in_phone_number_page << PortingPortInPhoneNumberListResponse.new(version, @payload, key, limit - records)
|
|
243
|
-
@payload = self.next_page
|
|
244
|
-
break unless @payload
|
|
245
|
-
records += (@payload.body[key] || []).size
|
|
246
|
-
end
|
|
247
|
-
# Path Solution
|
|
248
|
-
@solution = solution
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
def each
|
|
252
|
-
@porting_port_in_phone_number_page.each do |record|
|
|
253
|
-
yield record
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def to_s
|
|
258
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
class PortingPortInPhoneNumberListResponse < InstanceListResource
|
|
262
|
-
|
|
263
|
-
# @param [Array<PortingPortInPhoneNumberInstance>] instance
|
|
264
|
-
# @param [Hash{String => Object}] headers
|
|
265
|
-
# @param [Integer] status_code
|
|
266
|
-
def initialize(version, payload, key, limit = :unset)
|
|
267
|
-
data_list = payload.body[key] || []
|
|
268
|
-
if limit != :unset
|
|
269
|
-
data_list = data_list[0, limit]
|
|
270
|
-
end
|
|
271
|
-
@porting_port_in_phone_number = data_list.map do |data|
|
|
272
|
-
PortingPortInPhoneNumberInstance.new(version, data)
|
|
273
|
-
end
|
|
274
|
-
@headers = payload.headers
|
|
275
|
-
@status_code = payload.status_code
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
def porting_port_in_phone_number
|
|
279
|
-
@porting_port_in_phone_number
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
def headers
|
|
283
|
-
@headers
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def status_code
|
|
287
|
-
@status_code
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
|
|
291
232
|
class PortingPortInPhoneNumberInstance < InstanceResource
|
|
292
233
|
##
|
|
293
234
|
# Initialize the PortingPortInPhoneNumberInstance
|
|
@@ -212,65 +212,6 @@ module Twilio
|
|
|
212
212
|
end
|
|
213
213
|
end
|
|
214
214
|
|
|
215
|
-
class PortingPortabilityPageMetadata < PageMetadata
|
|
216
|
-
attr_reader :porting_portability_page
|
|
217
|
-
|
|
218
|
-
def initialize(version, response, solution, limit)
|
|
219
|
-
super(version, response)
|
|
220
|
-
@porting_portability_page = []
|
|
221
|
-
@limit = limit
|
|
222
|
-
key = get_key(response.body)
|
|
223
|
-
records = 0
|
|
224
|
-
while( limit != :unset && records < limit )
|
|
225
|
-
@porting_portability_page << PortingPortabilityListResponse.new(version, @payload, key, limit - records)
|
|
226
|
-
@payload = self.next_page
|
|
227
|
-
break unless @payload
|
|
228
|
-
records += (@payload.body[key] || []).size
|
|
229
|
-
end
|
|
230
|
-
# Path Solution
|
|
231
|
-
@solution = solution
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
def each
|
|
235
|
-
@porting_portability_page.each do |record|
|
|
236
|
-
yield record
|
|
237
|
-
end
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
def to_s
|
|
241
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
class PortingPortabilityListResponse < InstanceListResource
|
|
245
|
-
|
|
246
|
-
# @param [Array<PortingPortabilityInstance>] instance
|
|
247
|
-
# @param [Hash{String => Object}] headers
|
|
248
|
-
# @param [Integer] status_code
|
|
249
|
-
def initialize(version, payload, key, limit = :unset)
|
|
250
|
-
data_list = payload.body[key] || []
|
|
251
|
-
if limit != :unset
|
|
252
|
-
data_list = data_list[0, limit]
|
|
253
|
-
end
|
|
254
|
-
@porting_portability = data_list.map do |data|
|
|
255
|
-
PortingPortabilityInstance.new(version, data)
|
|
256
|
-
end
|
|
257
|
-
@headers = payload.headers
|
|
258
|
-
@status_code = payload.status_code
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def porting_portability
|
|
262
|
-
@porting_portability
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def headers
|
|
266
|
-
@headers
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
def status_code
|
|
270
|
-
@status_code
|
|
271
|
-
end
|
|
272
|
-
end
|
|
273
|
-
|
|
274
215
|
class PortingPortabilityInstance < InstanceResource
|
|
275
216
|
##
|
|
276
217
|
# Initialize the PortingPortabilityInstance
|
|
@@ -116,65 +116,6 @@ module Twilio
|
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
-
class PortingWebhookConfigurationPageMetadata < PageMetadata
|
|
120
|
-
attr_reader :porting_webhook_configuration_page
|
|
121
|
-
|
|
122
|
-
def initialize(version, response, solution, limit)
|
|
123
|
-
super(version, response)
|
|
124
|
-
@porting_webhook_configuration_page = []
|
|
125
|
-
@limit = limit
|
|
126
|
-
key = get_key(response.body)
|
|
127
|
-
records = 0
|
|
128
|
-
while( limit != :unset && records < limit )
|
|
129
|
-
@porting_webhook_configuration_page << PortingWebhookConfigurationListResponse.new(version, @payload, key, limit - records)
|
|
130
|
-
@payload = self.next_page
|
|
131
|
-
break unless @payload
|
|
132
|
-
records += (@payload.body[key] || []).size
|
|
133
|
-
end
|
|
134
|
-
# Path Solution
|
|
135
|
-
@solution = solution
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
def each
|
|
139
|
-
@porting_webhook_configuration_page.each do |record|
|
|
140
|
-
yield record
|
|
141
|
-
end
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
def to_s
|
|
145
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
146
|
-
end
|
|
147
|
-
end
|
|
148
|
-
class PortingWebhookConfigurationListResponse < InstanceListResource
|
|
149
|
-
|
|
150
|
-
# @param [Array<PortingWebhookConfigurationInstance>] instance
|
|
151
|
-
# @param [Hash{String => Object}] headers
|
|
152
|
-
# @param [Integer] status_code
|
|
153
|
-
def initialize(version, payload, key, limit = :unset)
|
|
154
|
-
data_list = payload.body[key] || []
|
|
155
|
-
if limit != :unset
|
|
156
|
-
data_list = data_list[0, limit]
|
|
157
|
-
end
|
|
158
|
-
@porting_webhook_configuration = data_list.map do |data|
|
|
159
|
-
PortingWebhookConfigurationInstance.new(version, data)
|
|
160
|
-
end
|
|
161
|
-
@headers = payload.headers
|
|
162
|
-
@status_code = payload.status_code
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def porting_webhook_configuration
|
|
166
|
-
@porting_webhook_configuration
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def headers
|
|
170
|
-
@headers
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
def status_code
|
|
174
|
-
@status_code
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
|
|
178
119
|
class PortingWebhookConfigurationInstance < InstanceResource
|
|
179
120
|
##
|
|
180
121
|
# Initialize the PortingWebhookConfigurationInstance
|
|
@@ -182,65 +182,6 @@ module Twilio
|
|
|
182
182
|
end
|
|
183
183
|
end
|
|
184
184
|
|
|
185
|
-
class PortingWebhookConfigurationDeletePageMetadata < PageMetadata
|
|
186
|
-
attr_reader :porting_webhook_configuration_delete_page
|
|
187
|
-
|
|
188
|
-
def initialize(version, response, solution, limit)
|
|
189
|
-
super(version, response)
|
|
190
|
-
@porting_webhook_configuration_delete_page = []
|
|
191
|
-
@limit = limit
|
|
192
|
-
key = get_key(response.body)
|
|
193
|
-
records = 0
|
|
194
|
-
while( limit != :unset && records < limit )
|
|
195
|
-
@porting_webhook_configuration_delete_page << PortingWebhookConfigurationDeleteListResponse.new(version, @payload, key, limit - records)
|
|
196
|
-
@payload = self.next_page
|
|
197
|
-
break unless @payload
|
|
198
|
-
records += (@payload.body[key] || []).size
|
|
199
|
-
end
|
|
200
|
-
# Path Solution
|
|
201
|
-
@solution = solution
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
def each
|
|
205
|
-
@porting_webhook_configuration_delete_page.each do |record|
|
|
206
|
-
yield record
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
def to_s
|
|
211
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
class PortingWebhookConfigurationDeleteListResponse < InstanceListResource
|
|
215
|
-
|
|
216
|
-
# @param [Array<PortingWebhookConfigurationDeleteInstance>] instance
|
|
217
|
-
# @param [Hash{String => Object}] headers
|
|
218
|
-
# @param [Integer] status_code
|
|
219
|
-
def initialize(version, payload, key, limit = :unset)
|
|
220
|
-
data_list = payload.body[key] || []
|
|
221
|
-
if limit != :unset
|
|
222
|
-
data_list = data_list[0, limit]
|
|
223
|
-
end
|
|
224
|
-
@porting_webhook_configuration_delete = data_list.map do |data|
|
|
225
|
-
PortingWebhookConfigurationDeleteInstance.new(version, data)
|
|
226
|
-
end
|
|
227
|
-
@headers = payload.headers
|
|
228
|
-
@status_code = payload.status_code
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
def porting_webhook_configuration_delete
|
|
232
|
-
@porting_webhook_configuration_delete
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
def headers
|
|
236
|
-
@headers
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
def status_code
|
|
240
|
-
@status_code
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
|
|
244
185
|
class PortingWebhookConfigurationDeleteInstance < InstanceResource
|
|
245
186
|
##
|
|
246
187
|
# Initialize the PortingWebhookConfigurationDeleteInstance
|
|
@@ -151,65 +151,6 @@ module Twilio
|
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
-
class SenderIdRegistrationPageMetadata < PageMetadata
|
|
155
|
-
attr_reader :sender_id_registration_page
|
|
156
|
-
|
|
157
|
-
def initialize(version, response, solution, limit)
|
|
158
|
-
super(version, response)
|
|
159
|
-
@sender_id_registration_page = []
|
|
160
|
-
@limit = limit
|
|
161
|
-
key = get_key(response.body)
|
|
162
|
-
records = 0
|
|
163
|
-
while( limit != :unset && records < limit )
|
|
164
|
-
@sender_id_registration_page << SenderIdRegistrationListResponse.new(version, @payload, key, limit - records)
|
|
165
|
-
@payload = self.next_page
|
|
166
|
-
break unless @payload
|
|
167
|
-
records += (@payload.body[key] || []).size
|
|
168
|
-
end
|
|
169
|
-
# Path Solution
|
|
170
|
-
@solution = solution
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
def each
|
|
174
|
-
@sender_id_registration_page.each do |record|
|
|
175
|
-
yield record
|
|
176
|
-
end
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
def to_s
|
|
180
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
class SenderIdRegistrationListResponse < InstanceListResource
|
|
184
|
-
|
|
185
|
-
# @param [Array<SenderIdRegistrationInstance>] instance
|
|
186
|
-
# @param [Hash{String => Object}] headers
|
|
187
|
-
# @param [Integer] status_code
|
|
188
|
-
def initialize(version, payload, key, limit = :unset)
|
|
189
|
-
data_list = payload.body[key] || []
|
|
190
|
-
if limit != :unset
|
|
191
|
-
data_list = data_list[0, limit]
|
|
192
|
-
end
|
|
193
|
-
@sender_id_registration = data_list.map do |data|
|
|
194
|
-
SenderIdRegistrationInstance.new(version, data)
|
|
195
|
-
end
|
|
196
|
-
@headers = payload.headers
|
|
197
|
-
@status_code = payload.status_code
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
def sender_id_registration
|
|
201
|
-
@sender_id_registration
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
def headers
|
|
205
|
-
@headers
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
def status_code
|
|
209
|
-
@status_code
|
|
210
|
-
end
|
|
211
|
-
end
|
|
212
|
-
|
|
213
154
|
class SenderIdRegistrationInstance < InstanceResource
|
|
214
155
|
##
|
|
215
156
|
# Initialize the SenderIdRegistrationInstance
|