twilio-ruby 5.39.3 → 5.40.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +112 -1
- data/CONTRIBUTING.md +2 -2
- data/README.md +2 -3
- data/lib/twilio-ruby/framework/version.rb +4 -8
- data/lib/twilio-ruby/rest/api.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +9 -7
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +3 -3
- 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/call.rb +21 -20
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +20 -14
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +29 -22
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +10 -10
- 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/assigned_add_on/assigned_add_on_extension.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +28 -21
- 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/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.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.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/transcription.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.rb +1 -1
- 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/auth_types/auth_calls_mapping.rb +2 -2
- 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_registrations_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/credential_list_mapping.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/sip/ip_access_control_list/ip_address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +6 -6
- 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/trigger.rb +19 -18
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +12 -12
- 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.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/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.rb +6 -6
- 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/webhook.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service.rb +36 -36
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +19 -19
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +28 -28
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +8 -8
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service.rb +36 -36
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +18 -18
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +15 -15
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +19 -19
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +54 -54
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +25 -25
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +15 -15
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +8 -8
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +18 -18
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +20 -20
- data/lib/twilio-ruby/rest/client.rb +8 -1
- data/lib/twilio-ruby/rest/conversations.rb +39 -3
- data/lib/twilio-ruby/rest/conversations/v1.rb +68 -5
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +260 -0
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +254 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +24 -21
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +15 -20
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +35 -28
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +48 -40
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +14 -19
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +419 -0
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +366 -0
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +434 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +380 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +263 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +307 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +578 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +541 -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/participant.rb +511 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +449 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +387 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +430 -0
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +409 -0
- data/lib/twilio-ruby/rest/events.rb +72 -0
- data/lib/twilio-ruby/rest/events/v1.rb +90 -0
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +291 -0
- data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +290 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +380 -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/subscription.rb +383 -0
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +216 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +28 -27
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +36 -36
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +19 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +28 -28
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +5 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +8 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +36 -36
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +18 -18
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +15 -15
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +19 -19
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +54 -54
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +25 -25
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +15 -15
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +5 -5
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +8 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +18 -18
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +20 -20
- data/lib/twilio-ruby/rest/lookups.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +10 -10
- data/lib/twilio-ruby/rest/messaging.rb +6 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +39 -36
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +3 -3
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +15 -15
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +12 -6
- data/lib/twilio-ruby/rest/notify/v1/service.rb +24 -24
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +10 -10
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +23 -15
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +3 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +16 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +18 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +15 -10
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +9 -6
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +4 -4
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +1 -4
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +4 -4
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +52 -52
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +3 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +15 -15
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +13 -11
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +42 -23
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +6 -6
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +20 -7
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +9 -9
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +8 -8
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +13 -13
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +6 -6
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +5 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +33 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +219 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +8 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +14 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +7 -7
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +6 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +7 -7
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +12 -11
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +22 -12
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +81 -15
- data/lib/twilio-ruby/rest/sync/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +12 -12
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +16 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
- 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_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/worker.rb +4 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +16 -12
- 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 +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -12
- 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/workspace_cumulative_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +62 -47
- 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 +201 -0
- data/lib/twilio-ruby/rest/verify/v2/service.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +2 -6
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +14 -12
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +5 -5
- data/lib/twilio-ruby/rest/video/v1/composition.rb +13 -9
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +33 -24
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +7 -9
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +2 -8
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +9 -9
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +3 -6
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +22 -22
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +2 -2
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -7
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +8 -7
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +22 -22
- 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/usage_record.rb +6 -6
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/version_spec.rb +53 -0
- data/spec/holodeck/holodeck.rb +3 -3
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +30 -0
- data/spec/integration/bulkexports/v1/export/day_spec.rb +5 -5
- data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
- data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
- data/spec/integration/conversations/v1/{webhook_spec.rb → configuration/webhook_spec.rb} +12 -8
- data/spec/integration/conversations/v1/configuration_spec.rb +87 -0
- data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +4 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +6 -6
- data/spec/integration/conversations/v1/conversation_spec.rb +5 -0
- data/spec/integration/conversations/v1/credential_spec.rb +219 -0
- data/spec/integration/conversations/v1/role_spec.rb +249 -0
- data/spec/integration/conversations/v1/service/binding_spec.rb +166 -0
- data/spec/integration/conversations/v1/service/configuration/notification_spec.rb +115 -0
- data/spec/integration/conversations/v1/service/configuration_spec.rb +87 -0
- data/spec/integration/conversations/v1/service/conversation/message/delivery_receipt_spec.rb +144 -0
- data/spec/integration/conversations/v1/service/conversation/message_spec.rb +429 -0
- data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +407 -0
- data/spec/integration/conversations/v1/service/conversation/webhook_spec.rb +299 -0
- data/spec/integration/conversations/v1/service/conversation_spec.rb +289 -0
- data/spec/integration/conversations/v1/service/role_spec.rb +260 -0
- data/spec/integration/conversations/v1/service/user_spec.rb +236 -0
- data/spec/integration/conversations/v1/service_spec.rb +174 -0
- data/spec/integration/conversations/v1/user_spec.rb +226 -0
- data/spec/integration/events/v1/event_type_spec.rb +133 -0
- data/spec/integration/events/v1/schema/schema_version_spec.rb +126 -0
- data/spec/integration/events/v1/schema_spec.rb +46 -0
- data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
- data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
- data/spec/integration/events/v1/sink_spec.rb +217 -0
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +91 -0
- data/spec/integration/events/v1/subscription_spec.rb +243 -0
- data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +27 -0
- data/spec/integration/serverless/v1/service/build/build_status_spec.rb +48 -0
- data/spec/integration/serverless/v1/service/build_spec.rb +8 -2
- data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
- data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
- data/spec/integration/supersim/v1/sim_spec.rb +23 -0
- data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
- data/spec/integration/trunking/v1/trunk/recording_spec.rb +79 -0
- data/spec/integration/trunking/v1/trunk_spec.rb +4 -0
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +2 -2
- data/spec/integration/video/v1/room_spec.rb +37 -0
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +85 -5
- data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +0 -262
|
@@ -28,8 +28,8 @@ module Twilio
|
|
|
28
28
|
|
|
29
29
|
##
|
|
30
30
|
# Create the CredentialListInstance
|
|
31
|
-
# @param [String] credential_list_sid The SID of the
|
|
32
|
-
# List
|
|
31
|
+
# @param [String] credential_list_sid The SID of the {Credential
|
|
32
|
+
# List}[https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource]
|
|
33
33
|
# that you want to associate with the trunk. Once associated, we will authenticate
|
|
34
34
|
# access to the trunk against this list.
|
|
35
35
|
# @return [CredentialListInstance] Created CredentialListInstance
|
|
@@ -27,8 +27,9 @@ module Twilio
|
|
|
27
27
|
|
|
28
28
|
##
|
|
29
29
|
# Create the IpAccessControlListInstance
|
|
30
|
-
# @param [String] ip_access_control_list_sid The SID of the
|
|
31
|
-
# List
|
|
30
|
+
# @param [String] ip_access_control_list_sid The SID of the {IP Access Control
|
|
31
|
+
# List}[https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource]
|
|
32
|
+
# that you want to associate with the trunk.
|
|
32
33
|
# @return [IpAccessControlListInstance] Created IpAccessControlListInstance
|
|
33
34
|
def create(ip_access_control_list_sid: nil)
|
|
34
35
|
data = Twilio::Values.of({'IpAccessControlListSid' => ip_access_control_list_sid, })
|
|
@@ -30,8 +30,9 @@ module Twilio
|
|
|
30
30
|
|
|
31
31
|
##
|
|
32
32
|
# Create the PhoneNumberInstance
|
|
33
|
-
# @param [String] phone_number_sid The SID of the
|
|
34
|
-
# Number
|
|
33
|
+
# @param [String] phone_number_sid The SID of the {Incoming Phone
|
|
34
|
+
# Number}[https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource]
|
|
35
|
+
# that you want to associate with the trunk.
|
|
35
36
|
# @return [PhoneNumberInstance] Created PhoneNumberInstance
|
|
36
37
|
def create(phone_number_sid: nil)
|
|
37
38
|
data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, })
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# \ / _ _ _| _ _
|
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
# / /
|
|
6
|
+
#
|
|
7
|
+
# frozen_string_literal: true
|
|
8
|
+
|
|
9
|
+
module Twilio
|
|
10
|
+
module REST
|
|
11
|
+
class Trunking < Domain
|
|
12
|
+
class V1 < Version
|
|
13
|
+
class TrunkContext < InstanceContext
|
|
14
|
+
class RecordingList < ListResource
|
|
15
|
+
##
|
|
16
|
+
# Initialize the RecordingList
|
|
17
|
+
# @param [Version] version Version that contains the resource
|
|
18
|
+
# @param [String] trunk_sid The trunk_sid
|
|
19
|
+
# @return [RecordingList] RecordingList
|
|
20
|
+
def initialize(version, trunk_sid: nil)
|
|
21
|
+
super(version)
|
|
22
|
+
|
|
23
|
+
# Path Solution
|
|
24
|
+
@solution = {trunk_sid: trunk_sid}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
##
|
|
28
|
+
# Provide a user friendly representation
|
|
29
|
+
def to_s
|
|
30
|
+
'#<Twilio.Trunking.V1.RecordingList>'
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
class RecordingPage < Page
|
|
35
|
+
##
|
|
36
|
+
# Initialize the RecordingPage
|
|
37
|
+
# @param [Version] version Version that contains the resource
|
|
38
|
+
# @param [Response] response Response from the API
|
|
39
|
+
# @param [Hash] solution Path solution for the resource
|
|
40
|
+
# @return [RecordingPage] RecordingPage
|
|
41
|
+
def initialize(version, response, solution)
|
|
42
|
+
super(version, response)
|
|
43
|
+
|
|
44
|
+
# Path Solution
|
|
45
|
+
@solution = solution
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
##
|
|
49
|
+
# Build an instance of RecordingInstance
|
|
50
|
+
# @param [Hash] payload Payload response from the API
|
|
51
|
+
# @return [RecordingInstance] RecordingInstance
|
|
52
|
+
def get_instance(payload)
|
|
53
|
+
RecordingInstance.new(@version, payload, trunk_sid: @solution[:trunk_sid], )
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
##
|
|
57
|
+
# Provide a user friendly representation
|
|
58
|
+
def to_s
|
|
59
|
+
'<Twilio.Trunking.V1.RecordingPage>'
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
class RecordingContext < InstanceContext
|
|
64
|
+
##
|
|
65
|
+
# Initialize the RecordingContext
|
|
66
|
+
# @param [Version] version Version that contains the resource
|
|
67
|
+
# @param [String] trunk_sid The SID of the Trunk from which to fetch the recording
|
|
68
|
+
# settings.
|
|
69
|
+
# @return [RecordingContext] RecordingContext
|
|
70
|
+
def initialize(version, trunk_sid)
|
|
71
|
+
super(version)
|
|
72
|
+
|
|
73
|
+
# Path Solution
|
|
74
|
+
@solution = {trunk_sid: trunk_sid, }
|
|
75
|
+
@uri = "/Trunks/#{@solution[:trunk_sid]}/Recording"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
##
|
|
79
|
+
# Fetch the RecordingInstance
|
|
80
|
+
# @return [RecordingInstance] Fetched RecordingInstance
|
|
81
|
+
def fetch
|
|
82
|
+
payload = @version.fetch('GET', @uri)
|
|
83
|
+
|
|
84
|
+
RecordingInstance.new(@version, payload, trunk_sid: @solution[:trunk_sid], )
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
##
|
|
88
|
+
# Update the RecordingInstance
|
|
89
|
+
# @return [RecordingInstance] Updated RecordingInstance
|
|
90
|
+
def update
|
|
91
|
+
payload = @version.update('POST', @uri)
|
|
92
|
+
|
|
93
|
+
RecordingInstance.new(@version, payload, trunk_sid: @solution[:trunk_sid], )
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
##
|
|
97
|
+
# Provide a user friendly representation
|
|
98
|
+
def to_s
|
|
99
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
100
|
+
"#<Twilio.Trunking.V1.RecordingContext #{context}>"
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
##
|
|
104
|
+
# Provide a detailed, user friendly representation
|
|
105
|
+
def inspect
|
|
106
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
107
|
+
"#<Twilio.Trunking.V1.RecordingContext #{context}>"
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
class RecordingInstance < InstanceResource
|
|
112
|
+
##
|
|
113
|
+
# Initialize the RecordingInstance
|
|
114
|
+
# @param [Version] version Version that contains the resource
|
|
115
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
116
|
+
# @param [String] trunk_sid The trunk_sid
|
|
117
|
+
# @return [RecordingInstance] RecordingInstance
|
|
118
|
+
def initialize(version, payload, trunk_sid: nil)
|
|
119
|
+
super(version)
|
|
120
|
+
|
|
121
|
+
# Marshaled Properties
|
|
122
|
+
@properties = {
|
|
123
|
+
'mode' => payload['mode'],
|
|
124
|
+
'trim' => payload['trim'],
|
|
125
|
+
'url' => payload['url'],
|
|
126
|
+
'trunk_sid' => payload['trunk_sid'],
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
# Context
|
|
130
|
+
@instance_context = nil
|
|
131
|
+
@params = {'trunk_sid' => trunk_sid, }
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
##
|
|
135
|
+
# Generate an instance context for the instance, the context is capable of
|
|
136
|
+
# performing various actions. All instance actions are proxied to the context
|
|
137
|
+
# @return [RecordingContext] RecordingContext for this RecordingInstance
|
|
138
|
+
def context
|
|
139
|
+
unless @instance_context
|
|
140
|
+
@instance_context = RecordingContext.new(@version, @params['trunk_sid'], )
|
|
141
|
+
end
|
|
142
|
+
@instance_context
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
##
|
|
146
|
+
# @return [recording.RecordingMode] The recording mode for the trunk.
|
|
147
|
+
def mode
|
|
148
|
+
@properties['mode']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
##
|
|
152
|
+
# @return [recording.RecordingTrim] The recording trim setting for the trunk.
|
|
153
|
+
def trim
|
|
154
|
+
@properties['trim']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
##
|
|
158
|
+
# @return [String] The url
|
|
159
|
+
def url
|
|
160
|
+
@properties['url']
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
##
|
|
164
|
+
# @return [String] The trunk_sid
|
|
165
|
+
def trunk_sid
|
|
166
|
+
@properties['trunk_sid']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
##
|
|
170
|
+
# Fetch the RecordingInstance
|
|
171
|
+
# @return [RecordingInstance] Fetched RecordingInstance
|
|
172
|
+
def fetch
|
|
173
|
+
context.fetch
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
##
|
|
177
|
+
# Update the RecordingInstance
|
|
178
|
+
# @return [RecordingInstance] Updated RecordingInstance
|
|
179
|
+
def update
|
|
180
|
+
context.update
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
##
|
|
184
|
+
# Provide a user friendly representation
|
|
185
|
+
def to_s
|
|
186
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
187
|
+
"<Twilio.Trunking.V1.RecordingInstance #{values}>"
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
##
|
|
191
|
+
# Provide a detailed, user friendly representation
|
|
192
|
+
def inspect
|
|
193
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
194
|
+
"<Twilio.Trunking.V1.RecordingInstance #{values}>"
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
end
|
|
@@ -53,7 +53,7 @@ module Twilio
|
|
|
53
53
|
# true}. If `include_date` is set to `true`, which is the default, that means that
|
|
54
54
|
# the push challenge’s response will include the date created value. If
|
|
55
55
|
# `include_date` is set to `false`, then the date created value will not be
|
|
56
|
-
# included. See [
|
|
56
|
+
# included. See {Challenge}[https://www.twilio.com/docs/verify/api/challenge]
|
|
57
57
|
# resource’s details parameter for more info
|
|
58
58
|
# @return [ServiceInstance] Created ServiceInstance
|
|
59
59
|
def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
|
|
@@ -259,7 +259,7 @@ module Twilio
|
|
|
259
259
|
# true}. If `include_date` is set to `true`, which is the default, that means that
|
|
260
260
|
# the push challenge’s response will include the date created value. If
|
|
261
261
|
# `include_date` is set to `false`, then the date created value will not be
|
|
262
|
-
# included. See [
|
|
262
|
+
# included. See {Challenge}[https://www.twilio.com/docs/verify/api/challenge]
|
|
263
263
|
# resource’s details parameter for more info
|
|
264
264
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
265
265
|
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
|
|
@@ -595,7 +595,7 @@ module Twilio
|
|
|
595
595
|
# true}. If `include_date` is set to `true`, which is the default, that means that
|
|
596
596
|
# the push challenge’s response will include the date created value. If
|
|
597
597
|
# `include_date` is set to `false`, then the date created value will not be
|
|
598
|
-
# included. See [
|
|
598
|
+
# included. See {Challenge}[https://www.twilio.com/docs/verify/api/challenge]
|
|
599
599
|
# resource’s details parameter for more info
|
|
600
600
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
601
601
|
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
|
|
@@ -34,14 +34,14 @@ module Twilio
|
|
|
34
34
|
# Create the ChallengeInstance
|
|
35
35
|
# @param [String] factor_sid The unique SID identifier of the Factor.
|
|
36
36
|
# @param [Time] expiration_date The future date in which this Challenge will
|
|
37
|
-
# expire, given in
|
|
37
|
+
# expire, given in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format.
|
|
38
38
|
# @param [String] details Details provided to give context about the Challenge.
|
|
39
39
|
# Shown to the end user. It must be a stringified JSON with the following
|
|
40
|
-
# structure: {"message": "string", "fields":
|
|
40
|
+
# structure: {"message": "string", "fields": { { "label": "string", "value":
|
|
41
41
|
# "string"}]}. `message` is required. If you send the `fields` property, each
|
|
42
42
|
# field has to include `label` and `value` properties. If you had set
|
|
43
43
|
# `include_date=true` in the `push` configuration of the
|
|
44
|
-
# [service
|
|
44
|
+
# [service}[https://www.twilio.com/docs/verify/api/service], the response will
|
|
45
45
|
# also include the challenge's date created value as an additional field called
|
|
46
46
|
# `date`
|
|
47
47
|
# @param [String] hidden_details Details provided to give context about the
|
|
@@ -44,19 +44,15 @@ module Twilio
|
|
|
44
44
|
# @param [String] config The config required for this Factor. It must be a json
|
|
45
45
|
# string with the required properties for the given factor type
|
|
46
46
|
# @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
|
|
47
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
48
47
|
# @return [FactorInstance] Created FactorInstance
|
|
49
|
-
def create(binding: nil, friendly_name: nil, factor_type: nil, config: nil, twilio_sandbox_mode: :unset
|
|
48
|
+
def create(binding: nil, friendly_name: nil, factor_type: nil, config: nil, twilio_sandbox_mode: :unset)
|
|
50
49
|
data = Twilio::Values.of({
|
|
51
50
|
'Binding' => binding,
|
|
52
51
|
'FriendlyName' => friendly_name,
|
|
53
52
|
'FactorType' => factor_type,
|
|
54
53
|
'Config' => config,
|
|
55
54
|
})
|
|
56
|
-
headers = Twilio::Values.of({
|
|
57
|
-
'Twilio-Sandbox-Mode' => twilio_sandbox_mode,
|
|
58
|
-
'Authorization' => authorization,
|
|
59
|
-
})
|
|
55
|
+
headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
|
|
60
56
|
|
|
61
57
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
62
58
|
|
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the MessagingConfigurationList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] service_sid The SID of the
|
|
19
|
-
# [
|
|
19
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] that the resource is
|
|
20
20
|
# associated with.
|
|
21
21
|
# @return [MessagingConfigurationList] MessagingConfigurationList
|
|
22
22
|
def initialize(version, service_sid: nil)
|
|
@@ -30,11 +30,11 @@ module Twilio
|
|
|
30
30
|
##
|
|
31
31
|
# Create the MessagingConfigurationInstance
|
|
32
32
|
# @param [String] country The
|
|
33
|
-
#
|
|
33
|
+
# {ISO-3166-1}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] country code of
|
|
34
34
|
# the country this configuration will be applied to. If this is a global
|
|
35
35
|
# configuration, Country will take the value `all`.
|
|
36
|
-
# @param [String] messaging_service_sid The SID of the
|
|
37
|
-
# Service
|
|
36
|
+
# @param [String] messaging_service_sid The SID of the {Messaging
|
|
37
|
+
# Service}[https://www.twilio.com/docs/sms/services/api] to be used to send SMS to
|
|
38
38
|
# the country of this configuration.
|
|
39
39
|
# @return [MessagingConfigurationInstance] Created MessagingConfigurationInstance
|
|
40
40
|
def create(country: nil, messaging_service_sid: nil)
|
|
@@ -166,10 +166,10 @@ module Twilio
|
|
|
166
166
|
# Initialize the MessagingConfigurationContext
|
|
167
167
|
# @param [Version] version Version that contains the resource
|
|
168
168
|
# @param [String] service_sid The SID of the
|
|
169
|
-
# [
|
|
169
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] that the resource is
|
|
170
170
|
# associated with.
|
|
171
171
|
# @param [String] country The
|
|
172
|
-
#
|
|
172
|
+
# {ISO-3166-1}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] country code of
|
|
173
173
|
# the country this configuration will be applied to. If this is a global
|
|
174
174
|
# configuration, Country will take the value `all`.
|
|
175
175
|
# @return [MessagingConfigurationContext] MessagingConfigurationContext
|
|
@@ -183,8 +183,8 @@ module Twilio
|
|
|
183
183
|
|
|
184
184
|
##
|
|
185
185
|
# Update the MessagingConfigurationInstance
|
|
186
|
-
# @param [String] messaging_service_sid The SID of the
|
|
187
|
-
# Service
|
|
186
|
+
# @param [String] messaging_service_sid The SID of the {Messaging
|
|
187
|
+
# Service}[https://www.twilio.com/docs/sms/services/api] to be used to send SMS to
|
|
188
188
|
# the country of this configuration.
|
|
189
189
|
# @return [MessagingConfigurationInstance] Updated MessagingConfigurationInstance
|
|
190
190
|
def update(messaging_service_sid: nil)
|
|
@@ -242,10 +242,10 @@ module Twilio
|
|
|
242
242
|
# @param [Version] version Version that contains the resource
|
|
243
243
|
# @param [Hash] payload payload that contains response from Twilio
|
|
244
244
|
# @param [String] service_sid The SID of the
|
|
245
|
-
# [
|
|
245
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] that the resource is
|
|
246
246
|
# associated with.
|
|
247
247
|
# @param [String] country The
|
|
248
|
-
#
|
|
248
|
+
# {ISO-3166-1}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] country code of
|
|
249
249
|
# the country this configuration will be applied to. If this is a global
|
|
250
250
|
# configuration, Country will take the value `all`.
|
|
251
251
|
# @return [MessagingConfigurationInstance] MessagingConfigurationInstance
|
|
@@ -327,8 +327,8 @@ module Twilio
|
|
|
327
327
|
|
|
328
328
|
##
|
|
329
329
|
# Update the MessagingConfigurationInstance
|
|
330
|
-
# @param [String] messaging_service_sid The SID of the
|
|
331
|
-
# Service
|
|
330
|
+
# @param [String] messaging_service_sid The SID of the {Messaging
|
|
331
|
+
# Service}[https://www.twilio.com/docs/sms/services/api] to be used to send SMS to
|
|
332
332
|
# the country of this configuration.
|
|
333
333
|
# @return [MessagingConfigurationInstance] Updated MessagingConfigurationInstance
|
|
334
334
|
def update(messaging_service_sid: nil)
|
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the RateLimitList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] service_sid The SID of the
|
|
19
|
-
# [
|
|
19
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] the resource is
|
|
20
20
|
# associated with.
|
|
21
21
|
# @return [RateLimitList] RateLimitList
|
|
22
22
|
def initialize(version, service_sid: nil)
|
|
@@ -163,7 +163,7 @@ module Twilio
|
|
|
163
163
|
# Initialize the RateLimitContext
|
|
164
164
|
# @param [Version] version Version that contains the resource
|
|
165
165
|
# @param [String] service_sid The SID of the
|
|
166
|
-
# [
|
|
166
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] the resource is
|
|
167
167
|
# associated with.
|
|
168
168
|
# @param [String] sid The Twilio-provided string that uniquely identifies the Rate
|
|
169
169
|
# Limit resource to fetch.
|
|
@@ -250,7 +250,7 @@ module Twilio
|
|
|
250
250
|
# @param [Version] version Version that contains the resource
|
|
251
251
|
# @param [Hash] payload payload that contains response from Twilio
|
|
252
252
|
# @param [String] service_sid The SID of the
|
|
253
|
-
# [
|
|
253
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] the resource is
|
|
254
254
|
# associated with.
|
|
255
255
|
# @param [String] sid The Twilio-provided string that uniquely identifies the Rate
|
|
256
256
|
# Limit resource to fetch.
|
|
@@ -17,7 +17,7 @@ module Twilio
|
|
|
17
17
|
# Initialize the BucketList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
19
|
# @param [String] service_sid The SID of the
|
|
20
|
-
# [
|
|
20
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] the resource is
|
|
21
21
|
# associated with.
|
|
22
22
|
# @param [String] rate_limit_sid The Twilio-provided string that uniquely
|
|
23
23
|
# identifies the Rate Limit resource.
|
|
@@ -175,7 +175,7 @@ module Twilio
|
|
|
175
175
|
# Initialize the BucketContext
|
|
176
176
|
# @param [Version] version Version that contains the resource
|
|
177
177
|
# @param [String] service_sid The SID of the
|
|
178
|
-
# [
|
|
178
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] the resource is
|
|
179
179
|
# associated with.
|
|
180
180
|
# @param [String] rate_limit_sid The Twilio-provided string that uniquely
|
|
181
181
|
# identifies the Rate Limit resource.
|
|
@@ -252,7 +252,7 @@ module Twilio
|
|
|
252
252
|
# @param [Version] version Version that contains the resource
|
|
253
253
|
# @param [Hash] payload payload that contains response from Twilio
|
|
254
254
|
# @param [String] service_sid The SID of the
|
|
255
|
-
# [
|
|
255
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] the resource is
|
|
256
256
|
# associated with.
|
|
257
257
|
# @param [String] rate_limit_sid The Twilio-provided string that uniquely
|
|
258
258
|
# identifies the Rate Limit resource.
|
|
@@ -16,7 +16,7 @@ module Twilio
|
|
|
16
16
|
# Initialize the VerificationList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] service_sid The SID of the
|
|
19
|
-
# [
|
|
19
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] the resource is
|
|
20
20
|
# associated with.
|
|
21
21
|
# @return [VerificationList] VerificationList
|
|
22
22
|
def initialize(version, service_sid: nil)
|
|
@@ -30,10 +30,10 @@ module Twilio
|
|
|
30
30
|
##
|
|
31
31
|
# Create the VerificationInstance
|
|
32
32
|
# @param [String] to The phone number or
|
|
33
|
-
# [
|
|
34
|
-
# be in
|
|
33
|
+
# {email}[https://www.twilio.com/docs/verify/email] to verify. Phone numbers must
|
|
34
|
+
# be in {E.164 format}[https://www.twilio.com/docs/glossary/what-e164].
|
|
35
35
|
# @param [String] channel The verification method to use. Can be:
|
|
36
|
-
#
|
|
36
|
+
# {`email`}[https://www.twilio.com/docs/verify/email], `sms` or `call`.
|
|
37
37
|
# @param [String] custom_friendly_name A custom user defined friendly name that
|
|
38
38
|
# overwrites the existing one in the verification message
|
|
39
39
|
# @param [String] custom_message The text of a custom message to use for the
|
|
@@ -41,7 +41,7 @@ module Twilio
|
|
|
41
41
|
# @param [String] send_digits The digits to send after a phone call is answered,
|
|
42
42
|
# for example, to dial an extension. For more information, see the Programmable
|
|
43
43
|
# Voice documentation of
|
|
44
|
-
# [
|
|
44
|
+
# {sendDigits}[https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits].
|
|
45
45
|
# @param [String] locale The locale to use for the verification SMS or call. Can
|
|
46
46
|
# be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`,
|
|
47
47
|
# `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`,
|
|
@@ -53,15 +53,17 @@ module Twilio
|
|
|
53
53
|
# @param [String] payee The payee of the associated PSD2 compliant transaction.
|
|
54
54
|
# Requires the PSD2 Service flag enabled.
|
|
55
55
|
# @param [Hash] rate_limits The custom key-value pairs of Programmable Rate
|
|
56
|
-
# Limits. Keys correspond to `unique_name` fields defined when
|
|
57
|
-
# Limit
|
|
56
|
+
# Limits. Keys correspond to `unique_name` fields defined when {creating your Rate
|
|
57
|
+
# Limit}[https://www.twilio.com/docs/verify/api/service-rate-limits]. Associated
|
|
58
58
|
# value pairs represent values in the request that you are rate limiting on. You
|
|
59
59
|
# may include multiple Rate Limit values in each request.
|
|
60
60
|
# @param [Hash] channel_configuration
|
|
61
|
-
#
|
|
61
|
+
# {`email`}[https://www.twilio.com/docs/verify/email] channel configuration in
|
|
62
62
|
# json format. Must include 'from' and 'from_name'.
|
|
63
|
-
# @param [String] app_hash Your
|
|
64
|
-
# Hash
|
|
63
|
+
# @param [String] app_hash Your {App
|
|
64
|
+
# Hash}[https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string]
|
|
65
|
+
# to be appended at the end of your verification SMS body. Applies only to SMS.
|
|
66
|
+
# Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
|
65
67
|
# @return [VerificationInstance] Created VerificationInstance
|
|
66
68
|
def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
|
|
67
69
|
data = Twilio::Values.of({
|
|
@@ -125,7 +127,7 @@ module Twilio
|
|
|
125
127
|
# Initialize the VerificationContext
|
|
126
128
|
# @param [Version] version Version that contains the resource
|
|
127
129
|
# @param [String] service_sid The SID of the verification
|
|
128
|
-
# [
|
|
130
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] to fetch the resource
|
|
129
131
|
# from.
|
|
130
132
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
131
133
|
# Verification resource to fetch.
|
|
@@ -191,7 +193,7 @@ module Twilio
|
|
|
191
193
|
# @param [Version] version Version that contains the resource
|
|
192
194
|
# @param [Hash] payload payload that contains response from Twilio
|
|
193
195
|
# @param [String] service_sid The SID of the
|
|
194
|
-
# [
|
|
196
|
+
# {Service}[https://www.twilio.com/docs/verify/api/service] the resource is
|
|
195
197
|
# associated with.
|
|
196
198
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
|
197
199
|
# Verification resource to fetch.
|