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
|
@@ -58,8 +58,15 @@ module Twilio
|
|
|
58
58
|
end
|
|
59
59
|
##
|
|
60
60
|
# Create the SecondaryAuthTokenInstance
|
|
61
|
+
# @param [Boolean] suppress_email_notification Whether to suppress the email notification that Twilio sends to the owners and administrators of the account about this Auth Token change. Defaults to `false`, so Twilio sends the email. Set to `true` when rotating Auth Tokens across many subaccounts.
|
|
61
62
|
# @return [SecondaryAuthTokenInstance] Created SecondaryAuthTokenInstance
|
|
62
|
-
def create
|
|
63
|
+
def create(
|
|
64
|
+
suppress_email_notification: :unset
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
data = Twilio::Values.of({
|
|
68
|
+
'SuppressEmailNotification' => suppress_email_notification,
|
|
69
|
+
})
|
|
63
70
|
|
|
64
71
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
65
72
|
|
|
@@ -67,7 +74,7 @@ module Twilio
|
|
|
67
74
|
|
|
68
75
|
|
|
69
76
|
|
|
70
|
-
payload = @version.create('POST', @uri, headers: headers)
|
|
77
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
71
78
|
SecondaryAuthTokenInstance.new(
|
|
72
79
|
@version,
|
|
73
80
|
payload,
|
|
@@ -76,8 +83,15 @@ module Twilio
|
|
|
76
83
|
|
|
77
84
|
##
|
|
78
85
|
# Create the SecondaryAuthTokenInstanceMetadata
|
|
86
|
+
# @param [Boolean] suppress_email_notification Whether to suppress the email notification that Twilio sends to the owners and administrators of the account about this Auth Token change. Defaults to `false`, so Twilio sends the email. Set to `true` when rotating Auth Tokens across many subaccounts.
|
|
79
87
|
# @return [SecondaryAuthTokenInstance] Created SecondaryAuthTokenInstance
|
|
80
|
-
def create_with_metadata
|
|
88
|
+
def create_with_metadata(
|
|
89
|
+
suppress_email_notification: :unset
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
data = Twilio::Values.of({
|
|
93
|
+
'SuppressEmailNotification' => suppress_email_notification,
|
|
94
|
+
})
|
|
81
95
|
|
|
82
96
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
83
97
|
|
|
@@ -85,7 +99,7 @@ module Twilio
|
|
|
85
99
|
|
|
86
100
|
|
|
87
101
|
|
|
88
|
-
response = @version.create_with_metadata('POST', @uri, headers: headers)
|
|
102
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
89
103
|
secondary_auth_token_instance = SecondaryAuthTokenInstance.new(
|
|
90
104
|
@version,
|
|
91
105
|
response.body,
|
|
@@ -100,27 +114,39 @@ module Twilio
|
|
|
100
114
|
|
|
101
115
|
##
|
|
102
116
|
# Delete the SecondaryAuthTokenInstance
|
|
117
|
+
# @param [Boolean] suppress_email_notification Whether to suppress the email notification that Twilio sends to the owners and administrators of the account about this Auth Token change. Defaults to `false`, so Twilio sends the email. Set to `true` when rotating Auth Tokens across many subaccounts.
|
|
103
118
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
104
|
-
def delete
|
|
119
|
+
def delete(
|
|
120
|
+
suppress_email_notification: :unset
|
|
121
|
+
)
|
|
105
122
|
|
|
123
|
+
params = Twilio::Values.of({
|
|
124
|
+
'SuppressEmailNotification' => suppress_email_notification,
|
|
125
|
+
})
|
|
106
126
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
107
127
|
|
|
108
128
|
|
|
109
129
|
|
|
110
130
|
|
|
111
|
-
@version.delete('DELETE', @uri, headers: headers)
|
|
131
|
+
@version.delete('DELETE', @uri, params: params, headers: headers)
|
|
112
132
|
end
|
|
113
133
|
|
|
114
134
|
##
|
|
115
135
|
# Delete the SecondaryAuthTokenInstanceMetadata
|
|
136
|
+
# @param [Boolean] suppress_email_notification Whether to suppress the email notification that Twilio sends to the owners and administrators of the account about this Auth Token change. Defaults to `false`, so Twilio sends the email. Set to `true` when rotating Auth Tokens across many subaccounts.
|
|
116
137
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
117
|
-
def delete_with_metadata
|
|
138
|
+
def delete_with_metadata(
|
|
139
|
+
suppress_email_notification: :unset
|
|
140
|
+
)
|
|
118
141
|
|
|
142
|
+
params = Twilio::Values.of({
|
|
143
|
+
'SuppressEmailNotification' => suppress_email_notification,
|
|
144
|
+
})
|
|
119
145
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
120
146
|
|
|
121
147
|
|
|
122
148
|
|
|
123
|
-
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
149
|
+
response = @version.delete_with_metadata('DELETE', @uri, params: params, headers: headers)
|
|
124
150
|
secondaryAuthToken_instance = SecondaryAuthTokenInstance.new(
|
|
125
151
|
@version,
|
|
126
152
|
response.body,
|
|
@@ -223,65 +249,6 @@ module Twilio
|
|
|
223
249
|
end
|
|
224
250
|
end
|
|
225
251
|
|
|
226
|
-
class SecondaryAuthTokenPageMetadata < PageMetadata
|
|
227
|
-
attr_reader :secondary_auth_token_page
|
|
228
|
-
|
|
229
|
-
def initialize(version, response, solution, limit)
|
|
230
|
-
super(version, response)
|
|
231
|
-
@secondary_auth_token_page = []
|
|
232
|
-
@limit = limit
|
|
233
|
-
key = get_key(response.body)
|
|
234
|
-
records = 0
|
|
235
|
-
while( limit != :unset && records < limit )
|
|
236
|
-
@secondary_auth_token_page << SecondaryAuthTokenListResponse.new(version, @payload, key, limit - records)
|
|
237
|
-
@payload = self.next_page
|
|
238
|
-
break unless @payload
|
|
239
|
-
records += (@payload.body[key] || []).size
|
|
240
|
-
end
|
|
241
|
-
# Path Solution
|
|
242
|
-
@solution = solution
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
def each
|
|
246
|
-
@secondary_auth_token_page.each do |record|
|
|
247
|
-
yield record
|
|
248
|
-
end
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
def to_s
|
|
252
|
-
'<Twilio::REST::Accounts::V1PageMetadata>';
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
class SecondaryAuthTokenListResponse < InstanceListResource
|
|
256
|
-
|
|
257
|
-
# @param [Array<SecondaryAuthTokenInstance>] instance
|
|
258
|
-
# @param [Hash{String => Object}] headers
|
|
259
|
-
# @param [Integer] status_code
|
|
260
|
-
def initialize(version, payload, key, limit = :unset)
|
|
261
|
-
data_list = payload.body[key] || []
|
|
262
|
-
if limit != :unset
|
|
263
|
-
data_list = data_list[0, limit]
|
|
264
|
-
end
|
|
265
|
-
@secondary_auth_token = data_list.map do |data|
|
|
266
|
-
SecondaryAuthTokenInstance.new(version, data)
|
|
267
|
-
end
|
|
268
|
-
@headers = payload.headers
|
|
269
|
-
@status_code = payload.status_code
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
def secondary_auth_token
|
|
273
|
-
@secondary_auth_token
|
|
274
|
-
end
|
|
275
|
-
|
|
276
|
-
def headers
|
|
277
|
-
@headers
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
def status_code
|
|
281
|
-
@status_code
|
|
282
|
-
end
|
|
283
|
-
end
|
|
284
|
-
|
|
285
252
|
class SecondaryAuthTokenInstance < InstanceResource
|
|
286
253
|
##
|
|
287
254
|
# Initialize the SecondaryAuthTokenInstance
|
|
@@ -353,18 +320,28 @@ module Twilio
|
|
|
353
320
|
|
|
354
321
|
##
|
|
355
322
|
# Create the SecondaryAuthTokenInstance
|
|
323
|
+
# @param [Boolean] suppress_email_notification Whether to suppress the email notification that Twilio sends to the owners and administrators of the account about this Auth Token change. Defaults to `false`, so Twilio sends the email. Set to `true` when rotating Auth Tokens across many subaccounts.
|
|
356
324
|
# @return [SecondaryAuthTokenInstance] Created SecondaryAuthTokenInstance
|
|
357
|
-
def create
|
|
325
|
+
def create(
|
|
326
|
+
suppress_email_notification: :unset
|
|
327
|
+
)
|
|
358
328
|
|
|
359
|
-
context.create
|
|
329
|
+
context.create(
|
|
330
|
+
suppress_email_notification: suppress_email_notification,
|
|
331
|
+
)
|
|
360
332
|
end
|
|
361
333
|
|
|
362
334
|
##
|
|
363
335
|
# Delete the SecondaryAuthTokenInstance
|
|
336
|
+
# @param [Boolean] suppress_email_notification Whether to suppress the email notification that Twilio sends to the owners and administrators of the account about this Auth Token change. Defaults to `false`, so Twilio sends the email. Set to `true` when rotating Auth Tokens across many subaccounts.
|
|
364
337
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
365
|
-
def delete
|
|
338
|
+
def delete(
|
|
339
|
+
suppress_email_notification: :unset
|
|
340
|
+
)
|
|
366
341
|
|
|
367
|
-
context.delete
|
|
342
|
+
context.delete(
|
|
343
|
+
suppress_email_notification: suppress_email_notification,
|
|
344
|
+
)
|
|
368
345
|
end
|
|
369
346
|
|
|
370
347
|
##
|
|
@@ -116,65 +116,6 @@ module Twilio
|
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
-
class BalancePageMetadata < PageMetadata
|
|
120
|
-
attr_reader :balance_page
|
|
121
|
-
|
|
122
|
-
def initialize(version, response, solution, limit)
|
|
123
|
-
super(version, response)
|
|
124
|
-
@balance_page = []
|
|
125
|
-
@limit = limit
|
|
126
|
-
key = get_key(response.body)
|
|
127
|
-
records = 0
|
|
128
|
-
while( limit != :unset && records < limit )
|
|
129
|
-
@balance_page << BalanceListResponse.new(version, @payload, key, limit - records)
|
|
130
|
-
@payload = self.next_page
|
|
131
|
-
break unless @payload
|
|
132
|
-
records += (@payload.body[key] || []).size
|
|
133
|
-
end
|
|
134
|
-
# Path Solution
|
|
135
|
-
@solution = solution
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
def each
|
|
139
|
-
@balance_page.each do |record|
|
|
140
|
-
yield record
|
|
141
|
-
end
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
def to_s
|
|
145
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
146
|
-
end
|
|
147
|
-
end
|
|
148
|
-
class BalanceListResponse < InstanceListResource
|
|
149
|
-
|
|
150
|
-
# @param [Array<BalanceInstance>] instance
|
|
151
|
-
# @param [Hash{String => Object}] headers
|
|
152
|
-
# @param [Integer] status_code
|
|
153
|
-
def initialize(version, payload, key, limit = :unset)
|
|
154
|
-
data_list = payload.body[key] || []
|
|
155
|
-
if limit != :unset
|
|
156
|
-
data_list = data_list[0, limit]
|
|
157
|
-
end
|
|
158
|
-
@balance = data_list.map do |data|
|
|
159
|
-
BalanceInstance.new(version, data)
|
|
160
|
-
end
|
|
161
|
-
@headers = payload.headers
|
|
162
|
-
@status_code = payload.status_code
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def balance
|
|
166
|
-
@balance
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def headers
|
|
170
|
-
@headers
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
def status_code
|
|
174
|
-
@status_code
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
|
|
178
119
|
class BalanceInstance < InstanceResource
|
|
179
120
|
##
|
|
180
121
|
# Initialize the BalanceInstance
|
|
@@ -397,65 +397,6 @@ module Twilio
|
|
|
397
397
|
end
|
|
398
398
|
end
|
|
399
399
|
|
|
400
|
-
class PaymentPageMetadata < PageMetadata
|
|
401
|
-
attr_reader :payment_page
|
|
402
|
-
|
|
403
|
-
def initialize(version, response, solution, limit)
|
|
404
|
-
super(version, response)
|
|
405
|
-
@payment_page = []
|
|
406
|
-
@limit = limit
|
|
407
|
-
key = get_key(response.body)
|
|
408
|
-
records = 0
|
|
409
|
-
while( limit != :unset && records < limit )
|
|
410
|
-
@payment_page << PaymentListResponse.new(version, @payload, key, limit - records)
|
|
411
|
-
@payload = self.next_page
|
|
412
|
-
break unless @payload
|
|
413
|
-
records += (@payload.body[key] || []).size
|
|
414
|
-
end
|
|
415
|
-
# Path Solution
|
|
416
|
-
@solution = solution
|
|
417
|
-
end
|
|
418
|
-
|
|
419
|
-
def each
|
|
420
|
-
@payment_page.each do |record|
|
|
421
|
-
yield record
|
|
422
|
-
end
|
|
423
|
-
end
|
|
424
|
-
|
|
425
|
-
def to_s
|
|
426
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
427
|
-
end
|
|
428
|
-
end
|
|
429
|
-
class PaymentListResponse < InstanceListResource
|
|
430
|
-
|
|
431
|
-
# @param [Array<PaymentInstance>] instance
|
|
432
|
-
# @param [Hash{String => Object}] headers
|
|
433
|
-
# @param [Integer] status_code
|
|
434
|
-
def initialize(version, payload, key, limit = :unset)
|
|
435
|
-
data_list = payload.body[key] || []
|
|
436
|
-
if limit != :unset
|
|
437
|
-
data_list = data_list[0, limit]
|
|
438
|
-
end
|
|
439
|
-
@payment = data_list.map do |data|
|
|
440
|
-
PaymentInstance.new(version, data)
|
|
441
|
-
end
|
|
442
|
-
@headers = payload.headers
|
|
443
|
-
@status_code = payload.status_code
|
|
444
|
-
end
|
|
445
|
-
|
|
446
|
-
def payment
|
|
447
|
-
@payment
|
|
448
|
-
end
|
|
449
|
-
|
|
450
|
-
def headers
|
|
451
|
-
@headers
|
|
452
|
-
end
|
|
453
|
-
|
|
454
|
-
def status_code
|
|
455
|
-
@status_code
|
|
456
|
-
end
|
|
457
|
-
end
|
|
458
|
-
|
|
459
400
|
class PaymentInstance < InstanceResource
|
|
460
401
|
##
|
|
461
402
|
# Initialize the PaymentInstance
|
|
@@ -1489,65 +1489,6 @@ module Twilio
|
|
|
1489
1489
|
end
|
|
1490
1490
|
end
|
|
1491
1491
|
|
|
1492
|
-
class SiprecPageMetadata < PageMetadata
|
|
1493
|
-
attr_reader :siprec_page
|
|
1494
|
-
|
|
1495
|
-
def initialize(version, response, solution, limit)
|
|
1496
|
-
super(version, response)
|
|
1497
|
-
@siprec_page = []
|
|
1498
|
-
@limit = limit
|
|
1499
|
-
key = get_key(response.body)
|
|
1500
|
-
records = 0
|
|
1501
|
-
while( limit != :unset && records < limit )
|
|
1502
|
-
@siprec_page << SiprecListResponse.new(version, @payload, key, limit - records)
|
|
1503
|
-
@payload = self.next_page
|
|
1504
|
-
break unless @payload
|
|
1505
|
-
records += (@payload.body[key] || []).size
|
|
1506
|
-
end
|
|
1507
|
-
# Path Solution
|
|
1508
|
-
@solution = solution
|
|
1509
|
-
end
|
|
1510
|
-
|
|
1511
|
-
def each
|
|
1512
|
-
@siprec_page.each do |record|
|
|
1513
|
-
yield record
|
|
1514
|
-
end
|
|
1515
|
-
end
|
|
1516
|
-
|
|
1517
|
-
def to_s
|
|
1518
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
1519
|
-
end
|
|
1520
|
-
end
|
|
1521
|
-
class SiprecListResponse < InstanceListResource
|
|
1522
|
-
|
|
1523
|
-
# @param [Array<SiprecInstance>] instance
|
|
1524
|
-
# @param [Hash{String => Object}] headers
|
|
1525
|
-
# @param [Integer] status_code
|
|
1526
|
-
def initialize(version, payload, key, limit = :unset)
|
|
1527
|
-
data_list = payload.body[key] || []
|
|
1528
|
-
if limit != :unset
|
|
1529
|
-
data_list = data_list[0, limit]
|
|
1530
|
-
end
|
|
1531
|
-
@siprec = data_list.map do |data|
|
|
1532
|
-
SiprecInstance.new(version, data)
|
|
1533
|
-
end
|
|
1534
|
-
@headers = payload.headers
|
|
1535
|
-
@status_code = payload.status_code
|
|
1536
|
-
end
|
|
1537
|
-
|
|
1538
|
-
def siprec
|
|
1539
|
-
@siprec
|
|
1540
|
-
end
|
|
1541
|
-
|
|
1542
|
-
def headers
|
|
1543
|
-
@headers
|
|
1544
|
-
end
|
|
1545
|
-
|
|
1546
|
-
def status_code
|
|
1547
|
-
@status_code
|
|
1548
|
-
end
|
|
1549
|
-
end
|
|
1550
|
-
|
|
1551
1492
|
class SiprecInstance < InstanceResource
|
|
1552
1493
|
##
|
|
1553
1494
|
# Initialize the SiprecInstance
|
|
@@ -1489,65 +1489,6 @@ module Twilio
|
|
|
1489
1489
|
end
|
|
1490
1490
|
end
|
|
1491
1491
|
|
|
1492
|
-
class StreamPageMetadata < PageMetadata
|
|
1493
|
-
attr_reader :stream_page
|
|
1494
|
-
|
|
1495
|
-
def initialize(version, response, solution, limit)
|
|
1496
|
-
super(version, response)
|
|
1497
|
-
@stream_page = []
|
|
1498
|
-
@limit = limit
|
|
1499
|
-
key = get_key(response.body)
|
|
1500
|
-
records = 0
|
|
1501
|
-
while( limit != :unset && records < limit )
|
|
1502
|
-
@stream_page << StreamListResponse.new(version, @payload, key, limit - records)
|
|
1503
|
-
@payload = self.next_page
|
|
1504
|
-
break unless @payload
|
|
1505
|
-
records += (@payload.body[key] || []).size
|
|
1506
|
-
end
|
|
1507
|
-
# Path Solution
|
|
1508
|
-
@solution = solution
|
|
1509
|
-
end
|
|
1510
|
-
|
|
1511
|
-
def each
|
|
1512
|
-
@stream_page.each do |record|
|
|
1513
|
-
yield record
|
|
1514
|
-
end
|
|
1515
|
-
end
|
|
1516
|
-
|
|
1517
|
-
def to_s
|
|
1518
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
1519
|
-
end
|
|
1520
|
-
end
|
|
1521
|
-
class StreamListResponse < InstanceListResource
|
|
1522
|
-
|
|
1523
|
-
# @param [Array<StreamInstance>] instance
|
|
1524
|
-
# @param [Hash{String => Object}] headers
|
|
1525
|
-
# @param [Integer] status_code
|
|
1526
|
-
def initialize(version, payload, key, limit = :unset)
|
|
1527
|
-
data_list = payload.body[key] || []
|
|
1528
|
-
if limit != :unset
|
|
1529
|
-
data_list = data_list[0, limit]
|
|
1530
|
-
end
|
|
1531
|
-
@stream = data_list.map do |data|
|
|
1532
|
-
StreamInstance.new(version, data)
|
|
1533
|
-
end
|
|
1534
|
-
@headers = payload.headers
|
|
1535
|
-
@status_code = payload.status_code
|
|
1536
|
-
end
|
|
1537
|
-
|
|
1538
|
-
def stream
|
|
1539
|
-
@stream
|
|
1540
|
-
end
|
|
1541
|
-
|
|
1542
|
-
def headers
|
|
1543
|
-
@headers
|
|
1544
|
-
end
|
|
1545
|
-
|
|
1546
|
-
def status_code
|
|
1547
|
-
@status_code
|
|
1548
|
-
end
|
|
1549
|
-
end
|
|
1550
|
-
|
|
1551
1492
|
class StreamInstance < InstanceResource
|
|
1552
1493
|
##
|
|
1553
1494
|
# Initialize the StreamInstance
|
|
@@ -379,65 +379,6 @@ module Twilio
|
|
|
379
379
|
end
|
|
380
380
|
end
|
|
381
381
|
|
|
382
|
-
class TranscriptionPageMetadata < PageMetadata
|
|
383
|
-
attr_reader :transcription_page
|
|
384
|
-
|
|
385
|
-
def initialize(version, response, solution, limit)
|
|
386
|
-
super(version, response)
|
|
387
|
-
@transcription_page = []
|
|
388
|
-
@limit = limit
|
|
389
|
-
key = get_key(response.body)
|
|
390
|
-
records = 0
|
|
391
|
-
while( limit != :unset && records < limit )
|
|
392
|
-
@transcription_page << TranscriptionListResponse.new(version, @payload, key, limit - records)
|
|
393
|
-
@payload = self.next_page
|
|
394
|
-
break unless @payload
|
|
395
|
-
records += (@payload.body[key] || []).size
|
|
396
|
-
end
|
|
397
|
-
# Path Solution
|
|
398
|
-
@solution = solution
|
|
399
|
-
end
|
|
400
|
-
|
|
401
|
-
def each
|
|
402
|
-
@transcription_page.each do |record|
|
|
403
|
-
yield record
|
|
404
|
-
end
|
|
405
|
-
end
|
|
406
|
-
|
|
407
|
-
def to_s
|
|
408
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
409
|
-
end
|
|
410
|
-
end
|
|
411
|
-
class TranscriptionListResponse < InstanceListResource
|
|
412
|
-
|
|
413
|
-
# @param [Array<TranscriptionInstance>] instance
|
|
414
|
-
# @param [Hash{String => Object}] headers
|
|
415
|
-
# @param [Integer] status_code
|
|
416
|
-
def initialize(version, payload, key, limit = :unset)
|
|
417
|
-
data_list = payload.body[key] || []
|
|
418
|
-
if limit != :unset
|
|
419
|
-
data_list = data_list[0, limit]
|
|
420
|
-
end
|
|
421
|
-
@transcription = data_list.map do |data|
|
|
422
|
-
TranscriptionInstance.new(version, data)
|
|
423
|
-
end
|
|
424
|
-
@headers = payload.headers
|
|
425
|
-
@status_code = payload.status_code
|
|
426
|
-
end
|
|
427
|
-
|
|
428
|
-
def transcription
|
|
429
|
-
@transcription
|
|
430
|
-
end
|
|
431
|
-
|
|
432
|
-
def headers
|
|
433
|
-
@headers
|
|
434
|
-
end
|
|
435
|
-
|
|
436
|
-
def status_code
|
|
437
|
-
@status_code
|
|
438
|
-
end
|
|
439
|
-
end
|
|
440
|
-
|
|
441
382
|
class TranscriptionInstance < InstanceResource
|
|
442
383
|
##
|
|
443
384
|
# Initialize the TranscriptionInstance
|
|
@@ -139,65 +139,6 @@ module Twilio
|
|
|
139
139
|
end
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
class UserDefinedMessagePageMetadata < PageMetadata
|
|
143
|
-
attr_reader :user_defined_message_page
|
|
144
|
-
|
|
145
|
-
def initialize(version, response, solution, limit)
|
|
146
|
-
super(version, response)
|
|
147
|
-
@user_defined_message_page = []
|
|
148
|
-
@limit = limit
|
|
149
|
-
key = get_key(response.body)
|
|
150
|
-
records = 0
|
|
151
|
-
while( limit != :unset && records < limit )
|
|
152
|
-
@user_defined_message_page << UserDefinedMessageListResponse.new(version, @payload, key, limit - records)
|
|
153
|
-
@payload = self.next_page
|
|
154
|
-
break unless @payload
|
|
155
|
-
records += (@payload.body[key] || []).size
|
|
156
|
-
end
|
|
157
|
-
# Path Solution
|
|
158
|
-
@solution = solution
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
def each
|
|
162
|
-
@user_defined_message_page.each do |record|
|
|
163
|
-
yield record
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def to_s
|
|
168
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
class UserDefinedMessageListResponse < InstanceListResource
|
|
172
|
-
|
|
173
|
-
# @param [Array<UserDefinedMessageInstance>] instance
|
|
174
|
-
# @param [Hash{String => Object}] headers
|
|
175
|
-
# @param [Integer] status_code
|
|
176
|
-
def initialize(version, payload, key, limit = :unset)
|
|
177
|
-
data_list = payload.body[key] || []
|
|
178
|
-
if limit != :unset
|
|
179
|
-
data_list = data_list[0, limit]
|
|
180
|
-
end
|
|
181
|
-
@user_defined_message = data_list.map do |data|
|
|
182
|
-
UserDefinedMessageInstance.new(version, data)
|
|
183
|
-
end
|
|
184
|
-
@headers = payload.headers
|
|
185
|
-
@status_code = payload.status_code
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
def user_defined_message
|
|
189
|
-
@user_defined_message
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
def headers
|
|
193
|
-
@headers
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def status_code
|
|
197
|
-
@status_code
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
|
|
201
142
|
class UserDefinedMessageInstance < InstanceResource
|
|
202
143
|
##
|
|
203
144
|
# Initialize the UserDefinedMessageInstance
|
|
@@ -259,65 +259,6 @@ module Twilio
|
|
|
259
259
|
end
|
|
260
260
|
end
|
|
261
261
|
|
|
262
|
-
class UserDefinedMessageSubscriptionPageMetadata < PageMetadata
|
|
263
|
-
attr_reader :user_defined_message_subscription_page
|
|
264
|
-
|
|
265
|
-
def initialize(version, response, solution, limit)
|
|
266
|
-
super(version, response)
|
|
267
|
-
@user_defined_message_subscription_page = []
|
|
268
|
-
@limit = limit
|
|
269
|
-
key = get_key(response.body)
|
|
270
|
-
records = 0
|
|
271
|
-
while( limit != :unset && records < limit )
|
|
272
|
-
@user_defined_message_subscription_page << UserDefinedMessageSubscriptionListResponse.new(version, @payload, key, limit - records)
|
|
273
|
-
@payload = self.next_page
|
|
274
|
-
break unless @payload
|
|
275
|
-
records += (@payload.body[key] || []).size
|
|
276
|
-
end
|
|
277
|
-
# Path Solution
|
|
278
|
-
@solution = solution
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
def each
|
|
282
|
-
@user_defined_message_subscription_page.each do |record|
|
|
283
|
-
yield record
|
|
284
|
-
end
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
def to_s
|
|
288
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
289
|
-
end
|
|
290
|
-
end
|
|
291
|
-
class UserDefinedMessageSubscriptionListResponse < InstanceListResource
|
|
292
|
-
|
|
293
|
-
# @param [Array<UserDefinedMessageSubscriptionInstance>] instance
|
|
294
|
-
# @param [Hash{String => Object}] headers
|
|
295
|
-
# @param [Integer] status_code
|
|
296
|
-
def initialize(version, payload, key, limit = :unset)
|
|
297
|
-
data_list = payload.body[key] || []
|
|
298
|
-
if limit != :unset
|
|
299
|
-
data_list = data_list[0, limit]
|
|
300
|
-
end
|
|
301
|
-
@user_defined_message_subscription = data_list.map do |data|
|
|
302
|
-
UserDefinedMessageSubscriptionInstance.new(version, data)
|
|
303
|
-
end
|
|
304
|
-
@headers = payload.headers
|
|
305
|
-
@status_code = payload.status_code
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
def user_defined_message_subscription
|
|
309
|
-
@user_defined_message_subscription
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
def headers
|
|
313
|
-
@headers
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
def status_code
|
|
317
|
-
@status_code
|
|
318
|
-
end
|
|
319
|
-
end
|
|
320
|
-
|
|
321
262
|
class UserDefinedMessageSubscriptionInstance < InstanceResource
|
|
322
263
|
##
|
|
323
264
|
# Initialize the UserDefinedMessageSubscriptionInstance
|