twilio-ruby 7.11.1 → 7.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +13 -1
- data/CHANGES.md +417 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/githooks/pre-commit +11 -0
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +101 -12
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
- data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
- data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
- data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
- data/lib/twilio-ruby/rest/insights/v3/capacity.rb +161 -0
- data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +279 -0
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
- data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +29 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +33 -60
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/store.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2.rb +0 -16
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +1 -60
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording_account_default_configuration.rb +547 -0
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2.rb +6 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/twiml/voice_response.rb +12 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - 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
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Insights < InsightsBase
|
|
19
|
+
class V3 < Version
|
|
20
|
+
class CapacityList < ListResource
|
|
21
|
+
|
|
22
|
+
##
|
|
23
|
+
# Initialize the CapacityList
|
|
24
|
+
# @param [Version] version Version that contains the resource
|
|
25
|
+
# @return [CapacityList] CapacityList
|
|
26
|
+
def initialize(version)
|
|
27
|
+
|
|
28
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
29
|
+
super(apiV1Version)
|
|
30
|
+
# Path Solution
|
|
31
|
+
@solution = { }
|
|
32
|
+
@uri = "/ControlPlane/ConversationInsights/CustomFieldMappings/Capacity"
|
|
33
|
+
|
|
34
|
+
end
|
|
35
|
+
##
|
|
36
|
+
# Fetch the CapacityInstance
|
|
37
|
+
# @return [CapacityInstance] Fetched CapacityInstance
|
|
38
|
+
def fetch
|
|
39
|
+
|
|
40
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
47
|
+
CapacityInstance.new(
|
|
48
|
+
@version,
|
|
49
|
+
payload,
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
##
|
|
54
|
+
# Fetch the CapacityInstanceMetadata
|
|
55
|
+
# @return [CapacityInstance] Fetched CapacityInstance
|
|
56
|
+
def fetch_with_metadata
|
|
57
|
+
|
|
58
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
65
|
+
capacity_instance = CapacityInstance.new(
|
|
66
|
+
@version,
|
|
67
|
+
response.body,
|
|
68
|
+
)
|
|
69
|
+
CapacityInstanceMetadata.new(
|
|
70
|
+
@version,
|
|
71
|
+
capacity_instance,
|
|
72
|
+
response.headers,
|
|
73
|
+
response.status_code
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
# Provide a user friendly representation
|
|
81
|
+
def to_s
|
|
82
|
+
'#<Twilio.Insights.V3.CapacityList>'
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
class CapacityPage < TokenPage
|
|
87
|
+
##
|
|
88
|
+
# Initialize the CapacityPage
|
|
89
|
+
# @param [Version] version Version that contains the resource
|
|
90
|
+
# @param [Response] response Response from the API
|
|
91
|
+
# @param [Hash] solution Path solution for the resource
|
|
92
|
+
# @return [CapacityPage] CapacityPage
|
|
93
|
+
def initialize(version, response, solution)
|
|
94
|
+
|
|
95
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
96
|
+
super(apiV1Version, response)
|
|
97
|
+
|
|
98
|
+
# Path Solution
|
|
99
|
+
@solution = solution
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
##
|
|
103
|
+
# Build an instance of CapacityInstance
|
|
104
|
+
# @param [Hash] payload Payload response from the API
|
|
105
|
+
# @return [CapacityInstance] CapacityInstance
|
|
106
|
+
def get_instance(payload)
|
|
107
|
+
CapacityInstance.new(@version, payload)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
##
|
|
111
|
+
# Provide a user friendly representation
|
|
112
|
+
def to_s
|
|
113
|
+
'<Twilio.Insights.V3.CapacityPage>'
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
class CapacityInstance < InstanceResource
|
|
118
|
+
##
|
|
119
|
+
# Initialize the CapacityInstance
|
|
120
|
+
# @param [Version] version Version that contains the resource
|
|
121
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
122
|
+
# @param [String] account_sid The SID of the
|
|
123
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Capacity
|
|
124
|
+
# resource.
|
|
125
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
126
|
+
# @return [CapacityInstance] CapacityInstance
|
|
127
|
+
def initialize(version, payload )
|
|
128
|
+
|
|
129
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
130
|
+
super(apiV1Version)
|
|
131
|
+
|
|
132
|
+
# Marshaled Properties
|
|
133
|
+
@properties = {
|
|
134
|
+
'measure' => payload['measure'],
|
|
135
|
+
}
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
##
|
|
140
|
+
# @return [CategoryCapacity]
|
|
141
|
+
def measure
|
|
142
|
+
@properties['measure']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
##
|
|
146
|
+
# Provide a user friendly representation
|
|
147
|
+
def to_s
|
|
148
|
+
"<Twilio.Insights.V3.CapacityInstance>"
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
##
|
|
152
|
+
# Provide a detailed, user friendly representation
|
|
153
|
+
def inspect
|
|
154
|
+
"<Twilio.Insights.V3.CapacityInstance>"
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - 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
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Insights < InsightsBase
|
|
19
|
+
class V3 < Version
|
|
20
|
+
class CustomFieldMappingList < ListResource
|
|
21
|
+
|
|
22
|
+
class CustomFieldMappingRequest
|
|
23
|
+
# @param [category]: [MappingCategory]
|
|
24
|
+
# @param [name]: [String] Customer-facing name for the field; becomes the ClickHouse Map key and the platform field alias. Unique per account across every `sourceType` — the Map key namespace is account-global.
|
|
25
|
+
# @param [description]: [String] Optional, free-text description of this custom field mapping. Display-only — not part of any uniqueness check.
|
|
26
|
+
# @param [entity_metadata]: [CustomFieldMappingList.IntelligenceOperatorEntityMetadata]
|
|
27
|
+
attr_accessor :category, :name, :description, :entity_metadata
|
|
28
|
+
def initialize(payload)
|
|
29
|
+
@category = payload["category"]
|
|
30
|
+
@name = payload["name"]
|
|
31
|
+
@description = payload["description"]
|
|
32
|
+
@entity_metadata = payload["entity_metadata"]
|
|
33
|
+
end
|
|
34
|
+
def to_json(options = {})
|
|
35
|
+
{
|
|
36
|
+
"category": @category,
|
|
37
|
+
"name": @name,
|
|
38
|
+
"description": @description,
|
|
39
|
+
"entityMetadata": @entity_metadata,
|
|
40
|
+
}.to_json(options)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
##
|
|
46
|
+
# Initialize the CustomFieldMappingList
|
|
47
|
+
# @param [Version] version Version that contains the resource
|
|
48
|
+
# @return [CustomFieldMappingList] CustomFieldMappingList
|
|
49
|
+
def initialize(version)
|
|
50
|
+
|
|
51
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
52
|
+
super(apiV1Version)
|
|
53
|
+
# Path Solution
|
|
54
|
+
@solution = { }
|
|
55
|
+
@uri = "/ControlPlane/ConversationInsights/CustomFieldMappings"
|
|
56
|
+
|
|
57
|
+
end
|
|
58
|
+
##
|
|
59
|
+
# Create the CustomFieldMappingInstance
|
|
60
|
+
# @param [CustomFieldMappingRequest] custom_field_mapping_request
|
|
61
|
+
# @return [CustomFieldMappingInstance] Created CustomFieldMappingInstance
|
|
62
|
+
def create(custom_field_mapping_request: nil
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
66
|
+
headers['Content-Type'] = 'application/json'
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
payload = @version.create('POST', @uri, headers: headers, data: custom_field_mapping_request.to_json)
|
|
72
|
+
CustomFieldMappingInstance.new(
|
|
73
|
+
@version,
|
|
74
|
+
payload,
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
##
|
|
79
|
+
# Create the CustomFieldMappingInstanceMetadata
|
|
80
|
+
# @param [CustomFieldMappingRequest] custom_field_mapping_request
|
|
81
|
+
# @return [CustomFieldMappingInstance] Created CustomFieldMappingInstance
|
|
82
|
+
def create_with_metadata(custom_field_mapping_request: nil
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
86
|
+
headers['Content-Type'] = 'application/json'
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
response = @version.create_with_metadata('POST', @uri, headers: headers, data: custom_field_mapping_request.to_json)
|
|
92
|
+
custom_field_mapping_instance = CustomFieldMappingInstance.new(
|
|
93
|
+
@version,
|
|
94
|
+
response.body,
|
|
95
|
+
)
|
|
96
|
+
CustomFieldMappingInstanceMetadata.new(
|
|
97
|
+
@version,
|
|
98
|
+
custom_field_mapping_instance,
|
|
99
|
+
response.headers,
|
|
100
|
+
response.status_code
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
##
|
|
105
|
+
# Fetch the CustomFieldMappingInstance
|
|
106
|
+
# @return [CustomFieldMappingInstance] Fetched CustomFieldMappingInstance
|
|
107
|
+
def fetch
|
|
108
|
+
|
|
109
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
116
|
+
CustomFieldMappingInstance.new(
|
|
117
|
+
@version,
|
|
118
|
+
payload,
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
##
|
|
123
|
+
# Fetch the CustomFieldMappingInstanceMetadata
|
|
124
|
+
# @return [CustomFieldMappingInstance] Fetched CustomFieldMappingInstance
|
|
125
|
+
def fetch_with_metadata
|
|
126
|
+
|
|
127
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
134
|
+
custom_field_mapping_instance = CustomFieldMappingInstance.new(
|
|
135
|
+
@version,
|
|
136
|
+
response.body,
|
|
137
|
+
)
|
|
138
|
+
CustomFieldMappingInstanceMetadata.new(
|
|
139
|
+
@version,
|
|
140
|
+
custom_field_mapping_instance,
|
|
141
|
+
response.headers,
|
|
142
|
+
response.status_code
|
|
143
|
+
)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
# Provide a user friendly representation
|
|
150
|
+
def to_s
|
|
151
|
+
'#<Twilio.Insights.V3.CustomFieldMappingList>'
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
class CustomFieldMappingPage < TokenPage
|
|
156
|
+
##
|
|
157
|
+
# Initialize the CustomFieldMappingPage
|
|
158
|
+
# @param [Version] version Version that contains the resource
|
|
159
|
+
# @param [Response] response Response from the API
|
|
160
|
+
# @param [Hash] solution Path solution for the resource
|
|
161
|
+
# @return [CustomFieldMappingPage] CustomFieldMappingPage
|
|
162
|
+
def initialize(version, response, solution)
|
|
163
|
+
|
|
164
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
165
|
+
super(apiV1Version, response)
|
|
166
|
+
|
|
167
|
+
# Path Solution
|
|
168
|
+
@solution = solution
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
##
|
|
172
|
+
# Build an instance of CustomFieldMappingInstance
|
|
173
|
+
# @param [Hash] payload Payload response from the API
|
|
174
|
+
# @return [CustomFieldMappingInstance] CustomFieldMappingInstance
|
|
175
|
+
def get_instance(payload)
|
|
176
|
+
CustomFieldMappingInstance.new(@version, payload)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
##
|
|
180
|
+
# Provide a user friendly representation
|
|
181
|
+
def to_s
|
|
182
|
+
'<Twilio.Insights.V3.CustomFieldMappingPage>'
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
class CustomFieldMappingInstance < InstanceResource
|
|
187
|
+
##
|
|
188
|
+
# Initialize the CustomFieldMappingInstance
|
|
189
|
+
# @param [Version] version Version that contains the resource
|
|
190
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
191
|
+
# @param [String] account_sid The SID of the
|
|
192
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this CustomFieldMapping
|
|
193
|
+
# resource.
|
|
194
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
195
|
+
# @return [CustomFieldMappingInstance] CustomFieldMappingInstance
|
|
196
|
+
def initialize(version, payload )
|
|
197
|
+
|
|
198
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
199
|
+
super(apiV1Version)
|
|
200
|
+
|
|
201
|
+
# Marshaled Properties
|
|
202
|
+
@properties = {
|
|
203
|
+
'id' => payload['id'],
|
|
204
|
+
'category' => payload['category'],
|
|
205
|
+
'name' => payload['name'],
|
|
206
|
+
'description' => payload['description'],
|
|
207
|
+
'entity_metadata' => payload['entity_metadata'],
|
|
208
|
+
'created_at' => Twilio.deserialize_iso8601_datetime(payload['created_at']),
|
|
209
|
+
'updated_at' => Twilio.deserialize_iso8601_datetime(payload['updated_at']),
|
|
210
|
+
'mappings' => payload['mappings'],
|
|
211
|
+
}
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
##
|
|
216
|
+
# @return [String] TTID for conversation insights custom field mapping
|
|
217
|
+
def id
|
|
218
|
+
@properties['id']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
##
|
|
222
|
+
# @return [MappingCategory]
|
|
223
|
+
def category
|
|
224
|
+
@properties['category']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
##
|
|
228
|
+
# @return [String]
|
|
229
|
+
def name
|
|
230
|
+
@properties['name']
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
##
|
|
234
|
+
# @return [String] Optional, free-text description supplied at registration time. Display-only — not part of any uniqueness check.
|
|
235
|
+
def description
|
|
236
|
+
@properties['description']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
##
|
|
240
|
+
# @return [IntelligenceOperatorEntityMetadata]
|
|
241
|
+
def entity_metadata
|
|
242
|
+
@properties['entity_metadata']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
##
|
|
246
|
+
# @return [Time] When the mapping was registered.
|
|
247
|
+
def created_at
|
|
248
|
+
@properties['created_at']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
##
|
|
252
|
+
# @return [Time] When the mapping was last materially modified in-place. Null until the first update-in-place.
|
|
253
|
+
def updated_at
|
|
254
|
+
@properties['updated_at']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
##
|
|
258
|
+
# @return [Array<CustomFieldMappingResponse>]
|
|
259
|
+
def mappings
|
|
260
|
+
@properties['mappings']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
##
|
|
264
|
+
# Provide a user friendly representation
|
|
265
|
+
def to_s
|
|
266
|
+
"<Twilio.Insights.V3.CustomFieldMappingInstance>"
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
##
|
|
270
|
+
# Provide a detailed, user friendly representation
|
|
271
|
+
def inspect
|
|
272
|
+
"<Twilio.Insights.V3.CustomFieldMappingInstance>"
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
@@ -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
|