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
|
@@ -24,15 +24,18 @@ module Twilio
|
|
|
24
24
|
class ContentApprovalRequest
|
|
25
25
|
# @param [name]: [String] Name of the template.
|
|
26
26
|
# @param [category]: [String] A WhatsApp recognized template category.
|
|
27
|
-
|
|
27
|
+
# @param [send_ttl_seconds]: [String] Time-to-live in seconds for attempting to send a message with this Content
|
|
28
|
+
attr_accessor :name, :category, :send_ttl_seconds
|
|
28
29
|
def initialize(payload)
|
|
29
30
|
@name = payload["name"]
|
|
30
31
|
@category = payload["category"]
|
|
32
|
+
@send_ttl_seconds = payload["send_ttl_seconds"]
|
|
31
33
|
end
|
|
32
34
|
def to_json(options = {})
|
|
33
35
|
{
|
|
34
36
|
"name": @name,
|
|
35
37
|
"category": @category,
|
|
38
|
+
"send_ttl_seconds": @send_ttl_seconds,
|
|
36
39
|
}.to_json(options)
|
|
37
40
|
end
|
|
38
41
|
end
|
|
@@ -137,65 +140,6 @@ module Twilio
|
|
|
137
140
|
end
|
|
138
141
|
end
|
|
139
142
|
|
|
140
|
-
class ApprovalCreatePageMetadata < PageMetadata
|
|
141
|
-
attr_reader :approval_create_page
|
|
142
|
-
|
|
143
|
-
def initialize(version, response, solution, limit)
|
|
144
|
-
super(version, response)
|
|
145
|
-
@approval_create_page = []
|
|
146
|
-
@limit = limit
|
|
147
|
-
key = get_key(response.body)
|
|
148
|
-
records = 0
|
|
149
|
-
while( limit != :unset && records < limit )
|
|
150
|
-
@approval_create_page << ApprovalCreateListResponse.new(version, @payload, key, limit - records)
|
|
151
|
-
@payload = self.next_page
|
|
152
|
-
break unless @payload
|
|
153
|
-
records += (@payload.body[key] || []).size
|
|
154
|
-
end
|
|
155
|
-
# Path Solution
|
|
156
|
-
@solution = solution
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
def each
|
|
160
|
-
@approval_create_page.each do |record|
|
|
161
|
-
yield record
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def to_s
|
|
166
|
-
'<Twilio::REST::Content::V1PageMetadata>';
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
class ApprovalCreateListResponse < InstanceListResource
|
|
170
|
-
|
|
171
|
-
# @param [Array<ApprovalCreateInstance>] instance
|
|
172
|
-
# @param [Hash{String => Object}] headers
|
|
173
|
-
# @param [Integer] status_code
|
|
174
|
-
def initialize(version, payload, key, limit = :unset)
|
|
175
|
-
data_list = payload.body[key] || []
|
|
176
|
-
if limit != :unset
|
|
177
|
-
data_list = data_list[0, limit]
|
|
178
|
-
end
|
|
179
|
-
@approval_create = data_list.map do |data|
|
|
180
|
-
ApprovalCreateInstance.new(version, data)
|
|
181
|
-
end
|
|
182
|
-
@headers = payload.headers
|
|
183
|
-
@status_code = payload.status_code
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
def approval_create
|
|
187
|
-
@approval_create
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def headers
|
|
191
|
-
@headers
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
def status_code
|
|
195
|
-
@status_code
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
|
|
199
143
|
class ApprovalCreateInstance < InstanceResource
|
|
200
144
|
##
|
|
201
145
|
# Initialize the ApprovalCreateInstance
|
|
@@ -218,6 +162,7 @@ module Twilio
|
|
|
218
162
|
'status' => payload['status'],
|
|
219
163
|
'rejection_reason' => payload['rejection_reason'],
|
|
220
164
|
'allow_category_change' => payload['allow_category_change'],
|
|
165
|
+
'send_ttl_seconds' => payload['send_ttl_seconds'],
|
|
221
166
|
}
|
|
222
167
|
end
|
|
223
168
|
|
|
@@ -258,6 +203,12 @@ module Twilio
|
|
|
258
203
|
@properties['allow_category_change']
|
|
259
204
|
end
|
|
260
205
|
|
|
206
|
+
##
|
|
207
|
+
# @return [String] Time-to-live in seconds for attempting to send a message with this Content
|
|
208
|
+
def send_ttl_seconds
|
|
209
|
+
@properties['send_ttl_seconds']
|
|
210
|
+
end
|
|
211
|
+
|
|
261
212
|
##
|
|
262
213
|
# Provide a user friendly representation
|
|
263
214
|
def to_s
|
|
@@ -196,65 +196,6 @@ module Twilio
|
|
|
196
196
|
end
|
|
197
197
|
end
|
|
198
198
|
|
|
199
|
-
class ApprovalFetchPageMetadata < PageMetadata
|
|
200
|
-
attr_reader :approval_fetch_page
|
|
201
|
-
|
|
202
|
-
def initialize(version, response, solution, limit)
|
|
203
|
-
super(version, response)
|
|
204
|
-
@approval_fetch_page = []
|
|
205
|
-
@limit = limit
|
|
206
|
-
key = get_key(response.body)
|
|
207
|
-
records = 0
|
|
208
|
-
while( limit != :unset && records < limit )
|
|
209
|
-
@approval_fetch_page << ApprovalFetchListResponse.new(version, @payload, key, limit - records)
|
|
210
|
-
@payload = self.next_page
|
|
211
|
-
break unless @payload
|
|
212
|
-
records += (@payload.body[key] || []).size
|
|
213
|
-
end
|
|
214
|
-
# Path Solution
|
|
215
|
-
@solution = solution
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
def each
|
|
219
|
-
@approval_fetch_page.each do |record|
|
|
220
|
-
yield record
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
def to_s
|
|
225
|
-
'<Twilio::REST::Content::V1PageMetadata>';
|
|
226
|
-
end
|
|
227
|
-
end
|
|
228
|
-
class ApprovalFetchListResponse < InstanceListResource
|
|
229
|
-
|
|
230
|
-
# @param [Array<ApprovalFetchInstance>] instance
|
|
231
|
-
# @param [Hash{String => Object}] headers
|
|
232
|
-
# @param [Integer] status_code
|
|
233
|
-
def initialize(version, payload, key, limit = :unset)
|
|
234
|
-
data_list = payload.body[key] || []
|
|
235
|
-
if limit != :unset
|
|
236
|
-
data_list = data_list[0, limit]
|
|
237
|
-
end
|
|
238
|
-
@approval_fetch = data_list.map do |data|
|
|
239
|
-
ApprovalFetchInstance.new(version, data)
|
|
240
|
-
end
|
|
241
|
-
@headers = payload.headers
|
|
242
|
-
@status_code = payload.status_code
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
def approval_fetch
|
|
246
|
-
@approval_fetch
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def headers
|
|
250
|
-
@headers
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
def status_code
|
|
254
|
-
@status_code
|
|
255
|
-
end
|
|
256
|
-
end
|
|
257
|
-
|
|
258
199
|
class ApprovalFetchInstance < InstanceResource
|
|
259
200
|
##
|
|
260
201
|
# Initialize the ApprovalFetchInstance
|
|
@@ -273,65 +273,6 @@ module Twilio
|
|
|
273
273
|
end
|
|
274
274
|
end
|
|
275
275
|
|
|
276
|
-
class WebhookPageMetadata < PageMetadata
|
|
277
|
-
attr_reader :webhook_page
|
|
278
|
-
|
|
279
|
-
def initialize(version, response, solution, limit)
|
|
280
|
-
super(version, response)
|
|
281
|
-
@webhook_page = []
|
|
282
|
-
@limit = limit
|
|
283
|
-
key = get_key(response.body)
|
|
284
|
-
records = 0
|
|
285
|
-
while( limit != :unset && records < limit )
|
|
286
|
-
@webhook_page << WebhookListResponse.new(version, @payload, key, limit - records)
|
|
287
|
-
@payload = self.next_page
|
|
288
|
-
break unless @payload
|
|
289
|
-
records += (@payload.body[key] || []).size
|
|
290
|
-
end
|
|
291
|
-
# Path Solution
|
|
292
|
-
@solution = solution
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
def each
|
|
296
|
-
@webhook_page.each do |record|
|
|
297
|
-
yield record
|
|
298
|
-
end
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
def to_s
|
|
302
|
-
'<Twilio::REST::Conversations::V1PageMetadata>';
|
|
303
|
-
end
|
|
304
|
-
end
|
|
305
|
-
class WebhookListResponse < InstanceListResource
|
|
306
|
-
|
|
307
|
-
# @param [Array<WebhookInstance>] instance
|
|
308
|
-
# @param [Hash{String => Object}] headers
|
|
309
|
-
# @param [Integer] status_code
|
|
310
|
-
def initialize(version, payload, key, limit = :unset)
|
|
311
|
-
data_list = payload.body[key] || []
|
|
312
|
-
if limit != :unset
|
|
313
|
-
data_list = data_list[0, limit]
|
|
314
|
-
end
|
|
315
|
-
@webhook = data_list.map do |data|
|
|
316
|
-
WebhookInstance.new(version, data)
|
|
317
|
-
end
|
|
318
|
-
@headers = payload.headers
|
|
319
|
-
@status_code = payload.status_code
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
def webhook
|
|
323
|
-
@webhook
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def headers
|
|
327
|
-
@headers
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
def status_code
|
|
331
|
-
@status_code
|
|
332
|
-
end
|
|
333
|
-
end
|
|
334
|
-
|
|
335
276
|
class WebhookInstance < InstanceResource
|
|
336
277
|
##
|
|
337
278
|
# Initialize the WebhookInstance
|
|
@@ -275,65 +275,6 @@ module Twilio
|
|
|
275
275
|
end
|
|
276
276
|
end
|
|
277
277
|
|
|
278
|
-
class ConfigurationPageMetadata < PageMetadata
|
|
279
|
-
attr_reader :configuration_page
|
|
280
|
-
|
|
281
|
-
def initialize(version, response, solution, limit)
|
|
282
|
-
super(version, response)
|
|
283
|
-
@configuration_page = []
|
|
284
|
-
@limit = limit
|
|
285
|
-
key = get_key(response.body)
|
|
286
|
-
records = 0
|
|
287
|
-
while( limit != :unset && records < limit )
|
|
288
|
-
@configuration_page << ConfigurationListResponse.new(version, @payload, key, limit - records)
|
|
289
|
-
@payload = self.next_page
|
|
290
|
-
break unless @payload
|
|
291
|
-
records += (@payload.body[key] || []).size
|
|
292
|
-
end
|
|
293
|
-
# Path Solution
|
|
294
|
-
@solution = solution
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
def each
|
|
298
|
-
@configuration_page.each do |record|
|
|
299
|
-
yield record
|
|
300
|
-
end
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
def to_s
|
|
304
|
-
'<Twilio::REST::Conversations::V1PageMetadata>';
|
|
305
|
-
end
|
|
306
|
-
end
|
|
307
|
-
class ConfigurationListResponse < InstanceListResource
|
|
308
|
-
|
|
309
|
-
# @param [Array<ConfigurationInstance>] instance
|
|
310
|
-
# @param [Hash{String => Object}] headers
|
|
311
|
-
# @param [Integer] status_code
|
|
312
|
-
def initialize(version, payload, key, limit = :unset)
|
|
313
|
-
data_list = payload.body[key] || []
|
|
314
|
-
if limit != :unset
|
|
315
|
-
data_list = data_list[0, limit]
|
|
316
|
-
end
|
|
317
|
-
@configuration = data_list.map do |data|
|
|
318
|
-
ConfigurationInstance.new(version, data)
|
|
319
|
-
end
|
|
320
|
-
@headers = payload.headers
|
|
321
|
-
@status_code = payload.status_code
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
def configuration
|
|
325
|
-
@configuration
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
def headers
|
|
329
|
-
@headers
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
def status_code
|
|
333
|
-
@status_code
|
|
334
|
-
end
|
|
335
|
-
end
|
|
336
|
-
|
|
337
278
|
class ConfigurationInstance < InstanceResource
|
|
338
279
|
##
|
|
339
280
|
# Initialize the ConfigurationInstance
|
|
@@ -37,8 +37,8 @@ module Twilio
|
|
|
37
37
|
# Create the MessageInstance
|
|
38
38
|
# @param [String] author The channel specific identifier of the message's author. Defaults to `system`.
|
|
39
39
|
# @param [String] body The content of the message, can be up to 1,600 characters long.
|
|
40
|
-
# @param [Time] date_created The date that this resource was created.
|
|
41
|
-
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
|
|
40
|
+
# @param [Time] date_created The date that this resource was created. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
41
|
+
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
42
42
|
# @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
|
|
43
43
|
# @param [String] media_sid The Media SID to be attached to the new Message.
|
|
44
44
|
# @param [String] content_sid The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
|
|
@@ -89,8 +89,8 @@ module Twilio
|
|
|
89
89
|
# Create the MessageInstanceMetadata
|
|
90
90
|
# @param [String] author The channel specific identifier of the message's author. Defaults to `system`.
|
|
91
91
|
# @param [String] body The content of the message, can be up to 1,600 characters long.
|
|
92
|
-
# @param [Time] date_created The date that this resource was created.
|
|
93
|
-
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
|
|
92
|
+
# @param [Time] date_created The date that this resource was created. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
93
|
+
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
94
94
|
# @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
|
|
95
95
|
# @param [String] media_sid The Media SID to be attached to the new Message.
|
|
96
96
|
# @param [String] content_sid The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
|
|
@@ -384,8 +384,8 @@ module Twilio
|
|
|
384
384
|
# Update the MessageInstance
|
|
385
385
|
# @param [String] author The channel specific identifier of the message's author. Defaults to `system`.
|
|
386
386
|
# @param [String] body The content of the message, can be up to 1,600 characters long.
|
|
387
|
-
# @param [Time] date_created The date that this resource was created.
|
|
388
|
-
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
|
|
387
|
+
# @param [Time] date_created The date that this resource was created. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
388
|
+
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
389
389
|
# @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
|
|
390
390
|
# @param [String] subject The subject of the message, can be up to 256 characters long.
|
|
391
391
|
# @param [ConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
|
|
@@ -428,8 +428,8 @@ module Twilio
|
|
|
428
428
|
# Update the MessageInstanceMetadata
|
|
429
429
|
# @param [String] author The channel specific identifier of the message's author. Defaults to `system`.
|
|
430
430
|
# @param [String] body The content of the message, can be up to 1,600 characters long.
|
|
431
|
-
# @param [Time] date_created The date that this resource was created.
|
|
432
|
-
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
|
|
431
|
+
# @param [Time] date_created The date that this resource was created. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
432
|
+
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
433
433
|
# @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
|
|
434
434
|
# @param [String] subject The subject of the message, can be up to 256 characters long.
|
|
435
435
|
# @param [ConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
|
|
@@ -809,8 +809,8 @@ module Twilio
|
|
|
809
809
|
# Update the MessageInstance
|
|
810
810
|
# @param [String] author The channel specific identifier of the message's author. Defaults to `system`.
|
|
811
811
|
# @param [String] body The content of the message, can be up to 1,600 characters long.
|
|
812
|
-
# @param [Time] date_created The date that this resource was created.
|
|
813
|
-
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
|
|
812
|
+
# @param [Time] date_created The date that this resource was created. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
813
|
+
# @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited. If you set this parameter, Twilio ignores any milliseconds in the timestamp.
|
|
814
814
|
# @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
|
|
815
815
|
# @param [String] subject The subject of the message, can be up to 256 characters long.
|
|
816
816
|
# @param [ConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
|
|
@@ -196,65 +196,6 @@ module Twilio
|
|
|
196
196
|
end
|
|
197
197
|
end
|
|
198
198
|
|
|
199
|
-
class ConversationWithParticipantsPageMetadata < PageMetadata
|
|
200
|
-
attr_reader :conversation_with_participants_page
|
|
201
|
-
|
|
202
|
-
def initialize(version, response, solution, limit)
|
|
203
|
-
super(version, response)
|
|
204
|
-
@conversation_with_participants_page = []
|
|
205
|
-
@limit = limit
|
|
206
|
-
key = get_key(response.body)
|
|
207
|
-
records = 0
|
|
208
|
-
while( limit != :unset && records < limit )
|
|
209
|
-
@conversation_with_participants_page << ConversationWithParticipantsListResponse.new(version, @payload, key, limit - records)
|
|
210
|
-
@payload = self.next_page
|
|
211
|
-
break unless @payload
|
|
212
|
-
records += (@payload.body[key] || []).size
|
|
213
|
-
end
|
|
214
|
-
# Path Solution
|
|
215
|
-
@solution = solution
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
def each
|
|
219
|
-
@conversation_with_participants_page.each do |record|
|
|
220
|
-
yield record
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
def to_s
|
|
225
|
-
'<Twilio::REST::Conversations::V1PageMetadata>';
|
|
226
|
-
end
|
|
227
|
-
end
|
|
228
|
-
class ConversationWithParticipantsListResponse < InstanceListResource
|
|
229
|
-
|
|
230
|
-
# @param [Array<ConversationWithParticipantsInstance>] instance
|
|
231
|
-
# @param [Hash{String => Object}] headers
|
|
232
|
-
# @param [Integer] status_code
|
|
233
|
-
def initialize(version, payload, key, limit = :unset)
|
|
234
|
-
data_list = payload.body[key] || []
|
|
235
|
-
if limit != :unset
|
|
236
|
-
data_list = data_list[0, limit]
|
|
237
|
-
end
|
|
238
|
-
@conversation_with_participants = data_list.map do |data|
|
|
239
|
-
ConversationWithParticipantsInstance.new(version, data)
|
|
240
|
-
end
|
|
241
|
-
@headers = payload.headers
|
|
242
|
-
@status_code = payload.status_code
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
def conversation_with_participants
|
|
246
|
-
@conversation_with_participants
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def headers
|
|
250
|
-
@headers
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
def status_code
|
|
254
|
-
@status_code
|
|
255
|
-
end
|
|
256
|
-
end
|
|
257
|
-
|
|
258
199
|
class ConversationWithParticipantsInstance < InstanceResource
|
|
259
200
|
##
|
|
260
201
|
# Initialize the ConversationWithParticipantsInstance
|
|
@@ -327,65 +327,6 @@ module Twilio
|
|
|
327
327
|
end
|
|
328
328
|
end
|
|
329
329
|
|
|
330
|
-
class NotificationPageMetadata < PageMetadata
|
|
331
|
-
attr_reader :notification_page
|
|
332
|
-
|
|
333
|
-
def initialize(version, response, solution, limit)
|
|
334
|
-
super(version, response)
|
|
335
|
-
@notification_page = []
|
|
336
|
-
@limit = limit
|
|
337
|
-
key = get_key(response.body)
|
|
338
|
-
records = 0
|
|
339
|
-
while( limit != :unset && records < limit )
|
|
340
|
-
@notification_page << NotificationListResponse.new(version, @payload, key, limit - records)
|
|
341
|
-
@payload = self.next_page
|
|
342
|
-
break unless @payload
|
|
343
|
-
records += (@payload.body[key] || []).size
|
|
344
|
-
end
|
|
345
|
-
# Path Solution
|
|
346
|
-
@solution = solution
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
def each
|
|
350
|
-
@notification_page.each do |record|
|
|
351
|
-
yield record
|
|
352
|
-
end
|
|
353
|
-
end
|
|
354
|
-
|
|
355
|
-
def to_s
|
|
356
|
-
'<Twilio::REST::Conversations::V1PageMetadata>';
|
|
357
|
-
end
|
|
358
|
-
end
|
|
359
|
-
class NotificationListResponse < InstanceListResource
|
|
360
|
-
|
|
361
|
-
# @param [Array<NotificationInstance>] instance
|
|
362
|
-
# @param [Hash{String => Object}] headers
|
|
363
|
-
# @param [Integer] status_code
|
|
364
|
-
def initialize(version, payload, key, limit = :unset)
|
|
365
|
-
data_list = payload.body[key] || []
|
|
366
|
-
if limit != :unset
|
|
367
|
-
data_list = data_list[0, limit]
|
|
368
|
-
end
|
|
369
|
-
@notification = data_list.map do |data|
|
|
370
|
-
NotificationInstance.new(version, data)
|
|
371
|
-
end
|
|
372
|
-
@headers = payload.headers
|
|
373
|
-
@status_code = payload.status_code
|
|
374
|
-
end
|
|
375
|
-
|
|
376
|
-
def notification
|
|
377
|
-
@notification
|
|
378
|
-
end
|
|
379
|
-
|
|
380
|
-
def headers
|
|
381
|
-
@headers
|
|
382
|
-
end
|
|
383
|
-
|
|
384
|
-
def status_code
|
|
385
|
-
@status_code
|
|
386
|
-
end
|
|
387
|
-
end
|
|
388
|
-
|
|
389
330
|
class NotificationInstance < InstanceResource
|
|
390
331
|
##
|
|
391
332
|
# Initialize the NotificationInstance
|
|
@@ -273,65 +273,6 @@ module Twilio
|
|
|
273
273
|
end
|
|
274
274
|
end
|
|
275
275
|
|
|
276
|
-
class WebhookPageMetadata < PageMetadata
|
|
277
|
-
attr_reader :webhook_page
|
|
278
|
-
|
|
279
|
-
def initialize(version, response, solution, limit)
|
|
280
|
-
super(version, response)
|
|
281
|
-
@webhook_page = []
|
|
282
|
-
@limit = limit
|
|
283
|
-
key = get_key(response.body)
|
|
284
|
-
records = 0
|
|
285
|
-
while( limit != :unset && records < limit )
|
|
286
|
-
@webhook_page << WebhookListResponse.new(version, @payload, key, limit - records)
|
|
287
|
-
@payload = self.next_page
|
|
288
|
-
break unless @payload
|
|
289
|
-
records += (@payload.body[key] || []).size
|
|
290
|
-
end
|
|
291
|
-
# Path Solution
|
|
292
|
-
@solution = solution
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
def each
|
|
296
|
-
@webhook_page.each do |record|
|
|
297
|
-
yield record
|
|
298
|
-
end
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
def to_s
|
|
302
|
-
'<Twilio::REST::Conversations::V1PageMetadata>';
|
|
303
|
-
end
|
|
304
|
-
end
|
|
305
|
-
class WebhookListResponse < InstanceListResource
|
|
306
|
-
|
|
307
|
-
# @param [Array<WebhookInstance>] instance
|
|
308
|
-
# @param [Hash{String => Object}] headers
|
|
309
|
-
# @param [Integer] status_code
|
|
310
|
-
def initialize(version, payload, key, limit = :unset)
|
|
311
|
-
data_list = payload.body[key] || []
|
|
312
|
-
if limit != :unset
|
|
313
|
-
data_list = data_list[0, limit]
|
|
314
|
-
end
|
|
315
|
-
@webhook = data_list.map do |data|
|
|
316
|
-
WebhookInstance.new(version, data)
|
|
317
|
-
end
|
|
318
|
-
@headers = payload.headers
|
|
319
|
-
@status_code = payload.status_code
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
def webhook
|
|
323
|
-
@webhook
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def headers
|
|
327
|
-
@headers
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
def status_code
|
|
331
|
-
@status_code
|
|
332
|
-
end
|
|
333
|
-
end
|
|
334
|
-
|
|
335
276
|
class WebhookInstance < InstanceResource
|
|
336
277
|
##
|
|
337
278
|
# Initialize the WebhookInstance
|
|
@@ -294,65 +294,6 @@ module Twilio
|
|
|
294
294
|
end
|
|
295
295
|
end
|
|
296
296
|
|
|
297
|
-
class ConfigurationPageMetadata < PageMetadata
|
|
298
|
-
attr_reader :configuration_page
|
|
299
|
-
|
|
300
|
-
def initialize(version, response, solution, limit)
|
|
301
|
-
super(version, response)
|
|
302
|
-
@configuration_page = []
|
|
303
|
-
@limit = limit
|
|
304
|
-
key = get_key(response.body)
|
|
305
|
-
records = 0
|
|
306
|
-
while( limit != :unset && records < limit )
|
|
307
|
-
@configuration_page << ConfigurationListResponse.new(version, @payload, key, limit - records)
|
|
308
|
-
@payload = self.next_page
|
|
309
|
-
break unless @payload
|
|
310
|
-
records += (@payload.body[key] || []).size
|
|
311
|
-
end
|
|
312
|
-
# Path Solution
|
|
313
|
-
@solution = solution
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
def each
|
|
317
|
-
@configuration_page.each do |record|
|
|
318
|
-
yield record
|
|
319
|
-
end
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
def to_s
|
|
323
|
-
'<Twilio::REST::Conversations::V1PageMetadata>';
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
class ConfigurationListResponse < InstanceListResource
|
|
327
|
-
|
|
328
|
-
# @param [Array<ConfigurationInstance>] instance
|
|
329
|
-
# @param [Hash{String => Object}] headers
|
|
330
|
-
# @param [Integer] status_code
|
|
331
|
-
def initialize(version, payload, key, limit = :unset)
|
|
332
|
-
data_list = payload.body[key] || []
|
|
333
|
-
if limit != :unset
|
|
334
|
-
data_list = data_list[0, limit]
|
|
335
|
-
end
|
|
336
|
-
@configuration = data_list.map do |data|
|
|
337
|
-
ConfigurationInstance.new(version, data)
|
|
338
|
-
end
|
|
339
|
-
@headers = payload.headers
|
|
340
|
-
@status_code = payload.status_code
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
def configuration
|
|
344
|
-
@configuration
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
def headers
|
|
348
|
-
@headers
|
|
349
|
-
end
|
|
350
|
-
|
|
351
|
-
def status_code
|
|
352
|
-
@status_code
|
|
353
|
-
end
|
|
354
|
-
end
|
|
355
|
-
|
|
356
297
|
class ConfigurationInstance < InstanceResource
|
|
357
298
|
##
|
|
358
299
|
# Initialize the ConfigurationInstance
|