twilio-ruby 7.3.7 → 7.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +8 -0
- data/.rubocop.yml +1 -0
- data/CHANGES.md +6 -0
- data/Makefile +1 -1
- data/README.md +7 -2
- data/cluster/cluster_oauth_spec.rb +19 -0
- data/cluster/cluster_orgs_spec.rb +40 -0
- data/{cluster_spec.rb → cluster/cluster_spec.rb} +0 -2
- data/examples/public_oauth.rb +13 -0
- data/lib/twilio-ruby/auth_strategy/auth_strategy.rb +19 -0
- data/lib/twilio-ruby/auth_strategy/no_auth_strategy.rb +17 -0
- data/lib/twilio-ruby/auth_strategy/token_auth_strategy.rb +39 -0
- data/lib/twilio-ruby/base/client_base.rb +8 -1
- data/lib/twilio-ruby/credential/auth_type.rb +17 -0
- data/lib/twilio-ruby/credential/client_credential_provider.rb +28 -0
- data/lib/twilio-ruby/credential/credential_provider.rb +11 -0
- data/lib/twilio-ruby/credential/orgs_credential_provider.rb +30 -0
- data/lib/twilio-ruby/framework/rest/domain.rb +0 -1
- data/lib/twilio-ruby/framework/rest/page.rb +1 -0
- data/lib/twilio-ruby/http/client_token_manager.rb +28 -0
- data/lib/twilio-ruby/http/http_client.rb +9 -0
- data/lib/twilio-ruby/http/org_token_manager.rb +28 -0
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +4 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +4 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +4 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +18 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +18 -1
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +10 -0
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +8 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +8 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +8 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +8 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +12 -1
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +12 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +12 -1
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account.rb +16 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +10 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +10 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +10 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +50 -31
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +4 -1
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +4 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +52 -33
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +4 -1
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +4 -1
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +8 -1
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +58 -39
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +8 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +8 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +6 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +4 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +14 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +4 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +10 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +14 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +14 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +4 -0
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +7 -2
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +4 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +115 -101
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +4 -1
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +4 -1
- data/lib/twilio-ruby/rest/content/v2/content.rb +4 -1
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +4 -1
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +4 -0
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +4 -1
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +10 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +4 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +4 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +14 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +14 -1
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +14 -1
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +18 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +8 -1
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +8 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +4 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +4 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +18 -1
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +18 -1
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +18 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +14 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +8 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +18 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +8 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +4 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +18 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +14 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +14 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +4 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +8 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +8 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +16 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +8 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +18 -1
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +8 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +4 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +8 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +10 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +4 -1
- data/lib/twilio-ruby/rest/iam/v1/{key.rb → new_api_key.rb} +24 -20
- data/lib/twilio-ruby/rest/iam/v1.rb +4 -4
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +8 -0
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +4 -0
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +4 -1
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +4 -1
- data/lib/twilio-ruby/rest/insights/v1/call.rb +4 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +4 -1
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +8 -1
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +8 -1
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +8 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +8 -1
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +8 -0
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +18 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +8 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +6 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +4 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +8 -1
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +8 -1
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +18 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +4 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +8 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +4 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +14 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +14 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +4 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +10 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +14 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +10 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +14 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +18 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +4 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +4 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +8 -1
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +8 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +12 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +7 -2
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +18 -1
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +8 -0
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +6 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +12 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +16 -1
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +10 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +8 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +6 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +14 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +14 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +14 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +14 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +18 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +18 -1
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +4 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +18 -1
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +18 -1
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +4 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +10 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +18 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +18 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +12 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +8 -1
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +8 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +18 -1
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +14 -1
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +4 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +8 -0
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +10 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +6 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -0
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +8 -1
- data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +24 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +4 -1
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +14 -1
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +8 -0
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +8 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +12 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +14 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +8 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +8 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +8 -1
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +4 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +4 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +4 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +16 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +18 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +8 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +8 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +12 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +18 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +18 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +18 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +18 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service.rb +18 -1
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +12 -1
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +18 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +4 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +12 -1
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +148 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +186 -0
- data/lib/twilio-ruby/rest/preview_iam/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +309 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +375 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +530 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +277 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +49 -0
- data/lib/twilio-ruby/rest/preview_iam.rb +9 -0
- data/lib/twilio-ruby/rest/preview_iam_base.rb +38 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +4 -0
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +4 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +4 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +18 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +10 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +12 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +18 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +18 -1
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +8 -0
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +8 -0
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +8 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +8 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +18 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +4 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +14 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +12 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +8 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +18 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +14 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +4 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +8 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +18 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +8 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +14 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +8 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +18 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +10 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +8 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +18 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +8 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +8 -0
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +18 -1
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +4 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +12 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +16 -1
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +12 -1
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +8 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +14 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +16 -1
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +4 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +4 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +4 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +16 -1
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +12 -1
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +14 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +14 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +14 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +4 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +8 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +12 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +4 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +12 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +12 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +18 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +14 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +14 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +18 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +14 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +8 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +18 -1
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +8 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +8 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +4 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +14 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +14 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +12 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +18 -1
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +18 -1
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +8 -1
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +8 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +18 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +8 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +14 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +14 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +12 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/form.rb +4 -0
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +10 -0
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +8 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +4 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +16 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +14 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +4 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +14 -1
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +12 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +4 -0
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/template.rb +4 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +8 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +14 -1
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +18 -1
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +10 -1
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +8 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +8 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +12 -1
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +10 -1
- data/lib/twilio-ruby/rest/video/v1/room.rb +16 -1
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -0
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +18 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +18 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +18 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +4 -0
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +4 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +8 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +8 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +18 -1
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +18 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +14 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +18 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +4 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +4 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +14 -1
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +27 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 716a5360bb07ddef4a7034ccd964bd8736d9b3e0
|
4
|
+
data.tar.gz: 7badc6efe024f8a5113474cdff90d60809abc628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e04bd87298d040265efc809ffcc1b8041b145a9c696c62f5eca55a6dd4aa923b8eeccbc8b1776ba2b6cd52fe86a42c6f5555908037a026077646a213ca12801
|
7
|
+
data.tar.gz: 0fea2a97101303015bb771358fb85fab848e9ec072d6e0e6b373ea199aaf1266d3acc5461d7620c0db42bbb39991d0f8ddb4966dee046978cc6a0032a2c6ee39
|
@@ -53,6 +53,14 @@ jobs:
|
|
53
53
|
TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
|
54
54
|
TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
|
55
55
|
TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
|
56
|
+
TWILIO_ORGS_ACCOUNT_SID: ${{ secrets.TWILIO_ORGS_ACCOUNT_SID }}
|
57
|
+
TWILIO_ORGS_CLIENT_SECRET: ${{ secrets.TWILIO_ORGS_CLIENT_SECRET }}
|
58
|
+
TWILIO_ORGS_CLIENT_ID: ${{ secrets.TWILIO_ORGS_CLIENT_ID }}
|
59
|
+
TWILIO_ORG_SID: ${{ secrets.TWILIO_ORG_SID }}
|
60
|
+
TWILIO_USER_SID: ${{ secrets.TWILIO_USER_SID }}
|
61
|
+
TWILIO_CLIENT_SECRET: ${{ secrets.TWILIO_CLIENT_SECRET }}
|
62
|
+
TWILIO_CLIENT_ID: ${{ secrets.TWILIO_CLIENT_ID }}
|
63
|
+
TWILIO_MESSAGE_SID: ${{ secrets.TWILIO_MESSAGE_SID }}
|
56
64
|
run: make cluster-test
|
57
65
|
|
58
66
|
- name: Fix code coverage paths
|
data/.rubocop.yml
CHANGED
data/CHANGES.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2024-12-12] Version 7.4.0
|
5
|
+
--------------------------
|
6
|
+
**Library - Feature**
|
7
|
+
- [PR #735](https://github.com/twilio/twilio-ruby/pull/735): public oauth. Thanks to [@manisha1997](https://github.com/manisha1997)!
|
8
|
+
|
9
|
+
|
4
10
|
[2024-12-05] Version 7.3.7
|
5
11
|
--------------------------
|
6
12
|
**Api**
|
data/Makefile
CHANGED
data/README.md
CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
40
40
|
|
41
41
|
```ruby
|
42
|
-
gem 'twilio-ruby', '~> 7.
|
42
|
+
gem 'twilio-ruby', '~> 7.4.0'
|
43
43
|
```
|
44
44
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
46
46
|
|
47
47
|
```bash
|
48
|
-
gem install twilio-ruby -v 7.
|
48
|
+
gem install twilio-ruby -v 7.4.0
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -298,6 +298,11 @@ capability.add_scope(incoming_scope)
|
|
298
298
|
|
299
299
|
There is a slightly more detailed document in the [Capability][capability] section of the wiki.
|
300
300
|
|
301
|
+
## OAuth Feature for Twilio APIs
|
302
|
+
We are introducing Client Credentials Flow-based OAuth 2.0 authentication. This feature is currently in beta and its implementation is subject to change.
|
303
|
+
|
304
|
+
API examples [here](https://github.com/twilio/twilio-ruby/blob/main/examples/public_oauth.rb)
|
305
|
+
|
301
306
|
### Generate TwiML
|
302
307
|
|
303
308
|
To control phone calls, your application needs to output [TwiML][twiml].
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rspec/matchers'
|
2
|
+
require 'twilio-ruby'
|
3
|
+
require './lib/twilio-ruby/credential/client_credential_provider'
|
4
|
+
|
5
|
+
describe 'Cluster Test' do
|
6
|
+
before(:each) do
|
7
|
+
@account_sid = ENV['TWILIO_ACCOUNT_SID']
|
8
|
+
@client_secret = ENV['TWILIO_CLIENT_SECRET']
|
9
|
+
@client_id = ENV['TWILIO_CLIENT_ID']
|
10
|
+
@message_sid = ENV['TWILIO_MESSAGE_SID']
|
11
|
+
@credential = Twilio::REST::ClientCredentialProvider.new(@client_id, @client_secret)
|
12
|
+
@client = Twilio::REST::Client.new(@account_sid).credential_provider(@credential)
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'can fetch a message' do
|
16
|
+
response = @client.messages(@message_sid).fetch
|
17
|
+
expect(response).to_not be_nil
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'rspec/matchers'
|
2
|
+
require 'twilio-ruby'
|
3
|
+
require './lib/twilio-ruby/credential/client_credential_provider'
|
4
|
+
|
5
|
+
describe 'Cluster Test' do
|
6
|
+
before(:each) do
|
7
|
+
@client_secret = ENV['TWILIO_ORGS_CLIENT_SECRET']
|
8
|
+
@client_id = ENV['TWILIO_ORGS_CLIENT_ID']
|
9
|
+
@org_sid = ENV['TWILIO_ORG_SID']
|
10
|
+
@user_sid = ENV['TWILIO_USER_SID']
|
11
|
+
@account_sid = ENV['TWILIO_ORGS_ACCOUNT_SID']
|
12
|
+
@credential = Twilio::REST::ClientCredentialProvider.new(@client_id, @client_secret)
|
13
|
+
@client = Twilio::REST::Client.new.credential_provider(@credential)
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'can list accounts' do
|
17
|
+
response = @client.preview_iam.organizations(@org_sid).accounts.list
|
18
|
+
expect(response).to_not be_nil
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'can fetch specific account' do
|
22
|
+
response = @client.preview_iam.organizations(@org_sid).accounts(@account_sid).fetch
|
23
|
+
expect(response).to_not be_nil
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'can access role assignments list' do
|
27
|
+
response = @client.preview_iam.organizations(@org_sid).role_assignments.list(scope: @account_sid)
|
28
|
+
expect(response).to_not be_nil
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'can get user list' do
|
32
|
+
response = @client.preview_iam.organizations(@org_sid).users.list
|
33
|
+
expect(response).to_not be_nil
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'can get single user' do
|
37
|
+
response = @client.preview_iam.organizations(@org_sid).users(@user_sid).fetch
|
38
|
+
expect(response).to_not be_nil
|
39
|
+
end
|
40
|
+
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'rspec/matchers'
|
2
2
|
require 'twilio-ruby'
|
3
3
|
|
4
|
-
# rubocop:disable Metrics/BlockLength
|
5
4
|
describe 'Cluster Test' do
|
6
5
|
before(:each) do
|
7
6
|
@account_sid = ENV['TWILIO_ACCOUNT_SID']
|
@@ -74,4 +73,3 @@ describe 'Cluster Test' do
|
|
74
73
|
expect(@client.events.v1.sinks(sink.sid).delete).to eq(true)
|
75
74
|
end
|
76
75
|
end
|
77
|
-
# rubocop:enable Metrics/BlockLength
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'twilio-ruby'
|
2
|
+
require 'twilio-ruby/credential/client_credential_provider'
|
3
|
+
|
4
|
+
credential_provider = Twilio::REST::ClientCredentialProvider.new(ENV['CLIENT_ID'], ENV['CLIENT_SECRET'])
|
5
|
+
# passing account sid is not mandatory
|
6
|
+
client = Twilio::REST::Client.new(ENV['ACCOUNT_SID']).credential_provider(credential_provider)
|
7
|
+
|
8
|
+
# send messages
|
9
|
+
client.messages.create(
|
10
|
+
from: ENV['TWILIO_PHONE_NUMBER'],
|
11
|
+
to: ENV['PHONE_NUMBER'],
|
12
|
+
body: 'Hello from Ruby!'
|
13
|
+
)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Twilio
|
2
|
+
module REST
|
3
|
+
class AuthStrategy
|
4
|
+
attr_accessor :auth_type
|
5
|
+
|
6
|
+
def initialize(auth_type)
|
7
|
+
@auth_type = auth_type
|
8
|
+
end
|
9
|
+
|
10
|
+
def auth_string
|
11
|
+
raise NotImplementedError, 'Subclasses must implement this method'
|
12
|
+
end
|
13
|
+
|
14
|
+
def requires_authentication
|
15
|
+
raise NotImplementedError, 'Subclasses must implement this method'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require_relative 'auth_strategy'
|
2
|
+
require_relative './../credential/auth_type'
|
3
|
+
require 'jwt'
|
4
|
+
module Twilio
|
5
|
+
module REST
|
6
|
+
class TokenAuthStrategy < AuthStrategy
|
7
|
+
attr_accessor :token_manager, :token, :lock
|
8
|
+
|
9
|
+
def initialize(token_manager)
|
10
|
+
super(AuthType::ORGS_TOKEN)
|
11
|
+
@token = nil
|
12
|
+
@token_manager = token_manager
|
13
|
+
@lock = Mutex.new
|
14
|
+
end
|
15
|
+
|
16
|
+
def auth_string
|
17
|
+
token = fetch_token
|
18
|
+
"Bearer #{token}"
|
19
|
+
end
|
20
|
+
|
21
|
+
def fetch_token
|
22
|
+
@lock.synchronize do
|
23
|
+
@token = @token_manager.fetch_access_token if @token.nil? || token_expired? || @token == ''
|
24
|
+
return @token
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def token_expired?
|
29
|
+
decoded_token = ::JWT.decode(@token, nil, false)
|
30
|
+
exp = decoded_token[0]['exp']
|
31
|
+
Time.at(exp) < Time.now
|
32
|
+
end
|
33
|
+
|
34
|
+
def requires_authentication
|
35
|
+
true
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -6,7 +6,7 @@ module Twilio
|
|
6
6
|
# rubocop:enable Style/ClassVars
|
7
7
|
|
8
8
|
attr_accessor :http_client, :username, :password, :account_sid, :auth_token, :region, :edge, :logger,
|
9
|
-
:user_agent_extensions
|
9
|
+
:user_agent_extensions, :credentials
|
10
10
|
|
11
11
|
# rubocop:disable Metrics/ParameterLists
|
12
12
|
def initialize(username = nil, password = nil, account_sid = nil, region = nil, http_client = nil, logger = nil,
|
@@ -22,6 +22,11 @@ module Twilio
|
|
22
22
|
@logger = logger || Twilio.logger
|
23
23
|
@user_agent_extensions = user_agent_extensions || []
|
24
24
|
end
|
25
|
+
|
26
|
+
def credential_provider(credential_provider = nil)
|
27
|
+
@credentials = credential_provider
|
28
|
+
self
|
29
|
+
end
|
25
30
|
# rubocop:enable Metrics/ParameterLists
|
26
31
|
|
27
32
|
##
|
@@ -47,6 +52,8 @@ module Twilio
|
|
47
52
|
@logger.debug("Request Params:#{params}")
|
48
53
|
end
|
49
54
|
|
55
|
+
auth = @credentials.to_auth_strategy.auth_string unless @credentials.nil?
|
56
|
+
|
50
57
|
response = @http_client.request(
|
51
58
|
host,
|
52
59
|
port,
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Twilio
|
4
|
+
module REST
|
5
|
+
class AuthType
|
6
|
+
BASIC = 'basic'
|
7
|
+
ORGS_TOKEN = 'orgs_token'
|
8
|
+
API_KEY = 'api_key'
|
9
|
+
NOAUTH = 'noauth'
|
10
|
+
CLIENT_CREDENTIALS = 'client_credentials'
|
11
|
+
|
12
|
+
def to_s
|
13
|
+
name
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require_relative 'credential_provider'
|
2
|
+
require_relative 'auth_type'
|
3
|
+
require_relative './../http/client_token_manager'
|
4
|
+
require_relative './../auth_strategy/token_auth_strategy'
|
5
|
+
module Twilio
|
6
|
+
module REST
|
7
|
+
class ClientCredentialProvider < CredentialProvider
|
8
|
+
attr_accessor :grant_type, :client_id, :client_secret, :orgs_token, :auth_strategy
|
9
|
+
|
10
|
+
def initialize(client_id, client_secret, orgs_token = nil)
|
11
|
+
super(AuthType::ORGS_TOKEN)
|
12
|
+
raise ArgumentError, 'client_id and client_secret are required' if client_id.nil? || client_secret.nil?
|
13
|
+
|
14
|
+
@grant_type = 'client_credentials'
|
15
|
+
@client_id = client_id
|
16
|
+
@client_secret = client_secret
|
17
|
+
@orgs_token = orgs_token
|
18
|
+
@auth_strategy = nil
|
19
|
+
end
|
20
|
+
|
21
|
+
def to_auth_strategy
|
22
|
+
@orgs_token = ClientTokenManager.new(@grant_type, @client_id, @client_secret) if @orgs_token.nil?
|
23
|
+
@auth_strategy = TokenAuthStrategy.new(@orgs_token) if @auth_strategy.nil?
|
24
|
+
@auth_strategy
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'credential_provider'
|
4
|
+
require_relative 'auth_type'
|
5
|
+
require_relative './../http/org_token_manager'
|
6
|
+
require_relative './../auth_strategy/token_auth_strategy'
|
7
|
+
module Twilio
|
8
|
+
module REST
|
9
|
+
class OrgsCredentialProvider < CredentialProvider
|
10
|
+
attr_accessor :grant_type, :client_id, :client_secret, :orgs_token, :auth_strategy
|
11
|
+
|
12
|
+
def initialize(client_id, client_secret, orgs_token = nil)
|
13
|
+
super(AuthType::ORGS_TOKEN)
|
14
|
+
raise ArgumentError, 'client_id and client_secret are required' if client_id.nil? || client_secret.nil?
|
15
|
+
|
16
|
+
@grant_type = 'client_credentials'
|
17
|
+
@client_id = client_id
|
18
|
+
@client_secret = client_secret
|
19
|
+
@orgs_token = orgs_token
|
20
|
+
@auth_strategy = nil
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_auth_strategy
|
24
|
+
@orgs_token = OrgTokenManager.new(@grant_type, @client_id, @client_secret) if @orgs_token.nil?
|
25
|
+
@auth_strategy = TokenAuthStrategy.new(@orgs_token) if @auth_strategy.nil?
|
26
|
+
@auth_strategy
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Twilio
|
2
|
+
module REST
|
3
|
+
class ClientTokenManager
|
4
|
+
attr_accessor :grant_type, :client_id, :client_secret, :code, :redirect_uri, :audience, :refresh_token, :scope
|
5
|
+
|
6
|
+
def initialize(grant_type, client_id, client_secret, code = nil, redirect_uri = nil, audience = nil,
|
7
|
+
refresh_token = nil, scope = nil)
|
8
|
+
raise ArgumentError, 'client_id and client_secret are required' if client_id.nil? || client_secret.nil?
|
9
|
+
|
10
|
+
@grant_type = grant_type
|
11
|
+
@client_id = client_id
|
12
|
+
@client_secret = client_secret
|
13
|
+
@code = code
|
14
|
+
@redirect_uri = redirect_uri
|
15
|
+
@audience = audience
|
16
|
+
@refresh_token = refresh_token
|
17
|
+
@scope = scope
|
18
|
+
end
|
19
|
+
|
20
|
+
def fetch_access_token
|
21
|
+
client = Twilio::REST::Client.new
|
22
|
+
token_instance = client.preview_iam.v1.token.create(grant_type: @grant_type,
|
23
|
+
client_id: @client_id, client_secret: @client_secret)
|
24
|
+
token_instance.access_token
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'faraday'
|
4
|
+
require 'faraday/middleware'
|
4
5
|
|
5
6
|
module Twilio
|
6
7
|
module HTTP
|
@@ -79,9 +80,17 @@ module Twilio
|
|
79
80
|
end
|
80
81
|
|
81
82
|
def request(host, port, method, url, params = {}, data = {}, headers = {}, auth = nil, timeout = nil)
|
83
|
+
headers['Authorization'] = auth if jwt_token?(auth)
|
82
84
|
request = Twilio::Request.new(host, port, method, url, params, data, headers, auth, timeout)
|
83
85
|
_request(request)
|
84
86
|
end
|
87
|
+
|
88
|
+
def jwt_token?(auth)
|
89
|
+
return false unless auth.is_a?(String)
|
90
|
+
|
91
|
+
parts = auth.split('.')
|
92
|
+
parts.length == 3
|
93
|
+
end
|
85
94
|
end
|
86
95
|
end
|
87
96
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Twilio
|
2
|
+
module REST
|
3
|
+
class OrgTokenManager
|
4
|
+
attr_accessor :grant_type, :client_id, :client_secret, :code, :redirect_uri, :audience, :refresh_token, :scope
|
5
|
+
|
6
|
+
def initialize(grant_type, client_id, client_secret, code = nil, redirect_uri = nil, audience = nil,
|
7
|
+
refresh_token = nil, scope = nil)
|
8
|
+
raise ArgumentError, 'client_id and client_secret are required' if client_id.nil? || client_secret.nil?
|
9
|
+
|
10
|
+
@grant_type = grant_type
|
11
|
+
@client_id = client_id
|
12
|
+
@client_secret = client_secret
|
13
|
+
@code = code
|
14
|
+
@redirect_uri = redirect_uri
|
15
|
+
@audience = audience
|
16
|
+
@refresh_token = refresh_token
|
17
|
+
@scope = scope
|
18
|
+
end
|
19
|
+
|
20
|
+
def fetch_access_token
|
21
|
+
client = Twilio::REST::Client.new
|
22
|
+
token_instance = client.preview_iam.v1.token.create(grant_type: @grant_type,
|
23
|
+
client_id: @client_id, client_secret: @client_secret)
|
24
|
+
token_instance.access_token
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -52,6 +52,10 @@ module Twilio
|
|
52
52
|
|
53
53
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
54
54
|
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
55
59
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
56
60
|
AwsInstance.new(
|
57
61
|
@version,
|
@@ -125,8 +129,11 @@ module Twilio
|
|
125
129
|
'Page' => page_number,
|
126
130
|
'PageSize' => page_size,
|
127
131
|
})
|
132
|
+
headers = Twilio::Values.of({})
|
133
|
+
|
134
|
+
|
128
135
|
|
129
|
-
response = @version.page('GET', @uri, params: params)
|
136
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
130
137
|
|
131
138
|
AwsPage.new(@version, response, @solution)
|
132
139
|
end
|
@@ -175,6 +182,8 @@ module Twilio
|
|
175
182
|
|
176
183
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
177
184
|
|
185
|
+
|
186
|
+
|
178
187
|
@version.delete('DELETE', @uri, headers: headers)
|
179
188
|
end
|
180
189
|
|
@@ -185,6 +194,10 @@ module Twilio
|
|
185
194
|
|
186
195
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
187
196
|
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
188
201
|
payload = @version.fetch('GET', @uri, headers: headers)
|
189
202
|
AwsInstance.new(
|
190
203
|
@version,
|
@@ -207,6 +220,10 @@ module Twilio
|
|
207
220
|
|
208
221
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
209
222
|
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
210
227
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
211
228
|
AwsInstance.new(
|
212
229
|
@version,
|
@@ -52,6 +52,10 @@ module Twilio
|
|
52
52
|
|
53
53
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
54
54
|
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
55
59
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
56
60
|
PublicKeyInstance.new(
|
57
61
|
@version,
|
@@ -125,8 +129,11 @@ module Twilio
|
|
125
129
|
'Page' => page_number,
|
126
130
|
'PageSize' => page_size,
|
127
131
|
})
|
132
|
+
headers = Twilio::Values.of({})
|
133
|
+
|
134
|
+
|
128
135
|
|
129
|
-
response = @version.page('GET', @uri, params: params)
|
136
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
130
137
|
|
131
138
|
PublicKeyPage.new(@version, response, @solution)
|
132
139
|
end
|
@@ -175,6 +182,8 @@ module Twilio
|
|
175
182
|
|
176
183
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
177
184
|
|
185
|
+
|
186
|
+
|
178
187
|
@version.delete('DELETE', @uri, headers: headers)
|
179
188
|
end
|
180
189
|
|
@@ -185,6 +194,10 @@ module Twilio
|
|
185
194
|
|
186
195
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
187
196
|
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
188
201
|
payload = @version.fetch('GET', @uri, headers: headers)
|
189
202
|
PublicKeyInstance.new(
|
190
203
|
@version,
|
@@ -207,6 +220,10 @@ module Twilio
|
|
207
220
|
|
208
221
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
209
222
|
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
210
227
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
211
228
|
PublicKeyInstance.new(
|
212
229
|
@version,
|
@@ -44,6 +44,10 @@ module Twilio
|
|
44
44
|
|
45
45
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
46
46
|
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
47
51
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
48
52
|
SafelistInstance.new(
|
49
53
|
@version,
|
@@ -64,6 +68,8 @@ module Twilio
|
|
64
68
|
})
|
65
69
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
66
70
|
|
71
|
+
|
72
|
+
|
67
73
|
@version.delete('DELETE', @uri, params: params, headers: headers)
|
68
74
|
end
|
69
75
|
|
@@ -80,6 +86,10 @@ module Twilio
|
|
80
86
|
})
|
81
87
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
82
88
|
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
83
93
|
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
84
94
|
SafelistInstance.new(
|
85
95
|
@version,
|