twilio-ruby 6.2.0 → 6.8.3
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 +205 -0
- data/CONTRIBUTING.md +1 -1
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/base/client_base.rb +4 -7
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +0 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +0 -1
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +169 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -5
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +0 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -19
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -6
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +0 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -6
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +19 -23
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +55 -58
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +0 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -9
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +0 -3
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +0 -4
- data/lib/twilio-ruby/rest/api/v2010/account.rb +0 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -5
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +0 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +4 -5
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +2 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +5 -6
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -3
- data/lib/twilio-ruby/rest/chat/v2/service.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +3 -3
- data/lib/twilio-ruby/rest/client.rb +1 -6
- data/lib/twilio-ruby/rest/content/v1/content.rb +1 -2
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -2
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -2
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +0 -2
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +3 -3
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +22 -8
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +0 -3
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +2 -3
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +12 -12
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +19 -20
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +25 -11
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +0 -3
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -2
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +0 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +0 -2
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +0 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +0 -3
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +0 -1
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +21 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +0 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +0 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +1 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +1 -4
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +6 -7
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +11 -1
- data/lib/twilio-ruby/rest/{oauth/v1/oauth.rb → flex_api/v1/provisioning_status.rb} +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +6 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +0 -3
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +33 -51
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +0 -4
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +0 -11
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +3 -4
- data/lib/twilio-ruby/rest/insights/v1/room.rb +2 -6
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +4 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +2 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +12 -7
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +3 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +5 -25
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +4 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +2 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +5 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +0 -1
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +7 -10
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +1 -6
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +2 -5
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +329 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +4 -5
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +78 -52
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +777 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +8 -3
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +0 -4
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +0 -7
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -5
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service.rb +4 -6
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +22 -4
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +7 -12
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +6 -6
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +249 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +7 -20
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +19 -31
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +0 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +14 -14
- data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +3 -9
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +4 -7
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +3 -9
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -3
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -4
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -3
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -1
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -5
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +0 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -3
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +4 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -4
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -4
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -8
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +3 -8
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -4
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +0 -3
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -4
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -4
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +0 -9
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +0 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +0 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -2
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +0 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +0 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +0 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +26 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +0 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +0 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +0 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +0 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +232 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +154 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +0 -3
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +0 -4
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +0 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +0 -4
- data/lib/twilio-ruby/rest/trusthub/v1.rb +21 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -5
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -4
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +4 -5
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +0 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +19 -4
- data/lib/twilio-ruby/rest/verify/v2/template.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +7 -16
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/composition.rb +0 -5
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +0 -5
- data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -7
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +0 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +0 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -8
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +0 -5
- data/lib/twilio-ruby/rest/video/v1/room.rb +2 -7
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +4 -11
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +5 -10
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +7 -8
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -4
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +3 -7
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +13 -19
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +2 -6
- data/lib/twilio-ruby/twiml/voice_response.rb +8 -4
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -11
- data/conf/cacert.pem +0 -3376
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -179
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/oauth/v1.rb +0 -64
- data/lib/twilio-ruby/rest/oauth.rb +0 -33
- data/lib/twilio-ruby/rest/oauth_base.rb +0 -38
|
@@ -119,7 +119,6 @@ module Twilio
|
|
|
119
119
|
# @return [Page] Page of SyncListInstance
|
|
120
120
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
121
121
|
params = Twilio::Values.of({
|
|
122
|
-
|
|
123
122
|
'PageToken' => page_token,
|
|
124
123
|
'Page' => page_number,
|
|
125
124
|
'PageSize' => page_size,
|
|
@@ -230,7 +229,7 @@ module Twilio
|
|
|
230
229
|
|
|
231
230
|
unless @sync_list_permissions
|
|
232
231
|
@sync_list_permissions = SyncListPermissionList.new(
|
|
233
|
-
@version, service_sid: @solution[:service_sid],
|
|
232
|
+
@version, service_sid: @solution[:service_sid], list_sid: @solution[:sid], )
|
|
234
233
|
end
|
|
235
234
|
|
|
236
235
|
@sync_list_permissions
|
|
@@ -249,7 +248,7 @@ module Twilio
|
|
|
249
248
|
|
|
250
249
|
unless @sync_list_items
|
|
251
250
|
@sync_list_items = SyncListItemList.new(
|
|
252
|
-
@version, service_sid: @solution[:service_sid],
|
|
251
|
+
@version, service_sid: @solution[:service_sid], list_sid: @solution[:sid], )
|
|
253
252
|
end
|
|
254
253
|
|
|
255
254
|
@sync_list_items
|
|
@@ -142,13 +142,9 @@ module Twilio
|
|
|
142
142
|
# @return [Page] Page of SyncMapItemInstance
|
|
143
143
|
def page(order: :unset, from: :unset, bounds: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
144
144
|
params = Twilio::Values.of({
|
|
145
|
-
|
|
146
145
|
'Order' => order,
|
|
147
|
-
|
|
148
146
|
'From' => from,
|
|
149
|
-
|
|
150
147
|
'Bounds' => bounds,
|
|
151
|
-
|
|
152
148
|
'PageToken' => page_token,
|
|
153
149
|
'Page' => page_number,
|
|
154
150
|
'PageSize' => page_size,
|
|
@@ -119,7 +119,6 @@ module Twilio
|
|
|
119
119
|
# @return [Page] Page of SyncMapInstance
|
|
120
120
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
121
121
|
params = Twilio::Values.of({
|
|
122
|
-
|
|
123
122
|
'PageToken' => page_token,
|
|
124
123
|
'Page' => page_number,
|
|
125
124
|
'PageSize' => page_size,
|
|
@@ -230,7 +229,7 @@ module Twilio
|
|
|
230
229
|
|
|
231
230
|
unless @sync_map_items
|
|
232
231
|
@sync_map_items = SyncMapItemList.new(
|
|
233
|
-
@version, service_sid: @solution[:service_sid],
|
|
232
|
+
@version, service_sid: @solution[:service_sid], map_sid: @solution[:sid], )
|
|
234
233
|
end
|
|
235
234
|
|
|
236
235
|
@sync_map_items
|
|
@@ -249,7 +248,7 @@ module Twilio
|
|
|
249
248
|
|
|
250
249
|
unless @sync_map_permissions
|
|
251
250
|
@sync_map_permissions = SyncMapPermissionList.new(
|
|
252
|
-
@version, service_sid: @solution[:service_sid],
|
|
251
|
+
@version, service_sid: @solution[:service_sid], map_sid: @solution[:sid], )
|
|
253
252
|
end
|
|
254
253
|
|
|
255
254
|
@sync_map_permissions
|
|
@@ -116,7 +116,6 @@ module Twilio
|
|
|
116
116
|
# @return [Page] Page of SyncStreamInstance
|
|
117
117
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
118
118
|
params = Twilio::Values.of({
|
|
119
|
-
|
|
120
119
|
'PageToken' => page_token,
|
|
121
120
|
'Page' => page_number,
|
|
122
121
|
'PageSize' => page_size,
|
|
@@ -216,7 +215,7 @@ module Twilio
|
|
|
216
215
|
def stream_messages
|
|
217
216
|
unless @stream_messages
|
|
218
217
|
@stream_messages = StreamMessageList.new(
|
|
219
|
-
@version, service_sid: @solution[:service_sid],
|
|
218
|
+
@version, service_sid: @solution[:service_sid], stream_sid: @solution[:sid], )
|
|
220
219
|
end
|
|
221
220
|
@stream_messages
|
|
222
221
|
end
|
|
@@ -128,7 +128,6 @@ module Twilio
|
|
|
128
128
|
# @return [Page] Page of ServiceInstance
|
|
129
129
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
130
130
|
params = Twilio::Values.of({
|
|
131
|
-
|
|
132
131
|
'PageToken' => page_token,
|
|
133
132
|
'Page' => page_number,
|
|
134
133
|
'PageSize' => page_size,
|
|
@@ -126,11 +126,8 @@ module Twilio
|
|
|
126
126
|
# @return [Page] Page of ActivityInstance
|
|
127
127
|
def page(friendly_name: :unset, available: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
128
128
|
params = Twilio::Values.of({
|
|
129
|
-
|
|
130
129
|
'FriendlyName' => friendly_name,
|
|
131
|
-
|
|
132
130
|
'Available' => available,
|
|
133
|
-
|
|
134
131
|
'PageToken' => page_token,
|
|
135
132
|
'Page' => page_number,
|
|
136
133
|
'PageSize' => page_size,
|
|
@@ -148,29 +148,17 @@ module Twilio
|
|
|
148
148
|
# @return [Page] Page of EventInstance
|
|
149
149
|
def page(end_date: :unset, event_type: :unset, minutes: :unset, reservation_sid: :unset, start_date: :unset, task_queue_sid: :unset, task_sid: :unset, worker_sid: :unset, workflow_sid: :unset, task_channel: :unset, sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
150
150
|
params = Twilio::Values.of({
|
|
151
|
-
|
|
152
151
|
'EndDate' => Twilio.serialize_iso8601_datetime(end_date),
|
|
153
|
-
|
|
154
152
|
'EventType' => event_type,
|
|
155
|
-
|
|
156
153
|
'Minutes' => minutes,
|
|
157
|
-
|
|
158
154
|
'ReservationSid' => reservation_sid,
|
|
159
|
-
|
|
160
155
|
'StartDate' => Twilio.serialize_iso8601_datetime(start_date),
|
|
161
|
-
|
|
162
156
|
'TaskQueueSid' => task_queue_sid,
|
|
163
|
-
|
|
164
157
|
'TaskSid' => task_sid,
|
|
165
|
-
|
|
166
158
|
'WorkerSid' => worker_sid,
|
|
167
|
-
|
|
168
159
|
'WorkflowSid' => workflow_sid,
|
|
169
|
-
|
|
170
160
|
'TaskChannel' => task_channel,
|
|
171
|
-
|
|
172
161
|
'Sid' => sid,
|
|
173
|
-
|
|
174
162
|
'PageToken' => page_token,
|
|
175
163
|
'Page' => page_number,
|
|
176
164
|
'PageSize' => page_size,
|
|
@@ -104,11 +104,8 @@ module Twilio
|
|
|
104
104
|
# @return [Page] Page of ReservationInstance
|
|
105
105
|
def page(reservation_status: :unset, worker_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
106
106
|
params = Twilio::Values.of({
|
|
107
|
-
|
|
108
107
|
'ReservationStatus' => reservation_status,
|
|
109
|
-
|
|
110
108
|
'WorkerSid' => worker_sid,
|
|
111
|
-
|
|
112
109
|
'PageToken' => page_token,
|
|
113
110
|
'Page' => page_number,
|
|
114
111
|
'PageSize' => page_size,
|
|
@@ -38,13 +38,15 @@ module Twilio
|
|
|
38
38
|
# @param [String] task_channel When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`.
|
|
39
39
|
# @param [String] workflow_sid The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional.
|
|
40
40
|
# @param [String] attributes A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`.
|
|
41
|
+
# @param [Time] virtual_start_time The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future.
|
|
41
42
|
# @return [TaskInstance] Created TaskInstance
|
|
42
43
|
def create(
|
|
43
44
|
timeout: :unset,
|
|
44
45
|
priority: :unset,
|
|
45
46
|
task_channel: :unset,
|
|
46
47
|
workflow_sid: :unset,
|
|
47
|
-
attributes: :unset
|
|
48
|
+
attributes: :unset,
|
|
49
|
+
virtual_start_time: :unset
|
|
48
50
|
)
|
|
49
51
|
|
|
50
52
|
data = Twilio::Values.of({
|
|
@@ -53,6 +55,7 @@ module Twilio
|
|
|
53
55
|
'TaskChannel' => task_channel,
|
|
54
56
|
'WorkflowSid' => workflow_sid,
|
|
55
57
|
'Attributes' => attributes,
|
|
58
|
+
'VirtualStartTime' => Twilio.serialize_iso8601_datetime(virtual_start_time),
|
|
56
59
|
})
|
|
57
60
|
|
|
58
61
|
payload = @version.create('POST', @uri, data: data)
|
|
@@ -75,8 +78,8 @@ module Twilio
|
|
|
75
78
|
# @param [String] task_queue_sid The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID.
|
|
76
79
|
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
|
|
77
80
|
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
|
|
78
|
-
# @param [String] ordering How to order the returned Task resources.
|
|
79
|
-
# @param [Boolean] has_addons Whether to read Tasks with
|
|
81
|
+
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
|
|
82
|
+
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
|
|
80
83
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
81
84
|
# guarantees to never return more than limit. Default is no limit
|
|
82
85
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -111,8 +114,8 @@ module Twilio
|
|
|
111
114
|
# @param [String] task_queue_sid The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID.
|
|
112
115
|
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
|
|
113
116
|
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
|
|
114
|
-
# @param [String] ordering How to order the returned Task resources.
|
|
115
|
-
# @param [Boolean] has_addons Whether to read Tasks with
|
|
117
|
+
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
|
|
118
|
+
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
|
|
116
119
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
117
120
|
# guarantees to never return more than limit. Default is no limit
|
|
118
121
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -162,33 +165,24 @@ module Twilio
|
|
|
162
165
|
# @param [String] task_queue_sid The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID.
|
|
163
166
|
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
|
|
164
167
|
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
|
|
165
|
-
# @param [String] ordering How to order the returned Task resources.
|
|
166
|
-
# @param [Boolean] has_addons Whether to read Tasks with
|
|
168
|
+
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
|
|
169
|
+
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
|
|
167
170
|
# @param [String] page_token PageToken provided by the API
|
|
168
171
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
169
172
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
170
173
|
# @return [Page] Page of TaskInstance
|
|
171
174
|
def page(priority: :unset, assignment_status: :unset, workflow_sid: :unset, workflow_name: :unset, task_queue_sid: :unset, task_queue_name: :unset, evaluate_task_attributes: :unset, ordering: :unset, has_addons: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
172
175
|
params = Twilio::Values.of({
|
|
173
|
-
|
|
174
176
|
'Priority' => priority,
|
|
175
177
|
|
|
176
|
-
'AssignmentStatus' => Twilio.serialize_list(assignment_status),
|
|
177
|
-
|
|
178
|
+
'AssignmentStatus' => Twilio.serialize_list(assignment_status) { |e| e },
|
|
178
179
|
'WorkflowSid' => workflow_sid,
|
|
179
|
-
|
|
180
180
|
'WorkflowName' => workflow_name,
|
|
181
|
-
|
|
182
181
|
'TaskQueueSid' => task_queue_sid,
|
|
183
|
-
|
|
184
182
|
'TaskQueueName' => task_queue_name,
|
|
185
|
-
|
|
186
183
|
'EvaluateTaskAttributes' => evaluate_task_attributes,
|
|
187
|
-
|
|
188
184
|
'Ordering' => ordering,
|
|
189
|
-
|
|
190
185
|
'HasAddons' => has_addons,
|
|
191
|
-
|
|
192
186
|
'PageToken' => page_token,
|
|
193
187
|
'Page' => page_number,
|
|
194
188
|
'PageSize' => page_size,
|
|
@@ -271,6 +265,7 @@ module Twilio
|
|
|
271
265
|
# @param [String] reason The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason.
|
|
272
266
|
# @param [String] priority The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647).
|
|
273
267
|
# @param [String] task_channel When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`.
|
|
268
|
+
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future.
|
|
274
269
|
# @param [String] if_match If provided, applies this mutation if (and only if) the [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
|
|
275
270
|
# @return [TaskInstance] Updated TaskInstance
|
|
276
271
|
def update(
|
|
@@ -279,6 +274,7 @@ module Twilio
|
|
|
279
274
|
reason: :unset,
|
|
280
275
|
priority: :unset,
|
|
281
276
|
task_channel: :unset,
|
|
277
|
+
virtual_start_time: :unset,
|
|
282
278
|
if_match: :unset
|
|
283
279
|
)
|
|
284
280
|
|
|
@@ -288,6 +284,7 @@ module Twilio
|
|
|
288
284
|
'Reason' => reason,
|
|
289
285
|
'Priority' => priority,
|
|
290
286
|
'TaskChannel' => task_channel,
|
|
287
|
+
'VirtualStartTime' => Twilio.serialize_iso8601_datetime(virtual_start_time),
|
|
291
288
|
})
|
|
292
289
|
|
|
293
290
|
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
|
@@ -314,7 +311,7 @@ module Twilio
|
|
|
314
311
|
|
|
315
312
|
unless @reservations
|
|
316
313
|
@reservations = ReservationList.new(
|
|
317
|
-
@version, workspace_sid: @solution[:workspace_sid],
|
|
314
|
+
@version, workspace_sid: @solution[:workspace_sid], task_sid: @solution[:sid], )
|
|
318
315
|
end
|
|
319
316
|
|
|
320
317
|
@reservations
|
|
@@ -399,6 +396,7 @@ module Twilio
|
|
|
399
396
|
'workspace_sid' => payload['workspace_sid'],
|
|
400
397
|
'url' => payload['url'],
|
|
401
398
|
'links' => payload['links'],
|
|
399
|
+
'virtual_start_time' => Twilio.deserialize_iso8601_datetime(payload['virtual_start_time']),
|
|
402
400
|
}
|
|
403
401
|
|
|
404
402
|
# Context
|
|
@@ -442,7 +440,7 @@ module Twilio
|
|
|
442
440
|
end
|
|
443
441
|
|
|
444
442
|
##
|
|
445
|
-
# @return [String] An object that contains the [
|
|
443
|
+
# @return [String] An object that contains the [Add-on](https://www.twilio.com/docs/add-ons) data for all installed Add-ons.
|
|
446
444
|
def addons
|
|
447
445
|
@properties['addons']
|
|
448
446
|
end
|
|
@@ -543,6 +541,12 @@ module Twilio
|
|
|
543
541
|
@properties['links']
|
|
544
542
|
end
|
|
545
543
|
|
|
544
|
+
##
|
|
545
|
+
# @return [Time] The date and time in GMT indicating the ordering for routing of the Task specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
546
|
+
def virtual_start_time
|
|
547
|
+
@properties['virtual_start_time']
|
|
548
|
+
end
|
|
549
|
+
|
|
546
550
|
##
|
|
547
551
|
# Delete the TaskInstance
|
|
548
552
|
# @param [String] if_match If provided, deletes this Task if (and only if) the [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
|
|
@@ -571,6 +575,7 @@ module Twilio
|
|
|
571
575
|
# @param [String] reason The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason.
|
|
572
576
|
# @param [String] priority The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647).
|
|
573
577
|
# @param [String] task_channel When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`.
|
|
578
|
+
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future.
|
|
574
579
|
# @param [String] if_match If provided, applies this mutation if (and only if) the [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
|
|
575
580
|
# @return [TaskInstance] Updated TaskInstance
|
|
576
581
|
def update(
|
|
@@ -579,6 +584,7 @@ module Twilio
|
|
|
579
584
|
reason: :unset,
|
|
580
585
|
priority: :unset,
|
|
581
586
|
task_channel: :unset,
|
|
587
|
+
virtual_start_time: :unset,
|
|
582
588
|
if_match: :unset
|
|
583
589
|
)
|
|
584
590
|
|
|
@@ -588,6 +594,7 @@ module Twilio
|
|
|
588
594
|
reason: reason,
|
|
589
595
|
priority: priority,
|
|
590
596
|
task_channel: task_channel,
|
|
597
|
+
virtual_start_time: virtual_start_time,
|
|
591
598
|
if_match: if_match,
|
|
592
599
|
)
|
|
593
600
|
end
|
|
@@ -119,7 +119,6 @@ module Twilio
|
|
|
119
119
|
# @return [Page] Page of TaskChannelInstance
|
|
120
120
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
121
121
|
params = Twilio::Values.of({
|
|
122
|
-
|
|
123
122
|
'PageToken' => page_token,
|
|
124
123
|
'Page' => page_number,
|
|
125
124
|
'PageSize' => page_size,
|
|
@@ -124,19 +124,12 @@ module Twilio
|
|
|
124
124
|
# @return [Page] Page of TaskQueuesStatisticsInstance
|
|
125
125
|
def page(end_date: :unset, friendly_name: :unset, minutes: :unset, start_date: :unset, task_channel: :unset, split_by_wait_time: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
126
126
|
params = Twilio::Values.of({
|
|
127
|
-
|
|
128
127
|
'EndDate' => Twilio.serialize_iso8601_datetime(end_date),
|
|
129
|
-
|
|
130
128
|
'FriendlyName' => friendly_name,
|
|
131
|
-
|
|
132
129
|
'Minutes' => minutes,
|
|
133
|
-
|
|
134
130
|
'StartDate' => Twilio.serialize_iso8601_datetime(start_date),
|
|
135
|
-
|
|
136
131
|
'TaskChannel' => task_channel,
|
|
137
|
-
|
|
138
132
|
'SplitByWaitTime' => split_by_wait_time,
|
|
139
|
-
|
|
140
133
|
'PageToken' => page_token,
|
|
141
134
|
'Page' => page_number,
|
|
142
135
|
'PageSize' => page_size,
|
|
@@ -31,6 +31,7 @@ module Twilio
|
|
|
31
31
|
@uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues"
|
|
32
32
|
# Components
|
|
33
33
|
@statistics = nil
|
|
34
|
+
@bulk_real_time_statistics = nil
|
|
34
35
|
end
|
|
35
36
|
##
|
|
36
37
|
# Create the TaskQueueInstance
|
|
@@ -149,15 +150,10 @@ module Twilio
|
|
|
149
150
|
# @return [Page] Page of TaskQueueInstance
|
|
150
151
|
def page(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: :unset, ordering: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
151
152
|
params = Twilio::Values.of({
|
|
152
|
-
|
|
153
153
|
'FriendlyName' => friendly_name,
|
|
154
|
-
|
|
155
154
|
'EvaluateWorkerAttributes' => evaluate_worker_attributes,
|
|
156
|
-
|
|
157
155
|
'WorkerSid' => worker_sid,
|
|
158
|
-
|
|
159
156
|
'Ordering' => ordering,
|
|
160
|
-
|
|
161
157
|
'PageToken' => page_token,
|
|
162
158
|
'Page' => page_number,
|
|
163
159
|
'PageSize' => page_size,
|
|
@@ -189,6 +185,13 @@ module Twilio
|
|
|
189
185
|
def statistics
|
|
190
186
|
@statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
|
|
191
187
|
end
|
|
188
|
+
##
|
|
189
|
+
# Access the bulk_real_time_statistics
|
|
190
|
+
# @return [TaskQueueBulkRealTimeStatisticsList]
|
|
191
|
+
# @return [TaskQueueBulkRealTimeStatisticsContext]
|
|
192
|
+
def bulk_real_time_statistics
|
|
193
|
+
@bulk_real_time_statistics ||= TaskQueueBulkRealTimeStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
|
|
194
|
+
end
|
|
192
195
|
|
|
193
196
|
# Provide a user friendly representation
|
|
194
197
|
def to_s
|
|
@@ -99,9 +99,7 @@ module Twilio
|
|
|
99
99
|
# @return [Page] Page of ReservationInstance
|
|
100
100
|
def page(reservation_status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
101
101
|
params = Twilio::Values.of({
|
|
102
|
-
|
|
103
102
|
'ReservationStatus' => reservation_status,
|
|
104
|
-
|
|
105
103
|
'PageToken' => page_token,
|
|
106
104
|
'Page' => page_number,
|
|
107
105
|
'PageSize' => page_size,
|
|
@@ -160,23 +160,14 @@ module Twilio
|
|
|
160
160
|
# @return [Page] Page of WorkerInstance
|
|
161
161
|
def page(activity_name: :unset, activity_sid: :unset, available: :unset, friendly_name: :unset, target_workers_expression: :unset, task_queue_name: :unset, task_queue_sid: :unset, ordering: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
162
162
|
params = Twilio::Values.of({
|
|
163
|
-
|
|
164
163
|
'ActivityName' => activity_name,
|
|
165
|
-
|
|
166
164
|
'ActivitySid' => activity_sid,
|
|
167
|
-
|
|
168
165
|
'Available' => available,
|
|
169
|
-
|
|
170
166
|
'FriendlyName' => friendly_name,
|
|
171
|
-
|
|
172
167
|
'TargetWorkersExpression' => target_workers_expression,
|
|
173
|
-
|
|
174
168
|
'TaskQueueName' => task_queue_name,
|
|
175
|
-
|
|
176
169
|
'TaskQueueSid' => task_queue_sid,
|
|
177
|
-
|
|
178
170
|
'Ordering' => ordering,
|
|
179
|
-
|
|
180
171
|
'PageToken' => page_token,
|
|
181
172
|
'Page' => page_number,
|
|
182
173
|
'PageSize' => page_size,
|
|
@@ -309,7 +300,7 @@ module Twilio
|
|
|
309
300
|
|
|
310
301
|
unless @reservations
|
|
311
302
|
@reservations = ReservationList.new(
|
|
312
|
-
@version, workspace_sid: @solution[:workspace_sid],
|
|
303
|
+
@version, workspace_sid: @solution[:workspace_sid], worker_sid: @solution[:sid], )
|
|
313
304
|
end
|
|
314
305
|
|
|
315
306
|
@reservations
|
|
@@ -361,7 +352,7 @@ module Twilio
|
|
|
361
352
|
|
|
362
353
|
unless @worker_channels
|
|
363
354
|
@worker_channels = WorkerChannelList.new(
|
|
364
|
-
@version, workspace_sid: @solution[:workspace_sid],
|
|
355
|
+
@version, workspace_sid: @solution[:workspace_sid], worker_sid: @solution[:sid], )
|
|
365
356
|
end
|
|
366
357
|
|
|
367
358
|
@worker_channels
|
|
@@ -130,9 +130,7 @@ module Twilio
|
|
|
130
130
|
# @return [Page] Page of WorkflowInstance
|
|
131
131
|
def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
132
132
|
params = Twilio::Values.of({
|
|
133
|
-
|
|
134
133
|
'FriendlyName' => friendly_name,
|
|
135
|
-
|
|
136
134
|
'PageToken' => page_token,
|
|
137
135
|
'Page' => page_number,
|
|
138
136
|
'PageSize' => page_size,
|
|
@@ -130,9 +130,7 @@ module Twilio
|
|
|
130
130
|
# @return [Page] Page of WorkspaceInstance
|
|
131
131
|
def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
132
132
|
params = Twilio::Values.of({
|
|
133
|
-
|
|
134
133
|
'FriendlyName' => friendly_name,
|
|
135
|
-
|
|
136
134
|
'PageToken' => page_token,
|
|
137
135
|
'Page' => page_number,
|
|
138
136
|
'PageSize' => page_size,
|
|
@@ -113,7 +113,6 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of CredentialListInstance
|
|
114
114
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
115
115
|
params = Twilio::Values.of({
|
|
116
|
-
|
|
117
116
|
'PageToken' => page_token,
|
|
118
117
|
'Page' => page_number,
|
|
119
118
|
'PageSize' => page_size,
|
|
@@ -113,7 +113,6 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of IpAccessControlListInstance
|
|
114
114
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
115
115
|
params = Twilio::Values.of({
|
|
116
|
-
|
|
117
116
|
'PageToken' => page_token,
|
|
118
117
|
'Page' => page_number,
|
|
119
118
|
'PageSize' => page_size,
|
|
@@ -125,7 +125,6 @@ module Twilio
|
|
|
125
125
|
# @return [Page] Page of OriginationUrlInstance
|
|
126
126
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
127
127
|
params = Twilio::Values.of({
|
|
128
|
-
|
|
129
128
|
'PageToken' => page_token,
|
|
130
129
|
'Page' => page_number,
|
|
131
130
|
'PageSize' => page_size,
|
|
@@ -113,7 +113,6 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of PhoneNumberInstance
|
|
114
114
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
115
115
|
params = Twilio::Values.of({
|
|
116
|
-
|
|
117
116
|
'PageToken' => page_token,
|
|
118
117
|
'Page' => page_number,
|
|
119
118
|
'PageSize' => page_size,
|