twilio-ruby 4.13.0 → 5.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.dockerignore +1 -0
- data/.gitignore +6 -0
- data/.rubocop.yml +59 -0
- data/.rubocop_todo.yml +198 -0
- data/.travis.yml +32 -19
- data/AUTHORS.md +46 -32
- data/CHANGES.md +1723 -62
- data/CODE_OF_CONDUCT.md +73 -0
- data/CONTRIBUTING.md +161 -0
- data/Dockerfile +9 -0
- data/Gemfile +0 -8
- data/ISSUE_TEMPLATE.md +30 -0
- data/LICENSE.md +12 -12
- data/Makefile +25 -7
- data/PULL_REQUEST_TEMPLATE.md +31 -0
- data/README.md +110 -151
- data/UPGRADE.md +30 -0
- data/VERSIONS.md +35 -0
- data/examples/examples.rb +46 -57
- data/examples/{print-call-log.rb → print_call_log.rb} +6 -6
- data/githooks/pre-commit +1 -0
- data/lib/rack/twilio_webhook_authentication.rb +7 -6
- data/lib/twilio-ruby/framework/domain.rb +36 -0
- data/lib/twilio-ruby/framework/error.rb +51 -0
- data/lib/twilio-ruby/framework/helper.rb +11 -0
- data/lib/twilio-ruby/framework/obsolete_client.rb +12 -0
- data/lib/twilio-ruby/framework/page.rb +103 -0
- data/lib/twilio-ruby/framework/request.rb +41 -0
- data/lib/twilio-ruby/framework/resource.rb +23 -0
- data/lib/twilio-ruby/framework/response.rb +18 -0
- data/lib/twilio-ruby/framework/serialize.rb +81 -0
- data/lib/twilio-ruby/framework/twilio_response.rb +19 -0
- data/lib/twilio-ruby/framework/values.rb +9 -0
- data/lib/twilio-ruby/framework/version.rb +157 -0
- data/lib/twilio-ruby/http/http_client.rb +63 -0
- data/lib/twilio-ruby/jwt/access_token.rb +267 -0
- data/lib/twilio-ruby/jwt/client_capability.rb +102 -0
- data/lib/twilio-ruby/jwt/jwt.rb +59 -0
- data/lib/twilio-ruby/jwt/task_router.rb +172 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +339 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +339 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +122 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +35 -0
- data/lib/twilio-ruby/rest/accounts.rb +38 -10
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +372 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +521 -0
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +593 -0
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +327 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +491 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +491 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +491 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +491 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +491 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +491 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +491 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +464 -0
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +125 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +301 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +314 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +428 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +369 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +510 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +912 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +712 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +469 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +500 -0
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +414 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +367 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +431 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +554 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +553 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +553 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +903 -0
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +309 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +171 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +361 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +612 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +145 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +145 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +406 -0
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +365 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +349 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +397 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +387 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +398 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +383 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +493 -0
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +415 -0
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +313 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +387 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +386 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +348 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +348 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +163 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +348 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +137 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +135 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +356 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +355 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +657 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +432 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +387 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +157 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +161 -0
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +357 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +351 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +351 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +351 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +351 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +351 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +351 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +351 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +351 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +423 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +494 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +120 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +168 -0
- data/lib/twilio-ruby/rest/api/v2010/account.rb +953 -0
- data/lib/twilio-ruby/rest/api/v2010.rb +153 -0
- data/lib/twilio-ruby/rest/api.rb +247 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +220 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +214 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +395 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +418 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +392 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +462 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +218 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +386 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +449 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +255 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +237 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +507 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +420 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +650 -0
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +194 -0
- data/lib/twilio-ruby/rest/autopilot/v1.rb +51 -0
- data/lib/twilio-ruby/rest/autopilot.rb +53 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +308 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +291 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +247 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +248 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +232 -0
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +58 -0
- data/lib/twilio-ruby/rest/bulkexports.rb +54 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +413 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +402 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +451 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +448 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +522 -0
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +374 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +246 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +447 -0
- data/lib/twilio-ruby/rest/chat/v1/service.rb +904 -0
- data/lib/twilio-ruby/rest/chat/v1.rb +60 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +411 -0
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +377 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +397 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +538 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +544 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +475 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +612 -0
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +376 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +392 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +424 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +498 -0
- data/lib/twilio-ruby/rest/chat/v2/service.rb +788 -0
- data/lib/twilio-ruby/rest/chat/v2.rb +58 -0
- data/lib/twilio-ruby/rest/chat.rb +63 -0
- data/lib/twilio-ruby/rest/client.rb +519 -152
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +348 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +500 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +474 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +415 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +544 -0
- data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +262 -0
- data/lib/twilio-ruby/rest/conversations/v1.rb +51 -0
- data/lib/twilio-ruby/rest/conversations.rb +53 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +118 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +379 -0
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +322 -0
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +358 -0
- data/lib/twilio-ruby/rest/events/v1.rb +58 -0
- data/lib/twilio-ruby/rest/events.rb +54 -0
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +314 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +535 -0
- data/lib/twilio-ruby/rest/fax/v1.rb +44 -0
- data/lib/twilio-ruby/rest/fax.rb +47 -0
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +340 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +448 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +547 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +341 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +80 -0
- data/lib/twilio-ruby/rest/flex_api.rb +71 -0
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +262 -0
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +252 -0
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +301 -0
- data/lib/twilio-ruby/rest/insights/v1/call.rb +236 -0
- data/lib/twilio-ruby/rest/insights/v1.rb +43 -0
- data/lib/twilio-ruby/rest/insights.rb +46 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +413 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +402 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +451 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +448 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +522 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +374 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +246 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +447 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +904 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +60 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +411 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +377 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +397 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +538 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +544 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +475 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +612 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +376 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +392 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +424 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +498 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +788 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +58 -0
- data/lib/twilio-ruby/rest/ip_messaging.rb +63 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +247 -0
- data/lib/twilio-ruby/rest/lookups/v1.rb +45 -0
- data/lib/twilio-ruby/rest/lookups.rb +48 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +342 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +348 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +343 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +652 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +43 -0
- data/lib/twilio-ruby/rest/messaging.rb +47 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +405 -0
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +400 -0
- data/lib/twilio-ruby/rest/monitor/v1.rb +58 -0
- data/lib/twilio-ruby/rest/monitor.rb +56 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +412 -0
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +458 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +361 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +632 -0
- data/lib/twilio-ruby/rest/notify/v1.rb +60 -0
- data/lib/twilio-ruby/rest/notify.rb +56 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +309 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +320 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +512 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +344 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +273 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +314 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +357 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +273 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +189 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +35 -0
- data/lib/twilio-ruby/rest/numbers.rb +44 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +308 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +291 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +247 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +248 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +232 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +58 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +382 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +365 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +425 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +376 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +469 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +44 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +400 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +451 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +635 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +60 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +305 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +319 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +337 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +408 -0
- data/lib/twilio-ruby/rest/preview/marketplace.rb +58 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +385 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +410 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +418 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +385 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +405 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +415 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +385 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +405 -0
- data/lib/twilio-ruby/rest/preview/sync/service.rb +462 -0
- data/lib/twilio-ruby/rest/preview/sync.rb +43 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +243 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +195 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +189 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +260 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +233 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +260 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +111 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +239 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/cps.rb +186 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +277 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +342 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +79 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +212 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +212 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +206 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +386 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +407 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +380 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +437 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +212 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +373 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +428 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +241 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +225 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +495 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +629 -0
- data/lib/twilio-ruby/rest/preview/understand.rb +44 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +374 -0
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +408 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +233 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +533 -0
- data/lib/twilio-ruby/rest/preview/wireless.rb +73 -0
- data/lib/twilio-ruby/rest/preview.rb +229 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +282 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +127 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +275 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +127 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +282 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +204 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +143 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +49 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +282 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +227 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +146 -0
- data/lib/twilio-ruby/rest/pricing/v2.rb +35 -0
- data/lib/twilio-ruby/rest/pricing.rb +59 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +408 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +429 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +458 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +467 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +551 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +377 -0
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +606 -0
- data/lib/twilio-ruby/rest/proxy/v1.rb +44 -0
- data/lib/twilio-ruby/rest/proxy.rb +47 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +334 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +387 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +356 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +349 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +394 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +407 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +456 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +241 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +364 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +387 -0
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +496 -0
- data/lib/twilio-ruby/rest/serverless/v1.rb +43 -0
- data/lib/twilio-ruby/rest/serverless.rb +47 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +210 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +225 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +366 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +401 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +211 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +228 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +372 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +456 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +365 -0
- data/lib/twilio-ruby/rest/studio/v1.rb +43 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +219 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +236 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +380 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +457 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +335 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +205 -0
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +490 -0
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +122 -0
- data/lib/twilio-ruby/rest/studio/v2.rb +50 -0
- data/lib/twilio-ruby/rest/studio.rb +60 -0
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +368 -0
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +421 -0
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +307 -0
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +339 -0
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +361 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +388 -0
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +338 -0
- data/lib/twilio-ruby/rest/supersim/v1.rb +110 -0
- data/lib/twilio-ruby/rest/supersim.rb +88 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +390 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +447 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +508 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +389 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +464 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +515 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +387 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +463 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +145 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +421 -0
- data/lib/twilio-ruby/rest/sync/v1/service.rb +585 -0
- data/lib/twilio-ruby/rest/sync/v1.rb +43 -0
- data/lib/twilio-ruby/rest/sync.rb +47 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +394 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +471 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +739 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +641 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +389 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +377 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +287 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +265 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +285 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +573 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +735 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +399 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +250 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +277 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +204 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +245 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +629 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +385 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +252 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +273 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +517 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +361 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +234 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +241 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +725 -0
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +43 -0
- data/lib/twilio-ruby/rest/taskrouter.rb +47 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +327 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +323 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +426 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +457 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +609 -0
- data/lib/twilio-ruby/rest/trunking/v1.rb +44 -0
- data/lib/twilio-ruby/rest/trunking.rb +47 -0
- data/lib/twilio-ruby/rest/verify/v2/form.rb +191 -0
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +124 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +485 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +466 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +413 -0
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +370 -0
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +399 -0
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +391 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +354 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +205 -0
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +408 -0
- data/lib/twilio-ruby/rest/verify/v2/service.rb +682 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +60 -0
- data/lib/twilio-ruby/rest/verify.rb +56 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +499 -0
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +656 -0
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +269 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +415 -0
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +269 -0
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +406 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +335 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +175 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +340 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +483 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +527 -0
- data/lib/twilio-ruby/rest/video/v1.rb +102 -0
- data/lib/twilio-ruby/rest/video.rb +86 -0
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +496 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +441 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +362 -0
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +128 -0
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +190 -0
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +404 -0
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +197 -0
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +132 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +349 -0
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +329 -0
- data/lib/twilio-ruby/rest/voice/v1.rb +99 -0
- data/lib/twilio-ruby/rest/voice.rb +80 -0
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +416 -0
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +445 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +291 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +250 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +667 -0
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +229 -0
- data/lib/twilio-ruby/rest/wireless/v1.rb +80 -0
- data/lib/twilio-ruby/rest/wireless.rb +71 -0
- data/lib/twilio-ruby/security/request_validator.rb +150 -0
- data/lib/twilio-ruby/twiml/fax_response.rb +45 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +107 -0
- data/lib/twilio-ruby/twiml/twiml.rb +126 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +1174 -0
- data/lib/twilio-ruby/util/configuration.rb +23 -1
- data/lib/twilio-ruby/util.rb +5 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/lib/twilio-ruby.rb +28 -104
- data/spec/framework/request_spec.rb +36 -0
- data/spec/framework/serialize_spec.rb +80 -0
- data/spec/framework/version_spec.rb +166 -0
- data/spec/holodeck/holodeck.rb +66 -0
- data/spec/holodeck/hologram.rb +4 -0
- data/spec/http/http_client_spec.rb +122 -0
- data/spec/integration/accounts/v1/credential/aws_spec.rb +222 -0
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +222 -0
- data/spec/integration/accounts/v1/credential_spec.rb +12 -0
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +106 -0
- data/spec/integration/api/v2010/account/address_spec.rb +269 -0
- data/spec/integration/api/v2010/account/application_spec.rb +274 -0
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +137 -0
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +102 -0
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +102 -0
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +101 -0
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +102 -0
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +102 -0
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +101 -0
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +102 -0
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +128 -0
- data/spec/integration/api/v2010/account/balance_spec.rb +44 -0
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +138 -0
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +149 -0
- data/spec/integration/api/v2010/account/call/notification_spec.rb +143 -0
- data/spec/integration/api/v2010/account/call/payment_spec.rb +135 -0
- data/spec/integration/api/v2010/account/call/recording_spec.rb +283 -0
- data/spec/integration/api/v2010/account/call_spec.rb +650 -0
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +708 -0
- data/spec/integration/api/v2010/account/conference/recording_spec.rb +234 -0
- data/spec/integration/api/v2010/account/conference_spec.rb +458 -0
- data/spec/integration/api/v2010/account/connect_app_spec.rb +197 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +135 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +220 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +189 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +189 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +189 -0
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +370 -0
- data/spec/integration/api/v2010/account/key_spec.rb +176 -0
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +49 -0
- data/spec/integration/api/v2010/account/message/media_spec.rb +161 -0
- data/spec/integration/api/v2010/account/message_spec.rb +507 -0
- data/spec/integration/api/v2010/account/new_key_spec.rb +46 -0
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +46 -0
- data/spec/integration/api/v2010/account/notification_spec.rb +138 -0
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +185 -0
- data/spec/integration/api/v2010/account/queue/member_spec.rb +208 -0
- data/spec/integration/api/v2010/account/queue_spec.rb +244 -0
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +174 -0
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +165 -0
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +173 -0
- data/spec/integration/api/v2010/account/recording_spec.rb +184 -0
- data/spec/integration/api/v2010/account/short_code_spec.rb +179 -0
- data/spec/integration/api/v2010/account/signing_key_spec.rb +176 -0
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +252 -0
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +241 -0
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping_spec.rb +217 -0
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping_spec.rb +217 -0
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping_spec.rb +12 -0
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping_spec.rb +217 -0
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping_spec.rb +12 -0
- data/spec/integration/api/v2010/account/sip/domain/auth_types_spec.rb +12 -0
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +207 -0
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +217 -0
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +303 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +254 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +251 -0
- data/spec/integration/api/v2010/account/sip_spec.rb +12 -0
- data/spec/integration/api/v2010/account/token_spec.rb +71 -0
- data/spec/integration/api/v2010/account/transcription_spec.rb +166 -0
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +113 -0
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +113 -0
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +113 -0
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +113 -0
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +113 -0
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +113 -0
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +113 -0
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +113 -0
- data/spec/integration/api/v2010/account/usage/record_spec.rb +110 -0
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +281 -0
- data/spec/integration/api/v2010/account/usage_spec.rb +12 -0
- data/spec/integration/api/v2010/account/validation_request_spec.rb +48 -0
- data/spec/integration/api/v2010/account_spec.rb +327 -0
- data/spec/integration/autopilot/v1/assistant/defaults_spec.rb +79 -0
- data/spec/integration/autopilot/v1/assistant/dialogue_spec.rb +46 -0
- data/spec/integration/autopilot/v1/assistant/field_type/field_value_spec.rb +207 -0
- data/spec/integration/autopilot/v1/assistant/field_type_spec.rb +242 -0
- data/spec/integration/autopilot/v1/assistant/model_build_spec.rb +236 -0
- data/spec/integration/autopilot/v1/assistant/query_spec.rb +290 -0
- data/spec/integration/autopilot/v1/assistant/style_sheet_spec.rb +79 -0
- data/spec/integration/autopilot/v1/assistant/task/field_spec.rb +204 -0
- data/spec/integration/autopilot/v1/assistant/task/sample_spec.rb +249 -0
- data/spec/integration/autopilot/v1/assistant/task/task_actions_spec.rb +85 -0
- data/spec/integration/autopilot/v1/assistant/task/task_statistics_spec.rb +49 -0
- data/spec/integration/autopilot/v1/assistant/task_spec.rb +258 -0
- data/spec/integration/autopilot/v1/assistant/webhook_spec.rb +242 -0
- data/spec/integration/autopilot/v1/assistant_spec.rb +277 -0
- data/spec/integration/autopilot/v1/restore_assistant_spec.rb +53 -0
- data/spec/integration/bulkexports/v1/export/day_spec.rb +115 -0
- data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +127 -0
- data/spec/integration/bulkexports/v1/export/job_spec.rb +78 -0
- data/spec/integration/bulkexports/v1/export_configuration_spec.rb +77 -0
- data/spec/integration/bulkexports/v1/export_spec.rb +44 -0
- data/spec/integration/chat/v1/credential_spec.rb +219 -0
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +207 -0
- data/spec/integration/chat/v1/service/channel/member_spec.rb +280 -0
- data/spec/integration/chat/v1/service/channel/message_spec.rb +290 -0
- data/spec/integration/chat/v1/service/channel_spec.rb +272 -0
- data/spec/integration/chat/v1/service/role_spec.rb +260 -0
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +93 -0
- data/spec/integration/chat/v1/service/user_spec.rb +262 -0
- data/spec/integration/chat/v1/service_spec.rb +295 -0
- data/spec/integration/chat/v2/credential_spec.rb +219 -0
- data/spec/integration/chat/v2/service/binding_spec.rb +174 -0
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +207 -0
- data/spec/integration/chat/v2/service/channel/member_spec.rb +263 -0
- data/spec/integration/chat/v2/service/channel/message_spec.rb +406 -0
- data/spec/integration/chat/v2/service/channel/webhook_spec.rb +303 -0
- data/spec/integration/chat/v2/service/channel_spec.rb +282 -0
- data/spec/integration/chat/v2/service/role_spec.rb +260 -0
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +177 -0
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +247 -0
- data/spec/integration/chat/v2/service/user_spec.rb +270 -0
- data/spec/integration/chat/v2/service_spec.rb +350 -0
- data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +132 -0
- data/spec/integration/conversations/v1/conversation/message_spec.rb +409 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +382 -0
- data/spec/integration/conversations/v1/conversation/webhook_spec.rb +282 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +273 -0
- data/spec/integration/conversations/v1/webhook_spec.rb +86 -0
- data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
- data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
- data/spec/integration/events/v1/sink_spec.rb +217 -0
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +212 -0
- data/spec/integration/events/v1/subscription_spec.rb +205 -0
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +125 -0
- data/spec/integration/fax/v1/fax_spec.rb +267 -0
- data/spec/integration/flex_api/v1/channel_spec.rb +188 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +554 -0
- data/spec/integration/flex_api/v1/flex_flow_spec.rb +259 -0
- data/spec/integration/flex_api/v1/web_channel_spec.rb +216 -0
- data/spec/integration/insights/v1/call/event_spec.rb +166 -0
- data/spec/integration/insights/v1/call/metric_spec.rb +154 -0
- data/spec/integration/insights/v1/call/summary_spec.rb +62 -0
- data/spec/integration/insights/v1/call_spec.rb +46 -0
- data/spec/integration/ip_messaging/v1/credential_spec.rb +219 -0
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +207 -0
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +280 -0
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +290 -0
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +272 -0
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +260 -0
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +93 -0
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +262 -0
- data/spec/integration/ip_messaging/v1/service_spec.rb +295 -0
- data/spec/integration/ip_messaging/v2/credential_spec.rb +219 -0
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +174 -0
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +207 -0
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +263 -0
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +406 -0
- data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +303 -0
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +282 -0
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +260 -0
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +177 -0
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +247 -0
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +270 -0
- data/spec/integration/ip_messaging/v2/service_spec.rb +350 -0
- data/spec/integration/lookups/v1/phone_number_spec.rb +336 -0
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +173 -0
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +198 -0
- data/spec/integration/messaging/v1/service/short_code_spec.rb +176 -0
- data/spec/integration/messaging/v1/service_spec.rb +267 -0
- data/spec/integration/monitor/v1/alert_spec.rb +138 -0
- data/spec/integration/monitor/v1/event_spec.rb +148 -0
- data/spec/integration/notify/v1/credential_spec.rb +219 -0
- data/spec/integration/notify/v1/service/binding_spec.rb +222 -0
- data/spec/integration/notify/v1/service/notification_spec.rb +98 -0
- data/spec/integration/notify/v1/service_spec.rb +289 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +620 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb +195 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +258 -0
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +211 -0
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_type_spec.rb +141 -0
- data/spec/integration/numbers/v2/regulatory_compliance/regulation_spec.rb +181 -0
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +223 -0
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_type_spec.rb +131 -0
- data/spec/integration/numbers/v2/regulatory_compliance_spec.rb +12 -0
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +115 -0
- data/spec/integration/preview/bulk_exports/export/export_custom_job_spec.rb +127 -0
- data/spec/integration/preview/bulk_exports/export/job_spec.rb +78 -0
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +77 -0
- data/spec/integration/preview/bulk_exports/export_spec.rb +44 -0
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +234 -0
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +228 -0
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +244 -0
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +232 -0
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +241 -0
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +110 -0
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +224 -0
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +389 -0
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +121 -0
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +142 -0
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +162 -0
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +250 -0
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +201 -0
- data/spec/integration/preview/sync/service/document_spec.rb +254 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +255 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +201 -0
- data/spec/integration/preview/sync/service/sync_list_spec.rb +205 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +255 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +201 -0
- data/spec/integration/preview/sync/service/sync_map_spec.rb +205 -0
- data/spec/integration/preview/sync/service_spec.rb +241 -0
- data/spec/integration/preview/trusted_comms/branded_call_spec.rb +59 -0
- data/spec/integration/preview/trusted_comms/brands_information_spec.rb +45 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +51 -0
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +48 -0
- data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +56 -0
- data/spec/integration/preview/trusted_comms/business/insights_spec.rb +12 -0
- data/spec/integration/preview/trusted_comms/business_spec.rb +46 -0
- data/spec/integration/preview/trusted_comms/cps_spec.rb +44 -0
- data/spec/integration/preview/trusted_comms/current_call_spec.rb +58 -0
- data/spec/integration/preview/trusted_comms/phone_call_spec.rb +59 -0
- data/spec/integration/preview/understand/assistant/assistant_fallback_actions_spec.rb +79 -0
- data/spec/integration/preview/understand/assistant/assistant_initiation_actions_spec.rb +79 -0
- data/spec/integration/preview/understand/assistant/dialogue_spec.rb +46 -0
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +207 -0
- data/spec/integration/preview/understand/assistant/field_type_spec.rb +242 -0
- data/spec/integration/preview/understand/assistant/model_build_spec.rb +236 -0
- data/spec/integration/preview/understand/assistant/query_spec.rb +302 -0
- data/spec/integration/preview/understand/assistant/style_sheet_spec.rb +79 -0
- data/spec/integration/preview/understand/assistant/task/field_spec.rb +204 -0
- data/spec/integration/preview/understand/assistant/task/sample_spec.rb +249 -0
- data/spec/integration/preview/understand/assistant/task/task_actions_spec.rb +85 -0
- data/spec/integration/preview/understand/assistant/task/task_statistics_spec.rb +49 -0
- data/spec/integration/preview/understand/assistant/task_spec.rb +258 -0
- data/spec/integration/preview/understand/assistant_spec.rb +269 -0
- data/spec/integration/preview/wireless/command_spec.rb +167 -0
- data/spec/integration/preview/wireless/rate_plan_spec.rb +257 -0
- data/spec/integration/preview/wireless/sim/usage_spec.rb +50 -0
- data/spec/integration/preview/wireless/sim_spec.rb +207 -0
- data/spec/integration/pricing/v1/messaging/country_spec.rb +137 -0
- data/spec/integration/pricing/v1/messaging_spec.rb +12 -0
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +128 -0
- data/spec/integration/pricing/v1/phone_number_spec.rb +12 -0
- data/spec/integration/pricing/v1/voice/country_spec.rb +138 -0
- data/spec/integration/pricing/v1/voice/number_spec.rb +55 -0
- data/spec/integration/pricing/v1/voice_spec.rb +12 -0
- data/spec/integration/pricing/v2/voice/country_spec.rb +179 -0
- data/spec/integration/pricing/v2/voice/number_spec.rb +61 -0
- data/spec/integration/pricing/v2/voice_spec.rb +12 -0
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +231 -0
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +133 -0
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +163 -0
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +240 -0
- data/spec/integration/proxy/v1/service/session_spec.rb +225 -0
- data/spec/integration/proxy/v1/service/short_code_spec.rb +225 -0
- data/spec/integration/proxy/v1/service_spec.rb +214 -0
- data/spec/integration/serverless/v1/service/asset/asset_version_spec.rb +93 -0
- data/spec/integration/serverless/v1/service/asset_spec.rb +202 -0
- data/spec/integration/serverless/v1/service/build_spec.rb +208 -0
- data/spec/integration/serverless/v1/service/environment/deployment_spec.rb +133 -0
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +97 -0
- data/spec/integration/serverless/v1/service/environment/variable_spec.rb +207 -0
- data/spec/integration/serverless/v1/service/environment_spec.rb +170 -0
- data/spec/integration/serverless/v1/service/function/function_version/function_version_content_spec.rb +51 -0
- data/spec/integration/serverless/v1/service/function/function_version_spec.rb +96 -0
- data/spec/integration/serverless/v1/service/function_spec.rb +202 -0
- data/spec/integration/serverless/v1/service_spec.rb +205 -0
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +50 -0
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +53 -0
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +99 -0
- data/spec/integration/studio/v1/flow/engagement_spec.rb +168 -0
- data/spec/integration/studio/v1/flow/execution/execution_context_spec.rb +50 -0
- data/spec/integration/studio/v1/flow/execution/execution_step/execution_step_context_spec.rb +53 -0
- data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +99 -0
- data/spec/integration/studio/v1/flow/execution_spec.rb +214 -0
- data/spec/integration/studio/v1/flow_spec.rb +114 -0
- data/spec/integration/studio/v2/flow/execution/execution_context_spec.rb +50 -0
- data/spec/integration/studio/v2/flow/execution/execution_step/execution_step_context_spec.rb +53 -0
- data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +99 -0
- data/spec/integration/studio/v2/flow/execution_spec.rb +211 -0
- data/spec/integration/studio/v2/flow/flow_revision_spec.rb +110 -0
- data/spec/integration/studio/v2/flow/test_user_spec.rb +85 -0
- data/spec/integration/studio/v2/flow_spec.rb +251 -0
- data/spec/integration/studio/v2/flow_validate_spec.rb +46 -0
- data/spec/integration/supersim/v1/command_spec.rb +184 -0
- data/spec/integration/supersim/v1/fleet_spec.rb +214 -0
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +176 -0
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +219 -0
- data/spec/integration/supersim/v1/network_spec.rb +137 -0
- data/spec/integration/supersim/v1/sim_spec.rb +300 -0
- data/spec/integration/supersim/v1/usage_record_spec.rb +647 -0
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +201 -0
- data/spec/integration/sync/v1/service/document_spec.rb +256 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +257 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +201 -0
- data/spec/integration/sync/v1/service/sync_list_spec.rb +252 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +257 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +201 -0
- data/spec/integration/sync/v1/service/sync_map_spec.rb +252 -0
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +47 -0
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +244 -0
- data/spec/integration/sync/v1/service_spec.rb +261 -0
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +232 -0
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +163 -0
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +222 -0
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +312 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +101 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +83 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +107 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +145 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +290 -0
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +325 -0
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +191 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +185 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +91 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +88 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +69 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +115 -0
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +290 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +96 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +57 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +70 -0
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +266 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +93 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +72 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +104 -0
- data/spec/integration/taskrouter/v1/workspace_spec.rb +291 -0
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +189 -0
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +189 -0
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +248 -0
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +264 -0
- data/spec/integration/trunking/v1/trunk_spec.rb +277 -0
- data/spec/integration/verify/v2/form_spec.rb +47 -0
- data/spec/integration/verify/v2/service/access_token_spec.rb +44 -0
- data/spec/integration/verify/v2/service/entity/challenge_spec.rb +252 -0
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +292 -0
- data/spec/integration/verify/v2/service/entity_spec.rb +209 -0
- data/spec/integration/verify/v2/service/messaging_configuration_spec.rb +228 -0
- data/spec/integration/verify/v2/service/rate_limit/bucket_spec.rb +245 -0
- data/spec/integration/verify/v2/service/rate_limit_spec.rb +217 -0
- data/spec/integration/verify/v2/service/verification_check_spec.rb +80 -0
- data/spec/integration/verify/v2/service/verification_spec.rb +318 -0
- data/spec/integration/verify/v2/service/webhook_spec.rb +258 -0
- data/spec/integration/verify/v2/service_spec.rb +275 -0
- data/spec/integration/video/v1/composition_hook_spec.rb +407 -0
- data/spec/integration/video/v1/composition_settings_spec.rb +85 -0
- data/spec/integration/video/v1/composition_spec.rb +347 -0
- data/spec/integration/video/v1/recording_settings_spec.rb +85 -0
- data/spec/integration/video/v1/recording_spec.rb +176 -0
- data/spec/integration/video/v1/room/recording_spec.rb +185 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +94 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribe_rule_spec.rb +103 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +95 -0
- data/spec/integration/video/v1/room/room_participant_spec.rb +187 -0
- data/spec/integration/video/v1/room_spec.rb +254 -0
- data/spec/integration/voice/v1/byoc_trunk_spec.rb +245 -0
- data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +242 -0
- data/spec/integration/voice/v1/connection_policy_spec.rb +221 -0
- data/spec/integration/voice/v1/dialing_permissions/bulk_country_update_spec.rb +45 -0
- data/spec/integration/voice/v1/dialing_permissions/country/highrisk_special_prefix_spec.rb +60 -0
- data/spec/integration/voice/v1/dialing_permissions/country_spec.rb +110 -0
- data/spec/integration/voice/v1/dialing_permissions/settings_spec.rb +75 -0
- data/spec/integration/voice/v1/dialing_permissions_spec.rb +12 -0
- data/spec/integration/voice/v1/ip_record_spec.rb +219 -0
- data/spec/integration/voice/v1/source_ip_mapping_spec.rb +216 -0
- data/spec/integration/wireless/v1/command_spec.rb +286 -0
- data/spec/integration/wireless/v1/rate_plan_spec.rb +277 -0
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +88 -0
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +114 -0
- data/spec/integration/wireless/v1/sim_spec.rb +325 -0
- data/spec/integration/wireless/v1/usage_record_spec.rb +110 -0
- data/spec/jwt/access_token_spec.rb +151 -0
- data/spec/jwt/client_capability_spec.rb +104 -0
- data/spec/jwt/task_router_spec.rb +172 -0
- data/spec/rack/twilio_webhook_authentication_spec.rb +19 -23
- data/spec/rest/client_spec.rb +189 -233
- data/spec/security/request_validator_spec.rb +125 -0
- data/spec/spec_helper.rb +24 -1
- data/spec/support/fakeweb.rb +1 -1
- data/spec/twilio_spec.rb +3 -1
- data/spec/twiml/messaging_response_spec.rb +235 -0
- data/spec/twiml/voice_response_spec.rb +847 -0
- data/spec/util/configuration_spec.rb +18 -0
- data/twilio-ruby.gemspec +20 -13
- metadata +1386 -252
- data/docs/Makefile +0 -130
- data/docs/_themes/LICENSE +0 -45
- data/docs/_themes/README.rst +0 -25
- data/docs/_themes/flask_theme_support.py +0 -86
- data/docs/_themes/kr/layout.html +0 -32
- data/docs/_themes/kr/relations.html +0 -19
- data/docs/_themes/kr/static/flasky.css_t +0 -469
- data/docs/_themes/kr/static/small_flask.css +0 -70
- data/docs/_themes/kr/theme.conf +0 -7
- data/docs/_themes/kr_small/layout.html +0 -22
- data/docs/_themes/kr_small/static/flasky.css_t +0 -287
- data/docs/_themes/kr_small/theme.conf +0 -10
- data/docs/changelog.rst +0 -1
- data/docs/conf.py +0 -266
- data/docs/faq.rst +0 -42
- data/docs/getting-started.rst +0 -117
- data/docs/index.rst +0 -135
- data/docs/make.bat +0 -170
- data/docs/src/pip-delete-this-directory.txt +0 -5
- data/docs/usage/accounts.rst +0 -89
- data/docs/usage/addresses.rst +0 -101
- data/docs/usage/applications.rst +0 -108
- data/docs/usage/basics.rst +0 -115
- data/docs/usage/caller-ids.rst +0 -47
- data/docs/usage/conferences.rst +0 -108
- data/docs/usage/errors.rst +0 -29
- data/docs/usage/lookups.rst +0 -62
- data/docs/usage/messages.rst +0 -137
- data/docs/usage/notifications.rst +0 -72
- data/docs/usage/phone-calls.rst +0 -185
- data/docs/usage/phone-numbers.rst +0 -189
- data/docs/usage/pricing.rst +0 -169
- data/docs/usage/queues.rst +0 -112
- data/docs/usage/recordings.rst +0 -98
- data/docs/usage/sip.rst +0 -104
- data/docs/usage/taskrouter-tokens.rst +0 -98
- data/docs/usage/taskrouter.rst +0 -440
- data/docs/usage/token-generation.rst +0 -115
- data/docs/usage/transcriptions.rst +0 -32
- data/docs/usage/twiml.rst +0 -69
- data/docs/usage/validation.rst +0 -107
- data/examples/taskrouter.examples.rb +0 -86
- data/issue_template.md +0 -25
- data/lib/twilio-ruby/rest/addresses/dependent_phone_numbers.rb +0 -6
- data/lib/twilio-ruby/rest/addresses.rb +0 -12
- data/lib/twilio-ruby/rest/applications.rb +0 -6
- data/lib/twilio-ruby/rest/authorized_connect_apps.rb +0 -6
- data/lib/twilio-ruby/rest/available_phone_numbers/country.rb +0 -10
- data/lib/twilio-ruby/rest/available_phone_numbers/local.rb +0 -11
- data/lib/twilio-ruby/rest/available_phone_numbers/mobile.rb +0 -11
- data/lib/twilio-ruby/rest/available_phone_numbers/toll_free.rb +0 -11
- data/lib/twilio-ruby/rest/available_phone_numbers.rb +0 -13
- data/lib/twilio-ruby/rest/base_client.rb +0 -131
- data/lib/twilio-ruby/rest/call_feedback.rb +0 -28
- data/lib/twilio-ruby/rest/call_feedback_summary.rb +0 -13
- data/lib/twilio-ruby/rest/calls.rb +0 -33
- data/lib/twilio-ruby/rest/conferences/participants.rb +0 -23
- data/lib/twilio-ruby/rest/conferences.rb +0 -12
- data/lib/twilio-ruby/rest/connect_apps.rb +0 -6
- data/lib/twilio-ruby/rest/errors.rb +0 -14
- data/lib/twilio-ruby/rest/incoming_phone_numbers/local.rb +0 -13
- data/lib/twilio-ruby/rest/incoming_phone_numbers/mobile.rb +0 -13
- data/lib/twilio-ruby/rest/incoming_phone_numbers/toll_free.rb +0 -13
- data/lib/twilio-ruby/rest/incoming_phone_numbers.rb +0 -17
- data/lib/twilio-ruby/rest/instance_resource.rb +0 -87
- data/lib/twilio-ruby/rest/ip-messaging/channels.rb +0 -15
- data/lib/twilio-ruby/rest/ip-messaging/credentials.rb +0 -19
- data/lib/twilio-ruby/rest/ip-messaging/members.rb +0 -8
- data/lib/twilio-ruby/rest/ip-messaging/messages.rb +0 -8
- data/lib/twilio-ruby/rest/ip-messaging/roles.rb +0 -8
- data/lib/twilio-ruby/rest/ip-messaging/services.rb +0 -17
- data/lib/twilio-ruby/rest/ip-messaging/users.rb +0 -8
- data/lib/twilio-ruby/rest/ip_messaging_client.rb +0 -100
- data/lib/twilio-ruby/rest/keys.rb +0 -6
- data/lib/twilio-ruby/rest/list_resource.rb +0 -100
- data/lib/twilio-ruby/rest/lookups/phone_numbers.rb +0 -17
- data/lib/twilio-ruby/rest/lookups_client.rb +0 -99
- data/lib/twilio-ruby/rest/media.rb +0 -14
- data/lib/twilio-ruby/rest/messages.rb +0 -22
- data/lib/twilio-ruby/rest/monitor/alerts.rb +0 -8
- data/lib/twilio-ruby/rest/monitor/events.rb +0 -8
- data/lib/twilio-ruby/rest/monitor_client.rb +0 -101
- data/lib/twilio-ruby/rest/next_gen_list_resource.rb +0 -36
- data/lib/twilio-ruby/rest/notifications.rb +0 -6
- data/lib/twilio-ruby/rest/outgoing_caller_ids.rb +0 -25
- data/lib/twilio-ruby/rest/pricing/countries.rb +0 -21
- data/lib/twilio-ruby/rest/pricing/messaging.rb +0 -15
- data/lib/twilio-ruby/rest/pricing/phone_numbers.rb +0 -14
- data/lib/twilio-ruby/rest/pricing/voice/numbers.rb +0 -19
- data/lib/twilio-ruby/rest/pricing/voice.rb +0 -15
- data/lib/twilio-ruby/rest/pricing_client.rb +0 -108
- data/lib/twilio-ruby/rest/queues/members.rb +0 -29
- data/lib/twilio-ruby/rest/queues.rb +0 -12
- data/lib/twilio-ruby/rest/recordings.rb +0 -35
- data/lib/twilio-ruby/rest/sandbox.rb +0 -5
- data/lib/twilio-ruby/rest/sip/credential_lists/credentials.rb +0 -6
- data/lib/twilio-ruby/rest/sip/credential_lists.rb +0 -11
- data/lib/twilio-ruby/rest/sip/domains/credential_list_mappings.rb +0 -6
- data/lib/twilio-ruby/rest/sip/domains/ip_access_control_list_mappings.rb +0 -6
- data/lib/twilio-ruby/rest/sip/domains.rb +0 -12
- data/lib/twilio-ruby/rest/sip/ip_access_control_lists/ip_addresses.rb +0 -6
- data/lib/twilio-ruby/rest/sip/ip_access_control_lists.rb +0 -11
- data/lib/twilio-ruby/rest/sip.rb +0 -10
- data/lib/twilio-ruby/rest/sms/messages.rb +0 -38
- data/lib/twilio-ruby/rest/sms/short_codes.rb +0 -8
- data/lib/twilio-ruby/rest/sms.rb +0 -11
- data/lib/twilio-ruby/rest/task_router/activities.rb +0 -8
- data/lib/twilio-ruby/rest/task_router/events.rb +0 -8
- data/lib/twilio-ruby/rest/task_router/reservations.rb +0 -8
- data/lib/twilio-ruby/rest/task_router/statistics.rb +0 -26
- data/lib/twilio-ruby/rest/task_router/task_queues.rb +0 -17
- data/lib/twilio-ruby/rest/task_router/task_queues_statistics.rb +0 -15
- data/lib/twilio-ruby/rest/task_router/tasks.rb +0 -15
- data/lib/twilio-ruby/rest/task_router/workers.rb +0 -19
- data/lib/twilio-ruby/rest/task_router/workers_statistics.rb +0 -8
- data/lib/twilio-ruby/rest/task_router/workflow_statistics.rb +0 -7
- data/lib/twilio-ruby/rest/task_router/workflows.rb +0 -11
- data/lib/twilio-ruby/rest/task_router/workspace_statistics.rb +0 -7
- data/lib/twilio-ruby/rest/task_router/workspaces.rb +0 -17
- data/lib/twilio-ruby/rest/task_router_client.rb +0 -176
- data/lib/twilio-ruby/rest/tokens.rb +0 -7
- data/lib/twilio-ruby/rest/transcriptions.rb +0 -6
- data/lib/twilio-ruby/rest/trunking/credential_lists.rb +0 -8
- data/lib/twilio-ruby/rest/trunking/ip_access_control_lists.rb +0 -8
- data/lib/twilio-ruby/rest/trunking/origination_urls.rb +0 -8
- data/lib/twilio-ruby/rest/trunking/phone_numbers.rb +0 -8
- data/lib/twilio-ruby/rest/trunking/trunks.rb +0 -19
- data/lib/twilio-ruby/rest/trunking_client.rb +0 -106
- data/lib/twilio-ruby/rest/usage/records.rb +0 -21
- data/lib/twilio-ruby/rest/usage/triggers.rb +0 -12
- data/lib/twilio-ruby/rest/usage.rb +0 -10
- data/lib/twilio-ruby/rest/utils.rb +0 -49
- data/lib/twilio-ruby/task_router/capability.rb +0 -230
- data/lib/twilio-ruby/task_router/workflow_builder.rb +0 -135
- data/lib/twilio-ruby/task_router.rb +0 -0
- data/lib/twilio-ruby/twiml/response.rb +0 -16
- data/lib/twilio-ruby/util/access_token.rb +0 -158
- data/lib/twilio-ruby/util/capability.rb +0 -64
- data/lib/twilio-ruby/util/client_config.rb +0 -29
- data/lib/twilio-ruby/util/request_validator.rb +0 -37
- data/spec/rest/account_spec.rb +0 -89
- data/spec/rest/address_spec.rb +0 -11
- data/spec/rest/call_feedback_spec.rb +0 -12
- data/spec/rest/call_feedback_summary_spec.rb +0 -9
- data/spec/rest/call_spec.rb +0 -22
- data/spec/rest/conference_spec.rb +0 -11
- data/spec/rest/instance_resource_spec.rb +0 -15
- data/spec/rest/ip-messaging/channel_spec.rb +0 -21
- data/spec/rest/ip-messaging/service_spec.rb +0 -30
- data/spec/rest/ip_messaging_client_spec.rb +0 -21
- data/spec/rest/key_spec.rb +0 -11
- data/spec/rest/lookups/phone_number_spec.rb +0 -28
- data/spec/rest/message_spec.rb +0 -12
- data/spec/rest/monitor_client_spec.rb +0 -17
- data/spec/rest/numbers_spec.rb +0 -58
- data/spec/rest/pricing_client_spec.rb +0 -60
- data/spec/rest/queue_spec.rb +0 -11
- data/spec/rest/recording_spec.rb +0 -11
- data/spec/rest/sms/message_spec.rb +0 -37
- data/spec/rest/sms/messages_spec.rb +0 -31
- data/spec/rest/task_router/reservation_spec.rb +0 -14
- data/spec/rest/task_router/statistics_spec.rb +0 -37
- data/spec/rest/task_router/task_queue_spec.rb +0 -9
- data/spec/rest/token_spec.rb +0 -7
- data/spec/rest/trunking/trunk_spec.rb +0 -36
- data/spec/rest/utils_spec.rb +0 -45
- data/spec/task_router/workflow_builder_spec.rb +0 -501
- data/spec/task_router_deprecated_spec.rb +0 -139
- data/spec/task_router_spec.rb +0 -110
- data/spec/task_router_taskqueue_spec.rb +0 -111
- data/spec/task_router_worker_spec.rb +0 -146
- data/spec/task_router_workspace_spec.rb +0 -110
- data/spec/util/access_token_spec.rb +0 -161
- data/spec/util/capability_spec.rb +0 -186
- data/spec/util/client_config_spec.rb +0 -21
- data/spec/util/request_validator_spec.rb +0 -113
@@ -0,0 +1,1174 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module TwiML
|
11
|
+
##
|
12
|
+
# <Response> TwiML for Voice
|
13
|
+
class VoiceResponse < TwiML
|
14
|
+
def initialize(**keyword_args)
|
15
|
+
super(**keyword_args)
|
16
|
+
@name = 'Response'
|
17
|
+
|
18
|
+
yield(self) if block_given?
|
19
|
+
end
|
20
|
+
|
21
|
+
##
|
22
|
+
# Create a new <Connect> element
|
23
|
+
# action:: Action URL
|
24
|
+
# method:: Action URL method
|
25
|
+
# keyword_args:: additional attributes
|
26
|
+
def connect(action: nil, method: nil, **keyword_args)
|
27
|
+
connect = Connect.new(action: action, method: method, **keyword_args)
|
28
|
+
|
29
|
+
yield(connect) if block_given?
|
30
|
+
append(connect)
|
31
|
+
end
|
32
|
+
|
33
|
+
##
|
34
|
+
# Create a new <Dial> element
|
35
|
+
# number:: Phone number to dial
|
36
|
+
# action:: Action URL
|
37
|
+
# method:: Action URL method
|
38
|
+
# timeout:: Time to wait for answer
|
39
|
+
# hangup_on_star:: Hangup call on star press
|
40
|
+
# time_limit:: Max time length
|
41
|
+
# caller_id:: Caller ID to display
|
42
|
+
# record:: Record the call
|
43
|
+
# trim:: Trim the recording
|
44
|
+
# recording_status_callback:: Recording status callback URL
|
45
|
+
# recording_status_callback_method:: Recording status callback URL method
|
46
|
+
# recording_status_callback_event:: Recording status callback events
|
47
|
+
# answer_on_bridge:: Preserve the ringing behavior of the inbound call until the Dialed call picks up
|
48
|
+
# ring_tone:: Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial
|
49
|
+
# keyword_args:: additional attributes
|
50
|
+
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, **keyword_args)
|
51
|
+
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, **keyword_args)
|
52
|
+
|
53
|
+
yield(dial) if block_given?
|
54
|
+
append(dial)
|
55
|
+
end
|
56
|
+
|
57
|
+
##
|
58
|
+
# Create a new <Echo> element
|
59
|
+
# keyword_args:: additional attributes
|
60
|
+
def echo(**keyword_args)
|
61
|
+
append(Echo.new(**keyword_args))
|
62
|
+
end
|
63
|
+
|
64
|
+
##
|
65
|
+
# Create a new <Enqueue> element
|
66
|
+
# name:: Friendly name
|
67
|
+
# action:: Action URL
|
68
|
+
# method:: Action URL method
|
69
|
+
# wait_url:: Wait URL
|
70
|
+
# wait_url_method:: Wait URL method
|
71
|
+
# workflow_sid:: TaskRouter Workflow SID
|
72
|
+
# keyword_args:: additional attributes
|
73
|
+
def enqueue(name: nil, action: nil, method: nil, wait_url: nil, wait_url_method: nil, workflow_sid: nil, **keyword_args)
|
74
|
+
enqueue = Enqueue.new(name: name, action: action, method: method, wait_url: wait_url, wait_url_method: wait_url_method, workflow_sid: workflow_sid, **keyword_args)
|
75
|
+
|
76
|
+
yield(enqueue) if block_given?
|
77
|
+
append(enqueue)
|
78
|
+
end
|
79
|
+
|
80
|
+
##
|
81
|
+
# Create a new <Gather> element
|
82
|
+
# input:: Input type Twilio should accept
|
83
|
+
# action:: Action URL
|
84
|
+
# method:: Action URL method
|
85
|
+
# timeout:: Time to wait to gather input
|
86
|
+
# speech_timeout:: Time to wait to gather speech input and it should be either auto or a positive integer.
|
87
|
+
# max_speech_time:: Max allowed time for speech input
|
88
|
+
# profanity_filter:: Profanity Filter on speech
|
89
|
+
# finish_on_key:: Finish gather on key
|
90
|
+
# num_digits:: Number of digits to collect
|
91
|
+
# partial_result_callback:: Partial result callback URL
|
92
|
+
# partial_result_callback_method:: Partial result callback URL method
|
93
|
+
# language:: Language to use
|
94
|
+
# hints:: Speech recognition hints
|
95
|
+
# barge_in:: Stop playing media upon speech
|
96
|
+
# debug:: Allow debug for gather
|
97
|
+
# action_on_empty_result:: Force webhook to the action URL event if there is no input
|
98
|
+
# speech_model:: Specify the model that is best suited for your use case
|
99
|
+
# enhanced:: Use enhanced speech model
|
100
|
+
# keyword_args:: additional attributes
|
101
|
+
def gather(input: nil, action: nil, method: nil, timeout: nil, speech_timeout: nil, max_speech_time: nil, profanity_filter: nil, finish_on_key: nil, num_digits: nil, partial_result_callback: nil, partial_result_callback_method: nil, language: nil, hints: nil, barge_in: nil, debug: nil, action_on_empty_result: nil, speech_model: nil, enhanced: nil, **keyword_args)
|
102
|
+
gather = Gather.new(input: input, action: action, method: method, timeout: timeout, speech_timeout: speech_timeout, max_speech_time: max_speech_time, profanity_filter: profanity_filter, finish_on_key: finish_on_key, num_digits: num_digits, partial_result_callback: partial_result_callback, partial_result_callback_method: partial_result_callback_method, language: language, hints: hints, barge_in: barge_in, debug: debug, action_on_empty_result: action_on_empty_result, speech_model: speech_model, enhanced: enhanced, **keyword_args)
|
103
|
+
|
104
|
+
yield(gather) if block_given?
|
105
|
+
append(gather)
|
106
|
+
end
|
107
|
+
|
108
|
+
##
|
109
|
+
# Create a new <Hangup> element
|
110
|
+
# keyword_args:: additional attributes
|
111
|
+
def hangup(**keyword_args)
|
112
|
+
append(Hangup.new(**keyword_args))
|
113
|
+
end
|
114
|
+
|
115
|
+
##
|
116
|
+
# Create a new <Leave> element
|
117
|
+
# keyword_args:: additional attributes
|
118
|
+
def leave(**keyword_args)
|
119
|
+
append(Leave.new(**keyword_args))
|
120
|
+
end
|
121
|
+
|
122
|
+
##
|
123
|
+
# Create a new <Pause> element
|
124
|
+
# length:: Length in seconds to pause
|
125
|
+
# keyword_args:: additional attributes
|
126
|
+
def pause(length: nil, **keyword_args)
|
127
|
+
append(Pause.new(length: length, **keyword_args))
|
128
|
+
end
|
129
|
+
|
130
|
+
##
|
131
|
+
# Create a new <Play> element
|
132
|
+
# url:: Media URL
|
133
|
+
# loop:: Times to loop media
|
134
|
+
# digits:: Play DTMF tones for digits
|
135
|
+
# keyword_args:: additional attributes
|
136
|
+
def play(url: nil, loop: nil, digits: nil, **keyword_args)
|
137
|
+
append(Play.new(url: url, loop: loop, digits: digits, **keyword_args))
|
138
|
+
end
|
139
|
+
|
140
|
+
##
|
141
|
+
# Create a new <Queue> element
|
142
|
+
# name:: Queue name
|
143
|
+
# url:: Action URL
|
144
|
+
# method:: Action URL method
|
145
|
+
# reservation_sid:: TaskRouter Reservation SID
|
146
|
+
# post_work_activity_sid:: TaskRouter Activity SID
|
147
|
+
# keyword_args:: additional attributes
|
148
|
+
def queue(name, url: nil, method: nil, reservation_sid: nil, post_work_activity_sid: nil, **keyword_args)
|
149
|
+
append(Queue.new(name, url: url, method: method, reservation_sid: reservation_sid, post_work_activity_sid: post_work_activity_sid, **keyword_args))
|
150
|
+
end
|
151
|
+
|
152
|
+
##
|
153
|
+
# Create a new <Record> element
|
154
|
+
# action:: Action URL
|
155
|
+
# method:: Action URL method
|
156
|
+
# timeout:: Timeout to begin recording
|
157
|
+
# finish_on_key:: Finish recording on key
|
158
|
+
# max_length:: Max time to record in seconds
|
159
|
+
# play_beep:: Play beep
|
160
|
+
# trim:: Trim the recording
|
161
|
+
# recording_status_callback:: Status callback URL
|
162
|
+
# recording_status_callback_method:: Status callback URL method
|
163
|
+
# recording_status_callback_event:: Recording status callback events
|
164
|
+
# transcribe:: Transcribe the recording
|
165
|
+
# transcribe_callback:: Transcribe callback URL
|
166
|
+
# keyword_args:: additional attributes
|
167
|
+
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)
|
168
|
+
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))
|
169
|
+
end
|
170
|
+
|
171
|
+
##
|
172
|
+
# Create a new <Redirect> element
|
173
|
+
# url:: Redirect URL
|
174
|
+
# method:: Redirect URL method
|
175
|
+
# keyword_args:: additional attributes
|
176
|
+
def redirect(url, method: nil, **keyword_args)
|
177
|
+
append(Redirect.new(url, method: method, **keyword_args))
|
178
|
+
end
|
179
|
+
|
180
|
+
##
|
181
|
+
# Create a new <Reject> element
|
182
|
+
# reason:: Rejection reason
|
183
|
+
# keyword_args:: additional attributes
|
184
|
+
def reject(reason: nil, **keyword_args)
|
185
|
+
append(Reject.new(reason: reason, **keyword_args))
|
186
|
+
end
|
187
|
+
|
188
|
+
##
|
189
|
+
# Create a new <Say> element
|
190
|
+
# message:: Message to say
|
191
|
+
# voice:: Voice to use
|
192
|
+
# loop:: Times to loop message
|
193
|
+
# language:: Message langauge
|
194
|
+
# keyword_args:: additional attributes
|
195
|
+
def say(message: nil, voice: nil, loop: nil, language: nil, **keyword_args)
|
196
|
+
say = Say.new(message: message, voice: voice, loop: loop, language: language, **keyword_args)
|
197
|
+
|
198
|
+
yield(say) if block_given?
|
199
|
+
append(say)
|
200
|
+
end
|
201
|
+
|
202
|
+
##
|
203
|
+
# Create a new <Sms> element
|
204
|
+
# message:: Message body
|
205
|
+
# to:: Number to send message to
|
206
|
+
# from:: Number to send message from
|
207
|
+
# action:: Action URL
|
208
|
+
# method:: Action URL method
|
209
|
+
# status_callback:: Status callback URL
|
210
|
+
# keyword_args:: additional attributes
|
211
|
+
def sms(message, to: nil, from: nil, action: nil, method: nil, status_callback: nil, **keyword_args)
|
212
|
+
append(Sms.new(message, to: to, from: from, action: action, method: method, status_callback: status_callback, **keyword_args))
|
213
|
+
end
|
214
|
+
|
215
|
+
##
|
216
|
+
# Create a new <Pay> element
|
217
|
+
# input:: Input type Twilio should accept
|
218
|
+
# action:: Action URL
|
219
|
+
# bank_account_type:: Bank account type for ach transactions. If set, payment method attribute must be provided and value should be set to ach-debit. defaults to consumer-checking
|
220
|
+
# status_callback:: Status callback URL
|
221
|
+
# status_callback_method:: Status callback method
|
222
|
+
# timeout:: Time to wait to gather input
|
223
|
+
# max_attempts:: Maximum number of allowed retries when gathering input
|
224
|
+
# security_code:: Prompt for security code
|
225
|
+
# postal_code:: Prompt for postal code and it should be true/false or default postal code
|
226
|
+
# min_postal_code_length:: Prompt for minimum postal code length
|
227
|
+
# payment_connector:: Unique name for payment connector
|
228
|
+
# payment_method:: Payment method to be used. defaults to credit-card
|
229
|
+
# token_type:: Type of token
|
230
|
+
# charge_amount:: Amount to process. If value is greater than 0 then make the payment else create a payment token
|
231
|
+
# currency:: Currency of the amount attribute
|
232
|
+
# description:: Details regarding the payment
|
233
|
+
# valid_card_types:: Comma separated accepted card types
|
234
|
+
# language:: Language to use
|
235
|
+
# keyword_args:: additional attributes
|
236
|
+
def pay(input: nil, action: nil, bank_account_type: nil, status_callback: nil, status_callback_method: nil, timeout: nil, max_attempts: nil, security_code: nil, postal_code: nil, min_postal_code_length: nil, payment_connector: nil, payment_method: nil, token_type: nil, charge_amount: nil, currency: nil, description: nil, valid_card_types: nil, language: nil, **keyword_args)
|
237
|
+
pay = Pay.new(input: input, action: action, bank_account_type: bank_account_type, status_callback: status_callback, status_callback_method: status_callback_method, timeout: timeout, max_attempts: max_attempts, security_code: security_code, postal_code: postal_code, min_postal_code_length: min_postal_code_length, payment_connector: payment_connector, payment_method: payment_method, token_type: token_type, charge_amount: charge_amount, currency: currency, description: description, valid_card_types: valid_card_types, language: language, **keyword_args)
|
238
|
+
|
239
|
+
yield(pay) if block_given?
|
240
|
+
append(pay)
|
241
|
+
end
|
242
|
+
|
243
|
+
##
|
244
|
+
# Create a new <Prompt> element
|
245
|
+
# for_:: Name of the payment source data element
|
246
|
+
# error_type:: Type of error
|
247
|
+
# card_type:: Type of the credit card
|
248
|
+
# attempt:: Current attempt count
|
249
|
+
# keyword_args:: additional attributes
|
250
|
+
def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, **keyword_args)
|
251
|
+
prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, **keyword_args)
|
252
|
+
|
253
|
+
yield(prompt) if block_given?
|
254
|
+
append(prompt)
|
255
|
+
end
|
256
|
+
|
257
|
+
##
|
258
|
+
# Create a new <Start> element
|
259
|
+
# action:: Action URL
|
260
|
+
# method:: Action URL method
|
261
|
+
# keyword_args:: additional attributes
|
262
|
+
def start(action: nil, method: nil, **keyword_args)
|
263
|
+
start = Start.new(action: action, method: method, **keyword_args)
|
264
|
+
|
265
|
+
yield(start) if block_given?
|
266
|
+
append(start)
|
267
|
+
end
|
268
|
+
|
269
|
+
##
|
270
|
+
# Create a new <Stop> element
|
271
|
+
# keyword_args:: additional attributes
|
272
|
+
def stop(**keyword_args)
|
273
|
+
stop = Stop.new(**keyword_args)
|
274
|
+
|
275
|
+
yield(stop) if block_given?
|
276
|
+
append(stop)
|
277
|
+
end
|
278
|
+
|
279
|
+
##
|
280
|
+
# Create a new <Refer> element
|
281
|
+
# action:: Action URL
|
282
|
+
# method:: Action URL method
|
283
|
+
# keyword_args:: additional attributes
|
284
|
+
def refer(action: nil, method: nil, **keyword_args)
|
285
|
+
refer = Refer.new(action: action, method: method, **keyword_args)
|
286
|
+
|
287
|
+
yield(refer) if block_given?
|
288
|
+
append(refer)
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
##
|
293
|
+
# <Refer> TwiML Verb
|
294
|
+
class Refer < TwiML
|
295
|
+
def initialize(**keyword_args)
|
296
|
+
super(**keyword_args)
|
297
|
+
@name = 'Refer'
|
298
|
+
|
299
|
+
yield(self) if block_given?
|
300
|
+
end
|
301
|
+
|
302
|
+
##
|
303
|
+
# Create a new <Sip> element
|
304
|
+
# sip_url:: SIP URL
|
305
|
+
# keyword_args:: additional attributes
|
306
|
+
def sip(sip_url, **keyword_args)
|
307
|
+
append(ReferSip.new(sip_url, **keyword_args))
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
##
|
312
|
+
# <Sip> TwiML Noun used in <Refer>
|
313
|
+
class ReferSip < TwiML
|
314
|
+
def initialize(sip_url, **keyword_args)
|
315
|
+
super(**keyword_args)
|
316
|
+
@name = 'Sip'
|
317
|
+
@value = sip_url
|
318
|
+
yield(self) if block_given?
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
##
|
323
|
+
# <Stop> TwiML Verb
|
324
|
+
class Stop < TwiML
|
325
|
+
def initialize(**keyword_args)
|
326
|
+
super(**keyword_args)
|
327
|
+
@name = 'Stop'
|
328
|
+
|
329
|
+
yield(self) if block_given?
|
330
|
+
end
|
331
|
+
|
332
|
+
##
|
333
|
+
# Create a new <Stream> element
|
334
|
+
# name:: Friendly name given to the Stream
|
335
|
+
# connector_name:: Unique name for Stream Connector
|
336
|
+
# url:: URL of the remote service where the Stream is routed
|
337
|
+
# track:: Track to be streamed to remote service
|
338
|
+
# keyword_args:: additional attributes
|
339
|
+
def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args)
|
340
|
+
stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args)
|
341
|
+
|
342
|
+
yield(stream) if block_given?
|
343
|
+
append(stream)
|
344
|
+
end
|
345
|
+
|
346
|
+
##
|
347
|
+
# Create a new <Siprec> element
|
348
|
+
# name:: Friendly name given to SIPREC
|
349
|
+
# connector_name:: Unique name for Connector
|
350
|
+
# track:: Track to be streamed to remote service
|
351
|
+
# keyword_args:: additional attributes
|
352
|
+
def siprec(name: nil, connector_name: nil, track: nil, **keyword_args)
|
353
|
+
siprec = Siprec.new(name: name, connector_name: connector_name, track: track, **keyword_args)
|
354
|
+
|
355
|
+
yield(siprec) if block_given?
|
356
|
+
append(siprec)
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
##
|
361
|
+
# <Siprec> TwiML Noun
|
362
|
+
class Siprec < TwiML
|
363
|
+
def initialize(**keyword_args)
|
364
|
+
super(**keyword_args)
|
365
|
+
@name = 'Siprec'
|
366
|
+
|
367
|
+
yield(self) if block_given?
|
368
|
+
end
|
369
|
+
|
370
|
+
##
|
371
|
+
# Create a new <Parameter> element
|
372
|
+
# name:: The name of the custom parameter
|
373
|
+
# value:: The value of the custom parameter
|
374
|
+
# keyword_args:: additional attributes
|
375
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
376
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
380
|
+
##
|
381
|
+
# <Parameter> TwiML Noun
|
382
|
+
class Parameter < TwiML
|
383
|
+
def initialize(**keyword_args)
|
384
|
+
super(**keyword_args)
|
385
|
+
@name = 'Parameter'
|
386
|
+
|
387
|
+
yield(self) if block_given?
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
##
|
392
|
+
# <Stream> TwiML Noun
|
393
|
+
class Stream < TwiML
|
394
|
+
def initialize(**keyword_args)
|
395
|
+
super(**keyword_args)
|
396
|
+
@name = 'Stream'
|
397
|
+
|
398
|
+
yield(self) if block_given?
|
399
|
+
end
|
400
|
+
|
401
|
+
##
|
402
|
+
# Create a new <Parameter> element
|
403
|
+
# name:: The name of the custom parameter
|
404
|
+
# value:: The value of the custom parameter
|
405
|
+
# keyword_args:: additional attributes
|
406
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
407
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
##
|
412
|
+
# <Start> TwiML Verb
|
413
|
+
class Start < TwiML
|
414
|
+
def initialize(**keyword_args)
|
415
|
+
super(**keyword_args)
|
416
|
+
@name = 'Start'
|
417
|
+
|
418
|
+
yield(self) if block_given?
|
419
|
+
end
|
420
|
+
|
421
|
+
##
|
422
|
+
# Create a new <Stream> element
|
423
|
+
# name:: Friendly name given to the Stream
|
424
|
+
# connector_name:: Unique name for Stream Connector
|
425
|
+
# url:: URL of the remote service where the Stream is routed
|
426
|
+
# track:: Track to be streamed to remote service
|
427
|
+
# keyword_args:: additional attributes
|
428
|
+
def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args)
|
429
|
+
stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args)
|
430
|
+
|
431
|
+
yield(stream) if block_given?
|
432
|
+
append(stream)
|
433
|
+
end
|
434
|
+
|
435
|
+
##
|
436
|
+
# Create a new <Siprec> element
|
437
|
+
# name:: Friendly name given to SIPREC
|
438
|
+
# connector_name:: Unique name for Connector
|
439
|
+
# track:: Track to be streamed to remote service
|
440
|
+
# keyword_args:: additional attributes
|
441
|
+
def siprec(name: nil, connector_name: nil, track: nil, **keyword_args)
|
442
|
+
siprec = Siprec.new(name: name, connector_name: connector_name, track: track, **keyword_args)
|
443
|
+
|
444
|
+
yield(siprec) if block_given?
|
445
|
+
append(siprec)
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
##
|
450
|
+
# <Prompt> Twiml Verb
|
451
|
+
class Prompt < TwiML
|
452
|
+
def initialize(**keyword_args)
|
453
|
+
super(**keyword_args)
|
454
|
+
@name = 'Prompt'
|
455
|
+
|
456
|
+
yield(self) if block_given?
|
457
|
+
end
|
458
|
+
|
459
|
+
##
|
460
|
+
# Create a new <Say> element
|
461
|
+
# message:: Message to say
|
462
|
+
# voice:: Voice to use
|
463
|
+
# loop:: Times to loop message
|
464
|
+
# language:: Message langauge
|
465
|
+
# keyword_args:: additional attributes
|
466
|
+
def say(message: nil, voice: nil, loop: nil, language: nil, **keyword_args)
|
467
|
+
say = Say.new(message: message, voice: voice, loop: loop, language: language, **keyword_args)
|
468
|
+
|
469
|
+
yield(say) if block_given?
|
470
|
+
append(say)
|
471
|
+
end
|
472
|
+
|
473
|
+
##
|
474
|
+
# Create a new <Play> element
|
475
|
+
# url:: Media URL
|
476
|
+
# loop:: Times to loop media
|
477
|
+
# digits:: Play DTMF tones for digits
|
478
|
+
# keyword_args:: additional attributes
|
479
|
+
def play(url: nil, loop: nil, digits: nil, **keyword_args)
|
480
|
+
append(Play.new(url: url, loop: loop, digits: digits, **keyword_args))
|
481
|
+
end
|
482
|
+
|
483
|
+
##
|
484
|
+
# Create a new <Pause> element
|
485
|
+
# length:: Length in seconds to pause
|
486
|
+
# keyword_args:: additional attributes
|
487
|
+
def pause(length: nil, **keyword_args)
|
488
|
+
append(Pause.new(length: length, **keyword_args))
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
492
|
+
##
|
493
|
+
# <Pause> TwiML Verb
|
494
|
+
class Pause < TwiML
|
495
|
+
def initialize(**keyword_args)
|
496
|
+
super(**keyword_args)
|
497
|
+
@name = 'Pause'
|
498
|
+
|
499
|
+
yield(self) if block_given?
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
503
|
+
##
|
504
|
+
# <Play> TwiML Verb
|
505
|
+
class Play < TwiML
|
506
|
+
def initialize(url: nil, **keyword_args)
|
507
|
+
super(**keyword_args)
|
508
|
+
@name = 'Play'
|
509
|
+
@value = url unless url.nil?
|
510
|
+
yield(self) if block_given?
|
511
|
+
end
|
512
|
+
end
|
513
|
+
|
514
|
+
##
|
515
|
+
# <Say> TwiML Verb
|
516
|
+
class Say < TwiML
|
517
|
+
def initialize(message: nil, **keyword_args)
|
518
|
+
super(**keyword_args)
|
519
|
+
@name = 'Say'
|
520
|
+
@value = message unless message.nil?
|
521
|
+
yield(self) if block_given?
|
522
|
+
end
|
523
|
+
|
524
|
+
##
|
525
|
+
# Create a new <Break> element
|
526
|
+
# strength:: Set a pause based on strength
|
527
|
+
# time:: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
528
|
+
# keyword_args:: additional attributes
|
529
|
+
def break(strength: nil, time: nil, **keyword_args)
|
530
|
+
append(SsmlBreak.new(strength: strength, time: time, **keyword_args))
|
531
|
+
end
|
532
|
+
|
533
|
+
##
|
534
|
+
# Create a new <Emphasis> element
|
535
|
+
# words:: Words to emphasize
|
536
|
+
# level:: Specify the degree of emphasis
|
537
|
+
# keyword_args:: additional attributes
|
538
|
+
def emphasis(words, level: nil, **keyword_args)
|
539
|
+
append(SsmlEmphasis.new(words, level: level, **keyword_args))
|
540
|
+
end
|
541
|
+
|
542
|
+
##
|
543
|
+
# Create a new <Lang> element
|
544
|
+
# words:: Words to speak
|
545
|
+
# xmlLang:: Specify the language
|
546
|
+
# keyword_args:: additional attributes
|
547
|
+
def lang(words, xmlLang: nil, **keyword_args)
|
548
|
+
append(SsmlLang.new(words, xmlLang: xmlLang, **keyword_args))
|
549
|
+
end
|
550
|
+
|
551
|
+
##
|
552
|
+
# Create a new <P> element
|
553
|
+
# words:: Words to speak
|
554
|
+
# keyword_args:: additional attributes
|
555
|
+
def p(words, **keyword_args)
|
556
|
+
append(SsmlP.new(words, **keyword_args))
|
557
|
+
end
|
558
|
+
|
559
|
+
##
|
560
|
+
# Create a new <Phoneme> element
|
561
|
+
# words:: Words to speak
|
562
|
+
# alphabet:: Specify the phonetic alphabet
|
563
|
+
# ph:: Specifiy the phonetic symbols for pronunciation
|
564
|
+
# keyword_args:: additional attributes
|
565
|
+
def phoneme(words, alphabet: nil, ph: nil, **keyword_args)
|
566
|
+
append(SsmlPhoneme.new(words, alphabet: alphabet, ph: ph, **keyword_args))
|
567
|
+
end
|
568
|
+
|
569
|
+
##
|
570
|
+
# Create a new <Prosody> element
|
571
|
+
# words:: Words to speak
|
572
|
+
# volume:: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
573
|
+
# rate:: Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
574
|
+
# pitch:: Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
575
|
+
# keyword_args:: additional attributes
|
576
|
+
def prosody(words, volume: nil, rate: nil, pitch: nil, **keyword_args)
|
577
|
+
append(SsmlProsody.new(words, volume: volume, rate: rate, pitch: pitch, **keyword_args))
|
578
|
+
end
|
579
|
+
|
580
|
+
##
|
581
|
+
# Create a new <S> element
|
582
|
+
# words:: Words to speak
|
583
|
+
# keyword_args:: additional attributes
|
584
|
+
def s(words, **keyword_args)
|
585
|
+
append(SsmlS.new(words, **keyword_args))
|
586
|
+
end
|
587
|
+
|
588
|
+
##
|
589
|
+
# Create a new <Say-As> element
|
590
|
+
# words:: Words to be interpreted
|
591
|
+
# interpretAs:: Specify the type of words are spoken
|
592
|
+
# role:: Specify the format of the date when interpret-as is set to date
|
593
|
+
# keyword_args:: additional attributes
|
594
|
+
def say_as(words, interpretAs: nil, role: nil, **keyword_args)
|
595
|
+
append(SsmlSayAs.new(words, interpretAs: interpretAs, role: role, **keyword_args))
|
596
|
+
end
|
597
|
+
|
598
|
+
##
|
599
|
+
# Create a new <Sub> element
|
600
|
+
# words:: Words to be substituted
|
601
|
+
# aliasAttribute:: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
602
|
+
# keyword_args:: additional attributes
|
603
|
+
def sub(words, aliasAttribute: nil, **keyword_args)
|
604
|
+
append(SsmlSub.new(words, aliasAttribute: aliasAttribute, **keyword_args))
|
605
|
+
end
|
606
|
+
|
607
|
+
##
|
608
|
+
# Create a new <W> element
|
609
|
+
# words:: Words to speak
|
610
|
+
# role:: Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
611
|
+
# keyword_args:: additional attributes
|
612
|
+
def w(words, role: nil, **keyword_args)
|
613
|
+
append(SsmlW.new(words, role: role, **keyword_args))
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
617
|
+
##
|
618
|
+
# Improving Pronunciation by Specifying Parts of Speech in <Say>
|
619
|
+
class SsmlW < TwiML
|
620
|
+
def initialize(words, **keyword_args)
|
621
|
+
super(**keyword_args)
|
622
|
+
@name = 'w'
|
623
|
+
@value = words
|
624
|
+
yield(self) if block_given?
|
625
|
+
end
|
626
|
+
end
|
627
|
+
|
628
|
+
##
|
629
|
+
# Pronouncing Acronyms and Abbreviations in <Say>
|
630
|
+
class SsmlSub < TwiML
|
631
|
+
def initialize(words, **keyword_args)
|
632
|
+
super(**keyword_args)
|
633
|
+
@name = 'sub'
|
634
|
+
@value = words
|
635
|
+
yield(self) if block_given?
|
636
|
+
end
|
637
|
+
end
|
638
|
+
|
639
|
+
##
|
640
|
+
# Controlling How Special Types of Words Are Spoken in <Say>
|
641
|
+
class SsmlSayAs < TwiML
|
642
|
+
def initialize(words, **keyword_args)
|
643
|
+
super(**keyword_args)
|
644
|
+
@name = 'say-as'
|
645
|
+
@value = words
|
646
|
+
yield(self) if block_given?
|
647
|
+
end
|
648
|
+
end
|
649
|
+
|
650
|
+
##
|
651
|
+
# Adding A Pause Between Sentences in <Say>
|
652
|
+
class SsmlS < TwiML
|
653
|
+
def initialize(words, **keyword_args)
|
654
|
+
super(**keyword_args)
|
655
|
+
@name = 's'
|
656
|
+
@value = words
|
657
|
+
yield(self) if block_given?
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
##
|
662
|
+
# Controling Volume, Speaking Rate, and Pitch in <Say>
|
663
|
+
class SsmlProsody < TwiML
|
664
|
+
def initialize(words, **keyword_args)
|
665
|
+
super(**keyword_args)
|
666
|
+
@name = 'prosody'
|
667
|
+
@value = words
|
668
|
+
yield(self) if block_given?
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
672
|
+
##
|
673
|
+
# Using Phonetic Pronunciation in <Say>
|
674
|
+
class SsmlPhoneme < TwiML
|
675
|
+
def initialize(words, **keyword_args)
|
676
|
+
super(**keyword_args)
|
677
|
+
@name = 'phoneme'
|
678
|
+
@value = words
|
679
|
+
yield(self) if block_given?
|
680
|
+
end
|
681
|
+
end
|
682
|
+
|
683
|
+
##
|
684
|
+
# Adding a Pause Between Paragraphs in <Say>
|
685
|
+
class SsmlP < TwiML
|
686
|
+
def initialize(words, **keyword_args)
|
687
|
+
super(**keyword_args)
|
688
|
+
@name = 'p'
|
689
|
+
@value = words
|
690
|
+
yield(self) if block_given?
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
##
|
695
|
+
# Specifying Another Language for Specific Words in <Say>
|
696
|
+
class SsmlLang < TwiML
|
697
|
+
def initialize(words, **keyword_args)
|
698
|
+
super(**keyword_args)
|
699
|
+
@name = 'lang'
|
700
|
+
@value = words
|
701
|
+
yield(self) if block_given?
|
702
|
+
end
|
703
|
+
end
|
704
|
+
|
705
|
+
##
|
706
|
+
# Emphasizing Words in <Say>
|
707
|
+
class SsmlEmphasis < TwiML
|
708
|
+
def initialize(words, **keyword_args)
|
709
|
+
super(**keyword_args)
|
710
|
+
@name = 'emphasis'
|
711
|
+
@value = words
|
712
|
+
yield(self) if block_given?
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
##
|
717
|
+
# Adding a Pause in <Say>
|
718
|
+
class SsmlBreak < TwiML
|
719
|
+
def initialize(**keyword_args)
|
720
|
+
super(**keyword_args)
|
721
|
+
@name = 'break'
|
722
|
+
|
723
|
+
yield(self) if block_given?
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
##
|
728
|
+
# <Pay> Twiml Verb
|
729
|
+
class Pay < TwiML
|
730
|
+
def initialize(**keyword_args)
|
731
|
+
super(**keyword_args)
|
732
|
+
@name = 'Pay'
|
733
|
+
|
734
|
+
yield(self) if block_given?
|
735
|
+
end
|
736
|
+
|
737
|
+
##
|
738
|
+
# Create a new <Prompt> element
|
739
|
+
# for_:: Name of the payment source data element
|
740
|
+
# error_type:: Type of error
|
741
|
+
# card_type:: Type of the credit card
|
742
|
+
# attempt:: Current attempt count
|
743
|
+
# keyword_args:: additional attributes
|
744
|
+
def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, **keyword_args)
|
745
|
+
prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, **keyword_args)
|
746
|
+
|
747
|
+
yield(prompt) if block_given?
|
748
|
+
append(prompt)
|
749
|
+
end
|
750
|
+
|
751
|
+
##
|
752
|
+
# Create a new <Parameter> element
|
753
|
+
# name:: The name of the custom parameter
|
754
|
+
# value:: The value of the custom parameter
|
755
|
+
# keyword_args:: additional attributes
|
756
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
757
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
761
|
+
##
|
762
|
+
# <Sms> TwiML Noun
|
763
|
+
class Sms < TwiML
|
764
|
+
def initialize(message, **keyword_args)
|
765
|
+
super(**keyword_args)
|
766
|
+
@name = 'Sms'
|
767
|
+
@value = message
|
768
|
+
yield(self) if block_given?
|
769
|
+
end
|
770
|
+
end
|
771
|
+
|
772
|
+
##
|
773
|
+
# <Reject> TwiML Verb
|
774
|
+
class Reject < TwiML
|
775
|
+
def initialize(**keyword_args)
|
776
|
+
super(**keyword_args)
|
777
|
+
@name = 'Reject'
|
778
|
+
|
779
|
+
yield(self) if block_given?
|
780
|
+
end
|
781
|
+
end
|
782
|
+
|
783
|
+
##
|
784
|
+
# <Redirect> TwiML Verb
|
785
|
+
class Redirect < TwiML
|
786
|
+
def initialize(url, **keyword_args)
|
787
|
+
super(**keyword_args)
|
788
|
+
@name = 'Redirect'
|
789
|
+
@value = url
|
790
|
+
yield(self) if block_given?
|
791
|
+
end
|
792
|
+
end
|
793
|
+
|
794
|
+
##
|
795
|
+
# <Record> TwiML Verb
|
796
|
+
class Record < TwiML
|
797
|
+
def initialize(**keyword_args)
|
798
|
+
super(**keyword_args)
|
799
|
+
@name = 'Record'
|
800
|
+
|
801
|
+
yield(self) if block_given?
|
802
|
+
end
|
803
|
+
end
|
804
|
+
|
805
|
+
##
|
806
|
+
# <Queue> TwiML Noun
|
807
|
+
class Queue < TwiML
|
808
|
+
def initialize(name, **keyword_args)
|
809
|
+
super(**keyword_args)
|
810
|
+
@name = 'Queue'
|
811
|
+
@value = name
|
812
|
+
yield(self) if block_given?
|
813
|
+
end
|
814
|
+
end
|
815
|
+
|
816
|
+
##
|
817
|
+
# <Leave> TwiML Verb
|
818
|
+
class Leave < TwiML
|
819
|
+
def initialize(**keyword_args)
|
820
|
+
super(**keyword_args)
|
821
|
+
@name = 'Leave'
|
822
|
+
|
823
|
+
yield(self) if block_given?
|
824
|
+
end
|
825
|
+
end
|
826
|
+
|
827
|
+
##
|
828
|
+
# <Hangup> TwiML Verb
|
829
|
+
class Hangup < TwiML
|
830
|
+
def initialize(**keyword_args)
|
831
|
+
super(**keyword_args)
|
832
|
+
@name = 'Hangup'
|
833
|
+
|
834
|
+
yield(self) if block_given?
|
835
|
+
end
|
836
|
+
end
|
837
|
+
|
838
|
+
##
|
839
|
+
# <Gather> TwiML Verb
|
840
|
+
class Gather < TwiML
|
841
|
+
def initialize(**keyword_args)
|
842
|
+
super(**keyword_args)
|
843
|
+
@name = 'Gather'
|
844
|
+
|
845
|
+
yield(self) if block_given?
|
846
|
+
end
|
847
|
+
|
848
|
+
##
|
849
|
+
# Create a new <Say> element
|
850
|
+
# message:: Message to say
|
851
|
+
# voice:: Voice to use
|
852
|
+
# loop:: Times to loop message
|
853
|
+
# language:: Message langauge
|
854
|
+
# keyword_args:: additional attributes
|
855
|
+
def say(message: nil, voice: nil, loop: nil, language: nil, **keyword_args)
|
856
|
+
say = Say.new(message: message, voice: voice, loop: loop, language: language, **keyword_args)
|
857
|
+
|
858
|
+
yield(say) if block_given?
|
859
|
+
append(say)
|
860
|
+
end
|
861
|
+
|
862
|
+
##
|
863
|
+
# Create a new <Pause> element
|
864
|
+
# length:: Length in seconds to pause
|
865
|
+
# keyword_args:: additional attributes
|
866
|
+
def pause(length: nil, **keyword_args)
|
867
|
+
append(Pause.new(length: length, **keyword_args))
|
868
|
+
end
|
869
|
+
|
870
|
+
##
|
871
|
+
# Create a new <Play> element
|
872
|
+
# url:: Media URL
|
873
|
+
# loop:: Times to loop media
|
874
|
+
# digits:: Play DTMF tones for digits
|
875
|
+
# keyword_args:: additional attributes
|
876
|
+
def play(url: nil, loop: nil, digits: nil, **keyword_args)
|
877
|
+
append(Play.new(url: url, loop: loop, digits: digits, **keyword_args))
|
878
|
+
end
|
879
|
+
end
|
880
|
+
|
881
|
+
##
|
882
|
+
# <Enqueue> TwiML Noun
|
883
|
+
class Enqueue < TwiML
|
884
|
+
def initialize(name: nil, **keyword_args)
|
885
|
+
super(**keyword_args)
|
886
|
+
@name = 'Enqueue'
|
887
|
+
@value = name unless name.nil?
|
888
|
+
yield(self) if block_given?
|
889
|
+
end
|
890
|
+
|
891
|
+
##
|
892
|
+
# Create a new <Task> element
|
893
|
+
# body:: TaskRouter task attributes
|
894
|
+
# priority:: Task priority
|
895
|
+
# timeout:: Timeout associated with task
|
896
|
+
# keyword_args:: additional attributes
|
897
|
+
def task(body, priority: nil, timeout: nil, **keyword_args)
|
898
|
+
append(Task.new(body, priority: priority, timeout: timeout, **keyword_args))
|
899
|
+
end
|
900
|
+
end
|
901
|
+
|
902
|
+
##
|
903
|
+
# <Task> TwiML Noun
|
904
|
+
class Task < TwiML
|
905
|
+
def initialize(body, **keyword_args)
|
906
|
+
super(**keyword_args)
|
907
|
+
@name = 'Task'
|
908
|
+
@value = body
|
909
|
+
yield(self) if block_given?
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
913
|
+
##
|
914
|
+
# <Echo> TwiML Verb
|
915
|
+
class Echo < TwiML
|
916
|
+
def initialize(**keyword_args)
|
917
|
+
super(**keyword_args)
|
918
|
+
@name = 'Echo'
|
919
|
+
|
920
|
+
yield(self) if block_given?
|
921
|
+
end
|
922
|
+
end
|
923
|
+
|
924
|
+
##
|
925
|
+
# <Dial> TwiML Verb
|
926
|
+
class Dial < TwiML
|
927
|
+
def initialize(number: nil, **keyword_args)
|
928
|
+
super(**keyword_args)
|
929
|
+
@name = 'Dial'
|
930
|
+
@value = number unless number.nil?
|
931
|
+
yield(self) if block_given?
|
932
|
+
end
|
933
|
+
|
934
|
+
##
|
935
|
+
# Create a new <Client> element
|
936
|
+
# identity:: Client identity
|
937
|
+
# url:: Client URL
|
938
|
+
# method:: Client URL Method
|
939
|
+
# status_callback_event:: Events to trigger status callback
|
940
|
+
# status_callback:: Status Callback URL
|
941
|
+
# status_callback_method:: Status Callback URL Method
|
942
|
+
# keyword_args:: additional attributes
|
943
|
+
def client(identity: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
|
944
|
+
client = Client.new(identity: identity, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
|
945
|
+
|
946
|
+
yield(client) if block_given?
|
947
|
+
append(client)
|
948
|
+
end
|
949
|
+
|
950
|
+
##
|
951
|
+
# Create a new <Conference> element
|
952
|
+
# name:: Conference name
|
953
|
+
# muted:: Join the conference muted
|
954
|
+
# beep:: Play beep when joining
|
955
|
+
# start_conference_on_enter:: Start the conference on enter
|
956
|
+
# end_conference_on_exit:: End the conferenceon exit
|
957
|
+
# wait_url:: Wait URL
|
958
|
+
# wait_method:: Wait URL method
|
959
|
+
# max_participants:: Maximum number of participants
|
960
|
+
# record:: Record the conference
|
961
|
+
# region:: Conference region
|
962
|
+
# coach:: Call coach
|
963
|
+
# trim:: Trim the conference recording
|
964
|
+
# status_callback_event:: Events to call status callback URL
|
965
|
+
# status_callback:: Status callback URL
|
966
|
+
# status_callback_method:: Status callback URL method
|
967
|
+
# recording_status_callback:: Recording status callback URL
|
968
|
+
# recording_status_callback_method:: Recording status callback URL method
|
969
|
+
# recording_status_callback_event:: Recording status callback events
|
970
|
+
# event_callback_url:: Event callback URL
|
971
|
+
# keyword_args:: additional attributes
|
972
|
+
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, **keyword_args)
|
973
|
+
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, **keyword_args))
|
974
|
+
end
|
975
|
+
|
976
|
+
##
|
977
|
+
# Create a new <Number> element
|
978
|
+
# phone_number:: Phone Number to dial
|
979
|
+
# send_digits:: DTMF tones to play when the call is answered
|
980
|
+
# url:: TwiML URL
|
981
|
+
# method:: TwiML URL method
|
982
|
+
# status_callback_event:: Events to call status callback
|
983
|
+
# status_callback:: Status callback URL
|
984
|
+
# status_callback_method:: Status callback URL method
|
985
|
+
# byoc:: BYOC trunk SID (Beta)
|
986
|
+
# keyword_args:: additional attributes
|
987
|
+
def number(phone_number, send_digits: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, byoc: nil, **keyword_args)
|
988
|
+
append(Number.new(phone_number, send_digits: send_digits, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, byoc: byoc, **keyword_args))
|
989
|
+
end
|
990
|
+
|
991
|
+
##
|
992
|
+
# Create a new <Queue> element
|
993
|
+
# name:: Queue name
|
994
|
+
# url:: Action URL
|
995
|
+
# method:: Action URL method
|
996
|
+
# reservation_sid:: TaskRouter Reservation SID
|
997
|
+
# post_work_activity_sid:: TaskRouter Activity SID
|
998
|
+
# keyword_args:: additional attributes
|
999
|
+
def queue(name, url: nil, method: nil, reservation_sid: nil, post_work_activity_sid: nil, **keyword_args)
|
1000
|
+
append(Queue.new(name, url: url, method: method, reservation_sid: reservation_sid, post_work_activity_sid: post_work_activity_sid, **keyword_args))
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
##
|
1004
|
+
# Create a new <Sim> element
|
1005
|
+
# sim_sid:: SIM SID
|
1006
|
+
# keyword_args:: additional attributes
|
1007
|
+
def sim(sim_sid, **keyword_args)
|
1008
|
+
append(Sim.new(sim_sid, **keyword_args))
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
##
|
1012
|
+
# Create a new <Sip> element
|
1013
|
+
# sip_url:: SIP URL
|
1014
|
+
# username:: SIP Username
|
1015
|
+
# password:: SIP Password
|
1016
|
+
# url:: Action URL
|
1017
|
+
# method:: Action URL method
|
1018
|
+
# status_callback_event:: Status callback events
|
1019
|
+
# status_callback:: Status callback URL
|
1020
|
+
# status_callback_method:: Status callback URL method
|
1021
|
+
# keyword_args:: additional attributes
|
1022
|
+
def sip(sip_url, username: nil, password: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
|
1023
|
+
append(Sip.new(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, **keyword_args))
|
1024
|
+
end
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
##
|
1028
|
+
# <Sip> TwiML Noun
|
1029
|
+
class Sip < TwiML
|
1030
|
+
def initialize(sip_url, **keyword_args)
|
1031
|
+
super(**keyword_args)
|
1032
|
+
@name = 'Sip'
|
1033
|
+
@value = sip_url
|
1034
|
+
yield(self) if block_given?
|
1035
|
+
end
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
##
|
1039
|
+
# <Sim> TwiML Noun
|
1040
|
+
class Sim < TwiML
|
1041
|
+
def initialize(sim_sid, **keyword_args)
|
1042
|
+
super(**keyword_args)
|
1043
|
+
@name = 'Sim'
|
1044
|
+
@value = sim_sid
|
1045
|
+
yield(self) if block_given?
|
1046
|
+
end
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
##
|
1050
|
+
# <Number> TwiML Noun
|
1051
|
+
class Number < TwiML
|
1052
|
+
def initialize(phone_number, **keyword_args)
|
1053
|
+
super(**keyword_args)
|
1054
|
+
@name = 'Number'
|
1055
|
+
@value = phone_number
|
1056
|
+
yield(self) if block_given?
|
1057
|
+
end
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
##
|
1061
|
+
# <Conference> TwiML Noun
|
1062
|
+
class Conference < TwiML
|
1063
|
+
def initialize(name, **keyword_args)
|
1064
|
+
super(**keyword_args)
|
1065
|
+
@name = 'Conference'
|
1066
|
+
@value = name
|
1067
|
+
yield(self) if block_given?
|
1068
|
+
end
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
##
|
1072
|
+
# <Client> TwiML Noun
|
1073
|
+
class Client < TwiML
|
1074
|
+
def initialize(identity: nil, **keyword_args)
|
1075
|
+
super(**keyword_args)
|
1076
|
+
@name = 'Client'
|
1077
|
+
@value = identity unless identity.nil?
|
1078
|
+
yield(self) if block_given?
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
##
|
1082
|
+
# Create a new <Identity> element
|
1083
|
+
# client_identity:: Identity of the client to dial
|
1084
|
+
# keyword_args:: additional attributes
|
1085
|
+
def identity(client_identity, **keyword_args)
|
1086
|
+
append(Identity.new(client_identity, **keyword_args))
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
##
|
1090
|
+
# Create a new <Parameter> element
|
1091
|
+
# name:: The name of the custom parameter
|
1092
|
+
# value:: The value of the custom parameter
|
1093
|
+
# keyword_args:: additional attributes
|
1094
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
1095
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
1096
|
+
end
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
##
|
1100
|
+
# <Identity> TwiML Noun
|
1101
|
+
class Identity < TwiML
|
1102
|
+
def initialize(client_identity, **keyword_args)
|
1103
|
+
super(**keyword_args)
|
1104
|
+
@name = 'Identity'
|
1105
|
+
@value = client_identity
|
1106
|
+
yield(self) if block_given?
|
1107
|
+
end
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
##
|
1111
|
+
# <Connect> TwiML Verb
|
1112
|
+
class Connect < TwiML
|
1113
|
+
def initialize(**keyword_args)
|
1114
|
+
super(**keyword_args)
|
1115
|
+
@name = 'Connect'
|
1116
|
+
|
1117
|
+
yield(self) if block_given?
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
##
|
1121
|
+
# Create a new <Room> element
|
1122
|
+
# name:: Room name
|
1123
|
+
# participant_identity:: Participant identity when connecting to the Room
|
1124
|
+
# keyword_args:: additional attributes
|
1125
|
+
def room(name, participant_identity: nil, **keyword_args)
|
1126
|
+
append(Room.new(name, participant_identity: participant_identity, **keyword_args))
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
##
|
1130
|
+
# Create a new <Autopilot> element
|
1131
|
+
# name:: Autopilot assistant sid or unique name
|
1132
|
+
# keyword_args:: additional attributes
|
1133
|
+
def autopilot(name, **keyword_args)
|
1134
|
+
append(Autopilot.new(name, **keyword_args))
|
1135
|
+
end
|
1136
|
+
|
1137
|
+
##
|
1138
|
+
# Create a new <Stream> element
|
1139
|
+
# name:: Friendly name given to the Stream
|
1140
|
+
# connector_name:: Unique name for Stream Connector
|
1141
|
+
# url:: URL of the remote service where the Stream is routed
|
1142
|
+
# track:: Track to be streamed to remote service
|
1143
|
+
# keyword_args:: additional attributes
|
1144
|
+
def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args)
|
1145
|
+
stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args)
|
1146
|
+
|
1147
|
+
yield(stream) if block_given?
|
1148
|
+
append(stream)
|
1149
|
+
end
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
##
|
1153
|
+
# <Autopilot> TwiML Noun
|
1154
|
+
class Autopilot < TwiML
|
1155
|
+
def initialize(name, **keyword_args)
|
1156
|
+
super(**keyword_args)
|
1157
|
+
@name = 'Autopilot'
|
1158
|
+
@value = name
|
1159
|
+
yield(self) if block_given?
|
1160
|
+
end
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
##
|
1164
|
+
# <Room> TwiML Noun
|
1165
|
+
class Room < TwiML
|
1166
|
+
def initialize(name, **keyword_args)
|
1167
|
+
super(**keyword_args)
|
1168
|
+
@name = 'Room'
|
1169
|
+
@value = name
|
1170
|
+
yield(self) if block_given?
|
1171
|
+
end
|
1172
|
+
end
|
1173
|
+
end
|
1174
|
+
end
|