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
|
@@ -212,65 +212,6 @@ module Twilio
|
|
|
212
212
|
end
|
|
213
213
|
end
|
|
214
214
|
|
|
215
|
-
class WorkflowRealTimeStatisticsPageMetadata < PageMetadata
|
|
216
|
-
attr_reader :workflow_real_time_statistics_page
|
|
217
|
-
|
|
218
|
-
def initialize(version, response, solution, limit)
|
|
219
|
-
super(version, response)
|
|
220
|
-
@workflow_real_time_statistics_page = []
|
|
221
|
-
@limit = limit
|
|
222
|
-
key = get_key(response.body)
|
|
223
|
-
records = 0
|
|
224
|
-
while( limit != :unset && records < limit )
|
|
225
|
-
@workflow_real_time_statistics_page << WorkflowRealTimeStatisticsListResponse.new(version, @payload, key, limit - records)
|
|
226
|
-
@payload = self.next_page
|
|
227
|
-
break unless @payload
|
|
228
|
-
records += (@payload.body[key] || []).size
|
|
229
|
-
end
|
|
230
|
-
# Path Solution
|
|
231
|
-
@solution = solution
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
def each
|
|
235
|
-
@workflow_real_time_statistics_page.each do |record|
|
|
236
|
-
yield record
|
|
237
|
-
end
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
def to_s
|
|
241
|
-
'<Twilio::REST::Taskrouter::V1PageMetadata>';
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
class WorkflowRealTimeStatisticsListResponse < InstanceListResource
|
|
245
|
-
|
|
246
|
-
# @param [Array<WorkflowRealTimeStatisticsInstance>] instance
|
|
247
|
-
# @param [Hash{String => Object}] headers
|
|
248
|
-
# @param [Integer] status_code
|
|
249
|
-
def initialize(version, payload, key, limit = :unset)
|
|
250
|
-
data_list = payload.body[key] || []
|
|
251
|
-
if limit != :unset
|
|
252
|
-
data_list = data_list[0, limit]
|
|
253
|
-
end
|
|
254
|
-
@workflow_real_time_statistics = data_list.map do |data|
|
|
255
|
-
WorkflowRealTimeStatisticsInstance.new(version, data)
|
|
256
|
-
end
|
|
257
|
-
@headers = payload.headers
|
|
258
|
-
@status_code = payload.status_code
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def workflow_real_time_statistics
|
|
262
|
-
@workflow_real_time_statistics
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def headers
|
|
266
|
-
@headers
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
def status_code
|
|
270
|
-
@status_code
|
|
271
|
-
end
|
|
272
|
-
end
|
|
273
|
-
|
|
274
215
|
class WorkflowRealTimeStatisticsInstance < InstanceResource
|
|
275
216
|
##
|
|
276
217
|
# Initialize the WorkflowRealTimeStatisticsInstance
|
|
@@ -236,65 +236,6 @@ module Twilio
|
|
|
236
236
|
end
|
|
237
237
|
end
|
|
238
238
|
|
|
239
|
-
class WorkflowStatisticsPageMetadata < PageMetadata
|
|
240
|
-
attr_reader :workflow_statistics_page
|
|
241
|
-
|
|
242
|
-
def initialize(version, response, solution, limit)
|
|
243
|
-
super(version, response)
|
|
244
|
-
@workflow_statistics_page = []
|
|
245
|
-
@limit = limit
|
|
246
|
-
key = get_key(response.body)
|
|
247
|
-
records = 0
|
|
248
|
-
while( limit != :unset && records < limit )
|
|
249
|
-
@workflow_statistics_page << WorkflowStatisticsListResponse.new(version, @payload, key, limit - records)
|
|
250
|
-
@payload = self.next_page
|
|
251
|
-
break unless @payload
|
|
252
|
-
records += (@payload.body[key] || []).size
|
|
253
|
-
end
|
|
254
|
-
# Path Solution
|
|
255
|
-
@solution = solution
|
|
256
|
-
end
|
|
257
|
-
|
|
258
|
-
def each
|
|
259
|
-
@workflow_statistics_page.each do |record|
|
|
260
|
-
yield record
|
|
261
|
-
end
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
def to_s
|
|
265
|
-
'<Twilio::REST::Taskrouter::V1PageMetadata>';
|
|
266
|
-
end
|
|
267
|
-
end
|
|
268
|
-
class WorkflowStatisticsListResponse < InstanceListResource
|
|
269
|
-
|
|
270
|
-
# @param [Array<WorkflowStatisticsInstance>] instance
|
|
271
|
-
# @param [Hash{String => Object}] headers
|
|
272
|
-
# @param [Integer] status_code
|
|
273
|
-
def initialize(version, payload, key, limit = :unset)
|
|
274
|
-
data_list = payload.body[key] || []
|
|
275
|
-
if limit != :unset
|
|
276
|
-
data_list = data_list[0, limit]
|
|
277
|
-
end
|
|
278
|
-
@workflow_statistics = data_list.map do |data|
|
|
279
|
-
WorkflowStatisticsInstance.new(version, data)
|
|
280
|
-
end
|
|
281
|
-
@headers = payload.headers
|
|
282
|
-
@status_code = payload.status_code
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
def workflow_statistics
|
|
286
|
-
@workflow_statistics
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
def headers
|
|
290
|
-
@headers
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
def status_code
|
|
294
|
-
@status_code
|
|
295
|
-
end
|
|
296
|
-
end
|
|
297
|
-
|
|
298
239
|
class WorkflowStatisticsInstance < InstanceResource
|
|
299
240
|
##
|
|
300
241
|
# Initialize the WorkflowStatisticsInstance
|
|
@@ -232,65 +232,6 @@ module Twilio
|
|
|
232
232
|
end
|
|
233
233
|
end
|
|
234
234
|
|
|
235
|
-
class WorkspaceCumulativeStatisticsPageMetadata < PageMetadata
|
|
236
|
-
attr_reader :workspace_cumulative_statistics_page
|
|
237
|
-
|
|
238
|
-
def initialize(version, response, solution, limit)
|
|
239
|
-
super(version, response)
|
|
240
|
-
@workspace_cumulative_statistics_page = []
|
|
241
|
-
@limit = limit
|
|
242
|
-
key = get_key(response.body)
|
|
243
|
-
records = 0
|
|
244
|
-
while( limit != :unset && records < limit )
|
|
245
|
-
@workspace_cumulative_statistics_page << WorkspaceCumulativeStatisticsListResponse.new(version, @payload, key, limit - records)
|
|
246
|
-
@payload = self.next_page
|
|
247
|
-
break unless @payload
|
|
248
|
-
records += (@payload.body[key] || []).size
|
|
249
|
-
end
|
|
250
|
-
# Path Solution
|
|
251
|
-
@solution = solution
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
def each
|
|
255
|
-
@workspace_cumulative_statistics_page.each do |record|
|
|
256
|
-
yield record
|
|
257
|
-
end
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def to_s
|
|
261
|
-
'<Twilio::REST::Taskrouter::V1PageMetadata>';
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
class WorkspaceCumulativeStatisticsListResponse < InstanceListResource
|
|
265
|
-
|
|
266
|
-
# @param [Array<WorkspaceCumulativeStatisticsInstance>] instance
|
|
267
|
-
# @param [Hash{String => Object}] headers
|
|
268
|
-
# @param [Integer] status_code
|
|
269
|
-
def initialize(version, payload, key, limit = :unset)
|
|
270
|
-
data_list = payload.body[key] || []
|
|
271
|
-
if limit != :unset
|
|
272
|
-
data_list = data_list[0, limit]
|
|
273
|
-
end
|
|
274
|
-
@workspace_cumulative_statistics = data_list.map do |data|
|
|
275
|
-
WorkspaceCumulativeStatisticsInstance.new(version, data)
|
|
276
|
-
end
|
|
277
|
-
@headers = payload.headers
|
|
278
|
-
@status_code = payload.status_code
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
def workspace_cumulative_statistics
|
|
282
|
-
@workspace_cumulative_statistics
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
def headers
|
|
286
|
-
@headers
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
def status_code
|
|
290
|
-
@status_code
|
|
291
|
-
end
|
|
292
|
-
end
|
|
293
|
-
|
|
294
235
|
class WorkspaceCumulativeStatisticsInstance < InstanceResource
|
|
295
236
|
##
|
|
296
237
|
# Initialize the WorkspaceCumulativeStatisticsInstance
|
|
@@ -208,65 +208,6 @@ module Twilio
|
|
|
208
208
|
end
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
class WorkspaceRealTimeStatisticsPageMetadata < PageMetadata
|
|
212
|
-
attr_reader :workspace_real_time_statistics_page
|
|
213
|
-
|
|
214
|
-
def initialize(version, response, solution, limit)
|
|
215
|
-
super(version, response)
|
|
216
|
-
@workspace_real_time_statistics_page = []
|
|
217
|
-
@limit = limit
|
|
218
|
-
key = get_key(response.body)
|
|
219
|
-
records = 0
|
|
220
|
-
while( limit != :unset && records < limit )
|
|
221
|
-
@workspace_real_time_statistics_page << WorkspaceRealTimeStatisticsListResponse.new(version, @payload, key, limit - records)
|
|
222
|
-
@payload = self.next_page
|
|
223
|
-
break unless @payload
|
|
224
|
-
records += (@payload.body[key] || []).size
|
|
225
|
-
end
|
|
226
|
-
# Path Solution
|
|
227
|
-
@solution = solution
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def each
|
|
231
|
-
@workspace_real_time_statistics_page.each do |record|
|
|
232
|
-
yield record
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def to_s
|
|
237
|
-
'<Twilio::REST::Taskrouter::V1PageMetadata>';
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
class WorkspaceRealTimeStatisticsListResponse < InstanceListResource
|
|
241
|
-
|
|
242
|
-
# @param [Array<WorkspaceRealTimeStatisticsInstance>] instance
|
|
243
|
-
# @param [Hash{String => Object}] headers
|
|
244
|
-
# @param [Integer] status_code
|
|
245
|
-
def initialize(version, payload, key, limit = :unset)
|
|
246
|
-
data_list = payload.body[key] || []
|
|
247
|
-
if limit != :unset
|
|
248
|
-
data_list = data_list[0, limit]
|
|
249
|
-
end
|
|
250
|
-
@workspace_real_time_statistics = data_list.map do |data|
|
|
251
|
-
WorkspaceRealTimeStatisticsInstance.new(version, data)
|
|
252
|
-
end
|
|
253
|
-
@headers = payload.headers
|
|
254
|
-
@status_code = payload.status_code
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def workspace_real_time_statistics
|
|
258
|
-
@workspace_real_time_statistics
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def headers
|
|
262
|
-
@headers
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def status_code
|
|
266
|
-
@status_code
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
|
|
270
211
|
class WorkspaceRealTimeStatisticsInstance < InstanceResource
|
|
271
212
|
##
|
|
272
213
|
# Initialize the WorkspaceRealTimeStatisticsInstance
|
|
@@ -232,65 +232,6 @@ module Twilio
|
|
|
232
232
|
end
|
|
233
233
|
end
|
|
234
234
|
|
|
235
|
-
class WorkspaceStatisticsPageMetadata < PageMetadata
|
|
236
|
-
attr_reader :workspace_statistics_page
|
|
237
|
-
|
|
238
|
-
def initialize(version, response, solution, limit)
|
|
239
|
-
super(version, response)
|
|
240
|
-
@workspace_statistics_page = []
|
|
241
|
-
@limit = limit
|
|
242
|
-
key = get_key(response.body)
|
|
243
|
-
records = 0
|
|
244
|
-
while( limit != :unset && records < limit )
|
|
245
|
-
@workspace_statistics_page << WorkspaceStatisticsListResponse.new(version, @payload, key, limit - records)
|
|
246
|
-
@payload = self.next_page
|
|
247
|
-
break unless @payload
|
|
248
|
-
records += (@payload.body[key] || []).size
|
|
249
|
-
end
|
|
250
|
-
# Path Solution
|
|
251
|
-
@solution = solution
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
def each
|
|
255
|
-
@workspace_statistics_page.each do |record|
|
|
256
|
-
yield record
|
|
257
|
-
end
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def to_s
|
|
261
|
-
'<Twilio::REST::Taskrouter::V1PageMetadata>';
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
class WorkspaceStatisticsListResponse < InstanceListResource
|
|
265
|
-
|
|
266
|
-
# @param [Array<WorkspaceStatisticsInstance>] instance
|
|
267
|
-
# @param [Hash{String => Object}] headers
|
|
268
|
-
# @param [Integer] status_code
|
|
269
|
-
def initialize(version, payload, key, limit = :unset)
|
|
270
|
-
data_list = payload.body[key] || []
|
|
271
|
-
if limit != :unset
|
|
272
|
-
data_list = data_list[0, limit]
|
|
273
|
-
end
|
|
274
|
-
@workspace_statistics = data_list.map do |data|
|
|
275
|
-
WorkspaceStatisticsInstance.new(version, data)
|
|
276
|
-
end
|
|
277
|
-
@headers = payload.headers
|
|
278
|
-
@status_code = payload.status_code
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
def workspace_statistics
|
|
282
|
-
@workspace_statistics
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
def headers
|
|
286
|
-
@headers
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
def status_code
|
|
290
|
-
@status_code
|
|
291
|
-
end
|
|
292
|
-
end
|
|
293
|
-
|
|
294
235
|
class WorkspaceStatisticsInstance < InstanceResource
|
|
295
236
|
##
|
|
296
237
|
# Initialize the WorkspaceStatisticsInstance
|
|
@@ -260,65 +260,6 @@ module Twilio
|
|
|
260
260
|
end
|
|
261
261
|
end
|
|
262
262
|
|
|
263
|
-
class RecordingPageMetadata < PageMetadata
|
|
264
|
-
attr_reader :recording_page
|
|
265
|
-
|
|
266
|
-
def initialize(version, response, solution, limit)
|
|
267
|
-
super(version, response)
|
|
268
|
-
@recording_page = []
|
|
269
|
-
@limit = limit
|
|
270
|
-
key = get_key(response.body)
|
|
271
|
-
records = 0
|
|
272
|
-
while( limit != :unset && records < limit )
|
|
273
|
-
@recording_page << RecordingListResponse.new(version, @payload, key, limit - records)
|
|
274
|
-
@payload = self.next_page
|
|
275
|
-
break unless @payload
|
|
276
|
-
records += (@payload.body[key] || []).size
|
|
277
|
-
end
|
|
278
|
-
# Path Solution
|
|
279
|
-
@solution = solution
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
def each
|
|
283
|
-
@recording_page.each do |record|
|
|
284
|
-
yield record
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
|
-
|
|
288
|
-
def to_s
|
|
289
|
-
'<Twilio::REST::Trunking::V1PageMetadata>';
|
|
290
|
-
end
|
|
291
|
-
end
|
|
292
|
-
class RecordingListResponse < InstanceListResource
|
|
293
|
-
|
|
294
|
-
# @param [Array<RecordingInstance>] instance
|
|
295
|
-
# @param [Hash{String => Object}] headers
|
|
296
|
-
# @param [Integer] status_code
|
|
297
|
-
def initialize(version, payload, key, limit = :unset)
|
|
298
|
-
data_list = payload.body[key] || []
|
|
299
|
-
if limit != :unset
|
|
300
|
-
data_list = data_list[0, limit]
|
|
301
|
-
end
|
|
302
|
-
@recording = data_list.map do |data|
|
|
303
|
-
RecordingInstance.new(version, data)
|
|
304
|
-
end
|
|
305
|
-
@headers = payload.headers
|
|
306
|
-
@status_code = payload.status_code
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
def recording
|
|
310
|
-
@recording
|
|
311
|
-
end
|
|
312
|
-
|
|
313
|
-
def headers
|
|
314
|
-
@headers
|
|
315
|
-
end
|
|
316
|
-
|
|
317
|
-
def status_code
|
|
318
|
-
@status_code
|
|
319
|
-
end
|
|
320
|
-
end
|
|
321
|
-
|
|
322
263
|
class RecordingInstance < InstanceResource
|
|
323
264
|
##
|
|
324
265
|
# Initialize the RecordingInstance
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Trusthub
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Trusthub < TrusthubBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class A2PBrandRegistrationList < ListResource
|
|
21
|
+
|
|
22
|
+
class TrusthubV1A2pBrandRegistrationRequest
|
|
23
|
+
# @param [brand_type]: [String] The type of brand being registered.
|
|
24
|
+
# @param [theme_set_id]: [String] Theme ID for styling the inquiry form.
|
|
25
|
+
# @param [friendly_name]: [String] A human-readable name for the brand registration.
|
|
26
|
+
# @param [notification_email]: [String] The email address to receive notifications about the registration.
|
|
27
|
+
# @param [business_name]: [String] The legal name of the business.
|
|
28
|
+
# @param [business_registration_authority]: [String] The authority with which the business is registered.
|
|
29
|
+
# @param [business_registration_number]: [String] The business registration number (e.g., EIN, CBN, ACN). Maximum 21 characters.
|
|
30
|
+
# @param [business_industry]: [String] The industry of the business.
|
|
31
|
+
# @param [business_website]: [String] The business website URL (must use https://).
|
|
32
|
+
# @param [business_type]: [String] The type of business entity.
|
|
33
|
+
# @param [business_stock_symbol]: [String] The stock symbol for publicly traded companies.
|
|
34
|
+
# @param [business_stock_exchange]: [String] The stock exchange where the business is listed.
|
|
35
|
+
# @param [business_tax_exempt_status]: [String] Nonprofit/political organization tax-exempt status per the U.S. tax code (e.g. 501c3, 501c1, 527). A value of 527 (political organization) requires a Campaign Verify token in brandExternalVettingToken.
|
|
36
|
+
# @param [brand_external_vetting_token]: [String] Campaign Verify token for externally vetted brands.
|
|
37
|
+
# @param [business_street_address]: [String] The street address of the business.
|
|
38
|
+
# @param [business_street_address2]: [String] Additional street address information.
|
|
39
|
+
# @param [business_city]: [String] The city of the business.
|
|
40
|
+
# @param [business_state_province_region]: [String] The state, province, or region of the business.
|
|
41
|
+
# @param [business_postal_code]: [String] The postal code of the business.
|
|
42
|
+
# @param [business_country]: [String] The two-letter ISO country code of the business.
|
|
43
|
+
# @param [business_contact_first_name]: [String] The first name of the business contact.
|
|
44
|
+
# @param [business_contact_last_name]: [String] The last name of the business contact.
|
|
45
|
+
# @param [business_contact_email]: [String] The email address of the business contact.
|
|
46
|
+
# @param [business_contact_phone]: [String] The phone number of the business contact in E.164 format.
|
|
47
|
+
# @param [authorized_contact_verification_email]: [String] The email address for authorized contact verification.
|
|
48
|
+
# @param [authorized_contact_mobile_phone_number_e164]: [String] The mobile phone number for authorized contact in E.164 format.
|
|
49
|
+
# @param [is_test]: [Boolean] Whether this is a test brand registration.
|
|
50
|
+
# @param [skip_automatic_sec_vet]: [Boolean] Whether to skip automatic secondary vetting.
|
|
51
|
+
attr_accessor :brand_type, :theme_set_id, :friendly_name, :notification_email, :business_name, :business_registration_authority, :business_registration_number, :business_industry, :business_website, :business_type, :business_stock_symbol, :business_stock_exchange, :business_tax_exempt_status, :brand_external_vetting_token, :business_street_address, :business_street_address2, :business_city, :business_state_province_region, :business_postal_code, :business_country, :business_contact_first_name, :business_contact_last_name, :business_contact_email, :business_contact_phone, :authorized_contact_verification_email, :authorized_contact_mobile_phone_number_e164, :is_test, :skip_automatic_sec_vet
|
|
52
|
+
def initialize(payload)
|
|
53
|
+
@brand_type = payload["brand_type"]
|
|
54
|
+
@theme_set_id = payload["theme_set_id"]
|
|
55
|
+
@friendly_name = payload["friendly_name"]
|
|
56
|
+
@notification_email = payload["notification_email"]
|
|
57
|
+
@business_name = payload["business_name"]
|
|
58
|
+
@business_registration_authority = payload["business_registration_authority"]
|
|
59
|
+
@business_registration_number = payload["business_registration_number"]
|
|
60
|
+
@business_industry = payload["business_industry"]
|
|
61
|
+
@business_website = payload["business_website"]
|
|
62
|
+
@business_type = payload["business_type"]
|
|
63
|
+
@business_stock_symbol = payload["business_stock_symbol"]
|
|
64
|
+
@business_stock_exchange = payload["business_stock_exchange"]
|
|
65
|
+
@business_tax_exempt_status = payload["business_tax_exempt_status"]
|
|
66
|
+
@brand_external_vetting_token = payload["brand_external_vetting_token"]
|
|
67
|
+
@business_street_address = payload["business_street_address"]
|
|
68
|
+
@business_street_address2 = payload["business_street_address2"]
|
|
69
|
+
@business_city = payload["business_city"]
|
|
70
|
+
@business_state_province_region = payload["business_state_province_region"]
|
|
71
|
+
@business_postal_code = payload["business_postal_code"]
|
|
72
|
+
@business_country = payload["business_country"]
|
|
73
|
+
@business_contact_first_name = payload["business_contact_first_name"]
|
|
74
|
+
@business_contact_last_name = payload["business_contact_last_name"]
|
|
75
|
+
@business_contact_email = payload["business_contact_email"]
|
|
76
|
+
@business_contact_phone = payload["business_contact_phone"]
|
|
77
|
+
@authorized_contact_verification_email = payload["authorized_contact_verification_email"]
|
|
78
|
+
@authorized_contact_mobile_phone_number_e164 = payload["authorized_contact_mobile_phone_number_e164"]
|
|
79
|
+
@is_test = payload["is_test"]
|
|
80
|
+
@skip_automatic_sec_vet = payload["skip_automatic_sec_vet"]
|
|
81
|
+
end
|
|
82
|
+
def to_json(options = {})
|
|
83
|
+
{
|
|
84
|
+
"brandType": @brand_type,
|
|
85
|
+
"themeSetId": @theme_set_id,
|
|
86
|
+
"friendlyName": @friendly_name,
|
|
87
|
+
"notificationEmail": @notification_email,
|
|
88
|
+
"businessName": @business_name,
|
|
89
|
+
"businessRegistrationAuthority": @business_registration_authority,
|
|
90
|
+
"businessRegistrationNumber": @business_registration_number,
|
|
91
|
+
"businessIndustry": @business_industry,
|
|
92
|
+
"businessWebsite": @business_website,
|
|
93
|
+
"businessType": @business_type,
|
|
94
|
+
"businessStockSymbol": @business_stock_symbol,
|
|
95
|
+
"businessStockExchange": @business_stock_exchange,
|
|
96
|
+
"businessTaxExemptStatus": @business_tax_exempt_status,
|
|
97
|
+
"brandExternalVettingToken": @brand_external_vetting_token,
|
|
98
|
+
"businessStreetAddress": @business_street_address,
|
|
99
|
+
"businessStreetAddress2": @business_street_address2,
|
|
100
|
+
"businessCity": @business_city,
|
|
101
|
+
"businessStateProvinceRegion": @business_state_province_region,
|
|
102
|
+
"businessPostalCode": @business_postal_code,
|
|
103
|
+
"businessCountry": @business_country,
|
|
104
|
+
"businessContactFirstName": @business_contact_first_name,
|
|
105
|
+
"businessContactLastName": @business_contact_last_name,
|
|
106
|
+
"businessContactEmail": @business_contact_email,
|
|
107
|
+
"businessContactPhone": @business_contact_phone,
|
|
108
|
+
"authorizedContactVerificationEmail": @authorized_contact_verification_email,
|
|
109
|
+
"authorizedContactMobilePhoneNumberE164": @authorized_contact_mobile_phone_number_e164,
|
|
110
|
+
"isTest": @is_test,
|
|
111
|
+
"skipAutomaticSecVet": @skip_automatic_sec_vet,
|
|
112
|
+
}.to_json(options)
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
##
|
|
118
|
+
# Initialize the A2PBrandRegistrationList
|
|
119
|
+
# @param [Version] version Version that contains the resource
|
|
120
|
+
# @return [A2PBrandRegistrationList] A2PBrandRegistrationList
|
|
121
|
+
def initialize(version)
|
|
122
|
+
super(version)
|
|
123
|
+
|
|
124
|
+
# Path Solution
|
|
125
|
+
@solution = { }
|
|
126
|
+
@uri = "/A2PBrandRegistrations"
|
|
127
|
+
|
|
128
|
+
end
|
|
129
|
+
##
|
|
130
|
+
# Create the A2PBrandRegistrationInstance
|
|
131
|
+
# @param [TrusthubV1A2pBrandRegistrationRequest] trusthub_v1_a2p_brand_registration_request
|
|
132
|
+
# @return [A2PBrandRegistrationInstance] Created A2PBrandRegistrationInstance
|
|
133
|
+
def create(trusthub_v1_a2p_brand_registration_request: nil
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
137
|
+
headers['Content-Type'] = 'application/json'
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
payload = @version.create('POST', @uri, headers: headers, data: trusthub_v1_a2p_brand_registration_request.to_json)
|
|
143
|
+
A2PBrandRegistrationInstance.new(
|
|
144
|
+
@version,
|
|
145
|
+
payload,
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
##
|
|
150
|
+
# Create the A2PBrandRegistrationInstanceMetadata
|
|
151
|
+
# @param [TrusthubV1A2pBrandRegistrationRequest] trusthub_v1_a2p_brand_registration_request
|
|
152
|
+
# @return [A2PBrandRegistrationInstance] Created A2PBrandRegistrationInstance
|
|
153
|
+
def create_with_metadata(trusthub_v1_a2p_brand_registration_request: nil
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
157
|
+
headers['Content-Type'] = 'application/json'
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
response = @version.create_with_metadata('POST', @uri, headers: headers, data: trusthub_v1_a2p_brand_registration_request.to_json)
|
|
163
|
+
a2_p_brand_registration_instance = A2PBrandRegistrationInstance.new(
|
|
164
|
+
@version,
|
|
165
|
+
response.body,
|
|
166
|
+
)
|
|
167
|
+
A2PBrandRegistrationInstanceMetadata.new(
|
|
168
|
+
@version,
|
|
169
|
+
a2_p_brand_registration_instance,
|
|
170
|
+
response.headers,
|
|
171
|
+
response.status_code
|
|
172
|
+
)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
# Provide a user friendly representation
|
|
179
|
+
def to_s
|
|
180
|
+
'#<Twilio.Trusthub.V1.A2PBrandRegistrationList>'
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
class A2PBrandRegistrationPage < Page
|
|
185
|
+
##
|
|
186
|
+
# Initialize the A2PBrandRegistrationPage
|
|
187
|
+
# @param [Version] version Version that contains the resource
|
|
188
|
+
# @param [Response] response Response from the API
|
|
189
|
+
# @param [Hash] solution Path solution for the resource
|
|
190
|
+
# @return [A2PBrandRegistrationPage] A2PBrandRegistrationPage
|
|
191
|
+
def initialize(version, response, solution)
|
|
192
|
+
super(version, response)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
# Path Solution
|
|
196
|
+
@solution = solution
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
##
|
|
200
|
+
# Build an instance of A2PBrandRegistrationInstance
|
|
201
|
+
# @param [Hash] payload Payload response from the API
|
|
202
|
+
# @return [A2PBrandRegistrationInstance] A2PBrandRegistrationInstance
|
|
203
|
+
def get_instance(payload)
|
|
204
|
+
A2PBrandRegistrationInstance.new(@version, payload)
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
##
|
|
208
|
+
# Provide a user friendly representation
|
|
209
|
+
def to_s
|
|
210
|
+
'<Twilio.Trusthub.V1.A2PBrandRegistrationPage>'
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
class A2PBrandRegistrationInstance < InstanceResource
|
|
215
|
+
##
|
|
216
|
+
# Initialize the A2PBrandRegistrationInstance
|
|
217
|
+
# @param [Version] version Version that contains the resource
|
|
218
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
219
|
+
# @param [String] account_sid The SID of the
|
|
220
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this A2PBrandRegistration
|
|
221
|
+
# resource.
|
|
222
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
223
|
+
# @return [A2PBrandRegistrationInstance] A2PBrandRegistrationInstance
|
|
224
|
+
def initialize(version, payload )
|
|
225
|
+
super(version)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
# Marshaled Properties
|
|
229
|
+
@properties = {
|
|
230
|
+
'id' => payload['id'],
|
|
231
|
+
'session_id' => payload['session_id'],
|
|
232
|
+
'session_token' => payload['session_token'],
|
|
233
|
+
}
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
##
|
|
238
|
+
# @return [String] The unique A2P Brand or Campaign Registration identifier, formatted as `tri1.us1.account.AC.../registration.BU...`.
|
|
239
|
+
def id
|
|
240
|
+
@properties['id']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
##
|
|
244
|
+
# @return [String] The Persona inquiry ID used to start the embedded compliance session.
|
|
245
|
+
def session_id
|
|
246
|
+
@properties['session_id']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
##
|
|
250
|
+
# @return [String] The Persona session token for embedding the compliance UI. Expires in 24 hours.
|
|
251
|
+
def session_token
|
|
252
|
+
@properties['session_token']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
##
|
|
256
|
+
# Provide a user friendly representation
|
|
257
|
+
def to_s
|
|
258
|
+
"<Twilio.Trusthub.V1.A2PBrandRegistrationInstance>"
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
##
|
|
262
|
+
# Provide a detailed, user friendly representation
|
|
263
|
+
def inspect
|
|
264
|
+
"<Twilio.Trusthub.V1.A2PBrandRegistrationInstance>"
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
end
|