twilio-ruby 6.8.0 → 7.10.7
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 +5 -5
- data/.dockerignore +1 -1
- data/.github/ISSUE_TEMPLATE/bug_report.yml +69 -0
- data/.github/workflows/test-and-deploy.yml +17 -8
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -0
- data/CHANGES.md +1303 -1
- data/Dockerfile +3 -2
- data/Gemfile +5 -0
- data/Makefile +4 -1
- data/README.md +7 -2
- data/UPGRADE.md +11 -0
- 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 +12 -2
- 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/request.rb +8 -1
- data/lib/twilio-ruby/framework/rest/api_v1_version.rb +22 -0
- data/lib/twilio-ruby/framework/rest/domain.rb +0 -1
- data/lib/twilio-ruby/framework/rest/error.rb +27 -0
- data/lib/twilio-ruby/framework/rest/page.rb +1 -0
- data/lib/twilio-ruby/framework/rest/page_metadata.rb +83 -0
- data/lib/twilio-ruby/framework/rest/resource.rb +16 -0
- data/lib/twilio-ruby/framework/rest/token_page.rb +73 -0
- data/lib/twilio-ruby/framework/rest/version.rb +91 -4
- data/lib/twilio-ruby/http/client_token_manager.rb +31 -0
- data/lib/twilio-ruby/http/http_client.rb +22 -5
- data/lib/twilio-ruby/http/org_token_manager.rb +31 -0
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +143 -1
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +64 -0
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +285 -0
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +177 -10
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +168 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +29 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +385 -42
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +427 -57
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +183 -20
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +183 -6
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +96 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +192 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +283 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +330 -19
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +1004 -207
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +1010 -213
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +559 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +109 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +186 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +550 -120
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +572 -86
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +263 -12
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +274 -36
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +285 -24
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +185 -8
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +250 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +507 -79
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +105 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +215 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +421 -52
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +191 -6
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +254 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +232 -11
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +299 -15
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +343 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +232 -8
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +229 -10
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +254 -19
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +297 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +398 -48
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +311 -18
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +208 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +335 -27
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +124 -7
- data/lib/twilio-ruby/rest/api/v2010/account.rb +271 -13
- data/lib/twilio-ruby/rest/api/v2010.rb +1 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +431 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +296 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +927 -0
- data/lib/twilio-ruby/rest/{microvisor/v1/app.rb → assistants/v1/knowledge/chunk.rb} +145 -169
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +871 -0
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +364 -0
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +360 -0
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +501 -0
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +847 -0
- data/lib/twilio-ruby/rest/assistants/v1.rb +104 -0
- data/lib/twilio-ruby/rest/assistants.rb +6 -0
- data/lib/twilio-ruby/rest/{autopilot_base.rb → assistants_base.rb} +6 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +183 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +163 -13
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +170 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +144 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +195 -8
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/chat/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +266 -16
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/chat/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +162 -7
- data/lib/twilio-ruby/rest/chat/v3.rb +6 -0
- data/lib/twilio-ruby/rest/client.rb +26 -11
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +280 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +144 -3
- data/lib/twilio-ruby/rest/content/v1/content.rb +1577 -10
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1.rb +1 -0
- data/lib/twilio-ruby/rest/content/v2/content.rb +433 -0
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +426 -0
- data/lib/twilio-ruby/rest/content/v2.rb +46 -0
- data/lib/twilio-ruby/rest/content_base.rb +6 -1
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +373 -39
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +206 -15
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +198 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +184 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +360 -37
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +367 -40
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +334 -26
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +421 -76
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +392 -0
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +341 -30
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +295 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +217 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +245 -28
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +200 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +216 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +185 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +363 -37
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +370 -40
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +337 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +425 -77
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +399 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +262 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +321 -24
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +283 -27
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +260 -14
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +318 -24
- data/lib/twilio-ruby/rest/conversations/v1.rb +12 -0
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +507 -0
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +698 -0
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +1208 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +1365 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +369 -0
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +745 -0
- data/lib/twilio-ruby/rest/conversations/v2.rb +142 -0
- data/lib/twilio-ruby/rest/conversations_base.rb +6 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +198 -8
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +183 -8
- data/lib/twilio-ruby/rest/events/v1/schema.rb +144 -3
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +96 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +104 -2
- data/lib/twilio-ruby/rest/events/v1/sink.rb +299 -16
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +298 -19
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +297 -22
- data/lib/twilio-ruby/rest/events/v1.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +288 -31
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +282 -18
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +216 -3
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +433 -60
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +172 -16
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +106 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +331 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +266 -18
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +305 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +109 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +143 -7
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +251 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +548 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +257 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +275 -5
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +629 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +708 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +390 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +572 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +607 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +376 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +547 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +400 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +327 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +312 -19
- data/lib/twilio-ruby/rest/flex_api/v1.rb +137 -0
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +515 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +125 -5
- data/lib/twilio-ruby/rest/flex_api/v2.rb +43 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +200 -12
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +1 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +471 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +328 -0
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +284 -0
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +647 -0
- data/lib/twilio-ruby/rest/iam/v1/role_permission.rb +327 -0
- data/lib/twilio-ruby/rest/iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +99 -0
- data/lib/twilio-ruby/rest/iam.rb +6 -0
- data/lib/twilio-ruby/rest/iam_base.rb +33 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +216 -19
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +162 -13
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +108 -9
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +106 -5
- data/lib/twilio-ruby/rest/insights/v1/call.rb +144 -1
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +267 -26
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +202 -10
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +202 -6
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +183 -8
- data/lib/twilio-ruby/rest/insights/v1/room.rb +194 -8
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +201 -10
- data/lib/twilio-ruby/rest/insights/v1.rb +3 -0
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +579 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +650 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +941 -0
- data/lib/twilio-ruby/rest/insights/v2.rb +82 -0
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +227 -0
- data/lib/twilio-ruby/rest/insights/v3/query.rb +394 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +46 -0
- data/lib/twilio-ruby/rest/insights_base.rb +11 -1
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +728 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +380 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +337 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +539 -0
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +392 -50
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +152 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +207 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +124 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +333 -30
- data/lib/twilio-ruby/rest/intelligence/v2.rb +125 -0
- data/lib/twilio-ruby/rest/intelligence/v3/configuration.rb +1073 -0
- data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +602 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator.rb +784 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator_result.rb +622 -0
- data/lib/twilio-ruby/rest/intelligence/v3/version.rb +556 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +120 -0
- data/lib/twilio-ruby/rest/intelligence_base.rb +6 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +262 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +325 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +865 -0
- data/lib/twilio-ruby/rest/{preview/sync.rb → knowledge/v1.rb} +17 -16
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +306 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +714 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb +739 -0
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +376 -0
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +355 -0
- data/lib/twilio-ruby/rest/knowledge/v2.rb +145 -0
- data/lib/twilio-ruby/rest/knowledge.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge_base.rb +43 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +170 -12
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -0
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +501 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +605 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +252 -44
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +351 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +229 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +99 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +483 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +509 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +563 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +252 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +743 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +342 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +511 -0
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +235 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +94 -0
- data/lib/twilio-ruby/rest/marketplace.rb +6 -0
- data/lib/twilio-ruby/rest/marketplace_base.rb +38 -0
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +362 -0
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +798 -0
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +843 -0
- data/lib/twilio-ruby/rest/memory/v1/event.rb +320 -0
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +710 -0
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +442 -0
- data/lib/twilio-ruby/rest/memory/v1/import.rb +574 -0
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +250 -0
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +786 -0
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +376 -0
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +721 -0
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +366 -0
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +349 -0
- data/lib/twilio-ruby/rest/memory/v1/store.rb +746 -0
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +336 -0
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +904 -0
- data/lib/twilio-ruby/rest/memory/v1.rb +475 -0
- data/lib/twilio-ruby/rest/memory.rb +6 -0
- data/lib/twilio-ruby/rest/{media_base.rb → memory_base.rb} +6 -6
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +96 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +229 -11
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +296 -17
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +151 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +210 -7
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +200 -12
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +344 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +113 -3
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +170 -4
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +379 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +282 -9
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +616 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +543 -30
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +103 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +453 -63
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +870 -83
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +95 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +46 -1
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +1017 -0
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +386 -0
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +237 -0
- data/lib/twilio-ruby/rest/messaging/v2.rb +72 -0
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +247 -0
- data/lib/twilio-ruby/rest/messaging/v3.rb +40 -0
- data/lib/twilio-ruby/rest/messaging_base.rb +11 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +188 -6
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +195 -7
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +336 -30
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +282 -17
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +173 -20
- data/lib/twilio-ruby/rest/notify/v1/service.rb +410 -57
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +190 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +221 -0
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +251 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +375 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +616 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +485 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +168 -26
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +242 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +301 -0
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +333 -0
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +403 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +252 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +125 -12
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +715 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +110 -5
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +270 -16
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +198 -5
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +430 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +448 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +142 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +215 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +248 -9
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +104 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +376 -30
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +218 -11
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +307 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +64 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +35 -0
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +484 -0
- data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
- data/lib/twilio-ruby/rest/numbers_base.rb +5 -0
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +149 -27
- data/lib/twilio-ruby/rest/oauth/v1.rb +4 -22
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +311 -0
- data/lib/twilio-ruby/rest/oauth/v2.rb +46 -0
- data/lib/twilio-ruby/rest/oauth.rb +2 -29
- data/lib/twilio-ruby/rest/oauth_base.rb +6 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +112 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +316 -30
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +406 -48
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +183 -8
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +182 -8
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +225 -11
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +304 -19
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +253 -16
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +328 -25
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +157 -7
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +308 -41
- data/lib/twilio-ruby/rest/preview/wireless.rb +3 -0
- data/lib/twilio-ruby/rest/preview.rb +1 -20
- data/lib/twilio-ruby/rest/preview_base.rb +0 -15
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/preview_iam/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +476 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +603 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +981 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +413 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +50 -0
- data/lib/twilio-ruby/rest/preview_iam.rb +9 -0
- data/lib/twilio-ruby/rest/{microvisor_base.rb → preview_iam_base.rb} +6 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +144 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +22 -4
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v2.rb +13 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +298 -16
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +210 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +231 -11
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +262 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +320 -23
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +350 -62
- data/lib/twilio-ruby/rest/proxy/v1.rb +1 -0
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2.rb +3 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +145 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +260 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +231 -10
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +191 -9
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +302 -17
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +252 -12
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +146 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +309 -21
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +256 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +302 -14
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +207 -7
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +333 -16
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +190 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +185 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +336 -21
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +115 -5
- data/lib/twilio-ruby/rest/studio/v2.rb +1 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +243 -17
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +326 -33
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +249 -15
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +188 -8
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +248 -11
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +266 -14
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +106 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +297 -24
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +239 -13
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +118 -5
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +306 -18
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +333 -25
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +337 -26
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +105 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +294 -13
- data/lib/twilio-ruby/rest/sync/v1/service.rb +341 -30
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +298 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +205 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +505 -117
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +411 -41
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +303 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +258 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +154 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +114 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +351 -27
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +493 -113
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +232 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +168 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +167 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +182 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +336 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +153 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +333 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +339 -29
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +326 -24
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +249 -10
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +190 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +357 -33
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +213 -5
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +656 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +474 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +327 -21
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +345 -39
- data/lib/twilio-ruby/rest/trusthub/v1.rb +31 -1
- data/lib/twilio-ruby/rest/verify/v2/form.rb +144 -3
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +208 -6
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +197 -6
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +402 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +106 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +299 -18
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +292 -26
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +164 -15
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +248 -9
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +479 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +387 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +357 -0
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +302 -15
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +301 -23
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +127 -7
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +332 -30
- data/lib/twilio-ruby/rest/verify/v2/service.rb +667 -65
- data/lib/twilio-ruby/rest/verify/v2/template.rb +104 -5
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +202 -10
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +179 -16
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +286 -17
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +376 -39
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/recording.rb +220 -7
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +145 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +138 -3
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +233 -9
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +136 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +216 -7
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +665 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +379 -39
- data/lib/twilio-ruby/rest/video/v1.rb +4 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +137 -3
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +368 -39
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +326 -24
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +287 -12
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +103 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +102 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +194 -8
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +183 -6
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +64 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +295 -14
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +291 -13
- data/lib/twilio-ruby/rest/voice/v1.rb +10 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +514 -0
- data/lib/twilio-ruby/rest/voice/v3.rb +50 -0
- data/lib/twilio-ruby/rest/voice_base.rb +6 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +278 -15
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +338 -24
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +102 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +343 -44
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +403 -24
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +4 -3
- metadata +193 -88
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -264
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -328
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
- data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
- data/lib/twilio-ruby/rest/autopilot.rb +0 -22
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -420
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -404
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -252
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -432
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
- data/lib/twilio-ruby/rest/media.rb +0 -35
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -358
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -351
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -208
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -374
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -367
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -427
- data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
- data/lib/twilio-ruby/rest/microvisor.rb +0 -24
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -229
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +0 -185
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -417
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -401
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -456
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -414
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -504
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +0 -49
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -449
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -445
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -448
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -505
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
- data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -406
|
@@ -21,12 +21,14 @@ module Twilio
|
|
|
21
21
|
class ConferenceContext < InstanceContext
|
|
22
22
|
|
|
23
23
|
class ParticipantList < ListResource
|
|
24
|
+
|
|
24
25
|
##
|
|
25
26
|
# Initialize the ParticipantList
|
|
26
27
|
# @param [Version] version Version that contains the resource
|
|
27
28
|
# @return [ParticipantList] ParticipantList
|
|
28
29
|
def initialize(version, account_sid: nil, conference_sid: nil)
|
|
29
30
|
super(version)
|
|
31
|
+
|
|
30
32
|
# Path Solution
|
|
31
33
|
@solution = { account_sid: account_sid, conference_sid: conference_sid }
|
|
32
34
|
@uri = "/Accounts/#{@solution[:account_sid]}/Conferences/#{@solution[:conference_sid]}/Participants.json"
|
|
@@ -35,7 +37,7 @@ module Twilio
|
|
|
35
37
|
##
|
|
36
38
|
# Create the ParticipantInstance
|
|
37
39
|
# @param [String] from The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.
|
|
38
|
-
# @param [String] to The phone number, SIP address,
|
|
40
|
+
# @param [String] to The phone number, SIP address, Client, TwiML App identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client identifiers are formatted `client:name`. TwiML App identifiers are formatted `app:<APP_SID>`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
|
|
39
41
|
# @param [String] status_callback The URL we should call using the `status_callback_method` to send status information to your application.
|
|
40
42
|
# @param [String] status_callback_method The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`.
|
|
41
43
|
# @param [Array[String]] status_callback_event The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`.
|
|
@@ -46,7 +48,7 @@ module Twilio
|
|
|
46
48
|
# @param [String] beep Whether to play a notification beep to the conference when the participant joins. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`.
|
|
47
49
|
# @param [Boolean] start_conference_on_enter Whether to start the conference when the participant joins, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference.
|
|
48
50
|
# @param [Boolean] end_conference_on_exit Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
|
|
49
|
-
# @param [String] wait_url The URL
|
|
51
|
+
# @param [String] wait_url The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
|
|
50
52
|
# @param [String] wait_method The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
|
|
51
53
|
# @param [Boolean] early_media Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`.
|
|
52
54
|
# @param [String] max_participants The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`.
|
|
@@ -60,7 +62,7 @@ module Twilio
|
|
|
60
62
|
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
|
61
63
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
|
62
64
|
# @param [String] sip_auth_password The SIP password for authentication.
|
|
63
|
-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
|
65
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
|
64
66
|
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
|
65
67
|
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
|
66
68
|
# @param [Array[String]] recording_status_callback_event The recording state changes that should generate a call to `recording_status_callback`. Can be: `started`, `in-progress`, `paused`, `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`.
|
|
@@ -72,6 +74,7 @@ module Twilio
|
|
|
72
74
|
# @param [String] caller_id The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `callerId` must also be a phone number. If `to` is sip address, this value of `callerId` should be a username portion to be used to populate the From header that is passed to the SIP endpoint.
|
|
73
75
|
# @param [String] call_reason The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta)
|
|
74
76
|
# @param [String] recording_track The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is sent from Twilio. `both` records the audio that is received and sent by Twilio.
|
|
77
|
+
# @param [String] recording_configuration_id The identifier of the configuration to be used when creating and processing the recording
|
|
75
78
|
# @param [String] time_limit The maximum duration of the call in seconds. Constraints depend on account and configuration.
|
|
76
79
|
# @param [String] machine_detection Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection).
|
|
77
80
|
# @param [String] machine_detection_timeout The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds.
|
|
@@ -82,56 +85,61 @@ module Twilio
|
|
|
82
85
|
# @param [String] amd_status_callback_method The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
|
|
83
86
|
# @param [String] trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
|
|
84
87
|
# @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
|
|
88
|
+
# @param [String] client_notification_url The URL that we should use to deliver `push call notification`.
|
|
89
|
+
# @param [String] caller_display_name The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address.
|
|
85
90
|
# @return [ParticipantInstance] Created ParticipantInstance
|
|
86
91
|
def create(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
92
|
+
from: nil,
|
|
93
|
+
to: nil,
|
|
94
|
+
status_callback: :unset,
|
|
95
|
+
status_callback_method: :unset,
|
|
96
|
+
status_callback_event: :unset,
|
|
97
|
+
label: :unset,
|
|
98
|
+
timeout: :unset,
|
|
99
|
+
record: :unset,
|
|
100
|
+
muted: :unset,
|
|
101
|
+
beep: :unset,
|
|
102
|
+
start_conference_on_enter: :unset,
|
|
103
|
+
end_conference_on_exit: :unset,
|
|
104
|
+
wait_url: :unset,
|
|
105
|
+
wait_method: :unset,
|
|
106
|
+
early_media: :unset,
|
|
107
|
+
max_participants: :unset,
|
|
108
|
+
conference_record: :unset,
|
|
109
|
+
conference_trim: :unset,
|
|
110
|
+
conference_status_callback: :unset,
|
|
111
|
+
conference_status_callback_method: :unset,
|
|
112
|
+
conference_status_callback_event: :unset,
|
|
113
|
+
recording_channels: :unset,
|
|
114
|
+
recording_status_callback: :unset,
|
|
115
|
+
recording_status_callback_method: :unset,
|
|
116
|
+
sip_auth_username: :unset,
|
|
117
|
+
sip_auth_password: :unset,
|
|
118
|
+
region: :unset,
|
|
119
|
+
conference_recording_status_callback: :unset,
|
|
120
|
+
conference_recording_status_callback_method: :unset,
|
|
121
|
+
recording_status_callback_event: :unset,
|
|
122
|
+
conference_recording_status_callback_event: :unset,
|
|
123
|
+
coaching: :unset,
|
|
124
|
+
call_sid_to_coach: :unset,
|
|
125
|
+
jitter_buffer_size: :unset,
|
|
126
|
+
byoc: :unset,
|
|
127
|
+
caller_id: :unset,
|
|
128
|
+
call_reason: :unset,
|
|
129
|
+
recording_track: :unset,
|
|
130
|
+
recording_configuration_id: :unset,
|
|
131
|
+
time_limit: :unset,
|
|
132
|
+
machine_detection: :unset,
|
|
133
|
+
machine_detection_timeout: :unset,
|
|
134
|
+
machine_detection_speech_threshold: :unset,
|
|
135
|
+
machine_detection_speech_end_threshold: :unset,
|
|
136
|
+
machine_detection_silence_timeout: :unset,
|
|
137
|
+
amd_status_callback: :unset,
|
|
138
|
+
amd_status_callback_method: :unset,
|
|
139
|
+
trim: :unset,
|
|
140
|
+
call_token: :unset,
|
|
141
|
+
client_notification_url: :unset,
|
|
142
|
+
caller_display_name: :unset
|
|
135
143
|
)
|
|
136
144
|
|
|
137
145
|
data = Twilio::Values.of({
|
|
@@ -173,6 +181,7 @@ module Twilio
|
|
|
173
181
|
'CallerId' => caller_id,
|
|
174
182
|
'CallReason' => call_reason,
|
|
175
183
|
'RecordingTrack' => recording_track,
|
|
184
|
+
'RecordingConfigurationId' => recording_configuration_id,
|
|
176
185
|
'TimeLimit' => time_limit,
|
|
177
186
|
'MachineDetection' => machine_detection,
|
|
178
187
|
'MachineDetectionTimeout' => machine_detection_timeout,
|
|
@@ -183,9 +192,17 @@ module Twilio
|
|
|
183
192
|
'AmdStatusCallbackMethod' => amd_status_callback_method,
|
|
184
193
|
'Trim' => trim,
|
|
185
194
|
'CallToken' => call_token,
|
|
195
|
+
'ClientNotificationUrl' => client_notification_url,
|
|
196
|
+
'CallerDisplayName' => caller_display_name,
|
|
186
197
|
})
|
|
187
198
|
|
|
188
|
-
|
|
199
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
189
206
|
ParticipantInstance.new(
|
|
190
207
|
@version,
|
|
191
208
|
payload,
|
|
@@ -194,6 +211,189 @@ module Twilio
|
|
|
194
211
|
)
|
|
195
212
|
end
|
|
196
213
|
|
|
214
|
+
##
|
|
215
|
+
# Create the ParticipantInstanceMetadata
|
|
216
|
+
# @param [String] from The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.
|
|
217
|
+
# @param [String] to The phone number, SIP address, Client, TwiML App identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client identifiers are formatted `client:name`. TwiML App identifiers are formatted `app:<APP_SID>`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
|
|
218
|
+
# @param [String] status_callback The URL we should call using the `status_callback_method` to send status information to your application.
|
|
219
|
+
# @param [String] status_callback_method The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`.
|
|
220
|
+
# @param [Array[String]] status_callback_event The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`.
|
|
221
|
+
# @param [String] label A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant.
|
|
222
|
+
# @param [String] timeout The number of seconds that we should allow the phone to ring before assuming there is no answer. Can be an integer between `5` and `600`, inclusive. The default value is `60`. We always add a 5-second timeout buffer to outgoing calls, so value of 10 would result in an actual timeout that was closer to 15 seconds.
|
|
223
|
+
# @param [Boolean] record Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`.
|
|
224
|
+
# @param [Boolean] muted Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`.
|
|
225
|
+
# @param [String] beep Whether to play a notification beep to the conference when the participant joins. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`.
|
|
226
|
+
# @param [Boolean] start_conference_on_enter Whether to start the conference when the participant joins, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference.
|
|
227
|
+
# @param [Boolean] end_conference_on_exit Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
|
|
228
|
+
# @param [String] wait_url The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
|
|
229
|
+
# @param [String] wait_method The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
|
|
230
|
+
# @param [Boolean] early_media Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`.
|
|
231
|
+
# @param [String] max_participants The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`.
|
|
232
|
+
# @param [String] conference_record Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`.
|
|
233
|
+
# @param [String] conference_trim Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`.
|
|
234
|
+
# @param [String] conference_status_callback The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored.
|
|
235
|
+
# @param [String] conference_status_callback_method The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
|
236
|
+
# @param [Array[String]] conference_status_callback_event The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple values with a space. Defaults to `start end`.
|
|
237
|
+
# @param [String] recording_channels The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`.
|
|
238
|
+
# @param [String] recording_status_callback The URL that we should call using the `recording_status_callback_method` when the recording status changes.
|
|
239
|
+
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
|
240
|
+
# @param [String] sip_auth_username The SIP username used for authentication.
|
|
241
|
+
# @param [String] sip_auth_password The SIP password for authentication.
|
|
242
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
|
243
|
+
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
|
244
|
+
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
|
245
|
+
# @param [Array[String]] recording_status_callback_event The recording state changes that should generate a call to `recording_status_callback`. Can be: `started`, `in-progress`, `paused`, `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`.
|
|
246
|
+
# @param [Array[String]] conference_recording_status_callback_event The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`
|
|
247
|
+
# @param [Boolean] coaching Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined.
|
|
248
|
+
# @param [String] call_sid_to_coach The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`.
|
|
249
|
+
# @param [String] jitter_buffer_size Jitter buffer size for the connecting participant. Twilio will use this setting to apply Jitter Buffer before participant's audio is mixed into the conference. Can be: `off`, `small`, `medium`, and `large`. Default to `large`.
|
|
250
|
+
# @param [String] byoc The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta)
|
|
251
|
+
# @param [String] caller_id The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `callerId` must also be a phone number. If `to` is sip address, this value of `callerId` should be a username portion to be used to populate the From header that is passed to the SIP endpoint.
|
|
252
|
+
# @param [String] call_reason The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta)
|
|
253
|
+
# @param [String] recording_track The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is sent from Twilio. `both` records the audio that is received and sent by Twilio.
|
|
254
|
+
# @param [String] recording_configuration_id The identifier of the configuration to be used when creating and processing the recording
|
|
255
|
+
# @param [String] time_limit The maximum duration of the call in seconds. Constraints depend on account and configuration.
|
|
256
|
+
# @param [String] machine_detection Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection).
|
|
257
|
+
# @param [String] machine_detection_timeout The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds.
|
|
258
|
+
# @param [String] machine_detection_speech_threshold The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400.
|
|
259
|
+
# @param [String] machine_detection_speech_end_threshold The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200.
|
|
260
|
+
# @param [String] machine_detection_silence_timeout The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000.
|
|
261
|
+
# @param [String] amd_status_callback The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
|
|
262
|
+
# @param [String] amd_status_callback_method The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
|
|
263
|
+
# @param [String] trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
|
|
264
|
+
# @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
|
|
265
|
+
# @param [String] client_notification_url The URL that we should use to deliver `push call notification`.
|
|
266
|
+
# @param [String] caller_display_name The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address.
|
|
267
|
+
# @return [ParticipantInstance] Created ParticipantInstance
|
|
268
|
+
def create_with_metadata(
|
|
269
|
+
from: nil,
|
|
270
|
+
to: nil,
|
|
271
|
+
status_callback: :unset,
|
|
272
|
+
status_callback_method: :unset,
|
|
273
|
+
status_callback_event: :unset,
|
|
274
|
+
label: :unset,
|
|
275
|
+
timeout: :unset,
|
|
276
|
+
record: :unset,
|
|
277
|
+
muted: :unset,
|
|
278
|
+
beep: :unset,
|
|
279
|
+
start_conference_on_enter: :unset,
|
|
280
|
+
end_conference_on_exit: :unset,
|
|
281
|
+
wait_url: :unset,
|
|
282
|
+
wait_method: :unset,
|
|
283
|
+
early_media: :unset,
|
|
284
|
+
max_participants: :unset,
|
|
285
|
+
conference_record: :unset,
|
|
286
|
+
conference_trim: :unset,
|
|
287
|
+
conference_status_callback: :unset,
|
|
288
|
+
conference_status_callback_method: :unset,
|
|
289
|
+
conference_status_callback_event: :unset,
|
|
290
|
+
recording_channels: :unset,
|
|
291
|
+
recording_status_callback: :unset,
|
|
292
|
+
recording_status_callback_method: :unset,
|
|
293
|
+
sip_auth_username: :unset,
|
|
294
|
+
sip_auth_password: :unset,
|
|
295
|
+
region: :unset,
|
|
296
|
+
conference_recording_status_callback: :unset,
|
|
297
|
+
conference_recording_status_callback_method: :unset,
|
|
298
|
+
recording_status_callback_event: :unset,
|
|
299
|
+
conference_recording_status_callback_event: :unset,
|
|
300
|
+
coaching: :unset,
|
|
301
|
+
call_sid_to_coach: :unset,
|
|
302
|
+
jitter_buffer_size: :unset,
|
|
303
|
+
byoc: :unset,
|
|
304
|
+
caller_id: :unset,
|
|
305
|
+
call_reason: :unset,
|
|
306
|
+
recording_track: :unset,
|
|
307
|
+
recording_configuration_id: :unset,
|
|
308
|
+
time_limit: :unset,
|
|
309
|
+
machine_detection: :unset,
|
|
310
|
+
machine_detection_timeout: :unset,
|
|
311
|
+
machine_detection_speech_threshold: :unset,
|
|
312
|
+
machine_detection_speech_end_threshold: :unset,
|
|
313
|
+
machine_detection_silence_timeout: :unset,
|
|
314
|
+
amd_status_callback: :unset,
|
|
315
|
+
amd_status_callback_method: :unset,
|
|
316
|
+
trim: :unset,
|
|
317
|
+
call_token: :unset,
|
|
318
|
+
client_notification_url: :unset,
|
|
319
|
+
caller_display_name: :unset
|
|
320
|
+
)
|
|
321
|
+
|
|
322
|
+
data = Twilio::Values.of({
|
|
323
|
+
'From' => from,
|
|
324
|
+
'To' => to,
|
|
325
|
+
'StatusCallback' => status_callback,
|
|
326
|
+
'StatusCallbackMethod' => status_callback_method,
|
|
327
|
+
'StatusCallbackEvent' => Twilio.serialize_list(status_callback_event) { |e| e },
|
|
328
|
+
'Label' => label,
|
|
329
|
+
'Timeout' => timeout,
|
|
330
|
+
'Record' => record,
|
|
331
|
+
'Muted' => muted,
|
|
332
|
+
'Beep' => beep,
|
|
333
|
+
'StartConferenceOnEnter' => start_conference_on_enter,
|
|
334
|
+
'EndConferenceOnExit' => end_conference_on_exit,
|
|
335
|
+
'WaitUrl' => wait_url,
|
|
336
|
+
'WaitMethod' => wait_method,
|
|
337
|
+
'EarlyMedia' => early_media,
|
|
338
|
+
'MaxParticipants' => max_participants,
|
|
339
|
+
'ConferenceRecord' => conference_record,
|
|
340
|
+
'ConferenceTrim' => conference_trim,
|
|
341
|
+
'ConferenceStatusCallback' => conference_status_callback,
|
|
342
|
+
'ConferenceStatusCallbackMethod' => conference_status_callback_method,
|
|
343
|
+
'ConferenceStatusCallbackEvent' => Twilio.serialize_list(conference_status_callback_event) { |e| e },
|
|
344
|
+
'RecordingChannels' => recording_channels,
|
|
345
|
+
'RecordingStatusCallback' => recording_status_callback,
|
|
346
|
+
'RecordingStatusCallbackMethod' => recording_status_callback_method,
|
|
347
|
+
'SipAuthUsername' => sip_auth_username,
|
|
348
|
+
'SipAuthPassword' => sip_auth_password,
|
|
349
|
+
'Region' => region,
|
|
350
|
+
'ConferenceRecordingStatusCallback' => conference_recording_status_callback,
|
|
351
|
+
'ConferenceRecordingStatusCallbackMethod' => conference_recording_status_callback_method,
|
|
352
|
+
'RecordingStatusCallbackEvent' => Twilio.serialize_list(recording_status_callback_event) { |e| e },
|
|
353
|
+
'ConferenceRecordingStatusCallbackEvent' => Twilio.serialize_list(conference_recording_status_callback_event) { |e| e },
|
|
354
|
+
'Coaching' => coaching,
|
|
355
|
+
'CallSidToCoach' => call_sid_to_coach,
|
|
356
|
+
'JitterBufferSize' => jitter_buffer_size,
|
|
357
|
+
'Byoc' => byoc,
|
|
358
|
+
'CallerId' => caller_id,
|
|
359
|
+
'CallReason' => call_reason,
|
|
360
|
+
'RecordingTrack' => recording_track,
|
|
361
|
+
'RecordingConfigurationId' => recording_configuration_id,
|
|
362
|
+
'TimeLimit' => time_limit,
|
|
363
|
+
'MachineDetection' => machine_detection,
|
|
364
|
+
'MachineDetectionTimeout' => machine_detection_timeout,
|
|
365
|
+
'MachineDetectionSpeechThreshold' => machine_detection_speech_threshold,
|
|
366
|
+
'MachineDetectionSpeechEndThreshold' => machine_detection_speech_end_threshold,
|
|
367
|
+
'MachineDetectionSilenceTimeout' => machine_detection_silence_timeout,
|
|
368
|
+
'AmdStatusCallback' => amd_status_callback,
|
|
369
|
+
'AmdStatusCallbackMethod' => amd_status_callback_method,
|
|
370
|
+
'Trim' => trim,
|
|
371
|
+
'CallToken' => call_token,
|
|
372
|
+
'ClientNotificationUrl' => client_notification_url,
|
|
373
|
+
'CallerDisplayName' => caller_display_name,
|
|
374
|
+
})
|
|
375
|
+
|
|
376
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
383
|
+
participant_instance = ParticipantInstance.new(
|
|
384
|
+
@version,
|
|
385
|
+
response.body,
|
|
386
|
+
account_sid: @solution[:account_sid],
|
|
387
|
+
conference_sid: @solution[:conference_sid],
|
|
388
|
+
)
|
|
389
|
+
ParticipantInstanceMetadata.new(
|
|
390
|
+
@version,
|
|
391
|
+
participant_instance,
|
|
392
|
+
response.headers,
|
|
393
|
+
response.status_code
|
|
394
|
+
)
|
|
395
|
+
end
|
|
396
|
+
|
|
197
397
|
|
|
198
398
|
##
|
|
199
399
|
# Lists ParticipantInstance records from the API as a list.
|
|
@@ -242,7 +442,39 @@ module Twilio
|
|
|
242
442
|
coaching: coaching,
|
|
243
443
|
page_size: limits[:page_size], )
|
|
244
444
|
|
|
245
|
-
|
|
445
|
+
return [].each if page.nil?
|
|
446
|
+
|
|
447
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
448
|
+
return [].each if result.nil?
|
|
449
|
+
result
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
##
|
|
453
|
+
# Lists ParticipantPageMetadata records from the API as a list.
|
|
454
|
+
# @param [Boolean] muted Whether to return only participants that are muted. Can be: `true` or `false`.
|
|
455
|
+
# @param [Boolean] hold Whether to return only participants that are on hold. Can be: `true` or `false`.
|
|
456
|
+
# @param [Boolean] coaching Whether to return only participants who are coaching another call. Can be: `true` or `false`.
|
|
457
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
458
|
+
# guarantees to never return more than limit. Default is no limit
|
|
459
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
460
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
461
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
462
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
463
|
+
# @return [Array] Array of up to limit results
|
|
464
|
+
def list_with_metadata(muted: :unset, hold: :unset, coaching: :unset, limit: nil, page_size: nil)
|
|
465
|
+
limits = @version.read_limits(limit, page_size)
|
|
466
|
+
params = Twilio::Values.of({
|
|
467
|
+
'Muted' => muted,
|
|
468
|
+
'Hold' => hold,
|
|
469
|
+
'Coaching' => coaching,
|
|
470
|
+
|
|
471
|
+
'PageSize' => limits[:page_size],
|
|
472
|
+
});
|
|
473
|
+
headers = Twilio::Values.of({})
|
|
474
|
+
|
|
475
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
476
|
+
|
|
477
|
+
ParticipantPageMetadata.new(@version, response, @solution, limits[:limit])
|
|
246
478
|
end
|
|
247
479
|
|
|
248
480
|
##
|
|
@@ -254,9 +486,13 @@ module Twilio
|
|
|
254
486
|
|
|
255
487
|
page = self.page(page_size: limits[:page_size], )
|
|
256
488
|
|
|
257
|
-
|
|
489
|
+
return [].each if page.nil?
|
|
490
|
+
|
|
491
|
+
result = @version.stream(page,
|
|
258
492
|
limit: limits[:limit],
|
|
259
|
-
page_limit: limits[:page_limit])
|
|
493
|
+
page_limit: limits[:page_limit])
|
|
494
|
+
return [].each if result.nil?
|
|
495
|
+
result.each {|x| yield x}
|
|
260
496
|
end
|
|
261
497
|
|
|
262
498
|
##
|
|
@@ -269,7 +505,7 @@ module Twilio
|
|
|
269
505
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
270
506
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
271
507
|
# @return [Page] Page of ParticipantInstance
|
|
272
|
-
def page(muted: :unset, hold: :unset, coaching: :unset, page_token: :unset, page_number: :unset,
|
|
508
|
+
def page(muted: :unset, hold: :unset, coaching: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
273
509
|
params = Twilio::Values.of({
|
|
274
510
|
'Muted' => muted,
|
|
275
511
|
'Hold' => hold,
|
|
@@ -278,8 +514,11 @@ module Twilio
|
|
|
278
514
|
'Page' => page_number,
|
|
279
515
|
'PageSize' => page_size,
|
|
280
516
|
})
|
|
517
|
+
headers = Twilio::Values.of({})
|
|
518
|
+
|
|
519
|
+
|
|
281
520
|
|
|
282
|
-
response = @version.page('GET', @uri, params: params)
|
|
521
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
283
522
|
|
|
284
523
|
ParticipantPage.new(@version, response, @solution)
|
|
285
524
|
end
|
|
@@ -316,6 +555,7 @@ module Twilio
|
|
|
316
555
|
# @return [ParticipantContext] ParticipantContext
|
|
317
556
|
def initialize(version, account_sid, conference_sid, call_sid)
|
|
318
557
|
super(version)
|
|
558
|
+
|
|
319
559
|
|
|
320
560
|
# Path Solution
|
|
321
561
|
@solution = { account_sid: account_sid, conference_sid: conference_sid, call_sid: call_sid, }
|
|
@@ -328,7 +568,31 @@ module Twilio
|
|
|
328
568
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
329
569
|
def delete
|
|
330
570
|
|
|
331
|
-
|
|
571
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
@version.delete('DELETE', @uri, headers: headers)
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
##
|
|
580
|
+
# Delete the ParticipantInstanceMetadata
|
|
581
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
582
|
+
def delete_with_metadata
|
|
583
|
+
|
|
584
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
589
|
+
participant_instance = ParticipantInstance.new(
|
|
590
|
+
@version,
|
|
591
|
+
response.body,
|
|
592
|
+
account_sid: @solution[:account_sid],
|
|
593
|
+
sid: @solution[:sid],
|
|
594
|
+
)
|
|
595
|
+
ParticipantInstanceMetadata.new(@version, participant_instance, response.headers, response.status_code)
|
|
332
596
|
end
|
|
333
597
|
|
|
334
598
|
##
|
|
@@ -336,7 +600,13 @@ module Twilio
|
|
|
336
600
|
# @return [ParticipantInstance] Fetched ParticipantInstance
|
|
337
601
|
def fetch
|
|
338
602
|
|
|
339
|
-
|
|
603
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
340
610
|
ParticipantInstance.new(
|
|
341
611
|
@version,
|
|
342
612
|
payload,
|
|
@@ -346,6 +616,33 @@ module Twilio
|
|
|
346
616
|
)
|
|
347
617
|
end
|
|
348
618
|
|
|
619
|
+
##
|
|
620
|
+
# Fetch the ParticipantInstanceMetadata
|
|
621
|
+
# @return [ParticipantInstance] Fetched ParticipantInstance
|
|
622
|
+
def fetch_with_metadata
|
|
623
|
+
|
|
624
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
631
|
+
participant_instance = ParticipantInstance.new(
|
|
632
|
+
@version,
|
|
633
|
+
response.body,
|
|
634
|
+
account_sid: @solution[:account_sid],
|
|
635
|
+
conference_sid: @solution[:conference_sid],
|
|
636
|
+
call_sid: @solution[:call_sid],
|
|
637
|
+
)
|
|
638
|
+
ParticipantInstanceMetadata.new(
|
|
639
|
+
@version,
|
|
640
|
+
participant_instance,
|
|
641
|
+
response.headers,
|
|
642
|
+
response.status_code
|
|
643
|
+
)
|
|
644
|
+
end
|
|
645
|
+
|
|
349
646
|
##
|
|
350
647
|
# Update the ParticipantInstance
|
|
351
648
|
# @param [Boolean] muted Whether the participant should be muted. Can be `true` or `false`. `true` will mute the participant, and `false` will un-mute them. Anything value other than `true` or `false` is interpreted as `false`.
|
|
@@ -354,7 +651,7 @@ module Twilio
|
|
|
354
651
|
# @param [String] hold_method The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`.
|
|
355
652
|
# @param [String] announce_url The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
|
|
356
653
|
# @param [String] announce_method The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
|
|
357
|
-
# @param [String] wait_url The URL
|
|
654
|
+
# @param [String] wait_url The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
|
|
358
655
|
# @param [String] wait_method The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
|
|
359
656
|
# @param [Boolean] beep_on_exit Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`.
|
|
360
657
|
# @param [Boolean] end_conference_on_exit Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
|
|
@@ -362,18 +659,18 @@ module Twilio
|
|
|
362
659
|
# @param [String] call_sid_to_coach The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`.
|
|
363
660
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
364
661
|
def update(
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
662
|
+
muted: :unset,
|
|
663
|
+
hold: :unset,
|
|
664
|
+
hold_url: :unset,
|
|
665
|
+
hold_method: :unset,
|
|
666
|
+
announce_url: :unset,
|
|
667
|
+
announce_method: :unset,
|
|
668
|
+
wait_url: :unset,
|
|
669
|
+
wait_method: :unset,
|
|
670
|
+
beep_on_exit: :unset,
|
|
671
|
+
end_conference_on_exit: :unset,
|
|
672
|
+
coaching: :unset,
|
|
673
|
+
call_sid_to_coach: :unset
|
|
377
674
|
)
|
|
378
675
|
|
|
379
676
|
data = Twilio::Values.of({
|
|
@@ -391,7 +688,13 @@ module Twilio
|
|
|
391
688
|
'CallSidToCoach' => call_sid_to_coach,
|
|
392
689
|
})
|
|
393
690
|
|
|
394
|
-
|
|
691
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
|
395
698
|
ParticipantInstance.new(
|
|
396
699
|
@version,
|
|
397
700
|
payload,
|
|
@@ -401,6 +704,73 @@ module Twilio
|
|
|
401
704
|
)
|
|
402
705
|
end
|
|
403
706
|
|
|
707
|
+
##
|
|
708
|
+
# Update the ParticipantInstanceMetadata
|
|
709
|
+
# @param [Boolean] muted Whether the participant should be muted. Can be `true` or `false`. `true` will mute the participant, and `false` will un-mute them. Anything value other than `true` or `false` is interpreted as `false`.
|
|
710
|
+
# @param [Boolean] hold Whether the participant should be on hold. Can be: `true` or `false`. `true` puts the participant on hold, and `false` lets them rejoin the conference.
|
|
711
|
+
# @param [String] hold_url The URL we call using the `hold_method` for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
|
|
712
|
+
# @param [String] hold_method The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`.
|
|
713
|
+
# @param [String] announce_url The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
|
|
714
|
+
# @param [String] announce_method The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
|
|
715
|
+
# @param [String] wait_url The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
|
|
716
|
+
# @param [String] wait_method The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
|
|
717
|
+
# @param [Boolean] beep_on_exit Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`.
|
|
718
|
+
# @param [Boolean] end_conference_on_exit Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
|
|
719
|
+
# @param [Boolean] coaching Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined.
|
|
720
|
+
# @param [String] call_sid_to_coach The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`.
|
|
721
|
+
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
722
|
+
def update_with_metadata(
|
|
723
|
+
muted: :unset,
|
|
724
|
+
hold: :unset,
|
|
725
|
+
hold_url: :unset,
|
|
726
|
+
hold_method: :unset,
|
|
727
|
+
announce_url: :unset,
|
|
728
|
+
announce_method: :unset,
|
|
729
|
+
wait_url: :unset,
|
|
730
|
+
wait_method: :unset,
|
|
731
|
+
beep_on_exit: :unset,
|
|
732
|
+
end_conference_on_exit: :unset,
|
|
733
|
+
coaching: :unset,
|
|
734
|
+
call_sid_to_coach: :unset
|
|
735
|
+
)
|
|
736
|
+
|
|
737
|
+
data = Twilio::Values.of({
|
|
738
|
+
'Muted' => muted,
|
|
739
|
+
'Hold' => hold,
|
|
740
|
+
'HoldUrl' => hold_url,
|
|
741
|
+
'HoldMethod' => hold_method,
|
|
742
|
+
'AnnounceUrl' => announce_url,
|
|
743
|
+
'AnnounceMethod' => announce_method,
|
|
744
|
+
'WaitUrl' => wait_url,
|
|
745
|
+
'WaitMethod' => wait_method,
|
|
746
|
+
'BeepOnExit' => beep_on_exit,
|
|
747
|
+
'EndConferenceOnExit' => end_conference_on_exit,
|
|
748
|
+
'Coaching' => coaching,
|
|
749
|
+
'CallSidToCoach' => call_sid_to_coach,
|
|
750
|
+
})
|
|
751
|
+
|
|
752
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
759
|
+
participant_instance = ParticipantInstance.new(
|
|
760
|
+
@version,
|
|
761
|
+
response.body,
|
|
762
|
+
account_sid: @solution[:account_sid],
|
|
763
|
+
conference_sid: @solution[:conference_sid],
|
|
764
|
+
call_sid: @solution[:call_sid],
|
|
765
|
+
)
|
|
766
|
+
ParticipantInstanceMetadata.new(
|
|
767
|
+
@version,
|
|
768
|
+
participant_instance,
|
|
769
|
+
response.headers,
|
|
770
|
+
response.status_code
|
|
771
|
+
)
|
|
772
|
+
end
|
|
773
|
+
|
|
404
774
|
|
|
405
775
|
##
|
|
406
776
|
# Provide a user friendly representation
|
|
@@ -417,6 +787,53 @@ module Twilio
|
|
|
417
787
|
end
|
|
418
788
|
end
|
|
419
789
|
|
|
790
|
+
class ParticipantInstanceMetadata < InstanceResourceMetadata
|
|
791
|
+
##
|
|
792
|
+
# Initializes a new ParticipantInstanceMetadata.
|
|
793
|
+
# @param [Version] version Version that contains the resource
|
|
794
|
+
# @param [}ParticipantInstance] participant_instance The instance associated with the metadata.
|
|
795
|
+
# @param [Hash] headers Header object with response headers.
|
|
796
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
797
|
+
# @return [ParticipantInstanceMetadata] The initialized instance with metadata.
|
|
798
|
+
def initialize(version, participant_instance, headers, status_code)
|
|
799
|
+
super(version, headers, status_code)
|
|
800
|
+
@participant_instance = participant_instance
|
|
801
|
+
end
|
|
802
|
+
|
|
803
|
+
def participant
|
|
804
|
+
@participant_instance
|
|
805
|
+
end
|
|
806
|
+
|
|
807
|
+
def headers
|
|
808
|
+
@headers
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
def status_code
|
|
812
|
+
@status_code
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
def to_s
|
|
816
|
+
"<Twilio.Api.V2010.ParticipantInstanceMetadata status=#{@status_code}>"
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
class ParticipantListResponse < InstanceListResource
|
|
821
|
+
# @param [Array<ParticipantInstance>] instance
|
|
822
|
+
# @param [Hash{String => Object}] headers
|
|
823
|
+
# @param [Integer] status_code
|
|
824
|
+
def initialize(version, payload, key)
|
|
825
|
+
@participant_instance = payload.body[key].map do |data|
|
|
826
|
+
ParticipantInstance.new(version, data)
|
|
827
|
+
end
|
|
828
|
+
@headers = payload.headers
|
|
829
|
+
@status_code = payload.status_code
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
def participant_instance
|
|
833
|
+
@instance
|
|
834
|
+
end
|
|
835
|
+
end
|
|
836
|
+
|
|
420
837
|
class ParticipantPage < Page
|
|
421
838
|
##
|
|
422
839
|
# Initialize the ParticipantPage
|
|
@@ -426,6 +843,7 @@ module Twilio
|
|
|
426
843
|
# @return [ParticipantPage] ParticipantPage
|
|
427
844
|
def initialize(version, response, solution)
|
|
428
845
|
super(version, response)
|
|
846
|
+
|
|
429
847
|
|
|
430
848
|
# Path Solution
|
|
431
849
|
@solution = solution
|
|
@@ -445,6 +863,66 @@ module Twilio
|
|
|
445
863
|
'<Twilio.Api.V2010.ParticipantPage>'
|
|
446
864
|
end
|
|
447
865
|
end
|
|
866
|
+
|
|
867
|
+
class ParticipantPageMetadata < PageMetadata
|
|
868
|
+
attr_reader :participant_page
|
|
869
|
+
|
|
870
|
+
def initialize(version, response, solution, limit)
|
|
871
|
+
super(version, response)
|
|
872
|
+
@participant_page = []
|
|
873
|
+
@limit = limit
|
|
874
|
+
key = get_key(response.body)
|
|
875
|
+
records = 0
|
|
876
|
+
while( limit != :unset && records < limit )
|
|
877
|
+
@participant_page << ParticipantListResponse.new(version, @payload, key, limit - records)
|
|
878
|
+
@payload = self.next_page
|
|
879
|
+
break unless @payload
|
|
880
|
+
records += (@payload.body[key] || []).size
|
|
881
|
+
end
|
|
882
|
+
# Path Solution
|
|
883
|
+
@solution = solution
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
def each
|
|
887
|
+
@participant_page.each do |record|
|
|
888
|
+
yield record
|
|
889
|
+
end
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
def to_s
|
|
893
|
+
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
894
|
+
end
|
|
895
|
+
end
|
|
896
|
+
class ParticipantListResponse < InstanceListResource
|
|
897
|
+
|
|
898
|
+
# @param [Array<ParticipantInstance>] instance
|
|
899
|
+
# @param [Hash{String => Object}] headers
|
|
900
|
+
# @param [Integer] status_code
|
|
901
|
+
def initialize(version, payload, key, limit = :unset)
|
|
902
|
+
data_list = payload.body[key] || []
|
|
903
|
+
if limit != :unset
|
|
904
|
+
data_list = data_list[0, limit]
|
|
905
|
+
end
|
|
906
|
+
@participant = data_list.map do |data|
|
|
907
|
+
ParticipantInstance.new(version, data)
|
|
908
|
+
end
|
|
909
|
+
@headers = payload.headers
|
|
910
|
+
@status_code = payload.status_code
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
def participant
|
|
914
|
+
@participant
|
|
915
|
+
end
|
|
916
|
+
|
|
917
|
+
def headers
|
|
918
|
+
@headers
|
|
919
|
+
end
|
|
920
|
+
|
|
921
|
+
def status_code
|
|
922
|
+
@status_code
|
|
923
|
+
end
|
|
924
|
+
end
|
|
925
|
+
|
|
448
926
|
class ParticipantInstance < InstanceResource
|
|
449
927
|
##
|
|
450
928
|
# Initialize the ParticipantInstance
|
|
@@ -458,6 +936,7 @@ module Twilio
|
|
|
458
936
|
def initialize(version, payload , account_sid: nil, conference_sid: nil, call_sid: nil)
|
|
459
937
|
super(version)
|
|
460
938
|
|
|
939
|
+
|
|
461
940
|
# Marshaled Properties
|
|
462
941
|
@properties = {
|
|
463
942
|
'account_sid' => payload['account_sid'],
|
|
@@ -473,6 +952,7 @@ module Twilio
|
|
|
473
952
|
'hold' => payload['hold'],
|
|
474
953
|
'start_conference_on_enter' => payload['start_conference_on_enter'],
|
|
475
954
|
'status' => payload['status'],
|
|
955
|
+
'queue_time' => payload['queue_time'],
|
|
476
956
|
'uri' => payload['uri'],
|
|
477
957
|
}
|
|
478
958
|
|
|
@@ -570,6 +1050,12 @@ module Twilio
|
|
|
570
1050
|
@properties['status']
|
|
571
1051
|
end
|
|
572
1052
|
|
|
1053
|
+
##
|
|
1054
|
+
# @return [String] The wait time in milliseconds before participant's call is placed. Only available in the response to a create participant request.
|
|
1055
|
+
def queue_time
|
|
1056
|
+
@properties['queue_time']
|
|
1057
|
+
end
|
|
1058
|
+
|
|
573
1059
|
##
|
|
574
1060
|
# @return [String] The URI of the resource, relative to `https://api.twilio.com`.
|
|
575
1061
|
def uri
|
|
@@ -600,7 +1086,7 @@ module Twilio
|
|
|
600
1086
|
# @param [String] hold_method The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`.
|
|
601
1087
|
# @param [String] announce_url The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
|
|
602
1088
|
# @param [String] announce_method The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
|
|
603
|
-
# @param [String] wait_url The URL
|
|
1089
|
+
# @param [String] wait_url The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
|
|
604
1090
|
# @param [String] wait_method The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
|
|
605
1091
|
# @param [Boolean] beep_on_exit Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`.
|
|
606
1092
|
# @param [Boolean] end_conference_on_exit Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
|
|
@@ -608,18 +1094,18 @@ module Twilio
|
|
|
608
1094
|
# @param [String] call_sid_to_coach The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`.
|
|
609
1095
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
610
1096
|
def update(
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
1097
|
+
muted: :unset,
|
|
1098
|
+
hold: :unset,
|
|
1099
|
+
hold_url: :unset,
|
|
1100
|
+
hold_method: :unset,
|
|
1101
|
+
announce_url: :unset,
|
|
1102
|
+
announce_method: :unset,
|
|
1103
|
+
wait_url: :unset,
|
|
1104
|
+
wait_method: :unset,
|
|
1105
|
+
beep_on_exit: :unset,
|
|
1106
|
+
end_conference_on_exit: :unset,
|
|
1107
|
+
coaching: :unset,
|
|
1108
|
+
call_sid_to_coach: :unset
|
|
623
1109
|
)
|
|
624
1110
|
|
|
625
1111
|
context.update(
|