twilio-ruby 5.8.1 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/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
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb
CHANGED
|
@@ -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
|
|
@@ -82,11 +84,23 @@ module Twilio
|
|
|
82
84
|
|
|
83
85
|
##
|
|
84
86
|
# Fetch a WorkflowCumulativeStatisticsInstance
|
|
85
|
-
# @param [Time] end_date
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
# @param [String]
|
|
89
|
-
#
|
|
87
|
+
# @param [Time] end_date Filter cumulative statistics by an end date. This is
|
|
88
|
+
# helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
|
|
89
|
+
# Timestamp
|
|
90
|
+
# @param [String] minutes Filter cumulative statistics by up to ‘x’ minutes in the
|
|
91
|
+
# past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
|
|
92
|
+
# hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
|
|
93
|
+
# @param [Time] start_date Filter cumulative statistics by a start date. This is
|
|
94
|
+
# helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
|
|
95
|
+
# Timestamp
|
|
96
|
+
# @param [String] task_channel Filter real-time and cumulative statistics by
|
|
97
|
+
# TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
|
|
98
|
+
# TaskChannelSid.
|
|
99
|
+
# @param [String] split_by_wait_time A comma separated values for viewing splits
|
|
100
|
+
# of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
|
|
101
|
+
# would show splits of tasks that were canceled or accepted before or after 5
|
|
102
|
+
# seconds and respectively, 30 seconds. This is great for showing short abandoned
|
|
103
|
+
# tasks or tasks that failed to meet your SLA.
|
|
90
104
|
# @return [WorkflowCumulativeStatisticsInstance] Fetched WorkflowCumulativeStatisticsInstance
|
|
91
105
|
def fetch(end_date: :unset, minutes: :unset, start_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
|
92
106
|
params = Twilio::Values.of({
|
|
@@ -183,7 +197,7 @@ module Twilio
|
|
|
183
197
|
end
|
|
184
198
|
|
|
185
199
|
##
|
|
186
|
-
# @return [String] The
|
|
200
|
+
# @return [String] The average time from Task creation to acceptance
|
|
187
201
|
def avg_task_acceptance_time
|
|
188
202
|
@properties['avg_task_acceptance_time']
|
|
189
203
|
end
|
|
@@ -201,91 +215,91 @@ module Twilio
|
|
|
201
215
|
end
|
|
202
216
|
|
|
203
217
|
##
|
|
204
|
-
# @return [String] The
|
|
218
|
+
# @return [String] The total number of Reservations that were created for Workers
|
|
205
219
|
def reservations_created
|
|
206
220
|
@properties['reservations_created']
|
|
207
221
|
end
|
|
208
222
|
|
|
209
223
|
##
|
|
210
|
-
# @return [String] The
|
|
224
|
+
# @return [String] The total number of Reservations accepted by Workers
|
|
211
225
|
def reservations_accepted
|
|
212
226
|
@properties['reservations_accepted']
|
|
213
227
|
end
|
|
214
228
|
|
|
215
229
|
##
|
|
216
|
-
# @return [String] The
|
|
230
|
+
# @return [String] The total number of Reservations that were rejected
|
|
217
231
|
def reservations_rejected
|
|
218
232
|
@properties['reservations_rejected']
|
|
219
233
|
end
|
|
220
234
|
|
|
221
235
|
##
|
|
222
|
-
# @return [String] The
|
|
236
|
+
# @return [String] The total number of Reservations that were timed out
|
|
223
237
|
def reservations_timed_out
|
|
224
238
|
@properties['reservations_timed_out']
|
|
225
239
|
end
|
|
226
240
|
|
|
227
241
|
##
|
|
228
|
-
# @return [String] The
|
|
242
|
+
# @return [String] The total number of Reservations that were canceled
|
|
229
243
|
def reservations_canceled
|
|
230
244
|
@properties['reservations_canceled']
|
|
231
245
|
end
|
|
232
246
|
|
|
233
247
|
##
|
|
234
|
-
# @return [String] The
|
|
248
|
+
# @return [String] The total number of Reservations that were rescinded
|
|
235
249
|
def reservations_rescinded
|
|
236
250
|
@properties['reservations_rescinded']
|
|
237
251
|
end
|
|
238
252
|
|
|
239
253
|
##
|
|
240
|
-
# @return [Hash] The
|
|
254
|
+
# @return [Hash] The splits of the tasks canceled and accepted based on the provided SplitByWaitTime parameter.
|
|
241
255
|
def split_by_wait_time
|
|
242
256
|
@properties['split_by_wait_time']
|
|
243
257
|
end
|
|
244
258
|
|
|
245
259
|
##
|
|
246
|
-
# @return [Hash] The
|
|
260
|
+
# @return [Hash] The wait duration stats for tasks that were accepted.
|
|
247
261
|
def wait_duration_until_accepted
|
|
248
262
|
@properties['wait_duration_until_accepted']
|
|
249
263
|
end
|
|
250
264
|
|
|
251
265
|
##
|
|
252
|
-
# @return [Hash] The
|
|
266
|
+
# @return [Hash] The wait duration stats for tasks that were canceled.
|
|
253
267
|
def wait_duration_until_canceled
|
|
254
268
|
@properties['wait_duration_until_canceled']
|
|
255
269
|
end
|
|
256
270
|
|
|
257
271
|
##
|
|
258
|
-
# @return [String] The
|
|
272
|
+
# @return [String] The total number of Tasks that were canceled
|
|
259
273
|
def tasks_canceled
|
|
260
274
|
@properties['tasks_canceled']
|
|
261
275
|
end
|
|
262
276
|
|
|
263
277
|
##
|
|
264
|
-
# @return [String] The
|
|
278
|
+
# @return [String] The total number of Tasks that were completed
|
|
265
279
|
def tasks_completed
|
|
266
280
|
@properties['tasks_completed']
|
|
267
281
|
end
|
|
268
282
|
|
|
269
283
|
##
|
|
270
|
-
# @return [String] The
|
|
284
|
+
# @return [String] The total number of Tasks that entered this Workflow
|
|
271
285
|
def tasks_entered
|
|
272
286
|
@properties['tasks_entered']
|
|
273
287
|
end
|
|
274
288
|
|
|
275
289
|
##
|
|
276
|
-
# @return [String] The
|
|
290
|
+
# @return [String] The total number of Tasks that were deleted
|
|
277
291
|
def tasks_deleted
|
|
278
292
|
@properties['tasks_deleted']
|
|
279
293
|
end
|
|
280
294
|
|
|
281
295
|
##
|
|
282
|
-
# @return [String] The
|
|
296
|
+
# @return [String] The total number of Tasks that were moved from one queue to another
|
|
283
297
|
def tasks_moved
|
|
284
298
|
@properties['tasks_moved']
|
|
285
299
|
end
|
|
286
300
|
|
|
287
301
|
##
|
|
288
|
-
# @return [String] The
|
|
302
|
+
# @return [String] The total number of Tasks that were timed out of their Workflows
|
|
289
303
|
def tasks_timed_out_in_workflow
|
|
290
304
|
@properties['tasks_timed_out_in_workflow']
|
|
291
305
|
end
|
|
@@ -310,11 +324,23 @@ module Twilio
|
|
|
310
324
|
|
|
311
325
|
##
|
|
312
326
|
# Fetch a WorkflowCumulativeStatisticsInstance
|
|
313
|
-
# @param [Time] end_date
|
|
314
|
-
#
|
|
315
|
-
#
|
|
316
|
-
# @param [String]
|
|
317
|
-
#
|
|
327
|
+
# @param [Time] end_date Filter cumulative statistics by an end date. This is
|
|
328
|
+
# helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
|
|
329
|
+
# Timestamp
|
|
330
|
+
# @param [String] minutes Filter cumulative statistics by up to ‘x’ minutes in the
|
|
331
|
+
# past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
|
|
332
|
+
# hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
|
|
333
|
+
# @param [Time] start_date Filter cumulative statistics by a start date. This is
|
|
334
|
+
# helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
|
|
335
|
+
# Timestamp
|
|
336
|
+
# @param [String] task_channel Filter real-time and cumulative statistics by
|
|
337
|
+
# TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
|
|
338
|
+
# TaskChannelSid.
|
|
339
|
+
# @param [String] split_by_wait_time A comma separated values for viewing splits
|
|
340
|
+
# of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
|
|
341
|
+
# would show splits of tasks that were canceled or accepted before or after 5
|
|
342
|
+
# seconds and respectively, 30 seconds. This is great for showing short abandoned
|
|
343
|
+
# tasks or tasks that failed to meet your SLA.
|
|
318
344
|
# @return [WorkflowCumulativeStatisticsInstance] Fetched WorkflowCumulativeStatisticsInstance
|
|
319
345
|
def fetch(end_date: :unset, minutes: :unset, start_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
|
320
346
|
context.fetch(
|
|
@@ -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
|
|
@@ -82,7 +84,9 @@ module Twilio
|
|
|
82
84
|
|
|
83
85
|
##
|
|
84
86
|
# Fetch a WorkflowRealTimeStatisticsInstance
|
|
85
|
-
# @param [String] task_channel
|
|
87
|
+
# @param [String] task_channel Filter real-time and cumulative statistics by
|
|
88
|
+
# TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
|
|
89
|
+
# TaskChannelSid.
|
|
86
90
|
# @return [WorkflowRealTimeStatisticsInstance] Fetched WorkflowRealTimeStatisticsInstance
|
|
87
91
|
def fetch(task_channel: :unset)
|
|
88
92
|
params = Twilio::Values.of({'TaskChannel' => task_channel, })
|
|
@@ -159,7 +163,7 @@ module Twilio
|
|
|
159
163
|
end
|
|
160
164
|
|
|
161
165
|
##
|
|
162
|
-
# @return [String] The
|
|
166
|
+
# @return [String] The age of the longest waiting Task
|
|
163
167
|
def longest_task_waiting_age
|
|
164
168
|
@properties['longest_task_waiting_age']
|
|
165
169
|
end
|
|
@@ -171,13 +175,13 @@ module Twilio
|
|
|
171
175
|
end
|
|
172
176
|
|
|
173
177
|
##
|
|
174
|
-
# @return [Hash] The
|
|
178
|
+
# @return [Hash] The Tasks broken down by status
|
|
175
179
|
def tasks_by_status
|
|
176
180
|
@properties['tasks_by_status']
|
|
177
181
|
end
|
|
178
182
|
|
|
179
183
|
##
|
|
180
|
-
# @return [String] The
|
|
184
|
+
# @return [String] The total number of Tasks
|
|
181
185
|
def total_tasks
|
|
182
186
|
@properties['total_tasks']
|
|
183
187
|
end
|
|
@@ -202,7 +206,9 @@ module Twilio
|
|
|
202
206
|
|
|
203
207
|
##
|
|
204
208
|
# Fetch a WorkflowRealTimeStatisticsInstance
|
|
205
|
-
# @param [String] task_channel
|
|
209
|
+
# @param [String] task_channel Filter real-time and cumulative statistics by
|
|
210
|
+
# TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
|
|
211
|
+
# TaskChannelSid.
|
|
206
212
|
# @return [WorkflowRealTimeStatisticsInstance] Fetched WorkflowRealTimeStatisticsInstance
|
|
207
213
|
def fetch(task_channel: :unset)
|
|
208
214
|
context.fetch(task_channel: task_channel, )
|
|
@@ -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
|
|
@@ -82,11 +84,23 @@ module Twilio
|
|
|
82
84
|
|
|
83
85
|
##
|
|
84
86
|
# Fetch a WorkflowStatisticsInstance
|
|
85
|
-
# @param [String] minutes
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
# @param [
|
|
89
|
-
#
|
|
87
|
+
# @param [String] minutes Filter cumulative statistics by up to ‘x’ minutes in the
|
|
88
|
+
# past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
|
|
89
|
+
# hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
|
|
90
|
+
# @param [Time] start_date Filter cumulative statistics by a start date. This is
|
|
91
|
+
# helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
|
|
92
|
+
# Timestamp
|
|
93
|
+
# @param [Time] end_date Filter cumulative statistics by an end date. This is
|
|
94
|
+
# helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
|
|
95
|
+
# Timestamp
|
|
96
|
+
# @param [String] task_channel Filter real-time and cumulative statistics by
|
|
97
|
+
# TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
|
|
98
|
+
# TaskChannelSid.
|
|
99
|
+
# @param [String] split_by_wait_time A comma separated values for viewing splits
|
|
100
|
+
# of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
|
|
101
|
+
# would show splits of tasks that were canceled or accepted before or after 5
|
|
102
|
+
# seconds and respectively, 30 seconds. This is great for showing short abandoned
|
|
103
|
+
# tasks or tasks that failed to meet your SLA.
|
|
90
104
|
# @return [WorkflowStatisticsInstance] Fetched WorkflowStatisticsInstance
|
|
91
105
|
def fetch(minutes: :unset, start_date: :unset, end_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
|
92
106
|
params = Twilio::Values.of({
|
|
@@ -198,11 +212,23 @@ module Twilio
|
|
|
198
212
|
|
|
199
213
|
##
|
|
200
214
|
# Fetch a WorkflowStatisticsInstance
|
|
201
|
-
# @param [String] minutes
|
|
202
|
-
#
|
|
203
|
-
#
|
|
204
|
-
# @param [
|
|
205
|
-
#
|
|
215
|
+
# @param [String] minutes Filter cumulative statistics by up to ‘x’ minutes in the
|
|
216
|
+
# past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
|
|
217
|
+
# hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
|
|
218
|
+
# @param [Time] start_date Filter cumulative statistics by a start date. This is
|
|
219
|
+
# helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
|
|
220
|
+
# Timestamp
|
|
221
|
+
# @param [Time] end_date Filter cumulative statistics by an end date. This is
|
|
222
|
+
# helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
|
|
223
|
+
# Timestamp
|
|
224
|
+
# @param [String] task_channel Filter real-time and cumulative statistics by
|
|
225
|
+
# TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
|
|
226
|
+
# TaskChannelSid.
|
|
227
|
+
# @param [String] split_by_wait_time A comma separated values for viewing splits
|
|
228
|
+
# of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
|
|
229
|
+
# would show splits of tasks that were canceled or accepted before or after 5
|
|
230
|
+
# seconds and respectively, 30 seconds. This is great for showing short abandoned
|
|
231
|
+
# tasks or tasks that failed to meet your SLA.
|
|
206
232
|
# @return [WorkflowStatisticsInstance] Fetched WorkflowStatisticsInstance
|
|
207
233
|
def fetch(minutes: :unset, start_date: :unset, end_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
|
208
234
|
context.fetch(
|
|
@@ -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,8 @@ module Twilio
|
|
|
13
15
|
##
|
|
14
16
|
# Initialize the WorkflowList
|
|
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 contains this
|
|
19
|
+
# Workflow
|
|
17
20
|
# @return [WorkflowList] WorkflowList
|
|
18
21
|
def initialize(version, workspace_sid: nil)
|
|
19
22
|
super(version)
|
|
@@ -27,7 +30,8 @@ module Twilio
|
|
|
27
30
|
# Lists WorkflowInstance records from the API as a list.
|
|
28
31
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
29
32
|
# memory before returning.
|
|
30
|
-
# @param [String] friendly_name
|
|
33
|
+
# @param [String] friendly_name Human readable description of this Workflow (for
|
|
34
|
+
# example "Customer Support" or "2014 Election Campaign")
|
|
31
35
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
32
36
|
# guarantees to never return more than limit. Default is no limit
|
|
33
37
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -43,7 +47,8 @@ module Twilio
|
|
|
43
47
|
# Streams WorkflowInstance records from the API as an Enumerable.
|
|
44
48
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
45
49
|
# is reached.
|
|
46
|
-
# @param [String] friendly_name
|
|
50
|
+
# @param [String] friendly_name Human readable description of this Workflow (for
|
|
51
|
+
# example "Customer Support" or "2014 Election Campaign")
|
|
47
52
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
48
53
|
# guarantees to never return more than limit. Default is no limit.
|
|
49
54
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -76,7 +81,8 @@ module Twilio
|
|
|
76
81
|
##
|
|
77
82
|
# Retrieve a single page of WorkflowInstance records from the API.
|
|
78
83
|
# Request is executed immediately.
|
|
79
|
-
# @param [String] friendly_name
|
|
84
|
+
# @param [String] friendly_name Human readable description of this Workflow (for
|
|
85
|
+
# example "Customer Support" or "2014 Election Campaign")
|
|
80
86
|
# @param [String] page_token PageToken provided by the API
|
|
81
87
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
82
88
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -112,12 +118,22 @@ module Twilio
|
|
|
112
118
|
##
|
|
113
119
|
# Retrieve a single page of WorkflowInstance records from the API.
|
|
114
120
|
# Request is executed immediately.
|
|
115
|
-
# @param [String] friendly_name
|
|
116
|
-
#
|
|
117
|
-
#
|
|
118
|
-
# @param [String]
|
|
119
|
-
#
|
|
120
|
-
#
|
|
121
|
+
# @param [String] friendly_name A string representing a human readable name for
|
|
122
|
+
# this Workflow. Examples include 'Inbound Call Workflow' or '2014 Outbound
|
|
123
|
+
# Campaign'.
|
|
124
|
+
# @param [String] configuration JSON document configuring the rules for this
|
|
125
|
+
# Workflow. See [Configuring
|
|
126
|
+
# Workflows](https://www.twilio.com/docs/api/taskrouter/workflow-configuration)
|
|
127
|
+
# for more information.
|
|
128
|
+
# @param [String] assignment_callback_url A valid URL for the application that
|
|
129
|
+
# will process task assignment events. See [Handling Task Assignment
|
|
130
|
+
# Callback](https://www.twilio.com/docs/api/taskrouter/handling-assignment-callbacks) for more details.
|
|
131
|
+
# @param [String] fallback_assignment_callback_url If the request to the
|
|
132
|
+
# AssignmentCallbackUrl fails, the assignment callback will be made to this URL.
|
|
133
|
+
# @param [String] task_reservation_timeout An integer value controlling how long
|
|
134
|
+
# in seconds TaskRouter will wait for a confirmation response from your
|
|
135
|
+
# application after assigning a Task to a worker. See Task Assignment Callback for
|
|
136
|
+
# more information. Defaults to 120 seconds. Maximum value is 86400 (24 hours)
|
|
121
137
|
# @return [WorkflowInstance] Newly created WorkflowInstance
|
|
122
138
|
def create(friendly_name: nil, configuration: nil, assignment_callback_url: :unset, fallback_assignment_callback_url: :unset, task_reservation_timeout: :unset)
|
|
123
139
|
data = Twilio::Values.of({
|
|
@@ -215,12 +231,21 @@ module Twilio
|
|
|
215
231
|
|
|
216
232
|
##
|
|
217
233
|
# Update the WorkflowInstance
|
|
218
|
-
# @param [String] friendly_name
|
|
219
|
-
#
|
|
220
|
-
# @param [String]
|
|
221
|
-
#
|
|
222
|
-
#
|
|
223
|
-
# @param [String]
|
|
234
|
+
# @param [String] friendly_name A string representing a human readable name for
|
|
235
|
+
# this Workflow. Examples include 'Customer Support' or 'Sales Team'.
|
|
236
|
+
# @param [String] assignment_callback_url A valid URL for the application that
|
|
237
|
+
# will process task assignment events. See [Handling Task Assignment
|
|
238
|
+
# Callback](https://www.twilio.com/docs/api/taskrouter/handling-assignment-callbacks) for more details.
|
|
239
|
+
# @param [String] fallback_assignment_callback_url If the request to the
|
|
240
|
+
# AssignmentCallbackUrl fails, the assignment callback will be made to this URL.
|
|
241
|
+
# @param [String] configuration JSON document configuring the rules for this
|
|
242
|
+
# Workflow. See [Configuring
|
|
243
|
+
# Workflows](https://www.twilio.com/docs/api/taskrouter/workflow-configuration)
|
|
244
|
+
# for more information.
|
|
245
|
+
# @param [String] task_reservation_timeout An integer value controlling how long
|
|
246
|
+
# in seconds TaskRouter will wait for a confirmation response from your
|
|
247
|
+
# application after assigning a Task to a worker. Defaults to 120 seconds. Maximum
|
|
248
|
+
# value is 86400 (24 hours)
|
|
224
249
|
# @return [WorkflowInstance] Updated WorkflowInstance
|
|
225
250
|
def update(friendly_name: :unset, assignment_callback_url: :unset, fallback_assignment_callback_url: :unset, configuration: :unset, task_reservation_timeout: :unset)
|
|
226
251
|
data = Twilio::Values.of({
|
|
@@ -289,7 +314,8 @@ module Twilio
|
|
|
289
314
|
# Initialize the WorkflowInstance
|
|
290
315
|
# @param [Version] version Version that contains the resource
|
|
291
316
|
# @param [Hash] payload payload that contains response from Twilio
|
|
292
|
-
# @param [String] workspace_sid The
|
|
317
|
+
# @param [String] workspace_sid The ID of the Workspace that contains this
|
|
318
|
+
# Workflow
|
|
293
319
|
# @param [String] sid The sid
|
|
294
320
|
# @return [WorkflowInstance] WorkflowInstance
|
|
295
321
|
def initialize(version, payload, workspace_sid: nil, sid: nil)
|
|
@@ -329,31 +355,31 @@ module Twilio
|
|
|
329
355
|
end
|
|
330
356
|
|
|
331
357
|
##
|
|
332
|
-
# @return [String] The
|
|
358
|
+
# @return [String] The ID of the account that owns this Workflow
|
|
333
359
|
def account_sid
|
|
334
360
|
@properties['account_sid']
|
|
335
361
|
end
|
|
336
362
|
|
|
337
363
|
##
|
|
338
|
-
# @return [String] The
|
|
364
|
+
# @return [String] The URL that will be called whenever a task managed by this Workflow is assigned to a Worker.
|
|
339
365
|
def assignment_callback_url
|
|
340
366
|
@properties['assignment_callback_url']
|
|
341
367
|
end
|
|
342
368
|
|
|
343
369
|
##
|
|
344
|
-
# @return [String]
|
|
370
|
+
# @return [String] JSON document configuring the rules for this Workflow.
|
|
345
371
|
def configuration
|
|
346
372
|
@properties['configuration']
|
|
347
373
|
end
|
|
348
374
|
|
|
349
375
|
##
|
|
350
|
-
# @return [Time] The
|
|
376
|
+
# @return [Time] The date this workflow was created.
|
|
351
377
|
def date_created
|
|
352
378
|
@properties['date_created']
|
|
353
379
|
end
|
|
354
380
|
|
|
355
381
|
##
|
|
356
|
-
# @return [Time] The
|
|
382
|
+
# @return [Time] The date this workflow was last updated.
|
|
357
383
|
def date_updated
|
|
358
384
|
@properties['date_updated']
|
|
359
385
|
end
|
|
@@ -365,31 +391,31 @@ module Twilio
|
|
|
365
391
|
end
|
|
366
392
|
|
|
367
393
|
##
|
|
368
|
-
# @return [String]
|
|
394
|
+
# @return [String] If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL.
|
|
369
395
|
def fallback_assignment_callback_url
|
|
370
396
|
@properties['fallback_assignment_callback_url']
|
|
371
397
|
end
|
|
372
398
|
|
|
373
399
|
##
|
|
374
|
-
# @return [String]
|
|
400
|
+
# @return [String] Human readable description of this Workflow
|
|
375
401
|
def friendly_name
|
|
376
402
|
@properties['friendly_name']
|
|
377
403
|
end
|
|
378
404
|
|
|
379
405
|
##
|
|
380
|
-
# @return [String] The
|
|
406
|
+
# @return [String] The unique ID of the Workflow
|
|
381
407
|
def sid
|
|
382
408
|
@properties['sid']
|
|
383
409
|
end
|
|
384
410
|
|
|
385
411
|
##
|
|
386
|
-
# @return [String]
|
|
412
|
+
# @return [String] Determines how long TaskRouter will wait for a confirmation response from your application after assigning a Task to a worker.
|
|
387
413
|
def task_reservation_timeout
|
|
388
414
|
@properties['task_reservation_timeout']
|
|
389
415
|
end
|
|
390
416
|
|
|
391
417
|
##
|
|
392
|
-
# @return [String] The
|
|
418
|
+
# @return [String] The ID of the Workspace that contains this Workflow
|
|
393
419
|
def workspace_sid
|
|
394
420
|
@properties['workspace_sid']
|
|
395
421
|
end
|
|
@@ -415,12 +441,21 @@ module Twilio
|
|
|
415
441
|
|
|
416
442
|
##
|
|
417
443
|
# Update the WorkflowInstance
|
|
418
|
-
# @param [String] friendly_name
|
|
419
|
-
#
|
|
420
|
-
# @param [String]
|
|
421
|
-
#
|
|
422
|
-
#
|
|
423
|
-
# @param [String]
|
|
444
|
+
# @param [String] friendly_name A string representing a human readable name for
|
|
445
|
+
# this Workflow. Examples include 'Customer Support' or 'Sales Team'.
|
|
446
|
+
# @param [String] assignment_callback_url A valid URL for the application that
|
|
447
|
+
# will process task assignment events. See [Handling Task Assignment
|
|
448
|
+
# Callback](https://www.twilio.com/docs/api/taskrouter/handling-assignment-callbacks) for more details.
|
|
449
|
+
# @param [String] fallback_assignment_callback_url If the request to the
|
|
450
|
+
# AssignmentCallbackUrl fails, the assignment callback will be made to this URL.
|
|
451
|
+
# @param [String] configuration JSON document configuring the rules for this
|
|
452
|
+
# Workflow. See [Configuring
|
|
453
|
+
# Workflows](https://www.twilio.com/docs/api/taskrouter/workflow-configuration)
|
|
454
|
+
# for more information.
|
|
455
|
+
# @param [String] task_reservation_timeout An integer value controlling how long
|
|
456
|
+
# in seconds TaskRouter will wait for a confirmation response from your
|
|
457
|
+
# application after assigning a Task to a worker. Defaults to 120 seconds. Maximum
|
|
458
|
+
# value is 86400 (24 hours)
|
|
424
459
|
# @return [WorkflowInstance] Updated WorkflowInstance
|
|
425
460
|
def update(friendly_name: :unset, assignment_callback_url: :unset, fallback_assignment_callback_url: :unset, configuration: :unset, task_reservation_timeout: :unset)
|
|
426
461
|
context.update(
|