twilio-ruby 7.10.7 → 7.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +43 -67
- data/.gitignore +0 -1
- data/CHANGES.md +267 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +154 -0
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +25 -65
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +48 -71
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +11 -60
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +2 -61
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +43 -21
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +584 -21
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +28 -28
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +10 -69
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +58 -58
- data/lib/twilio-ruby/rest/conversations/v2.rb +55 -49
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +2 -61
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +15 -61
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/iam_base.rb +6 -1
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +7 -59
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
- data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
- data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
- data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
- data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +17 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +8 -8
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +443 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +28 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +38 -0
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +8 -176
- data/lib/twilio-ruby/rest/knowledge/v2.rb +1 -2
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +9 -177
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +15 -9
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +6 -12
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +1 -81
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +11 -191
- data/lib/twilio-ruby/rest/memory/v1/import.rb +28 -5
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +72 -22
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +2 -2
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +3 -5
- data/lib/twilio-ruby/rest/memory/v1/store.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +56 -6
- data/lib/twilio-ruby/rest/memory/v1.rb +3 -46
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -18
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +23 -4
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +4 -63
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +172 -0
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +179 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +186 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +165 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1.rb +24 -0
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +14 -61
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +200 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +10 -63
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -78
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +406 -0
- data/lib/twilio-ruby/rest/routes/v3.rb +50 -0
- data/lib/twilio-ruby/rest/routes_base.rb +6 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +174 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +262 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +174 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +386 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +386 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +74 -0
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +497 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +297 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +353 -0
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +557 -0
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +532 -0
- data/lib/twilio-ruby/rest/voice/v2/type.rb +459 -0
- data/lib/twilio-ruby/rest/voice/v2.rb +141 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/rest/voice_base.rb +5 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +6 -68
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +36 -22
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +0 -431
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +0 -296
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +0 -927
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +0 -325
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +0 -349
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +0 -871
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +0 -364
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +0 -360
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +0 -501
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +0 -847
- data/lib/twilio-ruby/rest/assistants/v1.rb +0 -104
- data/lib/twilio-ruby/rest/assistants.rb +0 -6
- data/lib/twilio-ruby/rest/assistants_base.rb +0 -38
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
|
@@ -0,0 +1,195 @@
|
|
|
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 ResultList < ListResource
|
|
21
|
+
|
|
22
|
+
##
|
|
23
|
+
# Initialize the ResultList
|
|
24
|
+
# @param [Version] version Version that contains the resource
|
|
25
|
+
# @return [ResultList] ResultList
|
|
26
|
+
def initialize(version, operation_id: nil)
|
|
27
|
+
|
|
28
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
29
|
+
super(apiV1Version)
|
|
30
|
+
# Path Solution
|
|
31
|
+
@solution = { operation_id: operation_id }
|
|
32
|
+
@uri = "/InsightsDomains/Conversations/QueryJobs/#{@solution[:operation_id]}/Results"
|
|
33
|
+
|
|
34
|
+
end
|
|
35
|
+
##
|
|
36
|
+
# Fetch the ResultInstance
|
|
37
|
+
# @param [String] page_size The maximum number of resources to return
|
|
38
|
+
# @param [String] page_token Token for pagination
|
|
39
|
+
# @return [ResultInstance] Fetched ResultInstance
|
|
40
|
+
def fetch(
|
|
41
|
+
page_size: :unset,
|
|
42
|
+
page_token: :unset
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
params = Twilio::Values.of({
|
|
46
|
+
'pageSize' => page_size,
|
|
47
|
+
'pageToken' => page_token,
|
|
48
|
+
})
|
|
49
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
|
56
|
+
ResultInstance.new(
|
|
57
|
+
@version,
|
|
58
|
+
payload,
|
|
59
|
+
operation_id: @solution[:operation_id],
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
##
|
|
64
|
+
# Fetch the ResultInstanceMetadata
|
|
65
|
+
# @param [String] page_size The maximum number of resources to return
|
|
66
|
+
# @param [String] page_token Token for pagination
|
|
67
|
+
# @return [ResultInstance] Fetched ResultInstance
|
|
68
|
+
def fetch_with_metadata(
|
|
69
|
+
page_size: :unset,
|
|
70
|
+
page_token: :unset
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
params = Twilio::Values.of({
|
|
74
|
+
'pageSize' => page_size,
|
|
75
|
+
'pageToken' => page_token,
|
|
76
|
+
})
|
|
77
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
response = @version.fetch_with_metadata('GET', @uri, params: params, headers: headers)
|
|
84
|
+
result_instance = ResultInstance.new(
|
|
85
|
+
@version,
|
|
86
|
+
response.body,
|
|
87
|
+
operation_id: @solution[:operation_id],
|
|
88
|
+
)
|
|
89
|
+
ResultInstanceMetadata.new(
|
|
90
|
+
@version,
|
|
91
|
+
result_instance,
|
|
92
|
+
response.headers,
|
|
93
|
+
response.status_code
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
# Provide a user friendly representation
|
|
101
|
+
def to_s
|
|
102
|
+
'#<Twilio.Insights.V3.ResultList>'
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
class ResultPage < TokenPage
|
|
107
|
+
##
|
|
108
|
+
# Initialize the ResultPage
|
|
109
|
+
# @param [Version] version Version that contains the resource
|
|
110
|
+
# @param [Response] response Response from the API
|
|
111
|
+
# @param [Hash] solution Path solution for the resource
|
|
112
|
+
# @return [ResultPage] ResultPage
|
|
113
|
+
def initialize(version, response, solution)
|
|
114
|
+
|
|
115
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
116
|
+
super(apiV1Version, response)
|
|
117
|
+
|
|
118
|
+
# Path Solution
|
|
119
|
+
@solution = solution
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
##
|
|
123
|
+
# Build an instance of ResultInstance
|
|
124
|
+
# @param [Hash] payload Payload response from the API
|
|
125
|
+
# @return [ResultInstance] ResultInstance
|
|
126
|
+
def get_instance(payload)
|
|
127
|
+
ResultInstance.new(@version, payload, operation_id: @solution[:operation_id])
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
##
|
|
131
|
+
# Provide a user friendly representation
|
|
132
|
+
def to_s
|
|
133
|
+
'<Twilio.Insights.V3.ResultPage>'
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
class ResultInstance < InstanceResource
|
|
138
|
+
##
|
|
139
|
+
# Initialize the ResultInstance
|
|
140
|
+
# @param [Version] version Version that contains the resource
|
|
141
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
142
|
+
# @param [String] account_sid The SID of the
|
|
143
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Result
|
|
144
|
+
# resource.
|
|
145
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
146
|
+
# @return [ResultInstance] ResultInstance
|
|
147
|
+
def initialize(version, payload , operation_id: nil)
|
|
148
|
+
|
|
149
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
150
|
+
super(apiV1Version)
|
|
151
|
+
|
|
152
|
+
# Marshaled Properties
|
|
153
|
+
@properties = {
|
|
154
|
+
'domain' => payload['domain'],
|
|
155
|
+
'items' => payload['items'],
|
|
156
|
+
'meta' => payload['meta'],
|
|
157
|
+
}
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
##
|
|
162
|
+
# @return [String] Indicates the business domain the query was executed against
|
|
163
|
+
def domain
|
|
164
|
+
@properties['domain']
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
##
|
|
168
|
+
# @return [Array<Hash<String, Object>>] Array of result objects containing the query results. Each object contains properties matching the requested measures and dimensions.
|
|
169
|
+
def items
|
|
170
|
+
@properties['items']
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
##
|
|
174
|
+
# @return [PaginationMeta]
|
|
175
|
+
def meta
|
|
176
|
+
@properties['meta']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
##
|
|
180
|
+
# Provide a user friendly representation
|
|
181
|
+
def to_s
|
|
182
|
+
"<Twilio.Insights.V3.ResultInstance>"
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
##
|
|
186
|
+
# Provide a detailed, user friendly representation
|
|
187
|
+
def inspect
|
|
188
|
+
"<Twilio.Insights.V3.ResultInstance>"
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
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
|
|
@@ -23,6 +23,7 @@ module Twilio
|
|
|
23
23
|
@version = 'v3'
|
|
24
24
|
@metadata = nil
|
|
25
25
|
@query = nil
|
|
26
|
+
@query_jobs = nil
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
##
|
|
@@ -36,6 +37,21 @@ module Twilio
|
|
|
36
37
|
@query ||= QueryList.new self
|
|
37
38
|
end
|
|
38
39
|
##
|
|
40
|
+
# @param [String] operation_id The unique identifier for the asynchronous query operation, in TTID format.
|
|
41
|
+
# @return [Twilio::REST::Insights::V3::QueryJobContext] if operationId was passed.
|
|
42
|
+
# @return [Twilio::REST::Insights::V3::QueryJobList]
|
|
43
|
+
def query_jobs(operation_id=:unset)
|
|
44
|
+
if operation_id.nil?
|
|
45
|
+
raise ArgumentError, 'operation_id cannot be nil'
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
if operation_id == :unset
|
|
49
|
+
@query_jobs ||= QueryJobList.new self
|
|
50
|
+
else
|
|
51
|
+
QueryJobContext.new(self, operation_id)
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
##
|
|
39
55
|
# Provide a user friendly representation
|
|
40
56
|
def to_s
|
|
41
57
|
'<Twilio::REST::Insights::V3>';
|
|
@@ -229,65 +229,6 @@ module Twilio
|
|
|
229
229
|
end
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
class OperatorAttachmentPageMetadata < PageMetadata
|
|
233
|
-
attr_reader :operator_attachment_page
|
|
234
|
-
|
|
235
|
-
def initialize(version, response, solution, limit)
|
|
236
|
-
super(version, response)
|
|
237
|
-
@operator_attachment_page = []
|
|
238
|
-
@limit = limit
|
|
239
|
-
key = get_key(response.body)
|
|
240
|
-
records = 0
|
|
241
|
-
while( limit != :unset && records < limit )
|
|
242
|
-
@operator_attachment_page << OperatorAttachmentListResponse.new(version, @payload, key, limit - records)
|
|
243
|
-
@payload = self.next_page
|
|
244
|
-
break unless @payload
|
|
245
|
-
records += (@payload.body[key] || []).size
|
|
246
|
-
end
|
|
247
|
-
# Path Solution
|
|
248
|
-
@solution = solution
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
def each
|
|
252
|
-
@operator_attachment_page.each do |record|
|
|
253
|
-
yield record
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def to_s
|
|
258
|
-
'<Twilio::REST::Intelligence::V2PageMetadata>';
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
class OperatorAttachmentListResponse < InstanceListResource
|
|
262
|
-
|
|
263
|
-
# @param [Array<OperatorAttachmentInstance>] instance
|
|
264
|
-
# @param [Hash{String => Object}] headers
|
|
265
|
-
# @param [Integer] status_code
|
|
266
|
-
def initialize(version, payload, key, limit = :unset)
|
|
267
|
-
data_list = payload.body[key] || []
|
|
268
|
-
if limit != :unset
|
|
269
|
-
data_list = data_list[0, limit]
|
|
270
|
-
end
|
|
271
|
-
@operator_attachment = data_list.map do |data|
|
|
272
|
-
OperatorAttachmentInstance.new(version, data)
|
|
273
|
-
end
|
|
274
|
-
@headers = payload.headers
|
|
275
|
-
@status_code = payload.status_code
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
def operator_attachment
|
|
279
|
-
@operator_attachment
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
def headers
|
|
283
|
-
@headers
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def status_code
|
|
287
|
-
@status_code
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
|
|
291
232
|
class OperatorAttachmentInstance < InstanceResource
|
|
292
233
|
##
|
|
293
234
|
# Initialize the OperatorAttachmentInstance
|
|
@@ -194,65 +194,6 @@ module Twilio
|
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
196
|
|
|
197
|
-
class OperatorAttachmentsPageMetadata < PageMetadata
|
|
198
|
-
attr_reader :operator_attachments_page
|
|
199
|
-
|
|
200
|
-
def initialize(version, response, solution, limit)
|
|
201
|
-
super(version, response)
|
|
202
|
-
@operator_attachments_page = []
|
|
203
|
-
@limit = limit
|
|
204
|
-
key = get_key(response.body)
|
|
205
|
-
records = 0
|
|
206
|
-
while( limit != :unset && records < limit )
|
|
207
|
-
@operator_attachments_page << OperatorAttachmentsListResponse.new(version, @payload, key, limit - records)
|
|
208
|
-
@payload = self.next_page
|
|
209
|
-
break unless @payload
|
|
210
|
-
records += (@payload.body[key] || []).size
|
|
211
|
-
end
|
|
212
|
-
# Path Solution
|
|
213
|
-
@solution = solution
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
def each
|
|
217
|
-
@operator_attachments_page.each do |record|
|
|
218
|
-
yield record
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def to_s
|
|
223
|
-
'<Twilio::REST::Intelligence::V2PageMetadata>';
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
class OperatorAttachmentsListResponse < InstanceListResource
|
|
227
|
-
|
|
228
|
-
# @param [Array<OperatorAttachmentsInstance>] instance
|
|
229
|
-
# @param [Hash{String => Object}] headers
|
|
230
|
-
# @param [Integer] status_code
|
|
231
|
-
def initialize(version, payload, key, limit = :unset)
|
|
232
|
-
data_list = payload.body[key] || []
|
|
233
|
-
if limit != :unset
|
|
234
|
-
data_list = data_list[0, limit]
|
|
235
|
-
end
|
|
236
|
-
@operator_attachments = data_list.map do |data|
|
|
237
|
-
OperatorAttachmentsInstance.new(version, data)
|
|
238
|
-
end
|
|
239
|
-
@headers = payload.headers
|
|
240
|
-
@status_code = payload.status_code
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
def operator_attachments
|
|
244
|
-
@operator_attachments
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
def headers
|
|
248
|
-
@headers
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
def status_code
|
|
252
|
-
@status_code
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
|
|
256
197
|
class OperatorAttachmentsInstance < InstanceResource
|
|
257
198
|
##
|
|
258
199
|
# Initialize the OperatorAttachmentsInstance
|
|
@@ -208,65 +208,6 @@ module Twilio
|
|
|
208
208
|
end
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
class EncryptedOperatorResultsPageMetadata < PageMetadata
|
|
212
|
-
attr_reader :encrypted_operator_results_page
|
|
213
|
-
|
|
214
|
-
def initialize(version, response, solution, limit)
|
|
215
|
-
super(version, response)
|
|
216
|
-
@encrypted_operator_results_page = []
|
|
217
|
-
@limit = limit
|
|
218
|
-
key = get_key(response.body)
|
|
219
|
-
records = 0
|
|
220
|
-
while( limit != :unset && records < limit )
|
|
221
|
-
@encrypted_operator_results_page << EncryptedOperatorResultsListResponse.new(version, @payload, key, limit - records)
|
|
222
|
-
@payload = self.next_page
|
|
223
|
-
break unless @payload
|
|
224
|
-
records += (@payload.body[key] || []).size
|
|
225
|
-
end
|
|
226
|
-
# Path Solution
|
|
227
|
-
@solution = solution
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def each
|
|
231
|
-
@encrypted_operator_results_page.each do |record|
|
|
232
|
-
yield record
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def to_s
|
|
237
|
-
'<Twilio::REST::Intelligence::V2PageMetadata>';
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
class EncryptedOperatorResultsListResponse < InstanceListResource
|
|
241
|
-
|
|
242
|
-
# @param [Array<EncryptedOperatorResultsInstance>] instance
|
|
243
|
-
# @param [Hash{String => Object}] headers
|
|
244
|
-
# @param [Integer] status_code
|
|
245
|
-
def initialize(version, payload, key, limit = :unset)
|
|
246
|
-
data_list = payload.body[key] || []
|
|
247
|
-
if limit != :unset
|
|
248
|
-
data_list = data_list[0, limit]
|
|
249
|
-
end
|
|
250
|
-
@encrypted_operator_results = data_list.map do |data|
|
|
251
|
-
EncryptedOperatorResultsInstance.new(version, data)
|
|
252
|
-
end
|
|
253
|
-
@headers = payload.headers
|
|
254
|
-
@status_code = payload.status_code
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def encrypted_operator_results
|
|
258
|
-
@encrypted_operator_results
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def headers
|
|
262
|
-
@headers
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def status_code
|
|
266
|
-
@status_code
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
|
|
270
211
|
class EncryptedOperatorResultsInstance < InstanceResource
|
|
271
212
|
##
|
|
272
213
|
# Initialize the EncryptedOperatorResultsInstance
|
|
@@ -208,65 +208,6 @@ module Twilio
|
|
|
208
208
|
end
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
class EncryptedSentencesPageMetadata < PageMetadata
|
|
212
|
-
attr_reader :encrypted_sentences_page
|
|
213
|
-
|
|
214
|
-
def initialize(version, response, solution, limit)
|
|
215
|
-
super(version, response)
|
|
216
|
-
@encrypted_sentences_page = []
|
|
217
|
-
@limit = limit
|
|
218
|
-
key = get_key(response.body)
|
|
219
|
-
records = 0
|
|
220
|
-
while( limit != :unset && records < limit )
|
|
221
|
-
@encrypted_sentences_page << EncryptedSentencesListResponse.new(version, @payload, key, limit - records)
|
|
222
|
-
@payload = self.next_page
|
|
223
|
-
break unless @payload
|
|
224
|
-
records += (@payload.body[key] || []).size
|
|
225
|
-
end
|
|
226
|
-
# Path Solution
|
|
227
|
-
@solution = solution
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def each
|
|
231
|
-
@encrypted_sentences_page.each do |record|
|
|
232
|
-
yield record
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def to_s
|
|
237
|
-
'<Twilio::REST::Intelligence::V2PageMetadata>';
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
class EncryptedSentencesListResponse < InstanceListResource
|
|
241
|
-
|
|
242
|
-
# @param [Array<EncryptedSentencesInstance>] instance
|
|
243
|
-
# @param [Hash{String => Object}] headers
|
|
244
|
-
# @param [Integer] status_code
|
|
245
|
-
def initialize(version, payload, key, limit = :unset)
|
|
246
|
-
data_list = payload.body[key] || []
|
|
247
|
-
if limit != :unset
|
|
248
|
-
data_list = data_list[0, limit]
|
|
249
|
-
end
|
|
250
|
-
@encrypted_sentences = data_list.map do |data|
|
|
251
|
-
EncryptedSentencesInstance.new(version, data)
|
|
252
|
-
end
|
|
253
|
-
@headers = payload.headers
|
|
254
|
-
@status_code = payload.status_code
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def encrypted_sentences
|
|
258
|
-
@encrypted_sentences
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def headers
|
|
262
|
-
@headers
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def status_code
|
|
266
|
-
@status_code
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
|
|
270
211
|
class EncryptedSentencesInstance < InstanceResource
|
|
271
212
|
##
|
|
272
213
|
# Initialize the EncryptedSentencesInstance
|
|
@@ -208,65 +208,6 @@ module Twilio
|
|
|
208
208
|
end
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
class MediaPageMetadata < PageMetadata
|
|
212
|
-
attr_reader :media_page
|
|
213
|
-
|
|
214
|
-
def initialize(version, response, solution, limit)
|
|
215
|
-
super(version, response)
|
|
216
|
-
@media_page = []
|
|
217
|
-
@limit = limit
|
|
218
|
-
key = get_key(response.body)
|
|
219
|
-
records = 0
|
|
220
|
-
while( limit != :unset && records < limit )
|
|
221
|
-
@media_page << MediaListResponse.new(version, @payload, key, limit - records)
|
|
222
|
-
@payload = self.next_page
|
|
223
|
-
break unless @payload
|
|
224
|
-
records += (@payload.body[key] || []).size
|
|
225
|
-
end
|
|
226
|
-
# Path Solution
|
|
227
|
-
@solution = solution
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def each
|
|
231
|
-
@media_page.each do |record|
|
|
232
|
-
yield record
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def to_s
|
|
237
|
-
'<Twilio::REST::Intelligence::V2PageMetadata>';
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
class MediaListResponse < InstanceListResource
|
|
241
|
-
|
|
242
|
-
# @param [Array<MediaInstance>] instance
|
|
243
|
-
# @param [Hash{String => Object}] headers
|
|
244
|
-
# @param [Integer] status_code
|
|
245
|
-
def initialize(version, payload, key, limit = :unset)
|
|
246
|
-
data_list = payload.body[key] || []
|
|
247
|
-
if limit != :unset
|
|
248
|
-
data_list = data_list[0, limit]
|
|
249
|
-
end
|
|
250
|
-
@media = data_list.map do |data|
|
|
251
|
-
MediaInstance.new(version, data)
|
|
252
|
-
end
|
|
253
|
-
@headers = payload.headers
|
|
254
|
-
@status_code = payload.status_code
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def media
|
|
258
|
-
@media
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def headers
|
|
262
|
-
@headers
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def status_code
|
|
266
|
-
@status_code
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
|
|
270
211
|
class MediaInstance < InstanceResource
|
|
271
212
|
##
|
|
272
213
|
# Initialize the MediaInstance
|
|
@@ -38,8 +38,8 @@ module Twilio
|
|
|
38
38
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
39
39
|
# memory before returning.
|
|
40
40
|
# @param [String] page_token Token for pagination
|
|
41
|
-
# @param [Time] created_at_before Filter by Conversations created before this timestamp.
|
|
42
|
-
# @param [Time] created_at_after Filter by Conversations created after this timestamp.
|
|
41
|
+
# @param [Time] created_at_before Filter by Conversations created before this timestamp. The maximum allowed time range between `createdAtBefore` and `createdAtAfter` is 31 days.
|
|
42
|
+
# @param [Time] created_at_after Filter by Conversations created after this timestamp. The maximum allowed time range between `createdAtBefore` and `createdAtAfter` is 31 days.
|
|
43
43
|
# @param [String] status Filter by Conversation status.
|
|
44
44
|
# @param [String] channel_id Filters Conversations by the underlying channel resource ID, such as a Call ID or Message ID.
|
|
45
45
|
# @param [Array[String]] channels Filters Conversations that include one or more of the specified communication channels (`OR` match).
|
|
@@ -74,8 +74,8 @@ module Twilio
|
|
|
74
74
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
75
75
|
# is reached.
|
|
76
76
|
# @param [String] page_token Token for pagination
|
|
77
|
-
# @param [Time] created_at_before Filter by Conversations created before this timestamp.
|
|
78
|
-
# @param [Time] created_at_after Filter by Conversations created after this timestamp.
|
|
77
|
+
# @param [Time] created_at_before Filter by Conversations created before this timestamp. The maximum allowed time range between `createdAtBefore` and `createdAtAfter` is 31 days.
|
|
78
|
+
# @param [Time] created_at_after Filter by Conversations created after this timestamp. The maximum allowed time range between `createdAtBefore` and `createdAtAfter` is 31 days.
|
|
79
79
|
# @param [String] status Filter by Conversation status.
|
|
80
80
|
# @param [String] channel_id Filters Conversations by the underlying channel resource ID, such as a Call ID or Message ID.
|
|
81
81
|
# @param [Array[String]] channels Filters Conversations that include one or more of the specified communication channels (`OR` match).
|
|
@@ -114,8 +114,8 @@ module Twilio
|
|
|
114
114
|
##
|
|
115
115
|
# Lists ConversationPageMetadata records from the API as a list.
|
|
116
116
|
# @param [String] page_token Token for pagination
|
|
117
|
-
# @param [Time] created_at_before Filter by Conversations created before this timestamp.
|
|
118
|
-
# @param [Time] created_at_after Filter by Conversations created after this timestamp.
|
|
117
|
+
# @param [Time] created_at_before Filter by Conversations created before this timestamp. The maximum allowed time range between `createdAtBefore` and `createdAtAfter` is 31 days.
|
|
118
|
+
# @param [Time] created_at_after Filter by Conversations created after this timestamp. The maximum allowed time range between `createdAtBefore` and `createdAtAfter` is 31 days.
|
|
119
119
|
# @param [String] status Filter by Conversation status.
|
|
120
120
|
# @param [String] channel_id Filters Conversations by the underlying channel resource ID, such as a Call ID or Message ID.
|
|
121
121
|
# @param [Array[String]] channels Filters Conversations that include one or more of the specified communication channels (`OR` match).
|
|
@@ -176,8 +176,8 @@ module Twilio
|
|
|
176
176
|
# Retrieve a single page of ConversationInstance records from the API.
|
|
177
177
|
# Request is executed immediately.
|
|
178
178
|
# @param [String] page_token Token for pagination
|
|
179
|
-
# @param [Time] created_at_before Filter by Conversations created before this timestamp.
|
|
180
|
-
# @param [Time] created_at_after Filter by Conversations created after this timestamp.
|
|
179
|
+
# @param [Time] created_at_before Filter by Conversations created before this timestamp. The maximum allowed time range between `createdAtBefore` and `createdAtAfter` is 31 days.
|
|
180
|
+
# @param [Time] created_at_after Filter by Conversations created after this timestamp. The maximum allowed time range between `createdAtBefore` and `createdAtAfter` is 31 days.
|
|
181
181
|
# @param [String] status Filter by Conversation status.
|
|
182
182
|
# @param [String] channel_id Filters Conversations by the underlying channel resource ID, such as a Call ID or Message ID.
|
|
183
183
|
# @param [Array[String]] channels Filters Conversations that include one or more of the specified communication channels (`OR` match).
|