twilio-ruby 5.8.1 → 5.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +9 -0
- data/PULL_REQUEST_TEMPLATE.md +4 -0
- data/README.md +2 -2
- data/lib/rack/twilio_webhook_authentication.rb +2 -0
- data/lib/twilio-ruby/framework/domain.rb +2 -0
- data/lib/twilio-ruby/framework/error.rb +2 -0
- data/lib/twilio-ruby/framework/helper.rb +2 -0
- data/lib/twilio-ruby/framework/obsolete_client.rb +2 -0
- data/lib/twilio-ruby/framework/page.rb +2 -0
- data/lib/twilio-ruby/framework/request.rb +2 -0
- data/lib/twilio-ruby/framework/resource.rb +2 -0
- data/lib/twilio-ruby/framework/response.rb +2 -0
- data/lib/twilio-ruby/framework/serialize.rb +2 -0
- data/lib/twilio-ruby/framework/twilio_response.rb +2 -0
- data/lib/twilio-ruby/framework/values.rb +2 -0
- data/lib/twilio-ruby/framework/version.rb +2 -0
- data/lib/twilio-ruby/http/http_client.rb +2 -0
- data/lib/twilio-ruby/jwt/access_token.rb +2 -0
- data/lib/twilio-ruby/jwt/client_capability.rb +2 -0
- data/lib/twilio-ruby/jwt/jwt.rb +2 -0
- data/lib/twilio-ruby/jwt/task_router.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +2 -0
- data/lib/twilio-ruby/rest/accounts.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +82 -45
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +65 -51
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +12 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +19 -9
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +150 -81
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +66 -50
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +13 -7
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +19 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +106 -79
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +74 -26
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +12 -5
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +18 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +7 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +21 -14
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +7 -5
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +29 -13
- data/lib/twilio-ruby/rest/api/v2010/account.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010.rb +2 -0
- data/lib/twilio-ruby/rest/api.rb +3 -1
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat.rb +2 -0
- data/lib/twilio-ruby/rest/client.rb +3 -1
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +11 -6
- data/lib/twilio-ruby/rest/fax/v1.rb +2 -0
- data/lib/twilio-ruby/rest/fax.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging.rb +2 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/lookups/v1.rb +2 -0
- data/lib/twilio-ruby/rest/lookups.rb +2 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +17 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +15 -12
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +54 -28
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/messaging.rb +3 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +52 -23
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +2 -0
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/monitor.rb +3 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +2 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +14 -12
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +26 -21
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +36 -25
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +9 -5
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/field.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/sample.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless.rb +2 -0
- data/lib/twilio-ruby/rest/preview.rb +5 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +2 -0
- data/lib/twilio-ruby/rest/pricing.rb +2 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +16 -32
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +15 -15
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +15 -17
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +37 -42
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +34 -23
- data/lib/twilio-ruby/rest/proxy/v1.rb +2 -0
- data/lib/twilio-ruby/rest/proxy.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1.rb +2 -0
- data/lib/twilio-ruby/rest/studio.rb +2 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +31 -21
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +40 -22
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +20 -15
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +31 -20
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +24 -17
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +10 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +14 -9
- data/lib/twilio-ruby/rest/sync/v1/service.rb +39 -16
- data/lib/twilio-ruby/rest/sync/v1.rb +2 -0
- data/lib/twilio-ruby/rest/sync.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +42 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +56 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +69 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +128 -55
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +51 -25
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +15 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +61 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +83 -35
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +27 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +36 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +24 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +31 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +36 -14
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +71 -37
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +52 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +11 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +68 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +52 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +13 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +95 -36
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter.rb +3 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1.rb +2 -0
- data/lib/twilio-ruby/rest/trunking.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +29 -24
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +34 -21
- data/lib/twilio-ruby/rest/video/v1/room.rb +59 -40
- data/lib/twilio-ruby/rest/video/v1.rb +2 -0
- data/lib/twilio-ruby/rest/video.rb +4 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1.rb +2 -0
- data/lib/twilio-ruby/rest/wireless.rb +2 -0
- data/lib/twilio-ruby/security/request_validator.rb +2 -0
- data/lib/twilio-ruby/twiml/fax_response.rb +2 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +2 -0
- data/lib/twilio-ruby/twiml/twiml.rb +2 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +2 -0
- data/lib/twilio-ruby/util/configuration.rb +2 -0
- data/lib/twilio-ruby/util.rb +2 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/lib/twilio-ruby.rb +2 -0
- data/spec/integration/accounts/v1/credential/aws_spec.rb +2 -0
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +2 -0
- data/spec/integration/accounts/v1/credential_spec.rb +2 -0
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/address_spec.rb +2 -0
- data/spec/integration/api/v2010/account/application_spec.rb +2 -0
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/notification_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/recording_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call_spec.rb +2 -0
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +2 -0
- data/spec/integration/api/v2010/account/conference_spec.rb +2 -0
- data/spec/integration/api/v2010/account/connect_app_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message/media_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message_spec.rb +2 -0
- data/spec/integration/api/v2010/account/new_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/notification_spec.rb +2 -0
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +2 -0
- data/spec/integration/api/v2010/account/queue/member_spec.rb +2 -0
- data/spec/integration/api/v2010/account/queue_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording_spec.rb +2 -0
- data/spec/integration/api/v2010/account/short_code_spec.rb +2 -0
- data/spec/integration/api/v2010/account/signing_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip_spec.rb +2 -0
- data/spec/integration/api/v2010/account/token_spec.rb +2 -0
- data/spec/integration/api/v2010/account/transcription_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage_spec.rb +2 -0
- data/spec/integration/api/v2010/account/validation_request_spec.rb +2 -0
- data/spec/integration/api/v2010/account_spec.rb +2 -0
- data/spec/integration/chat/v1/credential_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/member_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/message_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel_spec.rb +2 -0
- data/spec/integration/chat/v1/service/role_spec.rb +2 -0
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/chat/v1/service/user_spec.rb +2 -0
- data/spec/integration/chat/v1/service_spec.rb +2 -0
- data/spec/integration/chat/v2/credential_spec.rb +2 -0
- data/spec/integration/chat/v2/service/binding_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/member_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/message_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel_spec.rb +2 -0
- data/spec/integration/chat/v2/service/role_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user_spec.rb +2 -0
- data/spec/integration/chat/v2/service_spec.rb +2 -0
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +2 -0
- data/spec/integration/fax/v1/fax_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/credential_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/credential_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service_spec.rb +2 -0
- data/spec/integration/lookups/v1/phone_number_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/short_code_spec.rb +2 -0
- data/spec/integration/messaging/v1/service_spec.rb +2 -0
- data/spec/integration/monitor/v1/alert_spec.rb +2 -0
- data/spec/integration/monitor/v1/event_spec.rb +2 -0
- data/spec/integration/notify/v1/credential_spec.rb +2 -0
- data/spec/integration/notify/v1/service/binding_spec.rb +2 -0
- data/spec/integration/notify/v1/service/notification_spec.rb +2 -0
- data/spec/integration/notify/v1/service/segment_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user_spec.rb +2 -0
- data/spec/integration/notify/v1/service_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service/verification_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +2 -0
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +2 -0
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +2 -0
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +2 -0
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/short_code_spec.rb +2 -0
- data/spec/integration/preview/proxy/service_spec.rb +2 -0
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +2 -0
- data/spec/integration/preview/studio/flow/engagement_spec.rb +2 -0
- data/spec/integration/preview/studio/flow_spec.rb +2 -0
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/document_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map_spec.rb +2 -0
- data/spec/integration/preview/sync/service_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/field_type_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent/field_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent/sample_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/model_build_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/query_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant_spec.rb +2 -0
- data/spec/integration/preview/wireless/command_spec.rb +2 -0
- data/spec/integration/preview/wireless/rate_plan_spec.rb +2 -0
- data/spec/integration/preview/wireless/sim/usage_spec.rb +2 -0
- data/spec/integration/preview/wireless/sim_spec.rb +2 -0
- data/spec/integration/pricing/v1/messaging/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/messaging_spec.rb +2 -0
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/phone_number_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice/number_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/short_code_spec.rb +2 -0
- data/spec/integration/proxy/v1/service_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement_spec.rb +2 -0
- data/spec/integration/studio/v1/flow_spec.rb +2 -0
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/document_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +2 -0
- data/spec/integration/sync/v1/service_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk_spec.rb +2 -0
- data/spec/integration/video/v1/composition_spec.rb +118 -19
- data/spec/integration/video/v1/recording_spec.rb +2 -0
- data/spec/integration/video/v1/room/recording_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant_spec.rb +2 -0
- data/spec/integration/video/v1/room_spec.rb +2 -0
- data/spec/integration/wireless/v1/command_spec.rb +2 -0
- data/spec/integration/wireless/v1/rate_plan_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim_spec.rb +2 -0
- metadata +3 -2
@@ -3,6 +3,8 @@
|
|
3
3
|
# \ / _ _ _| _ _
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
5
|
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
6
8
|
|
7
9
|
module Twilio
|
8
10
|
module REST
|
@@ -14,8 +16,9 @@ module Twilio
|
|
14
16
|
##
|
15
17
|
# Initialize the ReservationList
|
16
18
|
# @param [Version] version Version that contains the resource
|
17
|
-
# @param [String] workspace_sid The
|
18
|
-
#
|
19
|
+
# @param [String] workspace_sid The ID of the Workspace that this task is
|
20
|
+
# contained within.
|
21
|
+
# @param [String] task_sid The ID of the reserved Task
|
19
22
|
# @return [ReservationList] ReservationList
|
20
23
|
def initialize(version, workspace_sid: nil, task_sid: nil)
|
21
24
|
super(version)
|
@@ -29,7 +32,8 @@ module Twilio
|
|
29
32
|
# Lists ReservationInstance records from the API as a list.
|
30
33
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
31
34
|
# memory before returning.
|
32
|
-
# @param [reservation.Status] reservation_status
|
35
|
+
# @param [reservation.Status] reservation_status Returns the list of reservations
|
36
|
+
# for a task with a specified ReservationStatus
|
33
37
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
34
38
|
# guarantees to never return more than limit. Default is no limit
|
35
39
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -45,7 +49,8 @@ module Twilio
|
|
45
49
|
# Streams ReservationInstance records from the API as an Enumerable.
|
46
50
|
# This operation lazily loads records as efficiently as possible until the limit
|
47
51
|
# is reached.
|
48
|
-
# @param [reservation.Status] reservation_status
|
52
|
+
# @param [reservation.Status] reservation_status Returns the list of reservations
|
53
|
+
# for a task with a specified ReservationStatus
|
49
54
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
50
55
|
# guarantees to never return more than limit. Default is no limit.
|
51
56
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -78,7 +83,8 @@ module Twilio
|
|
78
83
|
##
|
79
84
|
# Retrieve a single page of ReservationInstance records from the API.
|
80
85
|
# Request is executed immediately.
|
81
|
-
# @param [reservation.Status] reservation_status
|
86
|
+
# @param [reservation.Status] reservation_status Returns the list of reservations
|
87
|
+
# for a task with a specified ReservationStatus
|
82
88
|
# @param [String] page_token PageToken provided by the API
|
83
89
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
84
90
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -191,32 +197,31 @@ module Twilio
|
|
191
197
|
|
192
198
|
##
|
193
199
|
# Update the ReservationInstance
|
194
|
-
# @param [reservation.Status] reservation_status
|
195
|
-
# @param [String] worker_activity_sid
|
196
|
-
# @param [String] instruction
|
197
|
-
# @param [String] dequeue_post_work_activity_sid
|
198
|
-
#
|
199
|
-
# @param [String]
|
200
|
-
# @param [String]
|
201
|
-
# @param [String]
|
202
|
-
# @param [String]
|
203
|
-
# @param [String]
|
204
|
-
# @param [String]
|
205
|
-
# @param [String]
|
206
|
-
# @param [String]
|
207
|
-
# @param [String]
|
208
|
-
# @param [String]
|
209
|
-
# @param [
|
210
|
-
# @param [
|
211
|
-
# @param [
|
212
|
-
# @param [
|
213
|
-
# @param [String]
|
214
|
-
# @param [String]
|
215
|
-
# @param [String] from The from
|
200
|
+
# @param [reservation.Status] reservation_status Yes
|
201
|
+
# @param [String] worker_activity_sid No
|
202
|
+
# @param [String] instruction Yes
|
203
|
+
# @param [String] dequeue_post_work_activity_sid No
|
204
|
+
# @param [String] dequeue_from Yes
|
205
|
+
# @param [String] dequeue_record No
|
206
|
+
# @param [String] dequeue_timeout No
|
207
|
+
# @param [String] dequeue_to No
|
208
|
+
# @param [String] dequeue_status_callback_url No
|
209
|
+
# @param [String] call_from Yes
|
210
|
+
# @param [String] call_record No
|
211
|
+
# @param [String] call_timeout No
|
212
|
+
# @param [String] call_to No
|
213
|
+
# @param [String] call_url Yes
|
214
|
+
# @param [String] call_status_callback_url No
|
215
|
+
# @param [Boolean] call_accept No
|
216
|
+
# @param [String] redirect_call_sid Yes
|
217
|
+
# @param [Boolean] redirect_accept No
|
218
|
+
# @param [String] redirect_url Yes
|
219
|
+
# @param [String] to No
|
220
|
+
# @param [String] from No
|
216
221
|
# @param [String] status_callback The status_callback
|
217
222
|
# @param [String] status_callback_method The status_callback_method
|
218
223
|
# @param [reservation.CallStatus] status_callback_event The status_callback_event
|
219
|
-
# @param [String] timeout
|
224
|
+
# @param [String] timeout No
|
220
225
|
# @param [Boolean] record The record
|
221
226
|
# @param [Boolean] muted The muted
|
222
227
|
# @param [String] beep The beep
|
@@ -244,8 +249,8 @@ module Twilio
|
|
244
249
|
# @param [String] region The region
|
245
250
|
# @param [String] sip_auth_username The sip_auth_username
|
246
251
|
# @param [String] sip_auth_password The sip_auth_password
|
247
|
-
# @param [String] dequeue_status_callback_event
|
248
|
-
# @param [String] post_work_activity_sid
|
252
|
+
# @param [String] dequeue_status_callback_event No
|
253
|
+
# @param [String] post_work_activity_sid No
|
249
254
|
# @return [ReservationInstance] Updated ReservationInstance
|
250
255
|
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset)
|
251
256
|
data = Twilio::Values.of({
|
@@ -328,8 +333,9 @@ module Twilio
|
|
328
333
|
# Initialize the ReservationInstance
|
329
334
|
# @param [Version] version Version that contains the resource
|
330
335
|
# @param [Hash] payload payload that contains response from Twilio
|
331
|
-
# @param [String] workspace_sid The
|
332
|
-
#
|
336
|
+
# @param [String] workspace_sid The ID of the Workspace that this task is
|
337
|
+
# contained within.
|
338
|
+
# @param [String] task_sid The ID of the reserved Task
|
333
339
|
# @param [String] sid The sid
|
334
340
|
# @return [ReservationInstance] ReservationInstance
|
335
341
|
def initialize(version, payload, workspace_sid: nil, task_sid: nil, sid: nil)
|
@@ -376,7 +382,7 @@ module Twilio
|
|
376
382
|
end
|
377
383
|
|
378
384
|
##
|
379
|
-
# @return [String] The
|
385
|
+
# @return [String] The ID of the Account that owns this Task
|
380
386
|
def account_sid
|
381
387
|
@properties['account_sid']
|
382
388
|
end
|
@@ -394,37 +400,37 @@ module Twilio
|
|
394
400
|
end
|
395
401
|
|
396
402
|
##
|
397
|
-
# @return [reservation.Status] The
|
403
|
+
# @return [reservation.Status] The current status of the reservation.
|
398
404
|
def reservation_status
|
399
405
|
@properties['reservation_status']
|
400
406
|
end
|
401
407
|
|
402
408
|
##
|
403
|
-
# @return [String] The
|
409
|
+
# @return [String] The unique ID of this Reservation.
|
404
410
|
def sid
|
405
411
|
@properties['sid']
|
406
412
|
end
|
407
413
|
|
408
414
|
##
|
409
|
-
# @return [String] The
|
415
|
+
# @return [String] The ID of the reserved Task
|
410
416
|
def task_sid
|
411
417
|
@properties['task_sid']
|
412
418
|
end
|
413
419
|
|
414
420
|
##
|
415
|
-
# @return [String]
|
421
|
+
# @return [String] Human readable description of the Worker that is reserved
|
416
422
|
def worker_name
|
417
423
|
@properties['worker_name']
|
418
424
|
end
|
419
425
|
|
420
426
|
##
|
421
|
-
# @return [String] The
|
427
|
+
# @return [String] The ID of the reserved Worker
|
422
428
|
def worker_sid
|
423
429
|
@properties['worker_sid']
|
424
430
|
end
|
425
431
|
|
426
432
|
##
|
427
|
-
# @return [String] The
|
433
|
+
# @return [String] The ID of the Workspace that this task is contained within.
|
428
434
|
def workspace_sid
|
429
435
|
@properties['workspace_sid']
|
430
436
|
end
|
@@ -450,32 +456,31 @@ module Twilio
|
|
450
456
|
|
451
457
|
##
|
452
458
|
# Update the ReservationInstance
|
453
|
-
# @param [reservation.Status] reservation_status
|
454
|
-
# @param [String] worker_activity_sid
|
455
|
-
# @param [String] instruction
|
456
|
-
# @param [String] dequeue_post_work_activity_sid
|
457
|
-
#
|
458
|
-
# @param [String]
|
459
|
-
# @param [String]
|
460
|
-
# @param [String]
|
461
|
-
# @param [String]
|
462
|
-
# @param [String]
|
463
|
-
# @param [String]
|
464
|
-
# @param [String]
|
465
|
-
# @param [String]
|
466
|
-
# @param [String]
|
467
|
-
# @param [String]
|
468
|
-
# @param [
|
469
|
-
# @param [
|
470
|
-
# @param [
|
471
|
-
# @param [
|
472
|
-
# @param [String]
|
473
|
-
# @param [String]
|
474
|
-
# @param [String] from The from
|
459
|
+
# @param [reservation.Status] reservation_status Yes
|
460
|
+
# @param [String] worker_activity_sid No
|
461
|
+
# @param [String] instruction Yes
|
462
|
+
# @param [String] dequeue_post_work_activity_sid No
|
463
|
+
# @param [String] dequeue_from Yes
|
464
|
+
# @param [String] dequeue_record No
|
465
|
+
# @param [String] dequeue_timeout No
|
466
|
+
# @param [String] dequeue_to No
|
467
|
+
# @param [String] dequeue_status_callback_url No
|
468
|
+
# @param [String] call_from Yes
|
469
|
+
# @param [String] call_record No
|
470
|
+
# @param [String] call_timeout No
|
471
|
+
# @param [String] call_to No
|
472
|
+
# @param [String] call_url Yes
|
473
|
+
# @param [String] call_status_callback_url No
|
474
|
+
# @param [Boolean] call_accept No
|
475
|
+
# @param [String] redirect_call_sid Yes
|
476
|
+
# @param [Boolean] redirect_accept No
|
477
|
+
# @param [String] redirect_url Yes
|
478
|
+
# @param [String] to No
|
479
|
+
# @param [String] from No
|
475
480
|
# @param [String] status_callback The status_callback
|
476
481
|
# @param [String] status_callback_method The status_callback_method
|
477
482
|
# @param [reservation.CallStatus] status_callback_event The status_callback_event
|
478
|
-
# @param [String] timeout
|
483
|
+
# @param [String] timeout No
|
479
484
|
# @param [Boolean] record The record
|
480
485
|
# @param [Boolean] muted The muted
|
481
486
|
# @param [String] beep The beep
|
@@ -503,8 +508,8 @@ module Twilio
|
|
503
508
|
# @param [String] region The region
|
504
509
|
# @param [String] sip_auth_username The sip_auth_username
|
505
510
|
# @param [String] sip_auth_password The sip_auth_password
|
506
|
-
# @param [String] dequeue_status_callback_event
|
507
|
-
# @param [String] post_work_activity_sid
|
511
|
+
# @param [String] dequeue_status_callback_event No
|
512
|
+
# @param [String] post_work_activity_sid No
|
508
513
|
# @return [ReservationInstance] Updated ReservationInstance
|
509
514
|
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset)
|
510
515
|
context.update(
|
@@ -3,6 +3,8 @@
|
|
3
3
|
# \ / _ _ _| _ _
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
5
|
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
6
8
|
|
7
9
|
module Twilio
|
8
10
|
module REST
|
@@ -13,7 +15,7 @@ module Twilio
|
|
13
15
|
##
|
14
16
|
# Initialize the TaskList
|
15
17
|
# @param [Version] version Version that contains the resource
|
16
|
-
# @param [String] workspace_sid The
|
18
|
+
# @param [String] workspace_sid The ID of the Workspace that holds this Task
|
17
19
|
# @return [TaskList] TaskList
|
18
20
|
def initialize(version, workspace_sid: nil)
|
19
21
|
super(version)
|
@@ -27,14 +29,28 @@ module Twilio
|
|
27
29
|
# Lists TaskInstance records from the API as a list.
|
28
30
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
29
31
|
# memory before returning.
|
30
|
-
# @param [String] priority
|
31
|
-
#
|
32
|
-
# @param [String]
|
33
|
-
#
|
34
|
-
#
|
35
|
-
# @param [String]
|
36
|
-
#
|
37
|
-
# @param [String]
|
32
|
+
# @param [String] priority Retrieve the list of all Tasks in the workspace with
|
33
|
+
# the specified priority.
|
34
|
+
# @param [String] assignment_status Returns the list of all Tasks in the workspace
|
35
|
+
# with the specified AssignmentStatus. Allowed AssignmentStatus values are
|
36
|
+
# pending, reserved, assigned, canceled, and completed.
|
37
|
+
# @param [String] workflow_sid Returns the list of Tasks that are being controlled
|
38
|
+
# by the Workflow with the specified Sid value.
|
39
|
+
# @param [String] workflow_name Returns the list of Tasks that are being
|
40
|
+
# controlled by the Workflow with the specified FriendlyName value.
|
41
|
+
# @param [String] task_queue_sid Returns the list of Tasks that are currently
|
42
|
+
# waiting in the TaskQueue identified by the Sid specified.
|
43
|
+
# @param [String] task_queue_name Returns the list of Tasks that are currently
|
44
|
+
# waiting in the TaskQueue identified by the FriendlyName specified.
|
45
|
+
# @param [String] evaluate_task_attributes Provide a task attributes expression,
|
46
|
+
# and this will return tasks which match the attributes.
|
47
|
+
# @param [String] ordering Use this parameter to control the order of the Tasks
|
48
|
+
# returned. The value should be passed in `Attribute:Order` format, where
|
49
|
+
# Attribute can be either `Priority` or `DateCreated` and Order can be either
|
50
|
+
# `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered by Priority
|
51
|
+
# in descending order. To sort the Tasks by Priority and DateCreated pass
|
52
|
+
# `Priority:desc,DateCreated:asc`. By Default Tasks are returned sorted by
|
53
|
+
# DateCreated in ascending order.
|
38
54
|
# @param [Boolean] has_addons The has_addons
|
39
55
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
40
56
|
# guarantees to never return more than limit. Default is no limit
|
@@ -63,14 +79,28 @@ module Twilio
|
|
63
79
|
# Streams TaskInstance records from the API as an Enumerable.
|
64
80
|
# This operation lazily loads records as efficiently as possible until the limit
|
65
81
|
# is reached.
|
66
|
-
# @param [String] priority
|
67
|
-
#
|
68
|
-
# @param [String]
|
69
|
-
#
|
70
|
-
#
|
71
|
-
# @param [String]
|
72
|
-
#
|
73
|
-
# @param [String]
|
82
|
+
# @param [String] priority Retrieve the list of all Tasks in the workspace with
|
83
|
+
# the specified priority.
|
84
|
+
# @param [String] assignment_status Returns the list of all Tasks in the workspace
|
85
|
+
# with the specified AssignmentStatus. Allowed AssignmentStatus values are
|
86
|
+
# pending, reserved, assigned, canceled, and completed.
|
87
|
+
# @param [String] workflow_sid Returns the list of Tasks that are being controlled
|
88
|
+
# by the Workflow with the specified Sid value.
|
89
|
+
# @param [String] workflow_name Returns the list of Tasks that are being
|
90
|
+
# controlled by the Workflow with the specified FriendlyName value.
|
91
|
+
# @param [String] task_queue_sid Returns the list of Tasks that are currently
|
92
|
+
# waiting in the TaskQueue identified by the Sid specified.
|
93
|
+
# @param [String] task_queue_name Returns the list of Tasks that are currently
|
94
|
+
# waiting in the TaskQueue identified by the FriendlyName specified.
|
95
|
+
# @param [String] evaluate_task_attributes Provide a task attributes expression,
|
96
|
+
# and this will return tasks which match the attributes.
|
97
|
+
# @param [String] ordering Use this parameter to control the order of the Tasks
|
98
|
+
# returned. The value should be passed in `Attribute:Order` format, where
|
99
|
+
# Attribute can be either `Priority` or `DateCreated` and Order can be either
|
100
|
+
# `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered by Priority
|
101
|
+
# in descending order. To sort the Tasks by Priority and DateCreated pass
|
102
|
+
# `Priority:desc,DateCreated:asc`. By Default Tasks are returned sorted by
|
103
|
+
# DateCreated in ascending order.
|
74
104
|
# @param [Boolean] has_addons The has_addons
|
75
105
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
76
106
|
# guarantees to never return more than limit. Default is no limit.
|
@@ -115,14 +145,28 @@ module Twilio
|
|
115
145
|
##
|
116
146
|
# Retrieve a single page of TaskInstance records from the API.
|
117
147
|
# Request is executed immediately.
|
118
|
-
# @param [String] priority
|
119
|
-
#
|
120
|
-
# @param [String]
|
121
|
-
#
|
122
|
-
#
|
123
|
-
# @param [String]
|
124
|
-
#
|
125
|
-
# @param [String]
|
148
|
+
# @param [String] priority Retrieve the list of all Tasks in the workspace with
|
149
|
+
# the specified priority.
|
150
|
+
# @param [String] assignment_status Returns the list of all Tasks in the workspace
|
151
|
+
# with the specified AssignmentStatus. Allowed AssignmentStatus values are
|
152
|
+
# pending, reserved, assigned, canceled, and completed.
|
153
|
+
# @param [String] workflow_sid Returns the list of Tasks that are being controlled
|
154
|
+
# by the Workflow with the specified Sid value.
|
155
|
+
# @param [String] workflow_name Returns the list of Tasks that are being
|
156
|
+
# controlled by the Workflow with the specified FriendlyName value.
|
157
|
+
# @param [String] task_queue_sid Returns the list of Tasks that are currently
|
158
|
+
# waiting in the TaskQueue identified by the Sid specified.
|
159
|
+
# @param [String] task_queue_name Returns the list of Tasks that are currently
|
160
|
+
# waiting in the TaskQueue identified by the FriendlyName specified.
|
161
|
+
# @param [String] evaluate_task_attributes Provide a task attributes expression,
|
162
|
+
# and this will return tasks which match the attributes.
|
163
|
+
# @param [String] ordering Use this parameter to control the order of the Tasks
|
164
|
+
# returned. The value should be passed in `Attribute:Order` format, where
|
165
|
+
# Attribute can be either `Priority` or `DateCreated` and Order can be either
|
166
|
+
# `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered by Priority
|
167
|
+
# in descending order. To sort the Tasks by Priority and DateCreated pass
|
168
|
+
# `Priority:desc,DateCreated:asc`. By Default Tasks are returned sorted by
|
169
|
+
# DateCreated in ascending order.
|
126
170
|
# @param [Boolean] has_addons The has_addons
|
127
171
|
# @param [String] page_token PageToken provided by the API
|
128
172
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
@@ -167,11 +211,24 @@ module Twilio
|
|
167
211
|
##
|
168
212
|
# Retrieve a single page of TaskInstance records from the API.
|
169
213
|
# Request is executed immediately.
|
170
|
-
# @param [String] timeout The
|
171
|
-
#
|
172
|
-
#
|
173
|
-
# @param [String]
|
174
|
-
#
|
214
|
+
# @param [String] timeout The amount of time in seconds the task is allowed to
|
215
|
+
# live up to a maximum of 2 weeks. Defaults to 24 hours. On timeout,
|
216
|
+
# `task.canceled` event will fire with description "Task TTL Exceeded".
|
217
|
+
# @param [String] priority Override priority for the Task. When supplied, the Task
|
218
|
+
# will take on the given priority unless it matches a Workflow Target with a
|
219
|
+
# Priority set. When not supplied, the Task will take on the priority of the
|
220
|
+
# matching Workflow Target.
|
221
|
+
# @param [String] task_channel When MultiTasking is enabled specify the type of
|
222
|
+
# the task by passing either TaskChannel Unique Name or Task Channel Sid. Default
|
223
|
+
# value is "default"
|
224
|
+
# @param [String] workflow_sid The WorkflowSid for the Workflow that you would
|
225
|
+
# like to handle routing for this Task. If there is only one Workflow defined for
|
226
|
+
# the Workspace that you are posting a task to, then this is an optional
|
227
|
+
# parameter, and that single workflow will be used.
|
228
|
+
# @param [String] attributes Url-encoded JSON string describing the attributes of
|
229
|
+
# this task. This data will be passed back to the Workflow's AssignmentCallbackURL
|
230
|
+
# when the Task is assigned to a Worker. An example task: `{ "task_type": "call",
|
231
|
+
# "twilio_call_sid": "CAxxx", "customer_ticket_number": "12345" }`
|
175
232
|
# @return [TaskInstance] Newly created TaskInstance
|
176
233
|
def create(timeout: :unset, priority: :unset, task_channel: :unset, workflow_sid: :unset, attributes: :unset)
|
177
234
|
data = Twilio::Values.of({
|
@@ -262,10 +319,18 @@ module Twilio
|
|
262
319
|
|
263
320
|
##
|
264
321
|
# Update the TaskInstance
|
265
|
-
# @param [String] attributes The
|
266
|
-
#
|
267
|
-
# @param [
|
268
|
-
#
|
322
|
+
# @param [String] attributes The user-defined JSON data describing the custom
|
323
|
+
# attributes of this task.
|
324
|
+
# @param [task.Status] assignment_status A 'pending' or 'reserved' Task may be
|
325
|
+
# canceled by posting AssignmentStatus='canceled'. Post
|
326
|
+
# AssignmentStatus='wrapping' to move Task to 'wrapup' state and
|
327
|
+
# AssignmentStatus='completed' to move a Task to 'completed' state.
|
328
|
+
# @param [String] reason This is only required if the Task is canceled or
|
329
|
+
# completed. This logs the reason the task was either canceled or completed and
|
330
|
+
# queues the task for deletion after 5 minutes.
|
331
|
+
# @param [String] priority Override priority for the Task. When supplied, the Task
|
332
|
+
# will take on the given priority unless it matches a Workflow Target with a
|
333
|
+
# Priority set.
|
269
334
|
# @param [String] task_channel The task_channel
|
270
335
|
# @return [TaskInstance] Updated TaskInstance
|
271
336
|
def update(attributes: :unset, assignment_status: :unset, reason: :unset, priority: :unset, task_channel: :unset)
|
@@ -328,7 +393,7 @@ module Twilio
|
|
328
393
|
# Initialize the TaskInstance
|
329
394
|
# @param [Version] version Version that contains the resource
|
330
395
|
# @param [Hash] payload payload that contains response from Twilio
|
331
|
-
# @param [String] workspace_sid The
|
396
|
+
# @param [String] workspace_sid The ID of the Workspace that holds this Task
|
332
397
|
# @param [String] sid The sid
|
333
398
|
# @return [TaskInstance] TaskInstance
|
334
399
|
def initialize(version, payload, workspace_sid: nil, sid: nil)
|
@@ -375,67 +440,67 @@ module Twilio
|
|
375
440
|
end
|
376
441
|
|
377
442
|
##
|
378
|
-
# @return [String] The
|
443
|
+
# @return [String] The ID of the account that owns this Task
|
379
444
|
def account_sid
|
380
445
|
@properties['account_sid']
|
381
446
|
end
|
382
447
|
|
383
448
|
##
|
384
|
-
# @return [String] The
|
449
|
+
# @return [String] The number of seconds since this task was created.
|
385
450
|
def age
|
386
451
|
@properties['age']
|
387
452
|
end
|
388
453
|
|
389
454
|
##
|
390
|
-
# @return [task.Status]
|
455
|
+
# @return [task.Status] Returns the list of all Tasks in the workspace with the specified AssignmentStatus.
|
391
456
|
def assignment_status
|
392
457
|
@properties['assignment_status']
|
393
458
|
end
|
394
459
|
|
395
460
|
##
|
396
|
-
# @return [String] The attributes
|
461
|
+
# @return [String] The user-defined JSON string describing the custom attributes of this work.
|
397
462
|
def attributes
|
398
463
|
@properties['attributes']
|
399
464
|
end
|
400
465
|
|
401
466
|
##
|
402
|
-
# @return [String] The addons
|
467
|
+
# @return [String] The addon data for all installed addons is returned with this attribute
|
403
468
|
def addons
|
404
469
|
@properties['addons']
|
405
470
|
end
|
406
471
|
|
407
472
|
##
|
408
|
-
# @return [Time]
|
473
|
+
# @return [Time] Date this task was created, given as ISO 8601 format.
|
409
474
|
def date_created
|
410
475
|
@properties['date_created']
|
411
476
|
end
|
412
477
|
|
413
478
|
##
|
414
|
-
# @return [Time]
|
479
|
+
# @return [Time] Date this task was updated, given as ISO 8601 format.
|
415
480
|
def date_updated
|
416
481
|
@properties['date_updated']
|
417
482
|
end
|
418
483
|
|
419
484
|
##
|
420
|
-
# @return [String]
|
485
|
+
# @return [String] Retrieve the list of all Tasks in the workspace with the specified priority.
|
421
486
|
def priority
|
422
487
|
@properties['priority']
|
423
488
|
end
|
424
489
|
|
425
490
|
##
|
426
|
-
# @return [String] The reason
|
491
|
+
# @return [String] The reason the task was canceled or completed
|
427
492
|
def reason
|
428
493
|
@properties['reason']
|
429
494
|
end
|
430
495
|
|
431
496
|
##
|
432
|
-
# @return [String] The
|
497
|
+
# @return [String] The unique ID of the Task
|
433
498
|
def sid
|
434
499
|
@properties['sid']
|
435
500
|
end
|
436
501
|
|
437
502
|
##
|
438
|
-
# @return [String]
|
503
|
+
# @return [String] Returns the list of Tasks that are currently waiting in the TaskQueue identified by the Sid specified.
|
439
504
|
def task_queue_sid
|
440
505
|
@properties['task_queue_sid']
|
441
506
|
end
|
@@ -447,25 +512,25 @@ module Twilio
|
|
447
512
|
end
|
448
513
|
|
449
514
|
##
|
450
|
-
# @return [String] The
|
515
|
+
# @return [String] The ID of the Task Channel
|
451
516
|
def task_channel_sid
|
452
517
|
@properties['task_channel_sid']
|
453
518
|
end
|
454
519
|
|
455
520
|
##
|
456
|
-
# @return [String] The
|
521
|
+
# @return [String] The unique name of the Task Channel
|
457
522
|
def task_channel_unique_name
|
458
523
|
@properties['task_channel_unique_name']
|
459
524
|
end
|
460
525
|
|
461
526
|
##
|
462
|
-
# @return [String] The
|
527
|
+
# @return [String] The amount of time in seconds the task is allowed to live
|
463
528
|
def timeout
|
464
529
|
@properties['timeout']
|
465
530
|
end
|
466
531
|
|
467
532
|
##
|
468
|
-
# @return [String]
|
533
|
+
# @return [String] Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value.
|
469
534
|
def workflow_sid
|
470
535
|
@properties['workflow_sid']
|
471
536
|
end
|
@@ -477,7 +542,7 @@ module Twilio
|
|
477
542
|
end
|
478
543
|
|
479
544
|
##
|
480
|
-
# @return [String] The
|
545
|
+
# @return [String] The ID of the Workspace that holds this Task
|
481
546
|
def workspace_sid
|
482
547
|
@properties['workspace_sid']
|
483
548
|
end
|
@@ -503,10 +568,18 @@ module Twilio
|
|
503
568
|
|
504
569
|
##
|
505
570
|
# Update the TaskInstance
|
506
|
-
# @param [String] attributes The
|
507
|
-
#
|
508
|
-
# @param [
|
509
|
-
#
|
571
|
+
# @param [String] attributes The user-defined JSON data describing the custom
|
572
|
+
# attributes of this task.
|
573
|
+
# @param [task.Status] assignment_status A 'pending' or 'reserved' Task may be
|
574
|
+
# canceled by posting AssignmentStatus='canceled'. Post
|
575
|
+
# AssignmentStatus='wrapping' to move Task to 'wrapup' state and
|
576
|
+
# AssignmentStatus='completed' to move a Task to 'completed' state.
|
577
|
+
# @param [String] reason This is only required if the Task is canceled or
|
578
|
+
# completed. This logs the reason the task was either canceled or completed and
|
579
|
+
# queues the task for deletion after 5 minutes.
|
580
|
+
# @param [String] priority Override priority for the Task. When supplied, the Task
|
581
|
+
# will take on the given priority unless it matches a Workflow Target with a
|
582
|
+
# Priority set.
|
510
583
|
# @param [String] task_channel The task_channel
|
511
584
|
# @return [TaskInstance] Updated TaskInstance
|
512
585
|
def update(attributes: :unset, assignment_status: :unset, reason: :unset, priority: :unset, task_channel: :unset)
|