twilio-ruby 6.8.0 → 7.10.7
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 +5 -5
- data/.dockerignore +1 -1
- data/.github/ISSUE_TEMPLATE/bug_report.yml +69 -0
- data/.github/workflows/test-and-deploy.yml +17 -8
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -0
- data/CHANGES.md +1303 -1
- data/Dockerfile +3 -2
- data/Gemfile +5 -0
- data/Makefile +4 -1
- data/README.md +7 -2
- data/UPGRADE.md +11 -0
- data/cluster/cluster_oauth_spec.rb +19 -0
- data/cluster/cluster_orgs_spec.rb +40 -0
- data/{cluster_spec.rb → cluster/cluster_spec.rb} +0 -2
- data/examples/public_oauth.rb +13 -0
- data/lib/twilio-ruby/auth_strategy/auth_strategy.rb +19 -0
- data/lib/twilio-ruby/auth_strategy/no_auth_strategy.rb +17 -0
- data/lib/twilio-ruby/auth_strategy/token_auth_strategy.rb +39 -0
- data/lib/twilio-ruby/base/client_base.rb +12 -2
- data/lib/twilio-ruby/credential/auth_type.rb +17 -0
- data/lib/twilio-ruby/credential/client_credential_provider.rb +28 -0
- data/lib/twilio-ruby/credential/credential_provider.rb +11 -0
- data/lib/twilio-ruby/credential/orgs_credential_provider.rb +30 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/framework/rest/api_v1_version.rb +22 -0
- data/lib/twilio-ruby/framework/rest/domain.rb +0 -1
- data/lib/twilio-ruby/framework/rest/error.rb +27 -0
- data/lib/twilio-ruby/framework/rest/page.rb +1 -0
- data/lib/twilio-ruby/framework/rest/page_metadata.rb +83 -0
- data/lib/twilio-ruby/framework/rest/resource.rb +16 -0
- data/lib/twilio-ruby/framework/rest/token_page.rb +73 -0
- data/lib/twilio-ruby/framework/rest/version.rb +91 -4
- data/lib/twilio-ruby/http/client_token_manager.rb +31 -0
- data/lib/twilio-ruby/http/http_client.rb +22 -5
- data/lib/twilio-ruby/http/org_token_manager.rb +31 -0
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +143 -1
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +64 -0
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +285 -0
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +177 -10
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +168 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +29 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +385 -42
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +427 -57
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +183 -20
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +183 -6
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +96 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +192 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +283 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +330 -19
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +1004 -207
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +1010 -213
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +559 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +109 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +186 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +550 -120
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +572 -86
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +263 -12
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +274 -36
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +285 -24
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +185 -8
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +250 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +507 -79
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +105 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +215 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +421 -52
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +191 -6
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +254 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +232 -11
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +299 -15
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +343 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +232 -8
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +229 -10
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +254 -19
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +297 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +398 -48
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +311 -18
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +208 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +335 -27
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +124 -7
- data/lib/twilio-ruby/rest/api/v2010/account.rb +271 -13
- data/lib/twilio-ruby/rest/api/v2010.rb +1 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +431 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +296 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +927 -0
- data/lib/twilio-ruby/rest/{microvisor/v1/app.rb → assistants/v1/knowledge/chunk.rb} +145 -169
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +871 -0
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +364 -0
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +360 -0
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +501 -0
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +847 -0
- data/lib/twilio-ruby/rest/assistants/v1.rb +104 -0
- data/lib/twilio-ruby/rest/assistants.rb +6 -0
- data/lib/twilio-ruby/rest/{autopilot_base.rb → assistants_base.rb} +6 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +183 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +163 -13
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +170 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +144 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +195 -8
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/chat/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +266 -16
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/chat/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +162 -7
- data/lib/twilio-ruby/rest/chat/v3.rb +6 -0
- data/lib/twilio-ruby/rest/client.rb +26 -11
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +280 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +144 -3
- data/lib/twilio-ruby/rest/content/v1/content.rb +1577 -10
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1.rb +1 -0
- data/lib/twilio-ruby/rest/content/v2/content.rb +433 -0
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +426 -0
- data/lib/twilio-ruby/rest/content/v2.rb +46 -0
- data/lib/twilio-ruby/rest/content_base.rb +6 -1
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +373 -39
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +206 -15
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +198 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +184 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +360 -37
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +367 -40
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +334 -26
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +421 -76
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +392 -0
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +341 -30
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +295 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +217 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +245 -28
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +200 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +216 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +185 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +363 -37
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +370 -40
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +337 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +425 -77
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +399 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +262 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +321 -24
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +283 -27
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +260 -14
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +318 -24
- data/lib/twilio-ruby/rest/conversations/v1.rb +12 -0
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +507 -0
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +698 -0
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +1208 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +1365 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +369 -0
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +745 -0
- data/lib/twilio-ruby/rest/conversations/v2.rb +142 -0
- data/lib/twilio-ruby/rest/conversations_base.rb +6 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +198 -8
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +183 -8
- data/lib/twilio-ruby/rest/events/v1/schema.rb +144 -3
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +96 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +104 -2
- data/lib/twilio-ruby/rest/events/v1/sink.rb +299 -16
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +298 -19
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +297 -22
- data/lib/twilio-ruby/rest/events/v1.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +288 -31
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +282 -18
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +216 -3
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +433 -60
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +172 -16
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +106 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +331 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +266 -18
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +305 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +109 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +143 -7
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +251 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +548 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +257 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +275 -5
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +629 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +708 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +390 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +572 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +607 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +376 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +547 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +400 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +327 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +312 -19
- data/lib/twilio-ruby/rest/flex_api/v1.rb +137 -0
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +515 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +125 -5
- data/lib/twilio-ruby/rest/flex_api/v2.rb +43 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +200 -12
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +1 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +471 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +328 -0
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +284 -0
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +647 -0
- data/lib/twilio-ruby/rest/iam/v1/role_permission.rb +327 -0
- data/lib/twilio-ruby/rest/iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +99 -0
- data/lib/twilio-ruby/rest/iam.rb +6 -0
- data/lib/twilio-ruby/rest/iam_base.rb +33 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +216 -19
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +162 -13
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +108 -9
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +106 -5
- data/lib/twilio-ruby/rest/insights/v1/call.rb +144 -1
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +267 -26
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +202 -10
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +202 -6
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +183 -8
- data/lib/twilio-ruby/rest/insights/v1/room.rb +194 -8
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +201 -10
- data/lib/twilio-ruby/rest/insights/v1.rb +3 -0
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +579 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +650 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +941 -0
- data/lib/twilio-ruby/rest/insights/v2.rb +82 -0
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +227 -0
- data/lib/twilio-ruby/rest/insights/v3/query.rb +394 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +46 -0
- data/lib/twilio-ruby/rest/insights_base.rb +11 -1
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +728 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +380 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +337 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +539 -0
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +392 -50
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +152 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +207 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +124 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +333 -30
- data/lib/twilio-ruby/rest/intelligence/v2.rb +125 -0
- data/lib/twilio-ruby/rest/intelligence/v3/configuration.rb +1073 -0
- data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +602 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator.rb +784 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator_result.rb +622 -0
- data/lib/twilio-ruby/rest/intelligence/v3/version.rb +556 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +120 -0
- data/lib/twilio-ruby/rest/intelligence_base.rb +6 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +262 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +325 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +865 -0
- data/lib/twilio-ruby/rest/{preview/sync.rb → knowledge/v1.rb} +17 -16
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +306 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +714 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb +739 -0
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +376 -0
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +355 -0
- data/lib/twilio-ruby/rest/knowledge/v2.rb +145 -0
- data/lib/twilio-ruby/rest/knowledge.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge_base.rb +43 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +170 -12
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -0
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +501 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +605 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +252 -44
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +351 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +229 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +99 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +483 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +509 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +563 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +252 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +743 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +342 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +511 -0
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +235 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +94 -0
- data/lib/twilio-ruby/rest/marketplace.rb +6 -0
- data/lib/twilio-ruby/rest/marketplace_base.rb +38 -0
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +362 -0
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +798 -0
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +843 -0
- data/lib/twilio-ruby/rest/memory/v1/event.rb +320 -0
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +710 -0
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +442 -0
- data/lib/twilio-ruby/rest/memory/v1/import.rb +574 -0
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +250 -0
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +786 -0
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +376 -0
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +721 -0
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +366 -0
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +349 -0
- data/lib/twilio-ruby/rest/memory/v1/store.rb +746 -0
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +336 -0
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +904 -0
- data/lib/twilio-ruby/rest/memory/v1.rb +475 -0
- data/lib/twilio-ruby/rest/memory.rb +6 -0
- data/lib/twilio-ruby/rest/{media_base.rb → memory_base.rb} +6 -6
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +96 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +229 -11
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +296 -17
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +151 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +210 -7
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +200 -12
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +344 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +113 -3
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +170 -4
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +379 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +282 -9
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +616 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +543 -30
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +103 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +453 -63
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +870 -83
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +95 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +46 -1
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +1017 -0
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +386 -0
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +237 -0
- data/lib/twilio-ruby/rest/messaging/v2.rb +72 -0
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +247 -0
- data/lib/twilio-ruby/rest/messaging/v3.rb +40 -0
- data/lib/twilio-ruby/rest/messaging_base.rb +11 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +188 -6
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +195 -7
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +336 -30
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +282 -17
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +173 -20
- data/lib/twilio-ruby/rest/notify/v1/service.rb +410 -57
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +190 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +221 -0
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +251 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +375 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +616 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +485 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +168 -26
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +242 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +301 -0
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +333 -0
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +403 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +252 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +125 -12
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +715 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +110 -5
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +270 -16
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +198 -5
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +430 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +448 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +142 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +215 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +248 -9
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +104 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +376 -30
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +218 -11
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +307 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +64 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +35 -0
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +484 -0
- data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
- data/lib/twilio-ruby/rest/numbers_base.rb +5 -0
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +149 -27
- data/lib/twilio-ruby/rest/oauth/v1.rb +4 -22
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +311 -0
- data/lib/twilio-ruby/rest/oauth/v2.rb +46 -0
- data/lib/twilio-ruby/rest/oauth.rb +2 -29
- data/lib/twilio-ruby/rest/oauth_base.rb +6 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +112 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +316 -30
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +406 -48
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +183 -8
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +182 -8
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +225 -11
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +304 -19
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +253 -16
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +328 -25
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +157 -7
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +308 -41
- data/lib/twilio-ruby/rest/preview/wireless.rb +3 -0
- data/lib/twilio-ruby/rest/preview.rb +1 -20
- data/lib/twilio-ruby/rest/preview_base.rb +0 -15
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/preview_iam/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +476 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +603 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +981 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +413 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +50 -0
- data/lib/twilio-ruby/rest/preview_iam.rb +9 -0
- data/lib/twilio-ruby/rest/{microvisor_base.rb → preview_iam_base.rb} +6 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +144 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +22 -4
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v2.rb +13 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +298 -16
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +210 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +231 -11
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +262 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +320 -23
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +350 -62
- data/lib/twilio-ruby/rest/proxy/v1.rb +1 -0
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2.rb +3 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +145 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +260 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +231 -10
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +191 -9
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +302 -17
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +252 -12
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +146 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +309 -21
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +256 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +302 -14
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +207 -7
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +333 -16
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +190 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +185 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +336 -21
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +115 -5
- data/lib/twilio-ruby/rest/studio/v2.rb +1 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +243 -17
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +326 -33
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +249 -15
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +188 -8
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +248 -11
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +266 -14
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +106 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +297 -24
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +239 -13
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +118 -5
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +306 -18
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +333 -25
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +337 -26
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +105 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +294 -13
- data/lib/twilio-ruby/rest/sync/v1/service.rb +341 -30
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +298 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +205 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +505 -117
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +411 -41
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +303 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +258 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +154 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +114 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +351 -27
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +493 -113
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +232 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +168 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +167 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +182 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +336 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +153 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +333 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +339 -29
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +326 -24
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +249 -10
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +190 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +357 -33
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +213 -5
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +656 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +474 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +327 -21
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +345 -39
- data/lib/twilio-ruby/rest/trusthub/v1.rb +31 -1
- data/lib/twilio-ruby/rest/verify/v2/form.rb +144 -3
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +208 -6
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +197 -6
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +402 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +106 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +299 -18
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +292 -26
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +164 -15
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +248 -9
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +479 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +387 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +357 -0
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +302 -15
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +301 -23
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +127 -7
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +332 -30
- data/lib/twilio-ruby/rest/verify/v2/service.rb +667 -65
- data/lib/twilio-ruby/rest/verify/v2/template.rb +104 -5
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +202 -10
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +179 -16
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +286 -17
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +376 -39
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/recording.rb +220 -7
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +145 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +138 -3
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +233 -9
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +136 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +216 -7
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +665 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +379 -39
- data/lib/twilio-ruby/rest/video/v1.rb +4 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +137 -3
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +368 -39
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +326 -24
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +287 -12
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +103 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +102 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +194 -8
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +183 -6
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +64 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +295 -14
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +291 -13
- data/lib/twilio-ruby/rest/voice/v1.rb +10 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +514 -0
- data/lib/twilio-ruby/rest/voice/v3.rb +50 -0
- data/lib/twilio-ruby/rest/voice_base.rb +6 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +278 -15
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +338 -24
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +102 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +343 -44
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +403 -24
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +4 -3
- metadata +193 -88
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -264
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -328
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
- data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
- data/lib/twilio-ruby/rest/autopilot.rb +0 -22
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -420
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -404
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -252
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -432
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
- data/lib/twilio-ruby/rest/media.rb +0 -35
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -358
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -351
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -208
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -374
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -367
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -427
- data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
- data/lib/twilio-ruby/rest/microvisor.rb +0 -24
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -229
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +0 -185
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -417
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -401
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -456
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -414
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -504
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +0 -49
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -449
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -445
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -448
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -505
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
- data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -406
|
@@ -42,6 +42,7 @@ module Twilio
|
|
|
42
42
|
# record:: Record the call
|
|
43
43
|
# trim:: Trim the recording
|
|
44
44
|
# recording_status_callback:: Recording status callback URL
|
|
45
|
+
# recording_configuration_id:: Configuration for the recording
|
|
45
46
|
# recording_status_callback_method:: Recording status callback URL method
|
|
46
47
|
# recording_status_callback_event:: Recording status callback events
|
|
47
48
|
# answer_on_bridge:: Preserve the ringing behavior of the inbound call until the Dialed call picks up
|
|
@@ -50,9 +51,10 @@ module Twilio
|
|
|
50
51
|
# sequential:: Used to determine if child TwiML nouns should be dialed in order, one after the other (sequential) or dial all at once (parallel). Default is false, parallel
|
|
51
52
|
# refer_url:: Webhook that will receive future SIP REFER requests
|
|
52
53
|
# refer_method:: The HTTP method to use for the refer Webhook
|
|
54
|
+
# events:: Subscription to events
|
|
53
55
|
# keyword_args:: additional attributes
|
|
54
|
-
def dial(number: nil, action: nil, method: nil, timeout: nil, hangup_on_star: nil, time_limit: nil, caller_id: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, answer_on_bridge: nil, ring_tone: nil, recording_track: nil, sequential: nil, refer_url: nil, refer_method: nil, **keyword_args)
|
|
55
|
-
dial = Dial.new(number: number, action: action, method: method, timeout: timeout, hangup_on_star: hangup_on_star, time_limit: time_limit, caller_id: caller_id, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, answer_on_bridge: answer_on_bridge, ring_tone: ring_tone, recording_track: recording_track, sequential: sequential, refer_url: refer_url, refer_method: refer_method, **keyword_args)
|
|
56
|
+
def dial(number: nil, action: nil, method: nil, timeout: nil, hangup_on_star: nil, time_limit: nil, caller_id: nil, record: nil, trim: nil, recording_status_callback: nil, recording_configuration_id: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, answer_on_bridge: nil, ring_tone: nil, recording_track: nil, sequential: nil, refer_url: nil, refer_method: nil, events: nil, **keyword_args)
|
|
57
|
+
dial = Dial.new(number: number, action: action, method: method, timeout: timeout, hangup_on_star: hangup_on_star, time_limit: time_limit, caller_id: caller_id, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_configuration_id: recording_configuration_id, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, answer_on_bridge: answer_on_bridge, ring_tone: ring_tone, recording_track: recording_track, sequential: sequential, refer_url: refer_url, refer_method: refer_method, events: events, **keyword_args)
|
|
56
58
|
|
|
57
59
|
yield(dial) if block_given?
|
|
58
60
|
append(dial)
|
|
@@ -171,9 +173,10 @@ module Twilio
|
|
|
171
173
|
# recording_status_callback_event:: Recording status callback events
|
|
172
174
|
# transcribe:: Transcribe the recording
|
|
173
175
|
# transcribe_callback:: Transcribe callback URL
|
|
176
|
+
# recording_configuration_id:: Configuration for the recording
|
|
174
177
|
# keyword_args:: additional attributes
|
|
175
|
-
def record(action: nil, method: nil, timeout: nil, finish_on_key: nil, max_length: nil, play_beep: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, transcribe: nil, transcribe_callback: nil, **keyword_args)
|
|
176
|
-
append(Record.new(action: action, method: method, timeout: timeout, finish_on_key: finish_on_key, max_length: max_length, play_beep: play_beep, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, transcribe: transcribe, transcribe_callback: transcribe_callback, **keyword_args))
|
|
178
|
+
def record(action: nil, method: nil, timeout: nil, finish_on_key: nil, max_length: nil, play_beep: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, transcribe: nil, transcribe_callback: nil, recording_configuration_id: nil, **keyword_args)
|
|
179
|
+
append(Record.new(action: action, method: method, timeout: timeout, finish_on_key: finish_on_key, max_length: max_length, play_beep: play_beep, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, transcribe: transcribe, transcribe_callback: transcribe_callback, recording_configuration_id: recording_configuration_id, **keyword_args))
|
|
177
180
|
end
|
|
178
181
|
|
|
179
182
|
##
|
|
@@ -371,18 +374,51 @@ module Twilio
|
|
|
371
374
|
yield(siprec) if block_given?
|
|
372
375
|
append(siprec)
|
|
373
376
|
end
|
|
377
|
+
|
|
378
|
+
##
|
|
379
|
+
# Create a new <Transcription> element
|
|
380
|
+
# name:: Friendly name given to the Transcription
|
|
381
|
+
# track:: Track to be analyze by the provider
|
|
382
|
+
# status_callback_url:: Status Callback URL
|
|
383
|
+
# status_callback_method:: Status Callback URL method
|
|
384
|
+
# inbound_track_label:: Friendly name given to the Inbound Track
|
|
385
|
+
# outbound_track_label:: Friendly name given to the Outbound Track Label
|
|
386
|
+
# partial_results:: Indicates if partial results are going to be send to the customer
|
|
387
|
+
# language_code:: Language Code used by the transcription engine
|
|
388
|
+
# transcription_engine:: Transcription Engine to be used
|
|
389
|
+
# profanity_filter:: Enable Profanity Filter
|
|
390
|
+
# speech_model:: Speech Model used by the transcription engine
|
|
391
|
+
# hints:: Hints to be provided to the transcription engine
|
|
392
|
+
# enable_automatic_punctuation:: Enable Automatic Punctuation
|
|
393
|
+
# intelligence_service:: The SID or the unique name of the Intelligence Service to be used
|
|
394
|
+
# keyword_args:: additional attributes
|
|
395
|
+
def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, **keyword_args)
|
|
396
|
+
transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, intelligence_service: intelligence_service, **keyword_args)
|
|
397
|
+
|
|
398
|
+
yield(transcription) if block_given?
|
|
399
|
+
append(transcription)
|
|
400
|
+
end
|
|
374
401
|
end
|
|
375
402
|
|
|
376
403
|
##
|
|
377
|
-
# <
|
|
378
|
-
class
|
|
404
|
+
# <Transcription> TwiML Noun
|
|
405
|
+
class Transcription < TwiML
|
|
379
406
|
def initialize(**keyword_args)
|
|
380
407
|
super(**keyword_args)
|
|
381
|
-
@name = '
|
|
408
|
+
@name = 'Transcription'
|
|
382
409
|
|
|
383
410
|
yield(self) if block_given?
|
|
384
411
|
end
|
|
385
412
|
|
|
413
|
+
##
|
|
414
|
+
# Create a new <Config> element
|
|
415
|
+
# name:: The name of the custom config
|
|
416
|
+
# value:: The value of the custom config
|
|
417
|
+
# keyword_args:: additional attributes
|
|
418
|
+
def config(name: nil, value: nil, **keyword_args)
|
|
419
|
+
append(Config.new(name: name, value: value, **keyword_args))
|
|
420
|
+
end
|
|
421
|
+
|
|
386
422
|
##
|
|
387
423
|
# Create a new <Parameter> element
|
|
388
424
|
# name:: The name of the custom parameter
|
|
@@ -404,6 +440,37 @@ module Twilio
|
|
|
404
440
|
end
|
|
405
441
|
end
|
|
406
442
|
|
|
443
|
+
##
|
|
444
|
+
# <Config> TwiML Noun
|
|
445
|
+
class Config < TwiML
|
|
446
|
+
def initialize(**keyword_args)
|
|
447
|
+
super(**keyword_args)
|
|
448
|
+
@name = 'Config'
|
|
449
|
+
|
|
450
|
+
yield(self) if block_given?
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
##
|
|
455
|
+
# <Siprec> TwiML Noun
|
|
456
|
+
class Siprec < TwiML
|
|
457
|
+
def initialize(**keyword_args)
|
|
458
|
+
super(**keyword_args)
|
|
459
|
+
@name = 'Siprec'
|
|
460
|
+
|
|
461
|
+
yield(self) if block_given?
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
##
|
|
465
|
+
# Create a new <Parameter> element
|
|
466
|
+
# name:: The name of the custom parameter
|
|
467
|
+
# value:: The value of the custom parameter
|
|
468
|
+
# keyword_args:: additional attributes
|
|
469
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
|
470
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
|
471
|
+
end
|
|
472
|
+
end
|
|
473
|
+
|
|
407
474
|
##
|
|
408
475
|
# <Stream> TwiML Noun
|
|
409
476
|
class Stream < TwiML
|
|
@@ -464,6 +531,55 @@ module Twilio
|
|
|
464
531
|
yield(siprec) if block_given?
|
|
465
532
|
append(siprec)
|
|
466
533
|
end
|
|
534
|
+
|
|
535
|
+
##
|
|
536
|
+
# Create a new <Transcription> element
|
|
537
|
+
# name:: Friendly name given to the Transcription
|
|
538
|
+
# track:: Track to be analyze by the provider
|
|
539
|
+
# status_callback_url:: Status Callback URL
|
|
540
|
+
# status_callback_method:: Status Callback URL method
|
|
541
|
+
# inbound_track_label:: Friendly name given to the Inbound Track
|
|
542
|
+
# outbound_track_label:: Friendly name given to the Outbound Track Label
|
|
543
|
+
# partial_results:: Indicates if partial results are going to be send to the customer
|
|
544
|
+
# language_code:: Language Code used by the transcription engine
|
|
545
|
+
# transcription_engine:: Transcription Engine to be used
|
|
546
|
+
# profanity_filter:: Enable Profanity Filter
|
|
547
|
+
# speech_model:: Speech Model used by the transcription engine
|
|
548
|
+
# hints:: Hints to be provided to the transcription engine
|
|
549
|
+
# enable_automatic_punctuation:: Enable Automatic Punctuation
|
|
550
|
+
# intelligence_service:: The SID or the unique name of the Intelligence Service to be used
|
|
551
|
+
# keyword_args:: additional attributes
|
|
552
|
+
def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, **keyword_args)
|
|
553
|
+
transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, intelligence_service: intelligence_service, **keyword_args)
|
|
554
|
+
|
|
555
|
+
yield(transcription) if block_given?
|
|
556
|
+
append(transcription)
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
##
|
|
560
|
+
# Create a new <Recording> element
|
|
561
|
+
# recording_status_callback:: Recording Status Callback URL
|
|
562
|
+
# recording_status_callback_method:: Recording Status Callback URL method
|
|
563
|
+
# recording_status_callback_event:: Recording Status Callback Events
|
|
564
|
+
# trim:: Trim the recording
|
|
565
|
+
# track:: To indicate which audio track should be recorded
|
|
566
|
+
# channels:: The recording channels for the final recording
|
|
567
|
+
# recording_configuration_id:: Configuration for the recording
|
|
568
|
+
# keyword_args:: additional attributes
|
|
569
|
+
def recording(recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, trim: nil, track: nil, channels: nil, recording_configuration_id: nil, **keyword_args)
|
|
570
|
+
append(Recording.new(recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, trim: trim, track: track, channels: channels, recording_configuration_id: recording_configuration_id, **keyword_args))
|
|
571
|
+
end
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
##
|
|
575
|
+
# <Recording> TwiML Noun
|
|
576
|
+
class Recording < TwiML
|
|
577
|
+
def initialize(**keyword_args)
|
|
578
|
+
super(**keyword_args)
|
|
579
|
+
@name = 'Recording'
|
|
580
|
+
|
|
581
|
+
yield(self) if block_given?
|
|
582
|
+
end
|
|
467
583
|
end
|
|
468
584
|
|
|
469
585
|
##
|
|
@@ -1574,6 +1690,7 @@ module Twilio
|
|
|
1574
1690
|
# wait_method:: Wait URL method
|
|
1575
1691
|
# max_participants:: Maximum number of participants
|
|
1576
1692
|
# record:: Record the conference
|
|
1693
|
+
# recording_configuration_id:: Configuration for the recording
|
|
1577
1694
|
# region:: Conference region
|
|
1578
1695
|
# coach:: Call coach
|
|
1579
1696
|
# trim:: Trim the conference recording
|
|
@@ -1587,8 +1704,8 @@ module Twilio
|
|
|
1587
1704
|
# jitter_buffer_size:: Size of jitter buffer for participant
|
|
1588
1705
|
# participant_label:: A label for participant
|
|
1589
1706
|
# keyword_args:: additional attributes
|
|
1590
|
-
def conference(name, muted: nil, beep: nil, start_conference_on_enter: nil, end_conference_on_exit: nil, wait_url: nil, wait_method: nil, max_participants: nil, record: nil, region: nil, coach: nil, trim: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, event_callback_url: nil, jitter_buffer_size: nil, participant_label: nil, **keyword_args)
|
|
1591
|
-
append(Conference.new(name, muted: muted, beep: beep, start_conference_on_enter: start_conference_on_enter, end_conference_on_exit: end_conference_on_exit, wait_url: wait_url, wait_method: wait_method, max_participants: max_participants, record: record, region: region, coach: coach, trim: trim, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, event_callback_url: event_callback_url, jitter_buffer_size: jitter_buffer_size, participant_label: participant_label, **keyword_args))
|
|
1707
|
+
def conference(name, muted: nil, beep: nil, start_conference_on_enter: nil, end_conference_on_exit: nil, wait_url: nil, wait_method: nil, max_participants: nil, record: nil, recording_configuration_id: nil, region: nil, coach: nil, trim: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, event_callback_url: nil, jitter_buffer_size: nil, participant_label: nil, **keyword_args)
|
|
1708
|
+
append(Conference.new(name, muted: muted, beep: beep, start_conference_on_enter: start_conference_on_enter, end_conference_on_exit: end_conference_on_exit, wait_url: wait_url, wait_method: wait_method, max_participants: max_participants, record: record, recording_configuration_id: recording_configuration_id, region: region, coach: coach, trim: trim, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, event_callback_url: event_callback_url, jitter_buffer_size: jitter_buffer_size, participant_label: participant_label, **keyword_args))
|
|
1592
1709
|
end
|
|
1593
1710
|
|
|
1594
1711
|
##
|
|
@@ -1651,8 +1768,11 @@ module Twilio
|
|
|
1651
1768
|
# machine_detection_speech_end_threshold:: Number of milliseconds of silence after speech activity
|
|
1652
1769
|
# machine_detection_silence_timeout:: Number of milliseconds of initial silence
|
|
1653
1770
|
# keyword_args:: additional attributes
|
|
1654
|
-
def sip(sip_url, username: nil, password: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, machine_detection: nil, amd_status_callback_method: nil, amd_status_callback: nil, machine_detection_timeout: nil, machine_detection_speech_threshold: nil, machine_detection_speech_end_threshold: nil, machine_detection_silence_timeout: nil, **keyword_args)
|
|
1655
|
-
|
|
1771
|
+
def sip(sip_url: nil, username: nil, password: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, machine_detection: nil, amd_status_callback_method: nil, amd_status_callback: nil, machine_detection_timeout: nil, machine_detection_speech_threshold: nil, machine_detection_speech_end_threshold: nil, machine_detection_silence_timeout: nil, **keyword_args)
|
|
1772
|
+
sip = Sip.new(sip_url: sip_url, username: username, password: password, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, machine_detection: machine_detection, amd_status_callback_method: amd_status_callback_method, amd_status_callback: amd_status_callback, machine_detection_timeout: machine_detection_timeout, machine_detection_speech_threshold: machine_detection_speech_threshold, machine_detection_speech_end_threshold: machine_detection_speech_end_threshold, machine_detection_silence_timeout: machine_detection_silence_timeout, **keyword_args)
|
|
1773
|
+
|
|
1774
|
+
yield(sip) if block_given?
|
|
1775
|
+
append(sip)
|
|
1656
1776
|
end
|
|
1657
1777
|
|
|
1658
1778
|
##
|
|
@@ -1672,6 +1792,30 @@ module Twilio
|
|
|
1672
1792
|
yield(application) if block_given?
|
|
1673
1793
|
append(application)
|
|
1674
1794
|
end
|
|
1795
|
+
|
|
1796
|
+
##
|
|
1797
|
+
# Create a new <WhatsApp> element
|
|
1798
|
+
# phone_number:: WhatsApp Phone Number to dial
|
|
1799
|
+
# url:: TwiML URL
|
|
1800
|
+
# method:: TwiML URL Method
|
|
1801
|
+
# status_callback_event:: Events to trigger status callback
|
|
1802
|
+
# status_callback:: Status Callback URL
|
|
1803
|
+
# status_callback_method:: Status Callback URL Method
|
|
1804
|
+
# keyword_args:: additional attributes
|
|
1805
|
+
def whats_app(phone_number, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
|
|
1806
|
+
append(WhatsApp.new(phone_number, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args))
|
|
1807
|
+
end
|
|
1808
|
+
end
|
|
1809
|
+
|
|
1810
|
+
##
|
|
1811
|
+
# <WhatsApp> TwiML Noun
|
|
1812
|
+
class WhatsApp < TwiML
|
|
1813
|
+
def initialize(phone_number, **keyword_args)
|
|
1814
|
+
super(**keyword_args)
|
|
1815
|
+
@name = 'WhatsApp'
|
|
1816
|
+
@value = phone_number
|
|
1817
|
+
yield(self) if block_given?
|
|
1818
|
+
end
|
|
1675
1819
|
end
|
|
1676
1820
|
|
|
1677
1821
|
##
|
|
@@ -1716,10 +1860,74 @@ module Twilio
|
|
|
1716
1860
|
##
|
|
1717
1861
|
# <Sip> TwiML Noun
|
|
1718
1862
|
class Sip < TwiML
|
|
1719
|
-
def initialize(sip_url, **keyword_args)
|
|
1863
|
+
def initialize(sip_url: nil, **keyword_args)
|
|
1720
1864
|
super(**keyword_args)
|
|
1721
1865
|
@name = 'Sip'
|
|
1722
|
-
@value = sip_url
|
|
1866
|
+
@value = sip_url unless sip_url.nil?
|
|
1867
|
+
yield(self) if block_given?
|
|
1868
|
+
end
|
|
1869
|
+
|
|
1870
|
+
##
|
|
1871
|
+
# Create a new <Uri> element
|
|
1872
|
+
# sip_url:: The SIP URI
|
|
1873
|
+
# priority:: The priority of this SIP URI
|
|
1874
|
+
# weight:: The weight of this SIP URI
|
|
1875
|
+
# username:: The username for authentication
|
|
1876
|
+
# password:: The password for authentication
|
|
1877
|
+
# keyword_args:: additional attributes
|
|
1878
|
+
def uri(sip_url: nil, priority: nil, weight: nil, username: nil, password: nil, **keyword_args)
|
|
1879
|
+
append(SipUri.new(sip_url: sip_url, priority: priority, weight: weight, username: username, password: password, **keyword_args))
|
|
1880
|
+
end
|
|
1881
|
+
|
|
1882
|
+
##
|
|
1883
|
+
# Create a new <Headers> element
|
|
1884
|
+
# keyword_args:: additional attributes
|
|
1885
|
+
def headers(**keyword_args)
|
|
1886
|
+
headers = Headers.new(**keyword_args)
|
|
1887
|
+
|
|
1888
|
+
yield(headers) if block_given?
|
|
1889
|
+
append(headers)
|
|
1890
|
+
end
|
|
1891
|
+
end
|
|
1892
|
+
|
|
1893
|
+
##
|
|
1894
|
+
# The SIP headers to include in the request
|
|
1895
|
+
class Headers < TwiML
|
|
1896
|
+
def initialize(**keyword_args)
|
|
1897
|
+
super(**keyword_args)
|
|
1898
|
+
@name = 'Headers'
|
|
1899
|
+
|
|
1900
|
+
yield(self) if block_given?
|
|
1901
|
+
end
|
|
1902
|
+
|
|
1903
|
+
##
|
|
1904
|
+
# Create a new <Header> element
|
|
1905
|
+
# name:: The name of the custom header
|
|
1906
|
+
# value:: The value of the custom header
|
|
1907
|
+
# keyword_args:: additional attributes
|
|
1908
|
+
def header(name: nil, value: nil, **keyword_args)
|
|
1909
|
+
append(Header.new(name: name, value: value, **keyword_args))
|
|
1910
|
+
end
|
|
1911
|
+
end
|
|
1912
|
+
|
|
1913
|
+
##
|
|
1914
|
+
# A custom SIP header to include in the request
|
|
1915
|
+
class Header < TwiML
|
|
1916
|
+
def initialize(**keyword_args)
|
|
1917
|
+
super(**keyword_args)
|
|
1918
|
+
@name = 'Header'
|
|
1919
|
+
|
|
1920
|
+
yield(self) if block_given?
|
|
1921
|
+
end
|
|
1922
|
+
end
|
|
1923
|
+
|
|
1924
|
+
##
|
|
1925
|
+
# The SIP URI to dial. Multiple Uri elements can be provided, in which case they will be attempted in priority order. URIs with the same priority will be selected proportionally based on its weight.
|
|
1926
|
+
class SipUri < TwiML
|
|
1927
|
+
def initialize(sip_url: nil, **keyword_args)
|
|
1928
|
+
super(**keyword_args)
|
|
1929
|
+
@name = 'Uri'
|
|
1930
|
+
@value = sip_url unless sip_url.nil?
|
|
1723
1931
|
yield(self) if block_given?
|
|
1724
1932
|
end
|
|
1725
1933
|
end
|
|
@@ -1874,6 +2082,188 @@ module Twilio
|
|
|
1874
2082
|
def conversation(service_instance_sid: nil, inbound_autocreation: nil, routing_assignment_timeout: nil, inbound_timeout: nil, url: nil, method: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, status_callback: nil, status_callback_method: nil, status_callback_event: nil, **keyword_args)
|
|
1875
2083
|
append(Conversation.new(service_instance_sid: service_instance_sid, inbound_autocreation: inbound_autocreation, routing_assignment_timeout: routing_assignment_timeout, inbound_timeout: inbound_timeout, url: url, method: method, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, status_callback_event: status_callback_event, **keyword_args))
|
|
1876
2084
|
end
|
|
2085
|
+
|
|
2086
|
+
##
|
|
2087
|
+
# Create a new <ConversationRelay> element
|
|
2088
|
+
# url:: URL of the remote service where the session is connected to
|
|
2089
|
+
# language:: Language to be used for both text-to-speech and transcription
|
|
2090
|
+
# tts_language:: Language to be used for text-to-speech
|
|
2091
|
+
# transcription_language:: Language to be used for transcription
|
|
2092
|
+
# tts_provider:: Provider to be used for text-to-speech
|
|
2093
|
+
# voice:: Voice to be used for text-to-speech
|
|
2094
|
+
# transcription_provider:: Provider to be used for transcription
|
|
2095
|
+
# speech_model:: Speech model to be used for transcription
|
|
2096
|
+
# profanity_filter:: Whether profanities should be filtered out of the speech transcription
|
|
2097
|
+
# dtmf_detection:: Whether DTMF tones should be detected and reported in speech transcription
|
|
2098
|
+
# welcome_greeting:: The sentence to be played automatically when the session is connected
|
|
2099
|
+
# partial_prompts:: Whether partial prompts should be reported to WebSocket server before the caller finishes speaking
|
|
2100
|
+
# welcome_greeting_interruptible:: "Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting
|
|
2101
|
+
# interruptible:: Whether and how the input from a caller, such as speaking or DTMF can interrupt the play of text-to-speech
|
|
2102
|
+
# preemptible:: Whether subsequent text-to-speech or play media can interrupt the on-going play of text-to-speech or media
|
|
2103
|
+
# hints:: Phrases to help better accuracy in speech recognition of these pharases
|
|
2104
|
+
# intelligence_service:: The Conversational Intelligence Service id or unique name to be used for the session
|
|
2105
|
+
# report_input_during_agent_speech:: Whether prompts should be reported to WebSocket server when text-to-speech playing and interrupt is disabled
|
|
2106
|
+
# elevenlabs_text_normalization:: When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature
|
|
2107
|
+
# interrupt_sensitivity:: Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high
|
|
2108
|
+
# debug:: Multiple debug options to be used for troubleshooting
|
|
2109
|
+
# backgroundNoiseReduction:: This parameters enables background noise filtering on the audio stream before it reaches the STT engine, improving transcription accuracy in noisy environments
|
|
2110
|
+
# speechTimeout:: Set the duration of silence that indicates the end of speech
|
|
2111
|
+
# deepgramSmartFormat:: This parameter enables Deepgram's smart formatting feature, which automatically applies punctuation, capitalization, and formatting (e.g. numbers, dates, currency) to transcripts
|
|
2112
|
+
# ignoreBackchannel:: This parameter brief caller acknowledgments (e.g. "yeah", "uh-huh") are ignored and will not interrupt the agent while it is speaking.
|
|
2113
|
+
# events:: This parameter allows you to enable event subscriptions
|
|
2114
|
+
# keyword_args:: additional attributes
|
|
2115
|
+
def conversation_relay(url: nil, language: nil, tts_language: nil, transcription_language: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, profanity_filter: nil, dtmf_detection: nil, welcome_greeting: nil, partial_prompts: nil, welcome_greeting_interruptible: nil, interruptible: nil, preemptible: nil, hints: nil, intelligence_service: nil, report_input_during_agent_speech: nil, elevenlabs_text_normalization: nil, interrupt_sensitivity: nil, debug: nil, backgroundNoiseReduction: nil, speechTimeout: nil, deepgramSmartFormat: nil, ignoreBackchannel: nil, events: nil, **keyword_args)
|
|
2116
|
+
conversation_relay = ConversationRelay.new(url: url, language: language, tts_language: tts_language, transcription_language: transcription_language, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, profanity_filter: profanity_filter, dtmf_detection: dtmf_detection, welcome_greeting: welcome_greeting, partial_prompts: partial_prompts, welcome_greeting_interruptible: welcome_greeting_interruptible, interruptible: interruptible, preemptible: preemptible, hints: hints, intelligence_service: intelligence_service, report_input_during_agent_speech: report_input_during_agent_speech, elevenlabs_text_normalization: elevenlabs_text_normalization, interrupt_sensitivity: interrupt_sensitivity, debug: debug, backgroundNoiseReduction: backgroundNoiseReduction, speechTimeout: speechTimeout, deepgramSmartFormat: deepgramSmartFormat, ignoreBackchannel: ignoreBackchannel, events: events, **keyword_args)
|
|
2117
|
+
|
|
2118
|
+
yield(conversation_relay) if block_given?
|
|
2119
|
+
append(conversation_relay)
|
|
2120
|
+
end
|
|
2121
|
+
|
|
2122
|
+
##
|
|
2123
|
+
# Create a new <Assistant> element
|
|
2124
|
+
# id:: The assistant ID of the AI Assistant
|
|
2125
|
+
# language:: Language to be used for both text-to-speech and transcription
|
|
2126
|
+
# tts_language:: Language to be used for text-to-speech
|
|
2127
|
+
# transcription_language:: Language to be used for transcription
|
|
2128
|
+
# tts_provider:: Provider to be used for text-to-speech
|
|
2129
|
+
# voice:: Voice to be used for text-to-speech
|
|
2130
|
+
# transcription_provider:: Provider to be used for transcription
|
|
2131
|
+
# speech_model:: Speech model to be used for transcription
|
|
2132
|
+
# profanity_filter:: Whether profanities should be filtered out of the speech transcription
|
|
2133
|
+
# dtmf_detection:: Whether DTMF tones should be detected and reported in speech transcription
|
|
2134
|
+
# welcome_greeting:: The sentence to be played automatically when the session is connected
|
|
2135
|
+
# partial_prompts:: Whether partial prompts should be reported to WebSocket server before the caller finishes speaking
|
|
2136
|
+
# welcome_greeting_interruptible:: "Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting
|
|
2137
|
+
# interruptible:: Whether and how the input from a caller, such as speaking or DTMF can interrupt the play of text-to-speech
|
|
2138
|
+
# preemptible:: Whether subsequent text-to-speech or play media can interrupt the on-going play of text-to-speech or media
|
|
2139
|
+
# hints:: Phrases to help better accuracy in speech recognition of these pharases
|
|
2140
|
+
# intelligence_service:: The Conversational Intelligence Service id or unique name to be used for the session
|
|
2141
|
+
# report_input_during_agent_speech:: Whether prompts should be reported to WebSocket server when text-to-speech playing and interrupt is disabled
|
|
2142
|
+
# elevenlabs_text_normalization:: When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature
|
|
2143
|
+
# interrupt_sensitivity:: Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high
|
|
2144
|
+
# debug:: Multiple debug options to be used for troubleshooting
|
|
2145
|
+
# keyword_args:: additional attributes
|
|
2146
|
+
def assistant(id: nil, language: nil, tts_language: nil, transcription_language: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, profanity_filter: nil, dtmf_detection: nil, welcome_greeting: nil, partial_prompts: nil, welcome_greeting_interruptible: nil, interruptible: nil, preemptible: nil, hints: nil, intelligence_service: nil, report_input_during_agent_speech: nil, elevenlabs_text_normalization: nil, interrupt_sensitivity: nil, debug: nil, **keyword_args)
|
|
2147
|
+
assistant = Assistant.new(id: id, language: language, tts_language: tts_language, transcription_language: transcription_language, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, profanity_filter: profanity_filter, dtmf_detection: dtmf_detection, welcome_greeting: welcome_greeting, partial_prompts: partial_prompts, welcome_greeting_interruptible: welcome_greeting_interruptible, interruptible: interruptible, preemptible: preemptible, hints: hints, intelligence_service: intelligence_service, report_input_during_agent_speech: report_input_during_agent_speech, elevenlabs_text_normalization: elevenlabs_text_normalization, interrupt_sensitivity: interrupt_sensitivity, debug: debug, **keyword_args)
|
|
2148
|
+
|
|
2149
|
+
yield(assistant) if block_given?
|
|
2150
|
+
append(assistant)
|
|
2151
|
+
end
|
|
2152
|
+
|
|
2153
|
+
##
|
|
2154
|
+
# Create a new <AiSession> element
|
|
2155
|
+
# ai_connector:: The unique name or installed add-on sid that identifies the installed addon resource for the AI Connector
|
|
2156
|
+
# ai_session_configuration:: The unique name or id of the AiSession Configuration resource.
|
|
2157
|
+
# keyword_args:: additional attributes
|
|
2158
|
+
def ai_session(ai_connector: nil, ai_session_configuration: nil, **keyword_args)
|
|
2159
|
+
append(AiSession.new(ai_connector: ai_connector, ai_session_configuration: ai_session_configuration, **keyword_args))
|
|
2160
|
+
end
|
|
2161
|
+
|
|
2162
|
+
##
|
|
2163
|
+
# Create a new <ConversationRelaySession> element
|
|
2164
|
+
# connector:: The unique name or installed add-on sid that identifies the installed addon resource for the ConversationRelaySession Connector
|
|
2165
|
+
# session_configuration:: The unique name or id of the ConversationRelaySession Configuration resource.
|
|
2166
|
+
# keyword_args:: additional attributes
|
|
2167
|
+
def conversation_relay_session(connector: nil, session_configuration: nil, **keyword_args)
|
|
2168
|
+
append(ConversationRelaySession.new(connector: connector, session_configuration: session_configuration, **keyword_args))
|
|
2169
|
+
end
|
|
2170
|
+
end
|
|
2171
|
+
|
|
2172
|
+
##
|
|
2173
|
+
# <ConversationRelaySession> TwiML Noun
|
|
2174
|
+
class ConversationRelaySession < TwiML
|
|
2175
|
+
def initialize(**keyword_args)
|
|
2176
|
+
super(**keyword_args)
|
|
2177
|
+
@name = 'ConversationRelaySession'
|
|
2178
|
+
|
|
2179
|
+
yield(self) if block_given?
|
|
2180
|
+
end
|
|
2181
|
+
end
|
|
2182
|
+
|
|
2183
|
+
##
|
|
2184
|
+
# <AiSession> TwiML Noun
|
|
2185
|
+
class AiSession < TwiML
|
|
2186
|
+
def initialize(**keyword_args)
|
|
2187
|
+
super(**keyword_args)
|
|
2188
|
+
@name = 'AiSession'
|
|
2189
|
+
|
|
2190
|
+
yield(self) if block_given?
|
|
2191
|
+
end
|
|
2192
|
+
end
|
|
2193
|
+
|
|
2194
|
+
##
|
|
2195
|
+
# <Assistant> TwiML Noun
|
|
2196
|
+
class Assistant < TwiML
|
|
2197
|
+
def initialize(**keyword_args)
|
|
2198
|
+
super(**keyword_args)
|
|
2199
|
+
@name = 'Assistant'
|
|
2200
|
+
|
|
2201
|
+
yield(self) if block_given?
|
|
2202
|
+
end
|
|
2203
|
+
|
|
2204
|
+
##
|
|
2205
|
+
# Create a new <Language> element
|
|
2206
|
+
# code:: Language code of this language setting is for
|
|
2207
|
+
# tts_provider:: Provider to be used for text-to-speech of this language
|
|
2208
|
+
# voice:: Voice to be used for text-to-speech of this language
|
|
2209
|
+
# transcription_provider:: Provider to be used for transcription of this language
|
|
2210
|
+
# speech_model:: Speech model to be used for transcription of this language
|
|
2211
|
+
# keyword_args:: additional attributes
|
|
2212
|
+
def language(code: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, **keyword_args)
|
|
2213
|
+
append(Language.new(code: code, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, **keyword_args))
|
|
2214
|
+
end
|
|
2215
|
+
|
|
2216
|
+
##
|
|
2217
|
+
# Create a new <Parameter> element
|
|
2218
|
+
# name:: The name of the custom parameter
|
|
2219
|
+
# value:: The value of the custom parameter
|
|
2220
|
+
# keyword_args:: additional attributes
|
|
2221
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
|
2222
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
|
2223
|
+
end
|
|
2224
|
+
end
|
|
2225
|
+
|
|
2226
|
+
##
|
|
2227
|
+
# <Language> TwiML Noun
|
|
2228
|
+
class Language < TwiML
|
|
2229
|
+
def initialize(**keyword_args)
|
|
2230
|
+
super(**keyword_args)
|
|
2231
|
+
@name = 'Language'
|
|
2232
|
+
|
|
2233
|
+
yield(self) if block_given?
|
|
2234
|
+
end
|
|
2235
|
+
end
|
|
2236
|
+
|
|
2237
|
+
##
|
|
2238
|
+
# <ConversationRelay> TwiML Noun
|
|
2239
|
+
class ConversationRelay < TwiML
|
|
2240
|
+
def initialize(**keyword_args)
|
|
2241
|
+
super(**keyword_args)
|
|
2242
|
+
@name = 'ConversationRelay'
|
|
2243
|
+
|
|
2244
|
+
yield(self) if block_given?
|
|
2245
|
+
end
|
|
2246
|
+
|
|
2247
|
+
##
|
|
2248
|
+
# Create a new <Language> element
|
|
2249
|
+
# code:: Language code of this language setting is for
|
|
2250
|
+
# tts_provider:: Provider to be used for text-to-speech of this language
|
|
2251
|
+
# voice:: Voice to be used for text-to-speech of this language
|
|
2252
|
+
# transcription_provider:: Provider to be used for transcription of this language
|
|
2253
|
+
# speech_model:: Speech model to be used for transcription of this language
|
|
2254
|
+
# keyword_args:: additional attributes
|
|
2255
|
+
def language(code: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, **keyword_args)
|
|
2256
|
+
append(Language.new(code: code, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, **keyword_args))
|
|
2257
|
+
end
|
|
2258
|
+
|
|
2259
|
+
##
|
|
2260
|
+
# Create a new <Parameter> element
|
|
2261
|
+
# name:: The name of the custom parameter
|
|
2262
|
+
# value:: The value of the custom parameter
|
|
2263
|
+
# keyword_args:: additional attributes
|
|
2264
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
|
2265
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
|
2266
|
+
end
|
|
1877
2267
|
end
|
|
1878
2268
|
|
|
1879
2269
|
##
|
|
@@ -1916,17 +2306,6 @@ module Twilio
|
|
|
1916
2306
|
end
|
|
1917
2307
|
end
|
|
1918
2308
|
|
|
1919
|
-
##
|
|
1920
|
-
# <Config> TwiML Noun
|
|
1921
|
-
class Config < TwiML
|
|
1922
|
-
def initialize(**keyword_args)
|
|
1923
|
-
super(**keyword_args)
|
|
1924
|
-
@name = 'Config'
|
|
1925
|
-
|
|
1926
|
-
yield(self) if block_given?
|
|
1927
|
-
end
|
|
1928
|
-
end
|
|
1929
|
-
|
|
1930
2309
|
##
|
|
1931
2310
|
# <Autopilot> TwiML Noun
|
|
1932
2311
|
class Autopilot < TwiML
|
data/lib/twilio-ruby/version.rb
CHANGED
data/twilio-ruby.gemspec
CHANGED
|
@@ -14,7 +14,8 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
'building TwiML, and generating Twilio JWT Capability Tokens'
|
|
15
15
|
spec.homepage = 'https://github.com/twilio/twilio-ruby'
|
|
16
16
|
spec.license = 'MIT'
|
|
17
|
-
spec.metadata = { '
|
|
17
|
+
spec.metadata = { 'documentation_uri' => 'https://www.twilio.com/docs/libraries/reference/twilio-ruby/',
|
|
18
|
+
'yard.run' => 'yri' } # use "yard" to build full HTML docs
|
|
18
19
|
|
|
19
20
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match?(%r{^(spec)/}) }
|
|
20
21
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
@@ -24,9 +25,9 @@ Gem::Specification.new do |spec|
|
|
|
24
25
|
spec.extra_rdoc_files = ['README.md', 'LICENSE']
|
|
25
26
|
spec.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'twilio-ruby', '--main', 'README.md']
|
|
26
27
|
|
|
27
|
-
spec.add_dependency('jwt', '>= 1.5', '<
|
|
28
|
+
spec.add_dependency('jwt', '>= 1.5', '< 4.0')
|
|
28
29
|
spec.add_dependency('nokogiri', '>= 1.6', '< 2.0')
|
|
29
|
-
spec.add_dependency('faraday', '>= 0
|
|
30
|
+
spec.add_dependency('faraday', '>= 2.0', '< 3.0')
|
|
30
31
|
# Workaround for RBX <= 2.2.1, should be fixed in next version
|
|
31
32
|
spec.add_dependency('rubysl') if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
|
32
33
|
|