twilio-ruby 5.20.0 → 5.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +22 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +7 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +11 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/form.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/service/entity.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +7 -0
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +7 -0
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api.rb +44 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +35 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +408 -0
- data/lib/twilio-ruby/rest/insights/v1/summary.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +7 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +7 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +7 -0
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +7 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +7 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +7 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +7 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +7 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +7 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +7 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +7 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +7 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +7 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +7 -0
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +7 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +7 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +48 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +14 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +18 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +14 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +14 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v1/service.rb +26 -3
- data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +21 -1
- data/lib/twilio-ruby/rest/verify/v1/service/verification_check.rb +26 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +7 -0
- data/lib/twilio-ruby/rest/voice/v1/voice_permission/country.rb +7 -0
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -0
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +7 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +7 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +3 -3
- data/spec/integration/flex_api/v1/configuration_spec.rb +350 -0
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +6 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +1 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +1 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +1 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +1 -1
- data/spec/integration/verify/v1/service/verification_check_spec.rb +2 -0
- data/spec/integration/verify/v1/service/verification_spec.rb +3 -1
- data/spec/integration/verify/v1/service_spec.rb +4 -0
- metadata +7 -2
@@ -0,0 +1,350 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'Configuration' do
|
12
|
+
it "can fetch" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.flex_api.v1.configuration().fetch()
|
17
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
+
|
19
|
+
values = {}
|
20
|
+
expect(
|
21
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
22
|
+
method: 'get',
|
23
|
+
url: 'https://flex-api.twilio.com/v1/Configuration',
|
24
|
+
))).to eq(true)
|
25
|
+
end
|
26
|
+
|
27
|
+
it "receives fetch responses" do
|
28
|
+
@holodeck.mock(Twilio::Response.new(
|
29
|
+
200,
|
30
|
+
%q[
|
31
|
+
{
|
32
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
33
|
+
"date_created": "2016-08-01T22:10:40Z",
|
34
|
+
"date_updated": "2016-08-01T22:10:40Z",
|
35
|
+
"attributes": {
|
36
|
+
"main_attribute": "some_attribute"
|
37
|
+
},
|
38
|
+
"status": "ok",
|
39
|
+
"taskrouter_workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
40
|
+
"taskrouter_target_workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
41
|
+
"taskrouter_target_taskqueue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
42
|
+
"taskrouter_taskqueues": [
|
43
|
+
{
|
44
|
+
"sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
|
45
|
+
"targettable": true
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac",
|
49
|
+
"targettable": false
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"taskrouter_skills": [
|
53
|
+
{
|
54
|
+
"name": "sales",
|
55
|
+
"multivalue": false,
|
56
|
+
"minimum": 0,
|
57
|
+
"maximum": 0
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"name": "support",
|
61
|
+
"multivalue": true,
|
62
|
+
"minimum": 0,
|
63
|
+
"maximum": 10
|
64
|
+
}
|
65
|
+
],
|
66
|
+
"taskrouter_worker_channels": {
|
67
|
+
"agent": [
|
68
|
+
{
|
69
|
+
"name": "default",
|
70
|
+
"availability": true,
|
71
|
+
"capacity": 1
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"name": "voice",
|
75
|
+
"availability": false,
|
76
|
+
"capacity": 2
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"supervisor": [
|
80
|
+
{
|
81
|
+
"name": "default",
|
82
|
+
"availability": true,
|
83
|
+
"capacity": 2
|
84
|
+
}
|
85
|
+
]
|
86
|
+
},
|
87
|
+
"taskrouter_worker_attributes": {
|
88
|
+
"agent": {
|
89
|
+
"region": "us-east"
|
90
|
+
},
|
91
|
+
"supervisor": {
|
92
|
+
"region": "us"
|
93
|
+
}
|
94
|
+
},
|
95
|
+
"taskrouter_offline_activity_sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
96
|
+
"runtime_domain": "https://flex.twilio.com",
|
97
|
+
"messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
98
|
+
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
99
|
+
"ui_language": "en",
|
100
|
+
"ui_attributes": {},
|
101
|
+
"ui_version": "1.0",
|
102
|
+
"service_version": "1.0",
|
103
|
+
"call_recording_enabled": true,
|
104
|
+
"call_recording_webhook_url": "https://www.example.com/call-recording",
|
105
|
+
"crm_enabled": true,
|
106
|
+
"crm_type": "custom",
|
107
|
+
"crm_callback_url": "https://crm.com/a",
|
108
|
+
"crm_fallback_url": "https://crm.com/b",
|
109
|
+
"crm_attributes": {
|
110
|
+
"crm_attribute": "some_crm"
|
111
|
+
},
|
112
|
+
"public_attributes": {
|
113
|
+
"public": "test"
|
114
|
+
},
|
115
|
+
"url": "https://flex-api.twilio.com/v1/Configuration"
|
116
|
+
}
|
117
|
+
]
|
118
|
+
))
|
119
|
+
|
120
|
+
actual = @client.flex_api.v1.configuration().fetch()
|
121
|
+
|
122
|
+
expect(actual).to_not eq(nil)
|
123
|
+
end
|
124
|
+
|
125
|
+
it "can create" do
|
126
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
127
|
+
|
128
|
+
expect {
|
129
|
+
@client.flex_api.v1.configuration().create()
|
130
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
131
|
+
|
132
|
+
values = {}
|
133
|
+
expect(
|
134
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
135
|
+
method: 'post',
|
136
|
+
url: 'https://flex-api.twilio.com/v1/Configuration',
|
137
|
+
))).to eq(true)
|
138
|
+
end
|
139
|
+
|
140
|
+
it "receives create responses" do
|
141
|
+
@holodeck.mock(Twilio::Response.new(
|
142
|
+
201,
|
143
|
+
%q[
|
144
|
+
{
|
145
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
146
|
+
"date_created": "2016-08-01T22:10:40Z",
|
147
|
+
"date_updated": "2016-08-01T22:10:40Z",
|
148
|
+
"attributes": {
|
149
|
+
"main_attribute": "some_attribute"
|
150
|
+
},
|
151
|
+
"status": "ok",
|
152
|
+
"taskrouter_workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
153
|
+
"taskrouter_target_workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
154
|
+
"taskrouter_target_taskqueue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
155
|
+
"taskrouter_taskqueues": [
|
156
|
+
{
|
157
|
+
"sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
|
158
|
+
"targettable": true
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac",
|
162
|
+
"targettable": false
|
163
|
+
}
|
164
|
+
],
|
165
|
+
"taskrouter_skills": [
|
166
|
+
{
|
167
|
+
"name": "sales",
|
168
|
+
"multivalue": false,
|
169
|
+
"minimum": 0,
|
170
|
+
"maximum": 0
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"name": "support",
|
174
|
+
"multivalue": true,
|
175
|
+
"minimum": 0,
|
176
|
+
"maximum": 10
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"taskrouter_worker_channels": {
|
180
|
+
"agent": [
|
181
|
+
{
|
182
|
+
"name": "default",
|
183
|
+
"availability": true,
|
184
|
+
"capacity": 1
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"name": "voice",
|
188
|
+
"availability": false,
|
189
|
+
"capacity": 2
|
190
|
+
}
|
191
|
+
],
|
192
|
+
"supervisor": [
|
193
|
+
{
|
194
|
+
"name": "default",
|
195
|
+
"availability": true,
|
196
|
+
"capacity": 2
|
197
|
+
}
|
198
|
+
]
|
199
|
+
},
|
200
|
+
"taskrouter_worker_attributes": {
|
201
|
+
"agent": {
|
202
|
+
"region": "us-east"
|
203
|
+
},
|
204
|
+
"supervisor": {
|
205
|
+
"region": "us"
|
206
|
+
}
|
207
|
+
},
|
208
|
+
"taskrouter_offline_activity_sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
209
|
+
"runtime_domain": "https://flex.twilio.com",
|
210
|
+
"messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
211
|
+
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
212
|
+
"ui_language": "en",
|
213
|
+
"ui_attributes": {},
|
214
|
+
"ui_version": "1.0",
|
215
|
+
"service_version": "1.0",
|
216
|
+
"call_recording_enabled": true,
|
217
|
+
"call_recording_webhook_url": "https://www.example.com/call-recording",
|
218
|
+
"crm_enabled": true,
|
219
|
+
"crm_type": "custom",
|
220
|
+
"crm_callback_url": "https://crm.com/a",
|
221
|
+
"crm_fallback_url": "https://crm.com/b",
|
222
|
+
"crm_attributes": {
|
223
|
+
"crm_attribute": "some_crm"
|
224
|
+
},
|
225
|
+
"public_attributes": {
|
226
|
+
"public": "test"
|
227
|
+
},
|
228
|
+
"url": "https://flex-api.twilio.com/v1/Configuration"
|
229
|
+
}
|
230
|
+
]
|
231
|
+
))
|
232
|
+
|
233
|
+
actual = @client.flex_api.v1.configuration().create()
|
234
|
+
|
235
|
+
expect(actual).to_not eq(nil)
|
236
|
+
end
|
237
|
+
|
238
|
+
it "can update" do
|
239
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
240
|
+
|
241
|
+
expect {
|
242
|
+
@client.flex_api.v1.configuration().update()
|
243
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
244
|
+
|
245
|
+
values = {}
|
246
|
+
expect(
|
247
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
248
|
+
method: 'post',
|
249
|
+
url: 'https://flex-api.twilio.com/v1/Configuration',
|
250
|
+
))).to eq(true)
|
251
|
+
end
|
252
|
+
|
253
|
+
it "receives update responses" do
|
254
|
+
@holodeck.mock(Twilio::Response.new(
|
255
|
+
200,
|
256
|
+
%q[
|
257
|
+
{
|
258
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
259
|
+
"date_created": "2016-08-01T22:10:40Z",
|
260
|
+
"date_updated": "2016-08-01T22:10:40Z",
|
261
|
+
"attributes": {
|
262
|
+
"main_attribute": "some_attribute"
|
263
|
+
},
|
264
|
+
"status": "ok",
|
265
|
+
"taskrouter_workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
266
|
+
"taskrouter_target_workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
267
|
+
"taskrouter_target_taskqueue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
268
|
+
"taskrouter_taskqueues": [
|
269
|
+
{
|
270
|
+
"sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
|
271
|
+
"targettable": true
|
272
|
+
},
|
273
|
+
{
|
274
|
+
"sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac",
|
275
|
+
"targettable": false
|
276
|
+
}
|
277
|
+
],
|
278
|
+
"taskrouter_skills": [
|
279
|
+
{
|
280
|
+
"name": "sales",
|
281
|
+
"multivalue": false,
|
282
|
+
"minimum": 0,
|
283
|
+
"maximum": 0
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"name": "support",
|
287
|
+
"multivalue": true,
|
288
|
+
"minimum": 0,
|
289
|
+
"maximum": 10
|
290
|
+
}
|
291
|
+
],
|
292
|
+
"taskrouter_worker_channels": {
|
293
|
+
"agent": [
|
294
|
+
{
|
295
|
+
"name": "default",
|
296
|
+
"availability": true,
|
297
|
+
"capacity": 1
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"name": "voice",
|
301
|
+
"availability": false,
|
302
|
+
"capacity": 2
|
303
|
+
}
|
304
|
+
],
|
305
|
+
"supervisor": [
|
306
|
+
{
|
307
|
+
"name": "default",
|
308
|
+
"availability": true,
|
309
|
+
"capacity": 2
|
310
|
+
}
|
311
|
+
]
|
312
|
+
},
|
313
|
+
"taskrouter_worker_attributes": {
|
314
|
+
"agent": {
|
315
|
+
"region": "us-east"
|
316
|
+
},
|
317
|
+
"supervisor": {
|
318
|
+
"region": "us"
|
319
|
+
}
|
320
|
+
},
|
321
|
+
"taskrouter_offline_activity_sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
322
|
+
"runtime_domain": "https://flex.twilio.com",
|
323
|
+
"messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
324
|
+
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
325
|
+
"ui_language": "en",
|
326
|
+
"ui_attributes": {},
|
327
|
+
"ui_version": "1.0",
|
328
|
+
"service_version": "1.0",
|
329
|
+
"call_recording_enabled": true,
|
330
|
+
"call_recording_webhook_url": "https://www.example.com/call-recording",
|
331
|
+
"crm_enabled": true,
|
332
|
+
"crm_type": "custom",
|
333
|
+
"crm_callback_url": "https://crm.com/a",
|
334
|
+
"crm_fallback_url": "https://crm.com/b",
|
335
|
+
"crm_attributes": {
|
336
|
+
"crm_attribute": "some_crm"
|
337
|
+
},
|
338
|
+
"public_attributes": {
|
339
|
+
"public": "test"
|
340
|
+
},
|
341
|
+
"url": "https://flex-api.twilio.com/v1/Configuration"
|
342
|
+
}
|
343
|
+
]
|
344
|
+
))
|
345
|
+
|
346
|
+
actual = @client.flex_api.v1.configuration().update()
|
347
|
+
|
348
|
+
expect(actual).to_not eq(nil)
|
349
|
+
end
|
350
|
+
end
|
@@ -42,10 +42,12 @@ describe 'Event' do
|
|
42
42
|
"worker_name": "JustinWorker",
|
43
43
|
"worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
44
44
|
"worker_time_in_previous_activity": "26",
|
45
|
+
"worker_time_in_previous_activity_ms": "26123",
|
45
46
|
"workspace_name": "WorkspaceName",
|
46
47
|
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
47
48
|
},
|
48
49
|
"event_date": "2015-02-07T00:32:41Z",
|
50
|
+
"event_date_ms": 987654321111,
|
49
51
|
"event_type": "worker.activity",
|
50
52
|
"resource_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
51
53
|
"resource_type": "worker",
|
@@ -53,6 +55,7 @@ describe 'Event' do
|
|
53
55
|
"sid": "EVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
54
56
|
"source": "twilio",
|
55
57
|
"source_ip_address": "1.2.3.4",
|
58
|
+
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
56
59
|
"url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events/EVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
57
60
|
}
|
58
61
|
]
|
@@ -99,10 +102,12 @@ describe 'Event' do
|
|
99
102
|
"worker_name": "JustinWorker",
|
100
103
|
"worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
101
104
|
"worker_time_in_previous_activity": "26",
|
105
|
+
"worker_time_in_previous_activity_ms": "26123",
|
102
106
|
"workspace_name": "WorkspaceName",
|
103
107
|
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
104
108
|
},
|
105
109
|
"event_date": "2015-02-07T00:32:41Z",
|
110
|
+
"event_date_ms": 987654321111,
|
106
111
|
"event_type": "worker.activity",
|
107
112
|
"resource_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
108
113
|
"resource_type": "worker",
|
@@ -110,6 +115,7 @@ describe 'Event' do
|
|
110
115
|
"sid": "EVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
111
116
|
"source": "twilio",
|
112
117
|
"source_ip_address": "1.2.3.4",
|
118
|
+
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
113
119
|
"url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events/EVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
114
120
|
}
|
115
121
|
],
|
data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb
CHANGED
@@ -32,6 +32,7 @@ describe 'WorkflowRealTimeStatistics' do
|
|
32
32
|
%q[
|
33
33
|
{
|
34
34
|
"longest_task_waiting_age": 100,
|
35
|
+
"longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
36
|
"url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows/WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RealTimeStatistics",
|
36
37
|
"tasks_by_priority": {},
|
37
38
|
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
@@ -56,6 +56,7 @@ describe 'WorkspaceRealTimeStatistics' do
|
|
56
56
|
],
|
57
57
|
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
58
58
|
"longest_task_waiting_age": 100,
|
59
|
+
"longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
59
60
|
"total_workers": 100,
|
60
61
|
"total_tasks": 100,
|
61
62
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|