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
data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb
CHANGED
|
@@ -194,65 +194,6 @@ module Twilio
|
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
196
|
|
|
197
|
-
class LinkshorteningMessagingServiceDomainAssociationPageMetadata < PageMetadata
|
|
198
|
-
attr_reader :linkshortening_messaging_service_domain_association_page
|
|
199
|
-
|
|
200
|
-
def initialize(version, response, solution, limit)
|
|
201
|
-
super(version, response)
|
|
202
|
-
@linkshortening_messaging_service_domain_association_page = []
|
|
203
|
-
@limit = limit
|
|
204
|
-
key = get_key(response.body)
|
|
205
|
-
records = 0
|
|
206
|
-
while( limit != :unset && records < limit )
|
|
207
|
-
@linkshortening_messaging_service_domain_association_page << LinkshorteningMessagingServiceDomainAssociationListResponse.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
|
-
@linkshortening_messaging_service_domain_association_page.each do |record|
|
|
218
|
-
yield record
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def to_s
|
|
223
|
-
'<Twilio::REST::Messaging::V1PageMetadata>';
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
class LinkshorteningMessagingServiceDomainAssociationListResponse < InstanceListResource
|
|
227
|
-
|
|
228
|
-
# @param [Array<LinkshorteningMessagingServiceDomainAssociationInstance>] 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
|
-
@linkshortening_messaging_service_domain_association = data_list.map do |data|
|
|
237
|
-
LinkshorteningMessagingServiceDomainAssociationInstance.new(version, data)
|
|
238
|
-
end
|
|
239
|
-
@headers = payload.headers
|
|
240
|
-
@status_code = payload.status_code
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
def linkshortening_messaging_service_domain_association
|
|
244
|
-
@linkshortening_messaging_service_domain_association
|
|
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 LinkshorteningMessagingServiceDomainAssociationInstance < InstanceResource
|
|
257
198
|
##
|
|
258
199
|
# Initialize the LinkshorteningMessagingServiceDomainAssociationInstance
|
|
@@ -194,65 +194,6 @@ module Twilio
|
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
196
|
|
|
197
|
-
class RequestManagedCertPageMetadata < PageMetadata
|
|
198
|
-
attr_reader :request_managed_cert_page
|
|
199
|
-
|
|
200
|
-
def initialize(version, response, solution, limit)
|
|
201
|
-
super(version, response)
|
|
202
|
-
@request_managed_cert_page = []
|
|
203
|
-
@limit = limit
|
|
204
|
-
key = get_key(response.body)
|
|
205
|
-
records = 0
|
|
206
|
-
while( limit != :unset && records < limit )
|
|
207
|
-
@request_managed_cert_page << RequestManagedCertListResponse.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
|
-
@request_managed_cert_page.each do |record|
|
|
218
|
-
yield record
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def to_s
|
|
223
|
-
'<Twilio::REST::Messaging::V1PageMetadata>';
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
class RequestManagedCertListResponse < InstanceListResource
|
|
227
|
-
|
|
228
|
-
# @param [Array<RequestManagedCertInstance>] 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
|
-
@request_managed_cert = data_list.map do |data|
|
|
237
|
-
RequestManagedCertInstance.new(version, data)
|
|
238
|
-
end
|
|
239
|
-
@headers = payload.headers
|
|
240
|
-
@status_code = payload.status_code
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
def request_managed_cert
|
|
244
|
-
@request_managed_cert
|
|
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 RequestManagedCertInstance < InstanceResource
|
|
257
198
|
##
|
|
258
199
|
# Initialize the RequestManagedCertInstance
|
|
@@ -257,11 +257,10 @@ module Twilio
|
|
|
257
257
|
def list_with_metadata(x_twilio_api_version: :unset, limit: nil, page_size: nil)
|
|
258
258
|
limits = @version.read_limits(limit, page_size)
|
|
259
259
|
params = Twilio::Values.of({
|
|
260
|
-
'X-Twilio-Api-Version' => x_twilio_api_version,
|
|
261
260
|
|
|
262
261
|
'PageSize' => limits[:page_size],
|
|
263
262
|
});
|
|
264
|
-
headers = Twilio::Values.of({})
|
|
263
|
+
headers = Twilio::Values.of({ 'X-Twilio-Api-Version' => x_twilio_api_version, })
|
|
265
264
|
|
|
266
265
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
267
266
|
|
|
@@ -296,12 +295,11 @@ module Twilio
|
|
|
296
295
|
# @return [Page] Page of UsAppToPersonInstance
|
|
297
296
|
def page(x_twilio_api_version: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
298
297
|
params = Twilio::Values.of({
|
|
299
|
-
'X-Twilio-Api-Version' => x_twilio_api_version,
|
|
300
298
|
'PageToken' => page_token,
|
|
301
299
|
'Page' => page_number,
|
|
302
300
|
'PageSize' => page_size,
|
|
303
301
|
})
|
|
304
|
-
headers = Twilio::Values.of({})
|
|
302
|
+
headers = Twilio::Values.of({ 'X-Twilio-Api-Version' => x_twilio_api_version, })
|
|
305
303
|
|
|
306
304
|
|
|
307
305
|
|
|
@@ -128,65 +128,6 @@ module Twilio
|
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
class UsAppToPersonUsecasePageMetadata < PageMetadata
|
|
132
|
-
attr_reader :us_app_to_person_usecase_page
|
|
133
|
-
|
|
134
|
-
def initialize(version, response, solution, limit)
|
|
135
|
-
super(version, response)
|
|
136
|
-
@us_app_to_person_usecase_page = []
|
|
137
|
-
@limit = limit
|
|
138
|
-
key = get_key(response.body)
|
|
139
|
-
records = 0
|
|
140
|
-
while( limit != :unset && records < limit )
|
|
141
|
-
@us_app_to_person_usecase_page << UsAppToPersonUsecaseListResponse.new(version, @payload, key, limit - records)
|
|
142
|
-
@payload = self.next_page
|
|
143
|
-
break unless @payload
|
|
144
|
-
records += (@payload.body[key] || []).size
|
|
145
|
-
end
|
|
146
|
-
# Path Solution
|
|
147
|
-
@solution = solution
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
def each
|
|
151
|
-
@us_app_to_person_usecase_page.each do |record|
|
|
152
|
-
yield record
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
def to_s
|
|
157
|
-
'<Twilio::REST::Messaging::V1PageMetadata>';
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
class UsAppToPersonUsecaseListResponse < InstanceListResource
|
|
161
|
-
|
|
162
|
-
# @param [Array<UsAppToPersonUsecaseInstance>] instance
|
|
163
|
-
# @param [Hash{String => Object}] headers
|
|
164
|
-
# @param [Integer] status_code
|
|
165
|
-
def initialize(version, payload, key, limit = :unset)
|
|
166
|
-
data_list = payload.body[key] || []
|
|
167
|
-
if limit != :unset
|
|
168
|
-
data_list = data_list[0, limit]
|
|
169
|
-
end
|
|
170
|
-
@us_app_to_person_usecase = data_list.map do |data|
|
|
171
|
-
UsAppToPersonUsecaseInstance.new(version, data)
|
|
172
|
-
end
|
|
173
|
-
@headers = payload.headers
|
|
174
|
-
@status_code = payload.status_code
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
def us_app_to_person_usecase
|
|
178
|
-
@us_app_to_person_usecase
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
def headers
|
|
182
|
-
@headers
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
def status_code
|
|
186
|
-
@status_code
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
131
|
class UsAppToPersonUsecaseInstance < InstanceResource
|
|
191
132
|
##
|
|
192
133
|
# Initialize the UsAppToPersonUsecaseInstance
|
|
@@ -112,65 +112,6 @@ module Twilio
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
class UsecasePageMetadata < PageMetadata
|
|
116
|
-
attr_reader :usecase_page
|
|
117
|
-
|
|
118
|
-
def initialize(version, response, solution, limit)
|
|
119
|
-
super(version, response)
|
|
120
|
-
@usecase_page = []
|
|
121
|
-
@limit = limit
|
|
122
|
-
key = get_key(response.body)
|
|
123
|
-
records = 0
|
|
124
|
-
while( limit != :unset && records < limit )
|
|
125
|
-
@usecase_page << UsecaseListResponse.new(version, @payload, key, limit - records)
|
|
126
|
-
@payload = self.next_page
|
|
127
|
-
break unless @payload
|
|
128
|
-
records += (@payload.body[key] || []).size
|
|
129
|
-
end
|
|
130
|
-
# Path Solution
|
|
131
|
-
@solution = solution
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
def each
|
|
135
|
-
@usecase_page.each do |record|
|
|
136
|
-
yield record
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def to_s
|
|
141
|
-
'<Twilio::REST::Messaging::V1PageMetadata>';
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
class UsecaseListResponse < InstanceListResource
|
|
145
|
-
|
|
146
|
-
# @param [Array<UsecaseInstance>] instance
|
|
147
|
-
# @param [Hash{String => Object}] headers
|
|
148
|
-
# @param [Integer] status_code
|
|
149
|
-
def initialize(version, payload, key, limit = :unset)
|
|
150
|
-
data_list = payload.body[key] || []
|
|
151
|
-
if limit != :unset
|
|
152
|
-
data_list = data_list[0, limit]
|
|
153
|
-
end
|
|
154
|
-
@usecase = data_list.map do |data|
|
|
155
|
-
UsecaseInstance.new(version, data)
|
|
156
|
-
end
|
|
157
|
-
@headers = payload.headers
|
|
158
|
-
@status_code = payload.status_code
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
def usecase
|
|
162
|
-
@usecase
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def headers
|
|
166
|
-
@headers
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def status_code
|
|
170
|
-
@status_code
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
115
|
class UsecaseInstance < InstanceResource
|
|
175
116
|
##
|
|
176
117
|
# Initialize the UsecaseInstance
|
|
@@ -121,12 +121,14 @@ module Twilio
|
|
|
121
121
|
|
|
122
122
|
class MessagingV2ChannelsSenderRequestsCreate
|
|
123
123
|
# @param [sender_id]: [String] The ID of the sender in `whatsapp:<E.164_PHONE_NUMBER>` format.
|
|
124
|
+
# @param [friendly_name]: [String] Optional display label for the sender in the Twilio Console.
|
|
124
125
|
# @param [configuration]: [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration]
|
|
125
126
|
# @param [webhook]: [ChannelsSenderList.MessagingV2ChannelsSenderWebhook]
|
|
126
127
|
# @param [profile]: [ChannelsSenderList.MessagingV2ChannelsSenderProfile]
|
|
127
|
-
attr_accessor :sender_id, :configuration, :webhook, :profile
|
|
128
|
+
attr_accessor :sender_id, :friendly_name, :configuration, :webhook, :profile
|
|
128
129
|
def initialize(payload)
|
|
129
130
|
@sender_id = payload["sender_id"]
|
|
131
|
+
@friendly_name = payload["friendly_name"]
|
|
130
132
|
@configuration = payload["configuration"]
|
|
131
133
|
@webhook = payload["webhook"]
|
|
132
134
|
@profile = payload["profile"]
|
|
@@ -134,6 +136,7 @@ module Twilio
|
|
|
134
136
|
def to_json(options = {})
|
|
135
137
|
{
|
|
136
138
|
"sender_id": @sender_id,
|
|
139
|
+
"friendly_name": @friendly_name,
|
|
137
140
|
"configuration": @configuration,
|
|
138
141
|
"webhook": @webhook,
|
|
139
142
|
"profile": @profile,
|
|
@@ -142,17 +145,20 @@ module Twilio
|
|
|
142
145
|
end
|
|
143
146
|
|
|
144
147
|
class MessagingV2ChannelsSenderRequestsUpdate
|
|
148
|
+
# @param [friendly_name]: [String] Optional display label for the sender in the Twilio Console.
|
|
145
149
|
# @param [configuration]: [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration]
|
|
146
150
|
# @param [webhook]: [ChannelsSenderList.MessagingV2ChannelsSenderWebhook]
|
|
147
151
|
# @param [profile]: [ChannelsSenderList.MessagingV2ChannelsSenderProfile]
|
|
148
|
-
attr_accessor :configuration, :webhook, :profile
|
|
152
|
+
attr_accessor :friendly_name, :configuration, :webhook, :profile
|
|
149
153
|
def initialize(payload)
|
|
154
|
+
@friendly_name = payload["friendly_name"]
|
|
150
155
|
@configuration = payload["configuration"]
|
|
151
156
|
@webhook = payload["webhook"]
|
|
152
157
|
@profile = payload["profile"]
|
|
153
158
|
end
|
|
154
159
|
def to_json(options = {})
|
|
155
160
|
{
|
|
161
|
+
"friendly_name": @friendly_name,
|
|
156
162
|
"configuration": @configuration,
|
|
157
163
|
"webhook": @webhook,
|
|
158
164
|
"profile": @profile,
|
|
@@ -301,12 +307,14 @@ module Twilio
|
|
|
301
307
|
|
|
302
308
|
class MessagingV2ChannelsSenderRequestsCreate
|
|
303
309
|
# @param [sender_id]: [String] The ID of the sender in `whatsapp:<E.164_PHONE_NUMBER>` format.
|
|
310
|
+
# @param [friendly_name]: [String] Optional display label for the sender in the Twilio Console.
|
|
304
311
|
# @param [configuration]: [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration]
|
|
305
312
|
# @param [webhook]: [ChannelsSenderList.MessagingV2ChannelsSenderWebhook]
|
|
306
313
|
# @param [profile]: [ChannelsSenderList.MessagingV2ChannelsSenderProfile]
|
|
307
|
-
attr_accessor :sender_id, :configuration, :webhook, :profile
|
|
314
|
+
attr_accessor :sender_id, :friendly_name, :configuration, :webhook, :profile
|
|
308
315
|
def initialize(payload)
|
|
309
316
|
@sender_id = payload["sender_id"]
|
|
317
|
+
@friendly_name = payload["friendly_name"]
|
|
310
318
|
@configuration = payload["configuration"]
|
|
311
319
|
@webhook = payload["webhook"]
|
|
312
320
|
@profile = payload["profile"]
|
|
@@ -314,6 +322,7 @@ module Twilio
|
|
|
314
322
|
def to_json(options = {})
|
|
315
323
|
{
|
|
316
324
|
"sender_id": @sender_id,
|
|
325
|
+
"friendly_name": @friendly_name,
|
|
317
326
|
"configuration": @configuration,
|
|
318
327
|
"webhook": @webhook,
|
|
319
328
|
"profile": @profile,
|
|
@@ -322,17 +331,20 @@ module Twilio
|
|
|
322
331
|
end
|
|
323
332
|
|
|
324
333
|
class MessagingV2ChannelsSenderRequestsUpdate
|
|
334
|
+
# @param [friendly_name]: [String] Optional display label for the sender in the Twilio Console.
|
|
325
335
|
# @param [configuration]: [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration]
|
|
326
336
|
# @param [webhook]: [ChannelsSenderList.MessagingV2ChannelsSenderWebhook]
|
|
327
337
|
# @param [profile]: [ChannelsSenderList.MessagingV2ChannelsSenderProfile]
|
|
328
|
-
attr_accessor :configuration, :webhook, :profile
|
|
338
|
+
attr_accessor :friendly_name, :configuration, :webhook, :profile
|
|
329
339
|
def initialize(payload)
|
|
340
|
+
@friendly_name = payload["friendly_name"]
|
|
330
341
|
@configuration = payload["configuration"]
|
|
331
342
|
@webhook = payload["webhook"]
|
|
332
343
|
@profile = payload["profile"]
|
|
333
344
|
end
|
|
334
345
|
def to_json(options = {})
|
|
335
346
|
{
|
|
347
|
+
"friendly_name": @friendly_name,
|
|
336
348
|
"configuration": @configuration,
|
|
337
349
|
"webhook": @webhook,
|
|
338
350
|
"profile": @profile,
|
|
@@ -883,6 +895,7 @@ module Twilio
|
|
|
883
895
|
'sid' => payload['sid'],
|
|
884
896
|
'status' => payload['status'],
|
|
885
897
|
'sender_id' => payload['sender_id'],
|
|
898
|
+
'friendly_name' => payload['friendly_name'],
|
|
886
899
|
'configuration' => payload['configuration'],
|
|
887
900
|
'webhook' => payload['webhook'],
|
|
888
901
|
'profile' => payload['profile'],
|
|
@@ -926,6 +939,12 @@ module Twilio
|
|
|
926
939
|
@properties['sender_id']
|
|
927
940
|
end
|
|
928
941
|
|
|
942
|
+
##
|
|
943
|
+
# @return [String] Optional display label for the sender in the Twilio Console.
|
|
944
|
+
def friendly_name
|
|
945
|
+
@properties['friendly_name']
|
|
946
|
+
end
|
|
947
|
+
|
|
929
948
|
##
|
|
930
949
|
# @return [MessagingV2ChannelsSenderConfiguration]
|
|
931
950
|
def configuration
|
|
@@ -194,65 +194,6 @@ module Twilio
|
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
196
|
|
|
197
|
-
class DomainCertsPageMetadata < PageMetadata
|
|
198
|
-
attr_reader :domain_certs_page
|
|
199
|
-
|
|
200
|
-
def initialize(version, response, solution, limit)
|
|
201
|
-
super(version, response)
|
|
202
|
-
@domain_certs_page = []
|
|
203
|
-
@limit = limit
|
|
204
|
-
key = get_key(response.body)
|
|
205
|
-
records = 0
|
|
206
|
-
while( limit != :unset && records < limit )
|
|
207
|
-
@domain_certs_page << DomainCertsListResponse.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
|
-
@domain_certs_page.each do |record|
|
|
218
|
-
yield record
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def to_s
|
|
223
|
-
'<Twilio::REST::Messaging::V2PageMetadata>';
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
class DomainCertsListResponse < InstanceListResource
|
|
227
|
-
|
|
228
|
-
# @param [Array<DomainCertsInstance>] 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
|
-
@domain_certs = data_list.map do |data|
|
|
237
|
-
DomainCertsInstance.new(version, data)
|
|
238
|
-
end
|
|
239
|
-
@headers = payload.headers
|
|
240
|
-
@status_code = payload.status_code
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
def domain_certs
|
|
244
|
-
@domain_certs
|
|
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 DomainCertsInstance < InstanceResource
|
|
257
198
|
##
|
|
258
199
|
# Initialize the DomainCertsInstance
|
|
@@ -132,65 +132,6 @@ module Twilio
|
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
class TypingIndicatorPageMetadata < PageMetadata
|
|
136
|
-
attr_reader :typing_indicator_page
|
|
137
|
-
|
|
138
|
-
def initialize(version, response, solution, limit)
|
|
139
|
-
super(version, response)
|
|
140
|
-
@typing_indicator_page = []
|
|
141
|
-
@limit = limit
|
|
142
|
-
key = get_key(response.body)
|
|
143
|
-
records = 0
|
|
144
|
-
while( limit != :unset && records < limit )
|
|
145
|
-
@typing_indicator_page << TypingIndicatorListResponse.new(version, @payload, key, limit - records)
|
|
146
|
-
@payload = self.next_page
|
|
147
|
-
break unless @payload
|
|
148
|
-
records += (@payload.body[key] || []).size
|
|
149
|
-
end
|
|
150
|
-
# Path Solution
|
|
151
|
-
@solution = solution
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
def each
|
|
155
|
-
@typing_indicator_page.each do |record|
|
|
156
|
-
yield record
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
def to_s
|
|
161
|
-
'<Twilio::REST::Messaging::V2PageMetadata>';
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
class TypingIndicatorListResponse < InstanceListResource
|
|
165
|
-
|
|
166
|
-
# @param [Array<TypingIndicatorInstance>] instance
|
|
167
|
-
# @param [Hash{String => Object}] headers
|
|
168
|
-
# @param [Integer] status_code
|
|
169
|
-
def initialize(version, payload, key, limit = :unset)
|
|
170
|
-
data_list = payload.body[key] || []
|
|
171
|
-
if limit != :unset
|
|
172
|
-
data_list = data_list[0, limit]
|
|
173
|
-
end
|
|
174
|
-
@typing_indicator = data_list.map do |data|
|
|
175
|
-
TypingIndicatorInstance.new(version, data)
|
|
176
|
-
end
|
|
177
|
-
@headers = payload.headers
|
|
178
|
-
@status_code = payload.status_code
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
def typing_indicator
|
|
182
|
-
@typing_indicator
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
def headers
|
|
186
|
-
@headers
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
def status_code
|
|
190
|
-
@status_code
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
|
|
194
135
|
class TypingIndicatorInstance < InstanceResource
|
|
195
136
|
##
|
|
196
137
|
# Initialize the TypingIndicatorInstance
|
|
@@ -20,11 +20,11 @@ module Twilio
|
|
|
20
20
|
class TypingIndicatorList < ListResource
|
|
21
21
|
|
|
22
22
|
class TypingIndicatorRequest
|
|
23
|
-
# @param [channel]: [String] The messaging channel. Must be \"
|
|
23
|
+
# @param [channel]: [String] The messaging channel. Must be \"RCS\".
|
|
24
24
|
# @param [message_id]: [String] The SID of a recent inbound message from the recipient. Must be an SM or MM SID format.
|
|
25
|
-
# @param [from]: [String] The
|
|
26
|
-
# @param [to]: [String] The
|
|
27
|
-
# @param [event]: [String] The type of typing event. \"START\"
|
|
25
|
+
# @param [from]: [String] The RCS agent identifier of the sender (business).
|
|
26
|
+
# @param [to]: [String] The RCS recipient identifier in E.164 format prefixed with \"rcs:\".
|
|
27
|
+
# @param [event]: [String] The type of typing event. Currently only \"START\" is supported for RCS, indicating the agent began typing. Defaults to \"START\".
|
|
28
28
|
attr_accessor :channel, :message_id, :from, :to, :event
|
|
29
29
|
def initialize(payload)
|
|
30
30
|
@channel = payload["channel"]
|
|
@@ -142,65 +142,6 @@ module Twilio
|
|
|
142
142
|
end
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
class TypingIndicatorPageMetadata < PageMetadata
|
|
146
|
-
attr_reader :typing_indicator_page
|
|
147
|
-
|
|
148
|
-
def initialize(version, response, solution, limit)
|
|
149
|
-
super(version, response)
|
|
150
|
-
@typing_indicator_page = []
|
|
151
|
-
@limit = limit
|
|
152
|
-
key = get_key(response.body)
|
|
153
|
-
records = 0
|
|
154
|
-
while( limit != :unset && records < limit )
|
|
155
|
-
@typing_indicator_page << TypingIndicatorListResponse.new(version, @payload, key, limit - records)
|
|
156
|
-
@payload = self.next_page
|
|
157
|
-
break unless @payload
|
|
158
|
-
records += (@payload.body[key] || []).size
|
|
159
|
-
end
|
|
160
|
-
# Path Solution
|
|
161
|
-
@solution = solution
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
def each
|
|
165
|
-
@typing_indicator_page.each do |record|
|
|
166
|
-
yield record
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
def to_s
|
|
171
|
-
'<Twilio::REST::Messaging::V3PageMetadata>';
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
class TypingIndicatorListResponse < InstanceListResource
|
|
175
|
-
|
|
176
|
-
# @param [Array<TypingIndicatorInstance>] instance
|
|
177
|
-
# @param [Hash{String => Object}] headers
|
|
178
|
-
# @param [Integer] status_code
|
|
179
|
-
def initialize(version, payload, key, limit = :unset)
|
|
180
|
-
data_list = payload.body[key] || []
|
|
181
|
-
if limit != :unset
|
|
182
|
-
data_list = data_list[0, limit]
|
|
183
|
-
end
|
|
184
|
-
@typing_indicator = data_list.map do |data|
|
|
185
|
-
TypingIndicatorInstance.new(version, data)
|
|
186
|
-
end
|
|
187
|
-
@headers = payload.headers
|
|
188
|
-
@status_code = payload.status_code
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
def typing_indicator
|
|
192
|
-
@typing_indicator
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
def headers
|
|
196
|
-
@headers
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
def status_code
|
|
200
|
-
@status_code
|
|
201
|
-
end
|
|
202
|
-
end
|
|
203
|
-
|
|
204
145
|
class TypingIndicatorInstance < InstanceResource
|
|
205
146
|
##
|
|
206
147
|
# Initialize the TypingIndicatorInstance
|