twilio-ruby 7.11.1 → 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/CHANGES.md +221 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
- data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
- data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
- data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
- data/lib/twilio-ruby/rest/insights/v3/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/rule_execution.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2.rb +0 -16
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/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 +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -467,33 +467,7 @@ module Twilio
|
|
|
467
467
|
|
|
468
468
|
# Path Solution
|
|
469
469
|
@solution = { }
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
end
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
# Provide a user friendly representation
|
|
477
|
-
def to_s
|
|
478
|
-
'#<Twilio.Insights.V2.ReportList>'
|
|
479
|
-
end
|
|
480
|
-
end
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
class ReportContext < InstanceContext
|
|
484
|
-
##
|
|
485
|
-
# Initialize the ReportContext
|
|
486
|
-
# @param [Version] version Version that contains the resource
|
|
487
|
-
# @param [String] report_id A unique request id.
|
|
488
|
-
# @return [ReportContext] ReportContext
|
|
489
|
-
def initialize(version, report_id)
|
|
490
|
-
super(version)
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
# Path Solution
|
|
494
|
-
@solution = { report_id: report_id, }
|
|
495
|
-
@uri = "/Voice/Reports/#{@solution[:report_id]}"
|
|
496
|
-
|
|
470
|
+
@uri = "/Voice/Reports"
|
|
497
471
|
|
|
498
472
|
end
|
|
499
473
|
##
|
|
@@ -513,7 +487,6 @@ module Twilio
|
|
|
513
487
|
ReportInstance.new(
|
|
514
488
|
@version,
|
|
515
489
|
payload,
|
|
516
|
-
report_id: @solution[:report_id],
|
|
517
490
|
)
|
|
518
491
|
end
|
|
519
492
|
|
|
@@ -534,7 +507,6 @@ module Twilio
|
|
|
534
507
|
report_instance = ReportInstance.new(
|
|
535
508
|
@version,
|
|
536
509
|
response.body,
|
|
537
|
-
report_id: @solution[:report_id],
|
|
538
510
|
)
|
|
539
511
|
ReportInstanceMetadata.new(
|
|
540
512
|
@version,
|
|
@@ -544,6 +516,32 @@ module Twilio
|
|
|
544
516
|
)
|
|
545
517
|
end
|
|
546
518
|
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
# Provide a user friendly representation
|
|
523
|
+
def to_s
|
|
524
|
+
'#<Twilio.Insights.V2.ReportList>'
|
|
525
|
+
end
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
class ReportContext < InstanceContext
|
|
530
|
+
##
|
|
531
|
+
# Initialize the ReportContext
|
|
532
|
+
# @param [Version] version Version that contains the resource
|
|
533
|
+
# @param [String] report_id A unique request id.
|
|
534
|
+
# @return [ReportContext] ReportContext
|
|
535
|
+
def initialize(version, report_id)
|
|
536
|
+
super(version)
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
# Path Solution
|
|
540
|
+
@solution = { report_id: report_id, }
|
|
541
|
+
@uri = "/Voice/Reports/#{@solution[:report_id]}"
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
end
|
|
547
545
|
##
|
|
548
546
|
# Fetch the ReportInstance
|
|
549
547
|
# @return [ReportInstance] Fetched ReportInstance
|
|
@@ -681,65 +679,6 @@ module Twilio
|
|
|
681
679
|
end
|
|
682
680
|
end
|
|
683
681
|
|
|
684
|
-
class ReportPageMetadata < PageMetadata
|
|
685
|
-
attr_reader :report_page
|
|
686
|
-
|
|
687
|
-
def initialize(version, response, solution, limit)
|
|
688
|
-
super(version, response)
|
|
689
|
-
@report_page = []
|
|
690
|
-
@limit = limit
|
|
691
|
-
key = get_key(response.body)
|
|
692
|
-
records = 0
|
|
693
|
-
while( limit != :unset && records < limit )
|
|
694
|
-
@report_page << ReportListResponse.new(version, @payload, key, limit - records)
|
|
695
|
-
@payload = self.next_page
|
|
696
|
-
break unless @payload
|
|
697
|
-
records += (@payload.body[key] || []).size
|
|
698
|
-
end
|
|
699
|
-
# Path Solution
|
|
700
|
-
@solution = solution
|
|
701
|
-
end
|
|
702
|
-
|
|
703
|
-
def each
|
|
704
|
-
@report_page.each do |record|
|
|
705
|
-
yield record
|
|
706
|
-
end
|
|
707
|
-
end
|
|
708
|
-
|
|
709
|
-
def to_s
|
|
710
|
-
'<Twilio::REST::Insights::V2PageMetadata>';
|
|
711
|
-
end
|
|
712
|
-
end
|
|
713
|
-
class ReportListResponse < InstanceListResource
|
|
714
|
-
|
|
715
|
-
# @param [Array<ReportInstance>] instance
|
|
716
|
-
# @param [Hash{String => Object}] headers
|
|
717
|
-
# @param [Integer] status_code
|
|
718
|
-
def initialize(version, payload, key, limit = :unset)
|
|
719
|
-
data_list = payload.body[key] || []
|
|
720
|
-
if limit != :unset
|
|
721
|
-
data_list = data_list[0, limit]
|
|
722
|
-
end
|
|
723
|
-
@report = data_list.map do |data|
|
|
724
|
-
ReportInstance.new(version, data)
|
|
725
|
-
end
|
|
726
|
-
@headers = payload.headers
|
|
727
|
-
@status_code = payload.status_code
|
|
728
|
-
end
|
|
729
|
-
|
|
730
|
-
def report
|
|
731
|
-
@report
|
|
732
|
-
end
|
|
733
|
-
|
|
734
|
-
def headers
|
|
735
|
-
@headers
|
|
736
|
-
end
|
|
737
|
-
|
|
738
|
-
def status_code
|
|
739
|
-
@status_code
|
|
740
|
-
end
|
|
741
|
-
end
|
|
742
|
-
|
|
743
682
|
class ReportInstance < InstanceResource
|
|
744
683
|
##
|
|
745
684
|
# Initialize the ReportInstance
|
|
@@ -761,18 +700,6 @@ module Twilio
|
|
|
761
700
|
'status' => payload['status'],
|
|
762
701
|
'request_meta' => payload['request_meta'],
|
|
763
702
|
'url' => payload['url'],
|
|
764
|
-
'handle' => payload['handle'],
|
|
765
|
-
'total_calls' => payload['total_calls'] == nil ? payload['total_calls'] : payload['total_calls'].to_i,
|
|
766
|
-
'call_answer_score' => payload['call_answer_score'],
|
|
767
|
-
'call_state_percentage' => payload['call_state_percentage'],
|
|
768
|
-
'silent_calls_percentage' => payload['silent_calls_percentage'],
|
|
769
|
-
'calls_by_device_type' => payload['calls_by_device_type'],
|
|
770
|
-
'answer_rate_device_type' => payload['answer_rate_device_type'],
|
|
771
|
-
'blocked_calls_by_carrier' => payload['blocked_calls_by_carrier'],
|
|
772
|
-
'short_duration_calls_percentage' => payload['short_duration_calls_percentage'],
|
|
773
|
-
'long_duration_calls_percentage' => payload['long_duration_calls_percentage'],
|
|
774
|
-
'potential_robocalls_percentage' => payload['potential_robocalls_percentage'],
|
|
775
|
-
'answering_machine_detection' => payload['answering_machine_detection'],
|
|
776
703
|
'report' => payload['report'],
|
|
777
704
|
}
|
|
778
705
|
|
|
@@ -822,96 +749,12 @@ module Twilio
|
|
|
822
749
|
@properties['url']
|
|
823
750
|
end
|
|
824
751
|
|
|
825
|
-
##
|
|
826
|
-
# @return [String] Inbound phone number handle represented in the report.
|
|
827
|
-
def handle
|
|
828
|
-
@properties['handle']
|
|
829
|
-
end
|
|
830
|
-
|
|
831
|
-
##
|
|
832
|
-
# @return [String] Total number of calls made with the given handle during the report period.
|
|
833
|
-
def total_calls
|
|
834
|
-
@properties['total_calls']
|
|
835
|
-
end
|
|
836
|
-
|
|
837
|
-
##
|
|
838
|
-
# @return [Float] The call answer score measures customers behavior to the delivered calls. The score is a value between 0 and 100, where 100 indicates that all calls were successfully answered.
|
|
839
|
-
def call_answer_score
|
|
840
|
-
@properties['call_answer_score']
|
|
841
|
-
end
|
|
842
|
-
|
|
843
|
-
##
|
|
844
|
-
# @return [InsightsV2InboundPhoneNumberReportCallStatePercentage]
|
|
845
|
-
def call_state_percentage
|
|
846
|
-
@properties['call_state_percentage']
|
|
847
|
-
end
|
|
848
|
-
|
|
849
|
-
##
|
|
850
|
-
# @return [Float] Percentage of inbound calls with silence tags over total outbound calls. A silent tag is indicative of a connectivity issue or muted audio.
|
|
851
|
-
def silent_calls_percentage
|
|
852
|
-
@properties['silent_calls_percentage']
|
|
853
|
-
end
|
|
854
|
-
|
|
855
|
-
##
|
|
856
|
-
# @return [Hash<String, Integer>] Number of calls made with each device type. `voip`, `mobile`, `landline`, `unknown`
|
|
857
|
-
def calls_by_device_type
|
|
858
|
-
@properties['calls_by_device_type']
|
|
859
|
-
end
|
|
860
|
-
|
|
861
|
-
##
|
|
862
|
-
# @return [Hash<String, Float>] Answer rate for each device type. `voip`, `mobile`, `landline`, `unknown`
|
|
863
|
-
def answer_rate_device_type
|
|
864
|
-
@properties['answer_rate_device_type']
|
|
865
|
-
end
|
|
866
|
-
|
|
867
|
-
##
|
|
868
|
-
# @return [Array<CountyCarrierValue>] Percentage of blocked calls by carrier per country.
|
|
869
|
-
def blocked_calls_by_carrier
|
|
870
|
-
@properties['blocked_calls_by_carrier']
|
|
871
|
-
end
|
|
872
|
-
|
|
873
|
-
##
|
|
874
|
-
# @return [Float] Percentage of completed outbound calls under 10 seconds (PSTN Short call tags); More than 15% is typically low trust measured.
|
|
875
|
-
def short_duration_calls_percentage
|
|
876
|
-
@properties['short_duration_calls_percentage']
|
|
877
|
-
end
|
|
878
|
-
|
|
879
|
-
##
|
|
880
|
-
# @return [Float] Percentage of long duration calls ( >= 60 seconds)
|
|
881
|
-
def long_duration_calls_percentage
|
|
882
|
-
@properties['long_duration_calls_percentage']
|
|
883
|
-
end
|
|
884
|
-
|
|
885
|
-
##
|
|
886
|
-
# @return [Float] Percentage of completed outbound calls to unassigned or unallocated phone numbers.
|
|
887
|
-
def potential_robocalls_percentage
|
|
888
|
-
@properties['potential_robocalls_percentage']
|
|
889
|
-
end
|
|
890
|
-
|
|
891
|
-
##
|
|
892
|
-
# @return [InsightsV2OutboundPhoneNumberReportAnsweringMachineDetection]
|
|
893
|
-
def answering_machine_detection
|
|
894
|
-
@properties['answering_machine_detection']
|
|
895
|
-
end
|
|
896
|
-
|
|
897
752
|
##
|
|
898
753
|
# @return [AccountReport]
|
|
899
754
|
def report
|
|
900
755
|
@properties['report']
|
|
901
756
|
end
|
|
902
757
|
|
|
903
|
-
##
|
|
904
|
-
# Create the ReportInstance
|
|
905
|
-
# @param [InsightsV2CreateAccountReportRequest] insights_v2_create_account_report_request
|
|
906
|
-
# @return [ReportInstance] Created ReportInstance
|
|
907
|
-
def create(insights_v2_create_account_report_request: :unset
|
|
908
|
-
)
|
|
909
|
-
|
|
910
|
-
context.create(
|
|
911
|
-
insights_v2_create_account_report_request: insights_v2_create_account_report_request,
|
|
912
|
-
)
|
|
913
|
-
end
|
|
914
|
-
|
|
915
758
|
##
|
|
916
759
|
# Fetch the ReportInstance
|
|
917
760
|
# @return [ReportInstance] Fetched ReportInstance
|
|
@@ -22,13 +22,14 @@ module Twilio
|
|
|
22
22
|
super
|
|
23
23
|
@version = 'v2'
|
|
24
24
|
@inbound = nil
|
|
25
|
+
@inbound_reports = nil
|
|
25
26
|
@outbound = nil
|
|
27
|
+
@outbound_reports = nil
|
|
26
28
|
@reports = nil
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
##
|
|
30
32
|
# @param [String] report_id A unique Report Id.
|
|
31
|
-
# @return [Twilio::REST::Insights::V2::InboundContext] if reportId was passed.
|
|
32
33
|
# @return [Twilio::REST::Insights::V2::InboundList]
|
|
33
34
|
def inbound(report_id=:unset)
|
|
34
35
|
if report_id.nil?
|
|
@@ -38,12 +39,16 @@ module Twilio
|
|
|
38
39
|
if report_id == :unset
|
|
39
40
|
@inbound ||= InboundList.new self
|
|
40
41
|
else
|
|
41
|
-
|
|
42
|
+
InboundList.new(self, report_id: report_id)
|
|
42
43
|
end
|
|
43
44
|
end
|
|
44
45
|
##
|
|
46
|
+
# @return [Twilio::REST::Insights::V2::InboundReportList]
|
|
47
|
+
def inbound_reports
|
|
48
|
+
@inbound_reports ||= InboundReportList.new self
|
|
49
|
+
end
|
|
50
|
+
##
|
|
45
51
|
# @param [String] report_id A unique Report Id.
|
|
46
|
-
# @return [Twilio::REST::Insights::V2::OutboundContext] if reportId was passed.
|
|
47
52
|
# @return [Twilio::REST::Insights::V2::OutboundList]
|
|
48
53
|
def outbound(report_id=:unset)
|
|
49
54
|
if report_id.nil?
|
|
@@ -53,10 +58,15 @@ module Twilio
|
|
|
53
58
|
if report_id == :unset
|
|
54
59
|
@outbound ||= OutboundList.new self
|
|
55
60
|
else
|
|
56
|
-
|
|
61
|
+
OutboundList.new(self, report_id: report_id)
|
|
57
62
|
end
|
|
58
63
|
end
|
|
59
64
|
##
|
|
65
|
+
# @return [Twilio::REST::Insights::V2::OutboundReportList]
|
|
66
|
+
def outbound_reports
|
|
67
|
+
@outbound_reports ||= OutboundReportList.new self
|
|
68
|
+
end
|
|
69
|
+
##
|
|
60
70
|
# @param [String] report_id A unique request id.
|
|
61
71
|
# @return [Twilio::REST::Insights::V2::ReportContext] if reportId was passed.
|
|
62
72
|
# @return [Twilio::REST::Insights::V2::ReportList]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio - Insights
|
|
8
|
-
# Insights
|
|
8
|
+
# The Twilio Insights v3 API provides semantic query access to Conversations analytics data. Resources include synchronous Query, Metadata, and asynchronous QueryJobs for long-running queries.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -114,65 +114,6 @@ module Twilio
|
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
class MetadataPageMetadata < PageMetadata
|
|
118
|
-
attr_reader :metadata_page
|
|
119
|
-
|
|
120
|
-
def initialize(version, response, solution, limit)
|
|
121
|
-
super(version, response)
|
|
122
|
-
@metadata_page = []
|
|
123
|
-
@limit = limit
|
|
124
|
-
key = get_key(response.body)
|
|
125
|
-
records = 0
|
|
126
|
-
while( limit != :unset && records < limit )
|
|
127
|
-
@metadata_page << MetadataListResponse.new(version, @payload, key, limit - records)
|
|
128
|
-
@payload = self.next_page
|
|
129
|
-
break unless @payload
|
|
130
|
-
records += (@payload.body[key] || []).size
|
|
131
|
-
end
|
|
132
|
-
# Path Solution
|
|
133
|
-
@solution = solution
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
def each
|
|
137
|
-
@metadata_page.each do |record|
|
|
138
|
-
yield record
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
def to_s
|
|
143
|
-
'<Twilio::REST::Insights::V3PageMetadata>';
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
class MetadataListResponse < InstanceListResource
|
|
147
|
-
|
|
148
|
-
# @param [Array<MetadataInstance>] instance
|
|
149
|
-
# @param [Hash{String => Object}] headers
|
|
150
|
-
# @param [Integer] status_code
|
|
151
|
-
def initialize(version, payload, key, limit = :unset)
|
|
152
|
-
data_list = payload.body[key] || []
|
|
153
|
-
if limit != :unset
|
|
154
|
-
data_list = data_list[0, limit]
|
|
155
|
-
end
|
|
156
|
-
@metadata = data_list.map do |data|
|
|
157
|
-
MetadataInstance.new(version, data)
|
|
158
|
-
end
|
|
159
|
-
@headers = payload.headers
|
|
160
|
-
@status_code = payload.status_code
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
def metadata
|
|
164
|
-
@metadata
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def headers
|
|
168
|
-
@headers
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
def status_code
|
|
172
|
-
@status_code
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
|
|
176
117
|
class MetadataInstance < InstanceResource
|
|
177
118
|
##
|
|
178
119
|
# Initialize the MetadataInstance
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio - Insights
|
|
8
|
-
# Insights
|
|
8
|
+
# The Twilio Insights v3 API provides semantic query access to Conversations analytics data. Resources include synchronous Query, Metadata, and asynchronous QueryJobs for long-running queries.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -274,65 +274,6 @@ module Twilio
|
|
|
274
274
|
end
|
|
275
275
|
end
|
|
276
276
|
|
|
277
|
-
class QueryPageMetadata < PageMetadata
|
|
278
|
-
attr_reader :query_page
|
|
279
|
-
|
|
280
|
-
def initialize(version, response, solution, limit)
|
|
281
|
-
super(version, response)
|
|
282
|
-
@query_page = []
|
|
283
|
-
@limit = limit
|
|
284
|
-
key = get_key(response.body)
|
|
285
|
-
records = 0
|
|
286
|
-
while( limit != :unset && records < limit )
|
|
287
|
-
@query_page << QueryListResponse.new(version, @payload, key, limit - records)
|
|
288
|
-
@payload = self.next_page
|
|
289
|
-
break unless @payload
|
|
290
|
-
records += (@payload.body[key] || []).size
|
|
291
|
-
end
|
|
292
|
-
# Path Solution
|
|
293
|
-
@solution = solution
|
|
294
|
-
end
|
|
295
|
-
|
|
296
|
-
def each
|
|
297
|
-
@query_page.each do |record|
|
|
298
|
-
yield record
|
|
299
|
-
end
|
|
300
|
-
end
|
|
301
|
-
|
|
302
|
-
def to_s
|
|
303
|
-
'<Twilio::REST::Insights::V3PageMetadata>';
|
|
304
|
-
end
|
|
305
|
-
end
|
|
306
|
-
class QueryListResponse < InstanceListResource
|
|
307
|
-
|
|
308
|
-
# @param [Array<QueryInstance>] instance
|
|
309
|
-
# @param [Hash{String => Object}] headers
|
|
310
|
-
# @param [Integer] status_code
|
|
311
|
-
def initialize(version, payload, key, limit = :unset)
|
|
312
|
-
data_list = payload.body[key] || []
|
|
313
|
-
if limit != :unset
|
|
314
|
-
data_list = data_list[0, limit]
|
|
315
|
-
end
|
|
316
|
-
@query = data_list.map do |data|
|
|
317
|
-
QueryInstance.new(version, data)
|
|
318
|
-
end
|
|
319
|
-
@headers = payload.headers
|
|
320
|
-
@status_code = payload.status_code
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
def query
|
|
324
|
-
@query
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
def headers
|
|
328
|
-
@headers
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
def status_code
|
|
332
|
-
@status_code
|
|
333
|
-
end
|
|
334
|
-
end
|
|
335
|
-
|
|
336
277
|
class QueryInstance < InstanceResource
|
|
337
278
|
##
|
|
338
279
|
# Initialize the QueryInstance
|