twilio-ruby 5.39.2 → 5.60.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/.gitignore +2 -0
- data/.rubocop_todo.yml +7 -7
- data/.travis.yml +42 -29
- data/CHANGES.md +686 -1
- data/CONTRIBUTING.md +2 -2
- data/Gemfile +1 -0
- data/ISSUE_TEMPLATE.md +5 -1
- data/{LICENSE.md → LICENSE} +1 -1
- data/PULL_REQUEST_TEMPLATE.md +4 -4
- data/README.md +45 -5
- data/examples/examples.rb +1 -1
- data/lib/twilio-ruby/framework/{domain.rb → rest/domain.rb} +0 -0
- data/lib/twilio-ruby/framework/{error.rb → rest/error.rb} +0 -0
- data/lib/twilio-ruby/framework/{helper.rb → rest/helper.rb} +0 -0
- data/lib/twilio-ruby/framework/{obsolete_client.rb → rest/obsolete_client.rb} +0 -0
- data/lib/twilio-ruby/framework/{page.rb → rest/page.rb} +0 -0
- data/lib/twilio-ruby/framework/{resource.rb → rest/resource.rb} +0 -0
- data/lib/twilio-ruby/framework/{version.rb → rest/version.rb} +4 -8
- data/lib/twilio-ruby/http/http_client.rb +15 -3
- data/lib/twilio-ruby/http.rb +5 -0
- data/lib/twilio-ruby/jwt/access_token.rb +20 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +186 -0
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +200 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +14 -0
- data/lib/twilio-ruby/rest/accounts.rb +12 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +9 -7
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +201 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +43 -43
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +91 -66
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +25 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +99 -32
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +52 -36
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +28 -7
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +28 -7
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +28 -7
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +27 -20
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +6 -4
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +34 -27
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +12 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +7 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +19 -18
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010.rb +5 -4
- data/lib/twilio-ruby/rest/api.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +15 -11
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +33 -26
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +9 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +31 -24
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +8 -8
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +6 -6
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +12 -12
- data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +12 -34
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +44 -49
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +20 -12
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -12
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -11
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +14 -10
- data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +22 -22
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +31 -31
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +14 -14
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +8 -8
- data/lib/twilio-ruby/rest/chat/v1/service.rb +39 -39
- data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +25 -25
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +22 -22
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +57 -57
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +25 -25
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +39 -36
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +21 -21
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +14 -14
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +25 -25
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +20 -20
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +8 -8
- data/lib/twilio-ruby/rest/chat/v2/service.rb +39 -39
- data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
- data/lib/twilio-ruby/rest/client.rb +59 -5
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +254 -0
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +260 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +35 -28
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +28 -26
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +78 -40
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +23 -28
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +41 -23
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +419 -0
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +312 -0
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +366 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +380 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +323 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +278 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +386 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +548 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +541 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +449 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +595 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +324 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +387 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +466 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +481 -0
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +457 -0
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +442 -0
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +451 -0
- data/lib/twilio-ruby/rest/conversations/v1.rb +84 -9
- data/lib/twilio-ruby/rest/conversations.rb +45 -3
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +298 -0
- data/lib/twilio-ruby/rest/events/v1/schema/version.rb +290 -0
- data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +119 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +418 -0
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +346 -0
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +397 -0
- data/lib/twilio-ruby/rest/events/v1.rb +94 -0
- data/lib/twilio-ruby/rest/events.rb +72 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +28 -27
- data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +25 -4
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +101 -83
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1.rb +16 -13
- data/lib/twilio-ruby/rest/flex_api.rb +1 -1
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +233 -0
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +45 -0
- data/lib/twilio-ruby/rest/frontline_api.rb +47 -0
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +15 -9
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +434 -0
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +378 -0
- data/lib/twilio-ruby/rest/insights/v1/room.rb +499 -0
- data/lib/twilio-ruby/rest/insights/v1.rb +28 -4
- data/lib/twilio-ruby/rest/insights.rb +14 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +29 -68
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +23 -55
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +28 -71
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +31 -59
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +32 -59
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +19 -39
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +12 -18
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +29 -51
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +198 -313
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +16 -16
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +29 -66
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +23 -50
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +23 -50
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +42 -118
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +46 -100
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +36 -89
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +41 -91
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +19 -41
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +23 -53
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +27 -56
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +29 -53
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +116 -205
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +16 -14
- data/lib/twilio-ruby/rest/ip_messaging.rb +8 -10
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +24 -24
- data/lib/twilio-ruby/rest/lookups/v1.rb +6 -5
- data/lib/twilio-ruby/rest/lookups.rb +1 -1
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +384 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +390 -0
- data/lib/twilio-ruby/rest/media/v1.rb +60 -0
- data/lib/twilio-ruby/rest/media.rb +56 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +272 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +424 -0
- data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +150 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +433 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +129 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +183 -62
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +111 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +42 -4
- data/lib/twilio-ruby/rest/messaging.rb +26 -0
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +15 -15
- data/lib/twilio-ruby/rest/monitor/v1.rb +10 -8
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +12 -6
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +26 -25
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +39 -31
- data/lib/twilio-ruby/rest/notify/v1/service.rb +24 -24
- data/lib/twilio-ruby/rest/notify/v1.rb +10 -8
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +59 -14
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +16 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +18 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +3 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +12 -26
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +26 -42
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +14 -10
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +11 -8
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +28 -23
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +9 -9
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
- data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +165 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/{business.rb → branded_channel.rb} +63 -77
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +4 -4
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +13 -27
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand.rb +5 -4
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
- data/lib/twilio-ruby/rest/preview.rb +9 -20
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +6 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +5 -5
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +6 -6
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +280 -0
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +225 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +6 -6
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +5 -5
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +3 -3
- data/lib/twilio-ruby/rest/pricing/v2.rb +37 -0
- data/lib/twilio-ruby/rest/pricing.rb +19 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +13 -11
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +6 -6
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +10 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +21 -8
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +52 -11
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +8 -8
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +15 -15
- data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +9 -9
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +10 -10
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +219 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +49 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +12 -12
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +18 -18
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +10 -12
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +5 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +11 -11
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +8 -8
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +25 -18
- data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +7 -7
- data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +7 -15
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
- data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +11 -11
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +98 -24
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +11 -11
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +231 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +71 -16
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +371 -0
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +84 -18
- data/lib/twilio-ruby/rest/supersim/v1.rb +41 -20
- data/lib/twilio-ruby/rest/supersim.rb +9 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +6 -14
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +26 -43
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +47 -54
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +6 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +19 -31
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +54 -63
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +7 -15
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +19 -31
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +5 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +15 -29
- data/lib/twilio-ruby/rest/sync/v1/service.rb +3 -11
- data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +9 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +33 -25
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +48 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +16 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +9 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +33 -25
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +27 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +41 -32
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +3 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +3 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +198 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +79 -48
- data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +356 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +262 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +369 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +146 -0
- data/lib/twilio-ruby/rest/trusthub.rb +100 -0
- data/lib/twilio-ruby/rest/verify/v2/form.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +205 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +107 -51
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +79 -90
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +299 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +53 -37
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +25 -18
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +5 -5
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +38 -19
- data/lib/twilio-ruby/rest/verify/v2/service.rb +112 -21
- data/lib/twilio-ruby/rest/verify/v2/template.rb +206 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +33 -8
- data/lib/twilio-ruby/rest/verify.rb +15 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +29 -32
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +59 -58
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/recording.rb +12 -12
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +3 -9
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +144 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +52 -13
- data/lib/twilio-ruby/rest/video/v1.rb +20 -16
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +9 -9
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +23 -23
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +3 -6
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -7
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +12 -11
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +9 -23
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +10 -10
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +22 -22
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +6 -6
- data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
- data/lib/twilio-ruby/rest.rb +13 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +44 -10
- data/lib/twilio-ruby/util/configuration.rb +5 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/lib/twilio-ruby.rb +6 -16
- data/sonar-project.properties +13 -0
- data/twilio-ruby.gemspec +3 -2
- metadata +112 -784
- data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +0 -262
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +0 -189
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +0 -260
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +0 -233
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -111
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
- data/spec/framework/request_spec.rb +0 -36
- data/spec/framework/serialize_spec.rb +0 -80
- data/spec/framework/version_spec.rb +0 -166
- data/spec/holodeck/holodeck.rb +0 -66
- data/spec/holodeck/hologram.rb +0 -4
- data/spec/http/http_client_spec.rb +0 -122
- data/spec/integration/accounts/v1/credential/aws_spec.rb +0 -222
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +0 -222
- data/spec/integration/accounts/v1/credential_spec.rb +0 -12
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +0 -106
- data/spec/integration/api/v2010/account/address_spec.rb +0 -269
- data/spec/integration/api/v2010/account/application_spec.rb +0 -274
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +0 -137
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +0 -101
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +0 -101
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +0 -102
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +0 -128
- data/spec/integration/api/v2010/account/balance_spec.rb +0 -44
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +0 -138
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +0 -149
- data/spec/integration/api/v2010/account/call/notification_spec.rb +0 -143
- data/spec/integration/api/v2010/account/call/payment_spec.rb +0 -135
- data/spec/integration/api/v2010/account/call/recording_spec.rb +0 -283
- data/spec/integration/api/v2010/account/call_spec.rb +0 -650
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +0 -708
- data/spec/integration/api/v2010/account/conference/recording_spec.rb +0 -234
- data/spec/integration/api/v2010/account/conference_spec.rb +0 -458
- data/spec/integration/api/v2010/account/connect_app_spec.rb +0 -197
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +0 -135
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +0 -220
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +0 -190
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +0 -190
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +0 -190
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +0 -368
- data/spec/integration/api/v2010/account/key_spec.rb +0 -176
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +0 -49
- data/spec/integration/api/v2010/account/message/media_spec.rb +0 -161
- data/spec/integration/api/v2010/account/message_spec.rb +0 -470
- data/spec/integration/api/v2010/account/new_key_spec.rb +0 -46
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +0 -46
- data/spec/integration/api/v2010/account/notification_spec.rb +0 -138
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +0 -185
- data/spec/integration/api/v2010/account/queue/member_spec.rb +0 -208
- data/spec/integration/api/v2010/account/queue_spec.rb +0 -244
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +0 -174
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +0 -165
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +0 -173
- data/spec/integration/api/v2010/account/recording_spec.rb +0 -184
- data/spec/integration/api/v2010/account/short_code_spec.rb +0 -179
- data/spec/integration/api/v2010/account/signing_key_spec.rb +0 -176
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +0 -252
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +0 -241
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping_spec.rb +0 -217
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping_spec.rb +0 -217
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping_spec.rb +0 -12
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping_spec.rb +0 -217
- data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping_spec.rb +0 -12
- data/spec/integration/api/v2010/account/sip/domain/auth_types_spec.rb +0 -12
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +0 -207
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +0 -217
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +0 -303
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +0 -254
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +0 -251
- data/spec/integration/api/v2010/account/sip_spec.rb +0 -12
- data/spec/integration/api/v2010/account/token_spec.rb +0 -71
- data/spec/integration/api/v2010/account/transcription_spec.rb +0 -166
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +0 -113
- data/spec/integration/api/v2010/account/usage/record_spec.rb +0 -110
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +0 -281
- data/spec/integration/api/v2010/account/usage_spec.rb +0 -12
- data/spec/integration/api/v2010/account/validation_request_spec.rb +0 -48
- data/spec/integration/api/v2010/account_spec.rb +0 -327
- data/spec/integration/autopilot/v1/assistant/defaults_spec.rb +0 -79
- data/spec/integration/autopilot/v1/assistant/dialogue_spec.rb +0 -46
- data/spec/integration/autopilot/v1/assistant/field_type/field_value_spec.rb +0 -207
- data/spec/integration/autopilot/v1/assistant/field_type_spec.rb +0 -242
- data/spec/integration/autopilot/v1/assistant/model_build_spec.rb +0 -236
- data/spec/integration/autopilot/v1/assistant/query_spec.rb +0 -290
- data/spec/integration/autopilot/v1/assistant/style_sheet_spec.rb +0 -79
- data/spec/integration/autopilot/v1/assistant/task/field_spec.rb +0 -204
- data/spec/integration/autopilot/v1/assistant/task/sample_spec.rb +0 -249
- data/spec/integration/autopilot/v1/assistant/task/task_actions_spec.rb +0 -85
- data/spec/integration/autopilot/v1/assistant/task/task_statistics_spec.rb +0 -49
- data/spec/integration/autopilot/v1/assistant/task_spec.rb +0 -258
- data/spec/integration/autopilot/v1/assistant/webhook_spec.rb +0 -242
- data/spec/integration/autopilot/v1/assistant_spec.rb +0 -277
- data/spec/integration/autopilot/v1/restore_assistant_spec.rb +0 -53
- data/spec/integration/bulkexports/v1/export/day_spec.rb +0 -115
- data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +0 -127
- data/spec/integration/bulkexports/v1/export/job_spec.rb +0 -78
- data/spec/integration/bulkexports/v1/export_configuration_spec.rb +0 -77
- data/spec/integration/bulkexports/v1/export_spec.rb +0 -44
- data/spec/integration/chat/v1/credential_spec.rb +0 -219
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +0 -207
- data/spec/integration/chat/v1/service/channel/member_spec.rb +0 -280
- data/spec/integration/chat/v1/service/channel/message_spec.rb +0 -290
- data/spec/integration/chat/v1/service/channel_spec.rb +0 -272
- data/spec/integration/chat/v1/service/role_spec.rb +0 -260
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +0 -93
- data/spec/integration/chat/v1/service/user_spec.rb +0 -262
- data/spec/integration/chat/v1/service_spec.rb +0 -295
- data/spec/integration/chat/v2/credential_spec.rb +0 -219
- data/spec/integration/chat/v2/service/binding_spec.rb +0 -174
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +0 -207
- data/spec/integration/chat/v2/service/channel/member_spec.rb +0 -263
- data/spec/integration/chat/v2/service/channel/message_spec.rb +0 -406
- data/spec/integration/chat/v2/service/channel/webhook_spec.rb +0 -303
- data/spec/integration/chat/v2/service/channel_spec.rb +0 -282
- data/spec/integration/chat/v2/service/role_spec.rb +0 -260
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +0 -177
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +0 -247
- data/spec/integration/chat/v2/service/user_spec.rb +0 -270
- data/spec/integration/chat/v2/service_spec.rb +0 -350
- data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +0 -132
- data/spec/integration/conversations/v1/conversation/message_spec.rb +0 -371
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +0 -326
- data/spec/integration/conversations/v1/conversation/webhook_spec.rb +0 -282
- data/spec/integration/conversations/v1/conversation_spec.rb +0 -243
- data/spec/integration/conversations/v1/webhook_spec.rb +0 -86
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +0 -125
- data/spec/integration/fax/v1/fax_spec.rb +0 -267
- data/spec/integration/flex_api/v1/channel_spec.rb +0 -188
- data/spec/integration/flex_api/v1/configuration_spec.rb +0 -554
- data/spec/integration/flex_api/v1/flex_flow_spec.rb +0 -259
- data/spec/integration/flex_api/v1/web_channel_spec.rb +0 -216
- data/spec/integration/insights/v1/call/event_spec.rb +0 -166
- data/spec/integration/insights/v1/call/metric_spec.rb +0 -154
- data/spec/integration/insights/v1/call/summary_spec.rb +0 -62
- data/spec/integration/insights/v1/call_spec.rb +0 -46
- data/spec/integration/ip_messaging/v1/credential_spec.rb +0 -219
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +0 -207
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +0 -280
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +0 -290
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +0 -272
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +0 -260
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +0 -93
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +0 -262
- data/spec/integration/ip_messaging/v1/service_spec.rb +0 -295
- data/spec/integration/ip_messaging/v2/credential_spec.rb +0 -219
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +0 -174
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +0 -207
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +0 -263
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +0 -406
- data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +0 -303
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +0 -282
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +0 -260
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +0 -177
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +0 -247
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +0 -270
- data/spec/integration/ip_messaging/v2/service_spec.rb +0 -350
- data/spec/integration/lookups/v1/phone_number_spec.rb +0 -336
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +0 -173
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +0 -198
- data/spec/integration/messaging/v1/service/short_code_spec.rb +0 -176
- data/spec/integration/messaging/v1/service_spec.rb +0 -267
- data/spec/integration/monitor/v1/alert_spec.rb +0 -138
- data/spec/integration/monitor/v1/event_spec.rb +0 -148
- data/spec/integration/notify/v1/credential_spec.rb +0 -219
- data/spec/integration/notify/v1/service/binding_spec.rb +0 -222
- data/spec/integration/notify/v1/service/notification_spec.rb +0 -98
- data/spec/integration/notify/v1/service_spec.rb +0 -289
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +0 -620
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb +0 -195
- data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +0 -258
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +0 -211
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_type_spec.rb +0 -141
- data/spec/integration/numbers/v2/regulatory_compliance/regulation_spec.rb +0 -181
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +0 -223
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_type_spec.rb +0 -131
- data/spec/integration/numbers/v2/regulatory_compliance_spec.rb +0 -12
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +0 -115
- data/spec/integration/preview/bulk_exports/export/export_custom_job_spec.rb +0 -127
- data/spec/integration/preview/bulk_exports/export/job_spec.rb +0 -78
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +0 -77
- data/spec/integration/preview/bulk_exports/export_spec.rb +0 -44
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +0 -234
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +0 -228
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +0 -244
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +0 -232
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +0 -241
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +0 -110
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +0 -224
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +0 -389
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +0 -121
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +0 -142
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +0 -162
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +0 -250
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +0 -201
- data/spec/integration/preview/sync/service/document_spec.rb +0 -254
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +0 -255
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +0 -201
- data/spec/integration/preview/sync/service/sync_list_spec.rb +0 -205
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +0 -255
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +0 -201
- data/spec/integration/preview/sync/service/sync_map_spec.rb +0 -205
- data/spec/integration/preview/sync/service_spec.rb +0 -241
- data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
- data/spec/integration/preview/trusted_comms/brands_information_spec.rb +0 -45
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +0 -54
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +0 -51
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +0 -48
- data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
- data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
- data/spec/integration/preview/trusted_comms/business_spec.rb +0 -46
- data/spec/integration/preview/trusted_comms/cps_spec.rb +0 -44
- data/spec/integration/preview/trusted_comms/current_call_spec.rb +0 -58
- data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
- data/spec/integration/preview/understand/assistant/assistant_fallback_actions_spec.rb +0 -79
- data/spec/integration/preview/understand/assistant/assistant_initiation_actions_spec.rb +0 -79
- data/spec/integration/preview/understand/assistant/dialogue_spec.rb +0 -46
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +0 -207
- data/spec/integration/preview/understand/assistant/field_type_spec.rb +0 -242
- data/spec/integration/preview/understand/assistant/model_build_spec.rb +0 -236
- data/spec/integration/preview/understand/assistant/query_spec.rb +0 -302
- data/spec/integration/preview/understand/assistant/style_sheet_spec.rb +0 -79
- data/spec/integration/preview/understand/assistant/task/field_spec.rb +0 -204
- data/spec/integration/preview/understand/assistant/task/sample_spec.rb +0 -249
- data/spec/integration/preview/understand/assistant/task/task_actions_spec.rb +0 -85
- data/spec/integration/preview/understand/assistant/task/task_statistics_spec.rb +0 -49
- data/spec/integration/preview/understand/assistant/task_spec.rb +0 -258
- data/spec/integration/preview/understand/assistant_spec.rb +0 -269
- data/spec/integration/preview/wireless/command_spec.rb +0 -167
- data/spec/integration/preview/wireless/rate_plan_spec.rb +0 -257
- data/spec/integration/preview/wireless/sim/usage_spec.rb +0 -50
- data/spec/integration/preview/wireless/sim_spec.rb +0 -207
- data/spec/integration/pricing/v1/messaging/country_spec.rb +0 -137
- data/spec/integration/pricing/v1/messaging_spec.rb +0 -12
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +0 -128
- data/spec/integration/pricing/v1/phone_number_spec.rb +0 -12
- data/spec/integration/pricing/v1/voice/country_spec.rb +0 -138
- data/spec/integration/pricing/v1/voice/number_spec.rb +0 -55
- data/spec/integration/pricing/v1/voice_spec.rb +0 -12
- data/spec/integration/pricing/v2/voice/country_spec.rb +0 -179
- data/spec/integration/pricing/v2/voice/number_spec.rb +0 -61
- data/spec/integration/pricing/v2/voice_spec.rb +0 -12
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +0 -231
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +0 -133
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +0 -163
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +0 -240
- data/spec/integration/proxy/v1/service/session_spec.rb +0 -225
- data/spec/integration/proxy/v1/service/short_code_spec.rb +0 -225
- data/spec/integration/proxy/v1/service_spec.rb +0 -214
- data/spec/integration/serverless/v1/service/asset/asset_version_spec.rb +0 -93
- data/spec/integration/serverless/v1/service/asset_spec.rb +0 -202
- data/spec/integration/serverless/v1/service/build_spec.rb +0 -208
- data/spec/integration/serverless/v1/service/environment/deployment_spec.rb +0 -133
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +0 -97
- data/spec/integration/serverless/v1/service/environment/variable_spec.rb +0 -207
- data/spec/integration/serverless/v1/service/environment_spec.rb +0 -170
- data/spec/integration/serverless/v1/service/function/function_version/function_version_content_spec.rb +0 -51
- data/spec/integration/serverless/v1/service/function/function_version_spec.rb +0 -96
- data/spec/integration/serverless/v1/service/function_spec.rb +0 -202
- data/spec/integration/serverless/v1/service_spec.rb +0 -205
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +0 -50
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +0 -53
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +0 -99
- data/spec/integration/studio/v1/flow/engagement_spec.rb +0 -168
- data/spec/integration/studio/v1/flow/execution/execution_context_spec.rb +0 -50
- data/spec/integration/studio/v1/flow/execution/execution_step/execution_step_context_spec.rb +0 -53
- data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +0 -99
- data/spec/integration/studio/v1/flow/execution_spec.rb +0 -214
- data/spec/integration/studio/v1/flow_spec.rb +0 -114
- data/spec/integration/studio/v2/flow/execution/execution_context_spec.rb +0 -50
- data/spec/integration/studio/v2/flow/execution/execution_step/execution_step_context_spec.rb +0 -53
- data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +0 -99
- data/spec/integration/studio/v2/flow/execution_spec.rb +0 -211
- data/spec/integration/studio/v2/flow/flow_revision_spec.rb +0 -110
- data/spec/integration/studio/v2/flow/test_user_spec.rb +0 -85
- data/spec/integration/studio/v2/flow_spec.rb +0 -251
- data/spec/integration/studio/v2/flow_validate_spec.rb +0 -46
- data/spec/integration/supersim/v1/command_spec.rb +0 -184
- data/spec/integration/supersim/v1/fleet_spec.rb +0 -214
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +0 -176
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +0 -219
- data/spec/integration/supersim/v1/network_spec.rb +0 -137
- data/spec/integration/supersim/v1/sim_spec.rb +0 -300
- data/spec/integration/supersim/v1/usage_record_spec.rb +0 -202
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +0 -201
- data/spec/integration/sync/v1/service/document_spec.rb +0 -256
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +0 -257
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +0 -201
- data/spec/integration/sync/v1/service/sync_list_spec.rb +0 -252
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +0 -201
- data/spec/integration/sync/v1/service/sync_map_spec.rb +0 -252
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +0 -47
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +0 -244
- data/spec/integration/sync/v1/service_spec.rb +0 -261
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +0 -232
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +0 -163
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +0 -222
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +0 -312
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +0 -101
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +0 -83
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +0 -107
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +0 -145
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +0 -290
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +0 -325
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +0 -191
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +0 -185
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +0 -91
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +0 -88
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +0 -69
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +0 -115
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +0 -290
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +0 -96
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +0 -57
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +0 -70
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +0 -266
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +0 -93
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +0 -72
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +0 -104
- data/spec/integration/taskrouter/v1/workspace_spec.rb +0 -291
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +0 -189
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +0 -189
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +0 -248
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +0 -264
- data/spec/integration/trunking/v1/trunk_spec.rb +0 -277
- data/spec/integration/verify/v2/form_spec.rb +0 -47
- data/spec/integration/verify/v2/service/access_token_spec.rb +0 -44
- data/spec/integration/verify/v2/service/entity/challenge_spec.rb +0 -252
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +0 -292
- data/spec/integration/verify/v2/service/entity_spec.rb +0 -209
- data/spec/integration/verify/v2/service/messaging_configuration_spec.rb +0 -228
- data/spec/integration/verify/v2/service/rate_limit/bucket_spec.rb +0 -245
- data/spec/integration/verify/v2/service/rate_limit_spec.rb +0 -217
- data/spec/integration/verify/v2/service/verification_check_spec.rb +0 -80
- data/spec/integration/verify/v2/service/verification_spec.rb +0 -318
- data/spec/integration/verify/v2/service/webhook_spec.rb +0 -258
- data/spec/integration/verify/v2/service_spec.rb +0 -275
- data/spec/integration/video/v1/composition_hook_spec.rb +0 -407
- data/spec/integration/video/v1/composition_settings_spec.rb +0 -85
- data/spec/integration/video/v1/composition_spec.rb +0 -347
- data/spec/integration/video/v1/recording_settings_spec.rb +0 -85
- data/spec/integration/video/v1/recording_spec.rb +0 -176
- data/spec/integration/video/v1/room/recording_spec.rb +0 -185
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +0 -94
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribe_rule_spec.rb +0 -103
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +0 -95
- data/spec/integration/video/v1/room/room_participant_spec.rb +0 -187
- data/spec/integration/video/v1/room_spec.rb +0 -254
- data/spec/integration/voice/v1/byoc_trunk_spec.rb +0 -245
- data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +0 -242
- data/spec/integration/voice/v1/connection_policy_spec.rb +0 -221
- data/spec/integration/voice/v1/dialing_permissions/bulk_country_update_spec.rb +0 -45
- data/spec/integration/voice/v1/dialing_permissions/country/highrisk_special_prefix_spec.rb +0 -60
- data/spec/integration/voice/v1/dialing_permissions/country_spec.rb +0 -110
- data/spec/integration/voice/v1/dialing_permissions/settings_spec.rb +0 -75
- data/spec/integration/voice/v1/dialing_permissions_spec.rb +0 -12
- data/spec/integration/voice/v1/ip_record_spec.rb +0 -219
- data/spec/integration/voice/v1/source_ip_mapping_spec.rb +0 -216
- data/spec/integration/wireless/v1/command_spec.rb +0 -286
- data/spec/integration/wireless/v1/rate_plan_spec.rb +0 -277
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +0 -88
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +0 -114
- data/spec/integration/wireless/v1/sim_spec.rb +0 -325
- data/spec/integration/wireless/v1/usage_record_spec.rb +0 -110
- data/spec/jwt/access_token_spec.rb +0 -151
- data/spec/jwt/client_capability_spec.rb +0 -104
- data/spec/jwt/task_router_spec.rb +0 -172
- data/spec/rack/twilio_webhook_authentication_spec.rb +0 -106
- data/spec/rest/client_spec.rb +0 -233
- data/spec/security/request_validator_spec.rb +0 -125
- data/spec/spec_helper.rb +0 -38
- data/spec/support/fakeweb.rb +0 -2
- data/spec/twilio_spec.rb +0 -17
- data/spec/twiml/messaging_response_spec.rb +0 -235
- data/spec/twiml/voice_response_spec.rb +0 -847
- data/spec/util/configuration_spec.rb +0 -33
- data/spec/util/url_encode_spec.rb +0 -12
|
@@ -11,14 +11,13 @@ module Twilio
|
|
|
11
11
|
class Conversations < Domain
|
|
12
12
|
class V1 < Version
|
|
13
13
|
class ConversationContext < InstanceContext
|
|
14
|
-
##
|
|
15
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
16
14
|
class ParticipantList < ListResource
|
|
17
15
|
##
|
|
18
16
|
# Initialize the ParticipantList
|
|
19
17
|
# @param [Version] version Version that contains the resource
|
|
20
|
-
# @param [String] conversation_sid The unique
|
|
21
|
-
# [
|
|
18
|
+
# @param [String] conversation_sid The unique ID of the
|
|
19
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
20
|
+
# for this participant.
|
|
22
21
|
# @return [ParticipantList] ParticipantList
|
|
23
22
|
def initialize(version, conversation_sid: nil)
|
|
24
23
|
super(version)
|
|
@@ -31,18 +30,19 @@ module Twilio
|
|
|
31
30
|
##
|
|
32
31
|
# Create the ParticipantInstance
|
|
33
32
|
# @param [String] identity A unique string identifier for the conversation
|
|
34
|
-
# participant as
|
|
35
|
-
#
|
|
36
|
-
#
|
|
33
|
+
# participant as {Conversation
|
|
34
|
+
# User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
|
|
35
|
+
# parameter is non-null if (and only if) the participant is using the
|
|
36
|
+
# Conversations SDK to communicate. Limited to 256 characters.
|
|
37
37
|
# @param [String] messaging_binding_address The address of the participant's
|
|
38
|
-
# device, e.g. a phone
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
38
|
+
# device, e.g. a phone or WhatsApp number. Together with the Proxy address, this
|
|
39
|
+
# determines a participant uniquely. This field (with proxy_address) is only null
|
|
40
|
+
# when the participant is interacting from an SDK endpoint (see the 'identity'
|
|
41
|
+
# field).
|
|
42
42
|
# @param [String] messaging_binding_proxy_address The address of the Twilio phone
|
|
43
|
-
# number (or WhatsApp number
|
|
44
|
-
#
|
|
45
|
-
#
|
|
43
|
+
# number (or WhatsApp number) that the participant is in contact with. This field,
|
|
44
|
+
# together with participant address, is only null when the participant is
|
|
45
|
+
# interacting from an SDK endpoint (see the 'identity' field).
|
|
46
46
|
# @param [Time] date_created The date that this resource was created.
|
|
47
47
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
48
48
|
# @param [String] attributes An optional string metadata field you can use to
|
|
@@ -50,11 +50,11 @@ module Twilio
|
|
|
50
50
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
51
51
|
# returned.
|
|
52
52
|
# @param [String] messaging_binding_projected_address The address of the Twilio
|
|
53
|
-
# phone number that is used in Group MMS. Communication mask for the
|
|
53
|
+
# phone number that is used in Group MMS. Communication mask for the Conversation
|
|
54
54
|
# participant with Identity.
|
|
55
|
-
# @param [String] role_sid The SID of
|
|
56
|
-
# [
|
|
57
|
-
# participant.
|
|
55
|
+
# @param [String] role_sid The SID of a conversation-level
|
|
56
|
+
# {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
|
|
57
|
+
# the participant.
|
|
58
58
|
# @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
59
59
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
60
60
|
# @return [ParticipantInstance] Created ParticipantInstance
|
|
@@ -163,8 +163,6 @@ module Twilio
|
|
|
163
163
|
end
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
##
|
|
167
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
168
166
|
class ParticipantPage < Page
|
|
169
167
|
##
|
|
170
168
|
# Initialize the ParticipantPage
|
|
@@ -194,14 +192,13 @@ module Twilio
|
|
|
194
192
|
end
|
|
195
193
|
end
|
|
196
194
|
|
|
197
|
-
##
|
|
198
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
199
195
|
class ParticipantContext < InstanceContext
|
|
200
196
|
##
|
|
201
197
|
# Initialize the ParticipantContext
|
|
202
198
|
# @param [Version] version Version that contains the resource
|
|
203
|
-
# @param [String] conversation_sid The unique
|
|
204
|
-
# [
|
|
199
|
+
# @param [String] conversation_sid The unique ID of the
|
|
200
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
201
|
+
# for this participant.
|
|
205
202
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
206
203
|
# resource.
|
|
207
204
|
# @return [ParticipantContext] ParticipantContext
|
|
@@ -221,17 +218,28 @@ module Twilio
|
|
|
221
218
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
222
219
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
223
220
|
# returned.
|
|
224
|
-
# @param [String] role_sid The SID of
|
|
225
|
-
# [
|
|
226
|
-
# participant.
|
|
221
|
+
# @param [String] role_sid The SID of a conversation-level
|
|
222
|
+
# {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
|
|
223
|
+
# the participant.
|
|
227
224
|
# @param [String] messaging_binding_proxy_address The address of the Twilio phone
|
|
228
225
|
# number that the participant is in contact with. 'null' value will remove it.
|
|
229
226
|
# @param [String] messaging_binding_projected_address The address of the Twilio
|
|
230
227
|
# phone number that is used in Group MMS. 'null' value will remove it.
|
|
228
|
+
# @param [String] identity A unique string identifier for the conversation
|
|
229
|
+
# participant as {Conversation
|
|
230
|
+
# User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
|
|
231
|
+
# parameter is non-null if (and only if) the participant is using the
|
|
232
|
+
# Conversations SDK to communicate. Limited to 256 characters.
|
|
233
|
+
# @param [String] last_read_message_index Index of last “read” message in the
|
|
234
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
235
|
+
# for the Participant.
|
|
236
|
+
# @param [String] last_read_timestamp Timestamp of last “read” message in the
|
|
237
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
238
|
+
# for the Participant.
|
|
231
239
|
# @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
232
240
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
233
241
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
234
|
-
def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, x_twilio_webhook_enabled: :unset)
|
|
242
|
+
def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, identity: :unset, last_read_message_index: :unset, last_read_timestamp: :unset, x_twilio_webhook_enabled: :unset)
|
|
235
243
|
data = Twilio::Values.of({
|
|
236
244
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
237
245
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
|
@@ -239,6 +247,9 @@ module Twilio
|
|
|
239
247
|
'RoleSid' => role_sid,
|
|
240
248
|
'MessagingBinding.ProxyAddress' => messaging_binding_proxy_address,
|
|
241
249
|
'MessagingBinding.ProjectedAddress' => messaging_binding_projected_address,
|
|
250
|
+
'Identity' => identity,
|
|
251
|
+
'LastReadMessageIndex' => last_read_message_index,
|
|
252
|
+
'LastReadTimestamp' => last_read_timestamp,
|
|
242
253
|
})
|
|
243
254
|
headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
|
244
255
|
|
|
@@ -292,15 +303,14 @@ module Twilio
|
|
|
292
303
|
end
|
|
293
304
|
end
|
|
294
305
|
|
|
295
|
-
##
|
|
296
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
297
306
|
class ParticipantInstance < InstanceResource
|
|
298
307
|
##
|
|
299
308
|
# Initialize the ParticipantInstance
|
|
300
309
|
# @param [Version] version Version that contains the resource
|
|
301
310
|
# @param [Hash] payload payload that contains response from Twilio
|
|
302
|
-
# @param [String] conversation_sid The unique
|
|
303
|
-
# [
|
|
311
|
+
# @param [String] conversation_sid The unique ID of the
|
|
312
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
313
|
+
# for this participant.
|
|
304
314
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
305
315
|
# resource.
|
|
306
316
|
# @return [ParticipantInstance] ParticipantInstance
|
|
@@ -319,6 +329,8 @@ module Twilio
|
|
|
319
329
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
320
330
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
321
331
|
'url' => payload['url'],
|
|
332
|
+
'last_read_message_index' => payload['last_read_message_index'] == nil ? payload['last_read_message_index'] : payload['last_read_message_index'].to_i,
|
|
333
|
+
'last_read_timestamp' => payload['last_read_timestamp'],
|
|
322
334
|
}
|
|
323
335
|
|
|
324
336
|
# Context
|
|
@@ -338,13 +350,13 @@ module Twilio
|
|
|
338
350
|
end
|
|
339
351
|
|
|
340
352
|
##
|
|
341
|
-
# @return [String] The unique
|
|
353
|
+
# @return [String] The unique ID of the Account responsible for this participant.
|
|
342
354
|
def account_sid
|
|
343
355
|
@properties['account_sid']
|
|
344
356
|
end
|
|
345
357
|
|
|
346
358
|
##
|
|
347
|
-
# @return [String] The unique
|
|
359
|
+
# @return [String] The unique ID of the Conversation for this participant.
|
|
348
360
|
def conversation_sid
|
|
349
361
|
@properties['conversation_sid']
|
|
350
362
|
end
|
|
@@ -356,7 +368,7 @@ module Twilio
|
|
|
356
368
|
end
|
|
357
369
|
|
|
358
370
|
##
|
|
359
|
-
# @return [String] A unique string identifier for the conversation participant as
|
|
371
|
+
# @return [String] A unique string identifier for the conversation participant as Conversation User.
|
|
360
372
|
def identity
|
|
361
373
|
@properties['identity']
|
|
362
374
|
end
|
|
@@ -374,7 +386,7 @@ module Twilio
|
|
|
374
386
|
end
|
|
375
387
|
|
|
376
388
|
##
|
|
377
|
-
# @return [String] The SID of
|
|
389
|
+
# @return [String] The SID of a conversation-level Role to assign to the participant
|
|
378
390
|
def role_sid
|
|
379
391
|
@properties['role_sid']
|
|
380
392
|
end
|
|
@@ -397,6 +409,18 @@ module Twilio
|
|
|
397
409
|
@properties['url']
|
|
398
410
|
end
|
|
399
411
|
|
|
412
|
+
##
|
|
413
|
+
# @return [String] Index of last “read” message in the Conversation for the Participant.
|
|
414
|
+
def last_read_message_index
|
|
415
|
+
@properties['last_read_message_index']
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
##
|
|
419
|
+
# @return [String] Timestamp of last “read” message in the Conversation for the Participant.
|
|
420
|
+
def last_read_timestamp
|
|
421
|
+
@properties['last_read_timestamp']
|
|
422
|
+
end
|
|
423
|
+
|
|
400
424
|
##
|
|
401
425
|
# Update the ParticipantInstance
|
|
402
426
|
# @param [Time] date_created The date that this resource was created.
|
|
@@ -405,17 +429,28 @@ module Twilio
|
|
|
405
429
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
406
430
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
407
431
|
# returned.
|
|
408
|
-
# @param [String] role_sid The SID of
|
|
409
|
-
# [
|
|
410
|
-
# participant.
|
|
432
|
+
# @param [String] role_sid The SID of a conversation-level
|
|
433
|
+
# {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
|
|
434
|
+
# the participant.
|
|
411
435
|
# @param [String] messaging_binding_proxy_address The address of the Twilio phone
|
|
412
436
|
# number that the participant is in contact with. 'null' value will remove it.
|
|
413
437
|
# @param [String] messaging_binding_projected_address The address of the Twilio
|
|
414
438
|
# phone number that is used in Group MMS. 'null' value will remove it.
|
|
439
|
+
# @param [String] identity A unique string identifier for the conversation
|
|
440
|
+
# participant as {Conversation
|
|
441
|
+
# User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
|
|
442
|
+
# parameter is non-null if (and only if) the participant is using the
|
|
443
|
+
# Conversations SDK to communicate. Limited to 256 characters.
|
|
444
|
+
# @param [String] last_read_message_index Index of last “read” message in the
|
|
445
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
446
|
+
# for the Participant.
|
|
447
|
+
# @param [String] last_read_timestamp Timestamp of last “read” message in the
|
|
448
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
449
|
+
# for the Participant.
|
|
415
450
|
# @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
416
451
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
417
452
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
418
|
-
def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, x_twilio_webhook_enabled: :unset)
|
|
453
|
+
def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, identity: :unset, last_read_message_index: :unset, last_read_timestamp: :unset, x_twilio_webhook_enabled: :unset)
|
|
419
454
|
context.update(
|
|
420
455
|
date_created: date_created,
|
|
421
456
|
date_updated: date_updated,
|
|
@@ -423,6 +458,9 @@ module Twilio
|
|
|
423
458
|
role_sid: role_sid,
|
|
424
459
|
messaging_binding_proxy_address: messaging_binding_proxy_address,
|
|
425
460
|
messaging_binding_projected_address: messaging_binding_projected_address,
|
|
461
|
+
identity: identity,
|
|
462
|
+
last_read_message_index: last_read_message_index,
|
|
463
|
+
last_read_timestamp: last_read_timestamp,
|
|
426
464
|
x_twilio_webhook_enabled: x_twilio_webhook_enabled,
|
|
427
465
|
)
|
|
428
466
|
end
|
|
@@ -11,14 +11,13 @@ module Twilio
|
|
|
11
11
|
class Conversations < Domain
|
|
12
12
|
class V1 < Version
|
|
13
13
|
class ConversationContext < InstanceContext
|
|
14
|
-
##
|
|
15
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
16
14
|
class WebhookList < ListResource
|
|
17
15
|
##
|
|
18
16
|
# Initialize the WebhookList
|
|
19
17
|
# @param [Version] version Version that contains the resource
|
|
20
|
-
# @param [String] conversation_sid The unique
|
|
21
|
-
# [
|
|
18
|
+
# @param [String] conversation_sid The unique ID of the
|
|
19
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
20
|
+
# for this webhook.
|
|
22
21
|
# @return [WebhookList] WebhookList
|
|
23
22
|
def initialize(version, conversation_sid: nil)
|
|
24
23
|
super(version)
|
|
@@ -116,11 +115,11 @@ module Twilio
|
|
|
116
115
|
# sent to.
|
|
117
116
|
# @param [webhook.Method] configuration_method The HTTP method to be used when
|
|
118
117
|
# sending a webhook request.
|
|
119
|
-
# @param [String] configuration_filters The list of events, firing webhook
|
|
120
|
-
# for this Conversation.
|
|
121
|
-
# @param [String] configuration_triggers The list of keywords, firing webhook
|
|
118
|
+
# @param [Array[String]] configuration_filters The list of events, firing webhook
|
|
122
119
|
# event for this Conversation.
|
|
123
|
-
# @param [String]
|
|
120
|
+
# @param [Array[String]] configuration_triggers The list of keywords, firing
|
|
121
|
+
# webhook event for this Conversation.
|
|
122
|
+
# @param [String] configuration_flow_sid The studio flow SID, where the webhook
|
|
124
123
|
# should be sent to.
|
|
125
124
|
# @param [String] configuration_replay_after The message index for which and it's
|
|
126
125
|
# successors the webhook will be replayed. Not set by default
|
|
@@ -148,8 +147,6 @@ module Twilio
|
|
|
148
147
|
end
|
|
149
148
|
end
|
|
150
149
|
|
|
151
|
-
##
|
|
152
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
153
150
|
class WebhookPage < Page
|
|
154
151
|
##
|
|
155
152
|
# Initialize the WebhookPage
|
|
@@ -179,14 +176,13 @@ module Twilio
|
|
|
179
176
|
end
|
|
180
177
|
end
|
|
181
178
|
|
|
182
|
-
##
|
|
183
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
184
179
|
class WebhookContext < InstanceContext
|
|
185
180
|
##
|
|
186
181
|
# Initialize the WebhookContext
|
|
187
182
|
# @param [Version] version Version that contains the resource
|
|
188
|
-
# @param [String] conversation_sid The unique
|
|
189
|
-
# [
|
|
183
|
+
# @param [String] conversation_sid The unique ID of the
|
|
184
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
185
|
+
# for this webhook.
|
|
190
186
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
191
187
|
# resource.
|
|
192
188
|
# @return [WebhookContext] WebhookContext
|
|
@@ -218,11 +214,11 @@ module Twilio
|
|
|
218
214
|
# sent to.
|
|
219
215
|
# @param [webhook.Method] configuration_method The HTTP method to be used when
|
|
220
216
|
# sending a webhook request.
|
|
221
|
-
# @param [String] configuration_filters The list of events, firing webhook
|
|
222
|
-
# for this Conversation.
|
|
223
|
-
# @param [String] configuration_triggers The list of keywords, firing webhook
|
|
217
|
+
# @param [Array[String]] configuration_filters The list of events, firing webhook
|
|
224
218
|
# event for this Conversation.
|
|
225
|
-
# @param [String]
|
|
219
|
+
# @param [Array[String]] configuration_triggers The list of keywords, firing
|
|
220
|
+
# webhook event for this Conversation.
|
|
221
|
+
# @param [String] configuration_flow_sid The studio flow SID, where the webhook
|
|
226
222
|
# should be sent to.
|
|
227
223
|
# @return [WebhookInstance] Updated WebhookInstance
|
|
228
224
|
def update(configuration_url: :unset, configuration_method: :unset, configuration_filters: :unset, configuration_triggers: :unset, configuration_flow_sid: :unset)
|
|
@@ -266,15 +262,14 @@ module Twilio
|
|
|
266
262
|
end
|
|
267
263
|
end
|
|
268
264
|
|
|
269
|
-
##
|
|
270
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
271
265
|
class WebhookInstance < InstanceResource
|
|
272
266
|
##
|
|
273
267
|
# Initialize the WebhookInstance
|
|
274
268
|
# @param [Version] version Version that contains the resource
|
|
275
269
|
# @param [Hash] payload payload that contains response from Twilio
|
|
276
|
-
# @param [String] conversation_sid The unique
|
|
277
|
-
# [
|
|
270
|
+
# @param [String] conversation_sid The unique ID of the
|
|
271
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
272
|
+
# for this webhook.
|
|
278
273
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
279
274
|
# resource.
|
|
280
275
|
# @return [WebhookInstance] WebhookInstance
|
|
@@ -316,13 +311,13 @@ module Twilio
|
|
|
316
311
|
end
|
|
317
312
|
|
|
318
313
|
##
|
|
319
|
-
# @return [String] The unique
|
|
314
|
+
# @return [String] The unique ID of the Account responsible for this conversation.
|
|
320
315
|
def account_sid
|
|
321
316
|
@properties['account_sid']
|
|
322
317
|
end
|
|
323
318
|
|
|
324
319
|
##
|
|
325
|
-
# @return [String] The unique
|
|
320
|
+
# @return [String] The unique ID of the Conversation for this webhook.
|
|
326
321
|
def conversation_sid
|
|
327
322
|
@properties['conversation_sid']
|
|
328
323
|
end
|
|
@@ -370,11 +365,11 @@ module Twilio
|
|
|
370
365
|
# sent to.
|
|
371
366
|
# @param [webhook.Method] configuration_method The HTTP method to be used when
|
|
372
367
|
# sending a webhook request.
|
|
373
|
-
# @param [String] configuration_filters The list of events, firing webhook
|
|
374
|
-
# for this Conversation.
|
|
375
|
-
# @param [String] configuration_triggers The list of keywords, firing webhook
|
|
368
|
+
# @param [Array[String]] configuration_filters The list of events, firing webhook
|
|
376
369
|
# event for this Conversation.
|
|
377
|
-
# @param [String]
|
|
370
|
+
# @param [Array[String]] configuration_triggers The list of keywords, firing
|
|
371
|
+
# webhook event for this Conversation.
|
|
372
|
+
# @param [String] configuration_flow_sid The studio flow SID, where the webhook
|
|
378
373
|
# should be sent to.
|
|
379
374
|
# @return [WebhookInstance] Updated WebhookInstance
|
|
380
375
|
def update(configuration_url: :unset, configuration_method: :unset, configuration_filters: :unset, configuration_triggers: :unset, configuration_flow_sid: :unset)
|
|
@@ -10,8 +10,6 @@ module Twilio
|
|
|
10
10
|
module REST
|
|
11
11
|
class Conversations < Domain
|
|
12
12
|
class V1 < Version
|
|
13
|
-
##
|
|
14
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
15
13
|
class ConversationList < ListResource
|
|
16
14
|
##
|
|
17
15
|
# Initialize the ConversationList
|
|
@@ -29,10 +27,13 @@ module Twilio
|
|
|
29
27
|
# Create the ConversationInstance
|
|
30
28
|
# @param [String] friendly_name The human-readable name of this conversation,
|
|
31
29
|
# limited to 256 characters. Optional.
|
|
30
|
+
# @param [String] unique_name An application-defined string that uniquely
|
|
31
|
+
# identifies the resource. It can be used to address the resource in place of the
|
|
32
|
+
# resource's `sid` in the URL.
|
|
32
33
|
# @param [Time] date_created The date that this resource was created.
|
|
33
34
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
34
|
-
# @param [String] messaging_service_sid The unique
|
|
35
|
-
# Service
|
|
35
|
+
# @param [String] messaging_service_sid The unique ID of the {Messaging
|
|
36
|
+
# Service}[https://www.twilio.com/docs/sms/services/api] this conversation belongs
|
|
36
37
|
# to.
|
|
37
38
|
# @param [String] attributes An optional string metadata field you can use to
|
|
38
39
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
@@ -47,9 +48,10 @@ module Twilio
|
|
|
47
48
|
# @param [conversation.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
48
49
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
49
50
|
# @return [ConversationInstance] Created ConversationInstance
|
|
50
|
-
def create(friendly_name: :unset, date_created: :unset, date_updated: :unset, messaging_service_sid: :unset, attributes: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, x_twilio_webhook_enabled: :unset)
|
|
51
|
+
def create(friendly_name: :unset, unique_name: :unset, date_created: :unset, date_updated: :unset, messaging_service_sid: :unset, attributes: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, x_twilio_webhook_enabled: :unset)
|
|
51
52
|
data = Twilio::Values.of({
|
|
52
53
|
'FriendlyName' => friendly_name,
|
|
54
|
+
'UniqueName' => unique_name,
|
|
53
55
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
54
56
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
|
55
57
|
'MessagingServiceSid' => messaging_service_sid,
|
|
@@ -152,8 +154,6 @@ module Twilio
|
|
|
152
154
|
end
|
|
153
155
|
end
|
|
154
156
|
|
|
155
|
-
##
|
|
156
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
157
157
|
class ConversationPage < Page
|
|
158
158
|
##
|
|
159
159
|
# Initialize the ConversationPage
|
|
@@ -183,14 +183,12 @@ module Twilio
|
|
|
183
183
|
end
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
-
##
|
|
187
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
188
186
|
class ConversationContext < InstanceContext
|
|
189
187
|
##
|
|
190
188
|
# Initialize the ConversationContext
|
|
191
189
|
# @param [Version] version Version that contains the resource
|
|
192
190
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
193
|
-
# resource.
|
|
191
|
+
# resource. Can also be the `unique_name` of the Conversation.
|
|
194
192
|
# @return [ConversationContext] ConversationContext
|
|
195
193
|
def initialize(version, sid)
|
|
196
194
|
super(version)
|
|
@@ -215,8 +213,8 @@ module Twilio
|
|
|
215
213
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
216
214
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
217
215
|
# returned.
|
|
218
|
-
# @param [String] messaging_service_sid The unique
|
|
219
|
-
# Service
|
|
216
|
+
# @param [String] messaging_service_sid The unique ID of the {Messaging
|
|
217
|
+
# Service}[https://www.twilio.com/docs/sms/services/api] this conversation belongs
|
|
220
218
|
# to.
|
|
221
219
|
# @param [conversation.State] state Current state of this conversation. Can be
|
|
222
220
|
# either `active`, `inactive` or `closed` and defaults to `active`
|
|
@@ -224,10 +222,13 @@ module Twilio
|
|
|
224
222
|
# switched to `inactive` state. Minimum value for this timer is 1 minute.
|
|
225
223
|
# @param [String] timers_closed ISO8601 duration when conversation will be
|
|
226
224
|
# switched to `closed` state. Minimum value for this timer is 10 minutes.
|
|
225
|
+
# @param [String] unique_name An application-defined string that uniquely
|
|
226
|
+
# identifies the resource. It can be used to address the resource in place of the
|
|
227
|
+
# resource's `sid` in the URL.
|
|
227
228
|
# @param [conversation.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
228
229
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
229
230
|
# @return [ConversationInstance] Updated ConversationInstance
|
|
230
|
-
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_service_sid: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, x_twilio_webhook_enabled: :unset)
|
|
231
|
+
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_service_sid: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, unique_name: :unset, x_twilio_webhook_enabled: :unset)
|
|
231
232
|
data = Twilio::Values.of({
|
|
232
233
|
'FriendlyName' => friendly_name,
|
|
233
234
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
@@ -237,6 +238,7 @@ module Twilio
|
|
|
237
238
|
'State' => state,
|
|
238
239
|
'Timers.Inactive' => timers_inactive,
|
|
239
240
|
'Timers.Closed' => timers_closed,
|
|
241
|
+
'UniqueName' => unique_name,
|
|
240
242
|
})
|
|
241
243
|
headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
|
242
244
|
|
|
@@ -334,15 +336,13 @@ module Twilio
|
|
|
334
336
|
end
|
|
335
337
|
end
|
|
336
338
|
|
|
337
|
-
##
|
|
338
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
339
339
|
class ConversationInstance < InstanceResource
|
|
340
340
|
##
|
|
341
341
|
# Initialize the ConversationInstance
|
|
342
342
|
# @param [Version] version Version that contains the resource
|
|
343
343
|
# @param [Hash] payload payload that contains response from Twilio
|
|
344
344
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
345
|
-
# resource.
|
|
345
|
+
# resource. Can also be the `unique_name` of the Conversation.
|
|
346
346
|
# @return [ConversationInstance] ConversationInstance
|
|
347
347
|
def initialize(version, payload, sid: nil)
|
|
348
348
|
super(version)
|
|
@@ -354,6 +354,7 @@ module Twilio
|
|
|
354
354
|
'messaging_service_sid' => payload['messaging_service_sid'],
|
|
355
355
|
'sid' => payload['sid'],
|
|
356
356
|
'friendly_name' => payload['friendly_name'],
|
|
357
|
+
'unique_name' => payload['unique_name'],
|
|
357
358
|
'attributes' => payload['attributes'],
|
|
358
359
|
'state' => payload['state'],
|
|
359
360
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
@@ -361,6 +362,7 @@ module Twilio
|
|
|
361
362
|
'timers' => payload['timers'],
|
|
362
363
|
'url' => payload['url'],
|
|
363
364
|
'links' => payload['links'],
|
|
365
|
+
'bindings' => payload['bindings'],
|
|
364
366
|
}
|
|
365
367
|
|
|
366
368
|
# Context
|
|
@@ -380,19 +382,19 @@ module Twilio
|
|
|
380
382
|
end
|
|
381
383
|
|
|
382
384
|
##
|
|
383
|
-
# @return [String] The unique
|
|
385
|
+
# @return [String] The unique ID of the Account responsible for this conversation.
|
|
384
386
|
def account_sid
|
|
385
387
|
@properties['account_sid']
|
|
386
388
|
end
|
|
387
389
|
|
|
388
390
|
##
|
|
389
|
-
# @return [String] The unique
|
|
391
|
+
# @return [String] The unique ID of the Conversation Service this conversation belongs to.
|
|
390
392
|
def chat_service_sid
|
|
391
393
|
@properties['chat_service_sid']
|
|
392
394
|
end
|
|
393
395
|
|
|
394
396
|
##
|
|
395
|
-
# @return [String] The unique
|
|
397
|
+
# @return [String] The unique ID of the Messaging Service this conversation belongs to.
|
|
396
398
|
def messaging_service_sid
|
|
397
399
|
@properties['messaging_service_sid']
|
|
398
400
|
end
|
|
@@ -409,6 +411,12 @@ module Twilio
|
|
|
409
411
|
@properties['friendly_name']
|
|
410
412
|
end
|
|
411
413
|
|
|
414
|
+
##
|
|
415
|
+
# @return [String] An application-defined string that uniquely identifies the resource
|
|
416
|
+
def unique_name
|
|
417
|
+
@properties['unique_name']
|
|
418
|
+
end
|
|
419
|
+
|
|
412
420
|
##
|
|
413
421
|
# @return [String] An optional string metadata field you can use to store any data you wish.
|
|
414
422
|
def attributes
|
|
@@ -446,11 +454,17 @@ module Twilio
|
|
|
446
454
|
end
|
|
447
455
|
|
|
448
456
|
##
|
|
449
|
-
# @return [String] Absolute URLs to access the
|
|
457
|
+
# @return [String] Absolute URLs to access the participants, messages and webhooks of this conversation.
|
|
450
458
|
def links
|
|
451
459
|
@properties['links']
|
|
452
460
|
end
|
|
453
461
|
|
|
462
|
+
##
|
|
463
|
+
# @return [Hash] The bindings
|
|
464
|
+
def bindings
|
|
465
|
+
@properties['bindings']
|
|
466
|
+
end
|
|
467
|
+
|
|
454
468
|
##
|
|
455
469
|
# Update the ConversationInstance
|
|
456
470
|
# @param [String] friendly_name The human-readable name of this conversation,
|
|
@@ -461,8 +475,8 @@ module Twilio
|
|
|
461
475
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
462
476
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
463
477
|
# returned.
|
|
464
|
-
# @param [String] messaging_service_sid The unique
|
|
465
|
-
# Service
|
|
478
|
+
# @param [String] messaging_service_sid The unique ID of the {Messaging
|
|
479
|
+
# Service}[https://www.twilio.com/docs/sms/services/api] this conversation belongs
|
|
466
480
|
# to.
|
|
467
481
|
# @param [conversation.State] state Current state of this conversation. Can be
|
|
468
482
|
# either `active`, `inactive` or `closed` and defaults to `active`
|
|
@@ -470,10 +484,13 @@ module Twilio
|
|
|
470
484
|
# switched to `inactive` state. Minimum value for this timer is 1 minute.
|
|
471
485
|
# @param [String] timers_closed ISO8601 duration when conversation will be
|
|
472
486
|
# switched to `closed` state. Minimum value for this timer is 10 minutes.
|
|
487
|
+
# @param [String] unique_name An application-defined string that uniquely
|
|
488
|
+
# identifies the resource. It can be used to address the resource in place of the
|
|
489
|
+
# resource's `sid` in the URL.
|
|
473
490
|
# @param [conversation.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
474
491
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
475
492
|
# @return [ConversationInstance] Updated ConversationInstance
|
|
476
|
-
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_service_sid: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, x_twilio_webhook_enabled: :unset)
|
|
493
|
+
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_service_sid: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, unique_name: :unset, x_twilio_webhook_enabled: :unset)
|
|
477
494
|
context.update(
|
|
478
495
|
friendly_name: friendly_name,
|
|
479
496
|
date_created: date_created,
|
|
@@ -483,6 +500,7 @@ module Twilio
|
|
|
483
500
|
state: state,
|
|
484
501
|
timers_inactive: timers_inactive,
|
|
485
502
|
timers_closed: timers_closed,
|
|
503
|
+
unique_name: unique_name,
|
|
486
504
|
x_twilio_webhook_enabled: x_twilio_webhook_enabled,
|
|
487
505
|
)
|
|
488
506
|
end
|