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
|
@@ -197,65 +197,6 @@ module Twilio
|
|
|
197
197
|
end
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
class OperationPageMetadata < PageMetadata
|
|
201
|
-
attr_reader :operation_page
|
|
202
|
-
|
|
203
|
-
def initialize(version, response, solution, limit)
|
|
204
|
-
super(version, response)
|
|
205
|
-
@operation_page = []
|
|
206
|
-
@limit = limit
|
|
207
|
-
key = get_key(response.body)
|
|
208
|
-
records = 0
|
|
209
|
-
while( limit != :unset && records < limit )
|
|
210
|
-
@operation_page << OperationListResponse.new(version, @payload, key, limit - records)
|
|
211
|
-
@payload = self.next_page
|
|
212
|
-
break unless @payload
|
|
213
|
-
records += (@payload.body[key] || []).size
|
|
214
|
-
end
|
|
215
|
-
# Path Solution
|
|
216
|
-
@solution = solution
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
def each
|
|
220
|
-
@operation_page.each do |record|
|
|
221
|
-
yield record
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def to_s
|
|
226
|
-
'<Twilio::REST::Knowledge::V2PageMetadata>';
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
class OperationListResponse < InstanceListResource
|
|
230
|
-
|
|
231
|
-
# @param [Array<OperationInstance>] instance
|
|
232
|
-
# @param [Hash{String => Object}] headers
|
|
233
|
-
# @param [Integer] status_code
|
|
234
|
-
def initialize(version, payload, key, limit = :unset)
|
|
235
|
-
data_list = payload.body[key] || []
|
|
236
|
-
if limit != :unset
|
|
237
|
-
data_list = data_list[0, limit]
|
|
238
|
-
end
|
|
239
|
-
@operation = data_list.map do |data|
|
|
240
|
-
OperationInstance.new(version, data)
|
|
241
|
-
end
|
|
242
|
-
@headers = payload.headers
|
|
243
|
-
@status_code = payload.status_code
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
def operation
|
|
247
|
-
@operation
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
def headers
|
|
251
|
-
@headers
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
def status_code
|
|
255
|
-
@status_code
|
|
256
|
-
end
|
|
257
|
-
end
|
|
258
|
-
|
|
259
200
|
class OperationInstance < InstanceResource
|
|
260
201
|
##
|
|
261
202
|
# Initialize the OperationInstance
|
|
@@ -43,40 +43,13 @@ module Twilio
|
|
|
43
43
|
# Initialize the SearchList
|
|
44
44
|
# @param [Version] version Version that contains the resource
|
|
45
45
|
# @return [SearchList] SearchList
|
|
46
|
-
def initialize(version)
|
|
46
|
+
def initialize(version, kb_id: nil)
|
|
47
47
|
|
|
48
48
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
49
49
|
super(apiV1Version)
|
|
50
50
|
# Path Solution
|
|
51
|
-
@solution = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
# Provide a user friendly representation
|
|
59
|
-
def to_s
|
|
60
|
-
'#<Twilio.Knowledge.V2.SearchList>'
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
class SearchContext < InstanceContext
|
|
66
|
-
##
|
|
67
|
-
# Initialize the SearchContext
|
|
68
|
-
# @param [Version] version Version that contains the resource
|
|
69
|
-
# @param [String] kb_id A unique Knowledge Base ID using Twilio Type ID (TTID) format
|
|
70
|
-
# @return [SearchContext] SearchContext
|
|
71
|
-
def initialize(version, kb_id)
|
|
72
|
-
|
|
73
|
-
apiV1Version = ApiV1Version.new version.domain, version
|
|
74
|
-
super(apiV1Version)
|
|
75
|
-
|
|
76
|
-
# Path Solution
|
|
77
|
-
@solution = { kb_id: kb_id, }
|
|
51
|
+
@solution = { kb_id: kb_id }
|
|
78
52
|
@uri = "/KnowledgeBases/#{@solution[:kb_id]}/Search"
|
|
79
|
-
|
|
80
53
|
|
|
81
54
|
end
|
|
82
55
|
##
|
|
@@ -127,69 +100,15 @@ module Twilio
|
|
|
127
100
|
)
|
|
128
101
|
end
|
|
129
102
|
|
|
103
|
+
|
|
130
104
|
|
|
131
|
-
##
|
|
132
|
-
# Provide a user friendly representation
|
|
133
|
-
def to_s
|
|
134
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
135
|
-
"#<Twilio.Knowledge.V2.SearchContext #{context}>"
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
##
|
|
139
|
-
# Provide a detailed, user friendly representation
|
|
140
|
-
def inspect
|
|
141
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
142
|
-
"#<Twilio.Knowledge.V2.SearchContext #{context}>"
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
class SearchInstanceMetadata < InstanceResourceMetadata
|
|
147
|
-
##
|
|
148
|
-
# Initializes a new SearchInstanceMetadata.
|
|
149
|
-
# @param [Version] version Version that contains the resource
|
|
150
|
-
# @param [}SearchInstance] search_instance The instance associated with the metadata.
|
|
151
|
-
# @param [Hash] headers Header object with response headers.
|
|
152
|
-
# @param [Integer] status_code The HTTP status code of the response.
|
|
153
|
-
# @return [SearchInstanceMetadata] The initialized instance with metadata.
|
|
154
|
-
def initialize(version, search_instance, headers, status_code)
|
|
155
|
-
super(version, headers, status_code)
|
|
156
|
-
@search_instance = search_instance
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
def search
|
|
160
|
-
@search_instance
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
def headers
|
|
164
|
-
@headers
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def status_code
|
|
168
|
-
@status_code
|
|
169
|
-
end
|
|
170
105
|
|
|
106
|
+
# Provide a user friendly representation
|
|
171
107
|
def to_s
|
|
172
|
-
|
|
108
|
+
'#<Twilio.Knowledge.V2.SearchList>'
|
|
173
109
|
end
|
|
174
110
|
end
|
|
175
111
|
|
|
176
|
-
class SearchListResponse < InstanceListResource
|
|
177
|
-
# @param [Array<SearchInstance>] instance
|
|
178
|
-
# @param [Hash{String => Object}] headers
|
|
179
|
-
# @param [Integer] status_code
|
|
180
|
-
def initialize(version, payload, key)
|
|
181
|
-
@search_instance = payload.body[key].map do |data|
|
|
182
|
-
SearchInstance.new(version, data)
|
|
183
|
-
end
|
|
184
|
-
@headers = payload.headers
|
|
185
|
-
@status_code = payload.status_code
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
def search_instance
|
|
189
|
-
@instance
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
|
|
193
112
|
class SearchPage < TokenPage
|
|
194
113
|
##
|
|
195
114
|
# Initialize the SearchPage
|
|
@@ -211,7 +130,7 @@ module Twilio
|
|
|
211
130
|
# @param [Hash] payload Payload response from the API
|
|
212
131
|
# @return [SearchInstance] SearchInstance
|
|
213
132
|
def get_instance(payload)
|
|
214
|
-
SearchInstance.new(@version, payload)
|
|
133
|
+
SearchInstance.new(@version, payload, kb_id: @solution[:kb_id])
|
|
215
134
|
end
|
|
216
135
|
|
|
217
136
|
##
|
|
@@ -221,65 +140,6 @@ module Twilio
|
|
|
221
140
|
end
|
|
222
141
|
end
|
|
223
142
|
|
|
224
|
-
class SearchPageMetadata < PageMetadata
|
|
225
|
-
attr_reader :search_page
|
|
226
|
-
|
|
227
|
-
def initialize(version, response, solution, limit)
|
|
228
|
-
super(version, response)
|
|
229
|
-
@search_page = []
|
|
230
|
-
@limit = limit
|
|
231
|
-
key = get_key(response.body)
|
|
232
|
-
records = 0
|
|
233
|
-
while( limit != :unset && records < limit )
|
|
234
|
-
@search_page << SearchListResponse.new(version, @payload, key, limit - records)
|
|
235
|
-
@payload = self.next_page
|
|
236
|
-
break unless @payload
|
|
237
|
-
records += (@payload.body[key] || []).size
|
|
238
|
-
end
|
|
239
|
-
# Path Solution
|
|
240
|
-
@solution = solution
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
def each
|
|
244
|
-
@search_page.each do |record|
|
|
245
|
-
yield record
|
|
246
|
-
end
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def to_s
|
|
250
|
-
'<Twilio::REST::Knowledge::V2PageMetadata>';
|
|
251
|
-
end
|
|
252
|
-
end
|
|
253
|
-
class SearchListResponse < InstanceListResource
|
|
254
|
-
|
|
255
|
-
# @param [Array<SearchInstance>] instance
|
|
256
|
-
# @param [Hash{String => Object}] headers
|
|
257
|
-
# @param [Integer] status_code
|
|
258
|
-
def initialize(version, payload, key, limit = :unset)
|
|
259
|
-
data_list = payload.body[key] || []
|
|
260
|
-
if limit != :unset
|
|
261
|
-
data_list = data_list[0, limit]
|
|
262
|
-
end
|
|
263
|
-
@search = data_list.map do |data|
|
|
264
|
-
SearchInstance.new(version, data)
|
|
265
|
-
end
|
|
266
|
-
@headers = payload.headers
|
|
267
|
-
@status_code = payload.status_code
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
def search
|
|
271
|
-
@search
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
def headers
|
|
275
|
-
@headers
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
def status_code
|
|
279
|
-
@status_code
|
|
280
|
-
end
|
|
281
|
-
end
|
|
282
|
-
|
|
283
143
|
class SearchInstance < InstanceResource
|
|
284
144
|
##
|
|
285
145
|
# Initialize the SearchInstance
|
|
@@ -299,22 +159,8 @@ module Twilio
|
|
|
299
159
|
@properties = {
|
|
300
160
|
'chunks' => payload['chunks'],
|
|
301
161
|
}
|
|
302
|
-
|
|
303
|
-
# Context
|
|
304
|
-
@instance_context = nil
|
|
305
|
-
@params = { 'kb_id' => kb_id || @properties['kb_id'] , }
|
|
306
162
|
end
|
|
307
163
|
|
|
308
|
-
##
|
|
309
|
-
# Generate an instance context for the instance, the context is capable of
|
|
310
|
-
# performing various actions. All instance actions are proxied to the context
|
|
311
|
-
# @return [SearchContext] CallContext for this CallInstance
|
|
312
|
-
def context
|
|
313
|
-
unless @instance_context
|
|
314
|
-
@instance_context = SearchContext.new(@version , @params['kb_id'])
|
|
315
|
-
end
|
|
316
|
-
@instance_context
|
|
317
|
-
end
|
|
318
164
|
|
|
319
165
|
##
|
|
320
166
|
# @return [Array<KnowledgeChunkResult>]
|
|
@@ -322,30 +168,16 @@ module Twilio
|
|
|
322
168
|
@properties['chunks']
|
|
323
169
|
end
|
|
324
170
|
|
|
325
|
-
##
|
|
326
|
-
# Create the SearchInstance
|
|
327
|
-
# @param [KnowledgeSearch] knowledge_search
|
|
328
|
-
# @return [SearchInstance] Created SearchInstance
|
|
329
|
-
def create(knowledge_search: :unset
|
|
330
|
-
)
|
|
331
|
-
|
|
332
|
-
context.create(
|
|
333
|
-
knowledge_search: knowledge_search,
|
|
334
|
-
)
|
|
335
|
-
end
|
|
336
|
-
|
|
337
171
|
##
|
|
338
172
|
# Provide a user friendly representation
|
|
339
173
|
def to_s
|
|
340
|
-
|
|
341
|
-
"<Twilio.Knowledge.V2.SearchInstance #{values}>"
|
|
174
|
+
"<Twilio.Knowledge.V2.SearchInstance>"
|
|
342
175
|
end
|
|
343
176
|
|
|
344
177
|
##
|
|
345
178
|
# Provide a detailed, user friendly representation
|
|
346
179
|
def inspect
|
|
347
|
-
|
|
348
|
-
"<Twilio.Knowledge.V2.SearchInstance #{values}>"
|
|
180
|
+
"<Twilio.Knowledge.V2.SearchInstance>"
|
|
349
181
|
end
|
|
350
182
|
end
|
|
351
183
|
|
|
@@ -121,7 +121,6 @@ module Twilio
|
|
|
121
121
|
end
|
|
122
122
|
##
|
|
123
123
|
# @param [String] kb_id A unique Knowledge Base ID using Twilio Type ID (TTID) format
|
|
124
|
-
# @return [Twilio::REST::Knowledge::V2::SearchContext] if kbId was passed.
|
|
125
124
|
# @return [Twilio::REST::Knowledge::V2::SearchList]
|
|
126
125
|
def search(kb_id=:unset)
|
|
127
126
|
if kb_id.nil?
|
|
@@ -131,7 +130,7 @@ module Twilio
|
|
|
131
130
|
if kb_id == :unset
|
|
132
131
|
@search ||= SearchList.new self
|
|
133
132
|
else
|
|
134
|
-
|
|
133
|
+
SearchList.new(self, kb_id: kb_id)
|
|
135
134
|
end
|
|
136
135
|
end
|
|
137
136
|
##
|
|
@@ -224,65 +224,6 @@ module Twilio
|
|
|
224
224
|
end
|
|
225
225
|
end
|
|
226
226
|
|
|
227
|
-
class PhoneNumberPageMetadata < PageMetadata
|
|
228
|
-
attr_reader :phone_number_page
|
|
229
|
-
|
|
230
|
-
def initialize(version, response, solution, limit)
|
|
231
|
-
super(version, response)
|
|
232
|
-
@phone_number_page = []
|
|
233
|
-
@limit = limit
|
|
234
|
-
key = get_key(response.body)
|
|
235
|
-
records = 0
|
|
236
|
-
while( limit != :unset && records < limit )
|
|
237
|
-
@phone_number_page << PhoneNumberListResponse.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
|
-
@phone_number_page.each do |record|
|
|
248
|
-
yield record
|
|
249
|
-
end
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
def to_s
|
|
253
|
-
'<Twilio::REST::Lookups::V1PageMetadata>';
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
class PhoneNumberListResponse < InstanceListResource
|
|
257
|
-
|
|
258
|
-
# @param [Array<PhoneNumberInstance>] 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
|
-
@phone_number = data_list.map do |data|
|
|
267
|
-
PhoneNumberInstance.new(version, data)
|
|
268
|
-
end
|
|
269
|
-
@headers = payload.headers
|
|
270
|
-
@status_code = payload.status_code
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
def phone_number
|
|
274
|
-
@phone_number
|
|
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 PhoneNumberInstance < InstanceResource
|
|
287
228
|
##
|
|
288
229
|
# Initialize the PhoneNumberInstance
|
|
@@ -296,65 +296,6 @@ module Twilio
|
|
|
296
296
|
end
|
|
297
297
|
end
|
|
298
298
|
|
|
299
|
-
class BucketPageMetadata < PageMetadata
|
|
300
|
-
attr_reader :bucket_page
|
|
301
|
-
|
|
302
|
-
def initialize(version, response, solution, limit)
|
|
303
|
-
super(version, response)
|
|
304
|
-
@bucket_page = []
|
|
305
|
-
@limit = limit
|
|
306
|
-
key = get_key(response.body)
|
|
307
|
-
records = 0
|
|
308
|
-
while( limit != :unset && records < limit )
|
|
309
|
-
@bucket_page << BucketListResponse.new(version, @payload, key, limit - records)
|
|
310
|
-
@payload = self.next_page
|
|
311
|
-
break unless @payload
|
|
312
|
-
records += (@payload.body[key] || []).size
|
|
313
|
-
end
|
|
314
|
-
# Path Solution
|
|
315
|
-
@solution = solution
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
def each
|
|
319
|
-
@bucket_page.each do |record|
|
|
320
|
-
yield record
|
|
321
|
-
end
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
def to_s
|
|
325
|
-
'<Twilio::REST::Lookups::V2PageMetadata>';
|
|
326
|
-
end
|
|
327
|
-
end
|
|
328
|
-
class BucketListResponse < InstanceListResource
|
|
329
|
-
|
|
330
|
-
# @param [Array<BucketInstance>] instance
|
|
331
|
-
# @param [Hash{String => Object}] headers
|
|
332
|
-
# @param [Integer] status_code
|
|
333
|
-
def initialize(version, payload, key, limit = :unset)
|
|
334
|
-
data_list = payload.body[key] || []
|
|
335
|
-
if limit != :unset
|
|
336
|
-
data_list = data_list[0, limit]
|
|
337
|
-
end
|
|
338
|
-
@bucket = data_list.map do |data|
|
|
339
|
-
BucketInstance.new(version, data)
|
|
340
|
-
end
|
|
341
|
-
@headers = payload.headers
|
|
342
|
-
@status_code = payload.status_code
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
def bucket
|
|
346
|
-
@bucket
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
def headers
|
|
350
|
-
@headers
|
|
351
|
-
end
|
|
352
|
-
|
|
353
|
-
def status_code
|
|
354
|
-
@status_code
|
|
355
|
-
end
|
|
356
|
-
end
|
|
357
|
-
|
|
358
299
|
class BucketInstance < InstanceResource
|
|
359
300
|
##
|
|
360
301
|
# Initialize the BucketInstance
|
|
@@ -346,65 +346,6 @@ module Twilio
|
|
|
346
346
|
end
|
|
347
347
|
end
|
|
348
348
|
|
|
349
|
-
class LookupOverridePageMetadata < PageMetadata
|
|
350
|
-
attr_reader :lookup_override_page
|
|
351
|
-
|
|
352
|
-
def initialize(version, response, solution, limit)
|
|
353
|
-
super(version, response)
|
|
354
|
-
@lookup_override_page = []
|
|
355
|
-
@limit = limit
|
|
356
|
-
key = get_key(response.body)
|
|
357
|
-
records = 0
|
|
358
|
-
while( limit != :unset && records < limit )
|
|
359
|
-
@lookup_override_page << LookupOverrideListResponse.new(version, @payload, key, limit - records)
|
|
360
|
-
@payload = self.next_page
|
|
361
|
-
break unless @payload
|
|
362
|
-
records += (@payload.body[key] || []).size
|
|
363
|
-
end
|
|
364
|
-
# Path Solution
|
|
365
|
-
@solution = solution
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
def each
|
|
369
|
-
@lookup_override_page.each do |record|
|
|
370
|
-
yield record
|
|
371
|
-
end
|
|
372
|
-
end
|
|
373
|
-
|
|
374
|
-
def to_s
|
|
375
|
-
'<Twilio::REST::Lookups::V2PageMetadata>';
|
|
376
|
-
end
|
|
377
|
-
end
|
|
378
|
-
class LookupOverrideListResponse < InstanceListResource
|
|
379
|
-
|
|
380
|
-
# @param [Array<LookupOverrideInstance>] instance
|
|
381
|
-
# @param [Hash{String => Object}] headers
|
|
382
|
-
# @param [Integer] status_code
|
|
383
|
-
def initialize(version, payload, key, limit = :unset)
|
|
384
|
-
data_list = payload.body[key] || []
|
|
385
|
-
if limit != :unset
|
|
386
|
-
data_list = data_list[0, limit]
|
|
387
|
-
end
|
|
388
|
-
@lookup_override = data_list.map do |data|
|
|
389
|
-
LookupOverrideInstance.new(version, data)
|
|
390
|
-
end
|
|
391
|
-
@headers = payload.headers
|
|
392
|
-
@status_code = payload.status_code
|
|
393
|
-
end
|
|
394
|
-
|
|
395
|
-
def lookup_override
|
|
396
|
-
@lookup_override
|
|
397
|
-
end
|
|
398
|
-
|
|
399
|
-
def headers
|
|
400
|
-
@headers
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
def status_code
|
|
404
|
-
@status_code
|
|
405
|
-
end
|
|
406
|
-
end
|
|
407
|
-
|
|
408
349
|
class LookupOverrideInstance < InstanceResource
|
|
409
350
|
##
|
|
410
351
|
# Initialize the LookupOverrideInstance
|
|
@@ -290,65 +290,6 @@ module Twilio
|
|
|
290
290
|
end
|
|
291
291
|
end
|
|
292
292
|
|
|
293
|
-
class PhoneNumberPageMetadata < PageMetadata
|
|
294
|
-
attr_reader :phone_number_page
|
|
295
|
-
|
|
296
|
-
def initialize(version, response, solution, limit)
|
|
297
|
-
super(version, response)
|
|
298
|
-
@phone_number_page = []
|
|
299
|
-
@limit = limit
|
|
300
|
-
key = get_key(response.body)
|
|
301
|
-
records = 0
|
|
302
|
-
while( limit != :unset && records < limit )
|
|
303
|
-
@phone_number_page << PhoneNumberListResponse.new(version, @payload, key, limit - records)
|
|
304
|
-
@payload = self.next_page
|
|
305
|
-
break unless @payload
|
|
306
|
-
records += (@payload.body[key] || []).size
|
|
307
|
-
end
|
|
308
|
-
# Path Solution
|
|
309
|
-
@solution = solution
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
def each
|
|
313
|
-
@phone_number_page.each do |record|
|
|
314
|
-
yield record
|
|
315
|
-
end
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
def to_s
|
|
319
|
-
'<Twilio::REST::Lookups::V2PageMetadata>';
|
|
320
|
-
end
|
|
321
|
-
end
|
|
322
|
-
class PhoneNumberListResponse < InstanceListResource
|
|
323
|
-
|
|
324
|
-
# @param [Array<PhoneNumberInstance>] instance
|
|
325
|
-
# @param [Hash{String => Object}] headers
|
|
326
|
-
# @param [Integer] status_code
|
|
327
|
-
def initialize(version, payload, key, limit = :unset)
|
|
328
|
-
data_list = payload.body[key] || []
|
|
329
|
-
if limit != :unset
|
|
330
|
-
data_list = data_list[0, limit]
|
|
331
|
-
end
|
|
332
|
-
@phone_number = data_list.map do |data|
|
|
333
|
-
PhoneNumberInstance.new(version, data)
|
|
334
|
-
end
|
|
335
|
-
@headers = payload.headers
|
|
336
|
-
@status_code = payload.status_code
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
def phone_number
|
|
340
|
-
@phone_number
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
def headers
|
|
344
|
-
@headers
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
def status_code
|
|
348
|
-
@status_code
|
|
349
|
-
end
|
|
350
|
-
end
|
|
351
|
-
|
|
352
293
|
class PhoneNumberInstance < InstanceResource
|
|
353
294
|
##
|
|
354
295
|
# Initialize the PhoneNumberInstance
|
|
@@ -246,65 +246,6 @@ module Twilio
|
|
|
246
246
|
end
|
|
247
247
|
end
|
|
248
248
|
|
|
249
|
-
class QueryPageMetadata < PageMetadata
|
|
250
|
-
attr_reader :query_page
|
|
251
|
-
|
|
252
|
-
def initialize(version, response, solution, limit)
|
|
253
|
-
super(version, response)
|
|
254
|
-
@query_page = []
|
|
255
|
-
@limit = limit
|
|
256
|
-
key = get_key(response.body)
|
|
257
|
-
records = 0
|
|
258
|
-
while( limit != :unset && records < limit )
|
|
259
|
-
@query_page << QueryListResponse.new(version, @payload, key, limit - records)
|
|
260
|
-
@payload = self.next_page
|
|
261
|
-
break unless @payload
|
|
262
|
-
records += (@payload.body[key] || []).size
|
|
263
|
-
end
|
|
264
|
-
# Path Solution
|
|
265
|
-
@solution = solution
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
def each
|
|
269
|
-
@query_page.each do |record|
|
|
270
|
-
yield record
|
|
271
|
-
end
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
def to_s
|
|
275
|
-
'<Twilio::REST::Lookups::V2PageMetadata>';
|
|
276
|
-
end
|
|
277
|
-
end
|
|
278
|
-
class QueryListResponse < InstanceListResource
|
|
279
|
-
|
|
280
|
-
# @param [Array<QueryInstance>] instance
|
|
281
|
-
# @param [Hash{String => Object}] headers
|
|
282
|
-
# @param [Integer] status_code
|
|
283
|
-
def initialize(version, payload, key, limit = :unset)
|
|
284
|
-
data_list = payload.body[key] || []
|
|
285
|
-
if limit != :unset
|
|
286
|
-
data_list = data_list[0, limit]
|
|
287
|
-
end
|
|
288
|
-
@query = data_list.map do |data|
|
|
289
|
-
QueryInstance.new(version, data)
|
|
290
|
-
end
|
|
291
|
-
@headers = payload.headers
|
|
292
|
-
@status_code = payload.status_code
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
def query
|
|
296
|
-
@query
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
def headers
|
|
300
|
-
@headers
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
def status_code
|
|
304
|
-
@status_code
|
|
305
|
-
end
|
|
306
|
-
end
|
|
307
|
-
|
|
308
249
|
class QueryInstance < InstanceResource
|
|
309
250
|
##
|
|
310
251
|
# Initialize the QueryInstance
|