twilio-ruby 7.10.4 → 7.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +1 -1
- data/CHANGES.md +166 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +3 -3
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +3 -3
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +18 -10
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +18 -10
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +4 -4
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +5 -5
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +11 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +41 -33
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +61 -53
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +28 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +30 -16
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +207 -207
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +207 -207
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +27 -21
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +73 -59
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +93 -79
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +17 -9
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +19 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +29 -21
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +36 -28
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +36 -28
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +36 -28
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +83 -75
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +15 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +47 -33
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +15 -7
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +17 -9
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +19 -11
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +15 -7
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +25 -17
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +15 -7
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +17 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +16 -8
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +52 -44
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +22 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +16 -8
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +26 -18
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account.rb +18 -10
- data/lib/twilio-ruby/rest/api/v2010.rb +1 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +2 -2
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +14 -5
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +2 -2
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +14 -5
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +14 -5
- data/lib/twilio-ruby/rest/assistants/v1.rb +4 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +13 -5
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +19 -11
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +8 -8
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +32 -24
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +15 -7
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +19 -11
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +20 -12
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +23 -15
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +13 -5
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +23 -15
- data/lib/twilio-ruby/rest/chat/v1/service.rb +122 -114
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +32 -24
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +13 -5
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +15 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +37 -29
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +37 -29
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +32 -24
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +37 -29
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +13 -5
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +21 -13
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +26 -18
- data/lib/twilio-ruby/rest/chat/v2/service.rb +76 -68
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +8 -8
- data/lib/twilio-ruby/rest/chat/v3.rb +6 -0
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +2 -2
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +2 -2
- data/lib/twilio-ruby/rest/content/v1/content.rb +14 -5
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +13 -5
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +13 -5
- data/lib/twilio-ruby/rest/content/v1.rb +1 -0
- data/lib/twilio-ruby/rest/content/v2/content.rb +13 -5
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +43 -35
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +12 -12
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +39 -31
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +44 -36
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +30 -22
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +51 -43
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +15 -15
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +34 -26
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +18 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +28 -28
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +39 -31
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +44 -36
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +30 -22
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +51 -43
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +15 -15
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +19 -11
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +28 -20
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +14 -6
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +19 -11
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +28 -20
- data/lib/twilio-ruby/rest/conversations/v1.rb +6 -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 +126 -0
- data/lib/twilio-ruby/rest/conversations_base.rb +6 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +13 -5
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +13 -5
- data/lib/twilio-ruby/rest/events/v1/schema.rb +2 -2
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +2 -2
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/sink.rb +18 -10
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +17 -9
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +18 -10
- data/lib/twilio-ruby/rest/events/v1.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +32 -24
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -15
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +5 -4
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +64 -56
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +20 -12
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +13 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +32 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +21 -13
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +33 -25
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +13 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +14 -6
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +18 -10
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +3 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +17 -9
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +8 -8
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +27 -19
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +25 -17
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +15 -7
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +19 -11
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +17 -9
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +23 -15
- data/lib/twilio-ruby/rest/flex_api/v1.rb +19 -6
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +8 -8
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +8 -8
- data/lib/twilio-ruby/rest/flex_api/v2.rb +6 -0
- data/lib/twilio-ruby/rest/flex_api_base.rb +6 -1
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +10 -10
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +1 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +6 -6
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +13 -5
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +6 -6
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +3 -2
- data/lib/twilio-ruby/rest/iam/v1/role_permission.rb +327 -0
- data/lib/twilio-ruby/rest/iam/v1/token.rb +10 -10
- data/lib/twilio-ruby/rest/iam/v1.rb +17 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +16 -16
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +14 -14
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +17 -9
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +13 -5
- data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -2
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +23 -15
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +17 -9
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +13 -5
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +13 -5
- data/lib/twilio-ruby/rest/insights/v1/room.rb +13 -5
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +10 -10
- data/lib/twilio-ruby/rest/insights/v1.rb +3 -0
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +21 -12
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +21 -12
- data/lib/twilio-ruby/rest/insights/v2/report.rb +10 -9
- data/lib/twilio-ruby/rest/insights/v2.rb +3 -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 +5 -0
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +22 -14
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +13 -5
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +2 -2
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +2 -2
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +13 -5
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +13 -5
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +43 -35
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +4 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +4 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +4 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +15 -7
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +13 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +17 -9
- data/lib/twilio-ruby/rest/intelligence/v2.rb +13 -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 +32 -24
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +15 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +19 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +20 -12
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +23 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +13 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +23 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +122 -114
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +32 -24
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +13 -5
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +15 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +37 -29
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +37 -29
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +32 -24
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +37 -29
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +13 -5
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +19 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +26 -18
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +76 -68
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +13 -5
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +2 -2
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +14 -5
- data/lib/twilio-ruby/rest/knowledge/v1.rb +1 -0
- 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_base.rb +6 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +10 -10
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -0
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +3 -2
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +4 -2
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +32 -32
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +2 -2
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +3 -3
- data/lib/twilio-ruby/rest/lookups/v2.rb +13 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +13 -5
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +13 -5
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +15 -7
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +2 -2
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +21 -13
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +4 -4
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +16 -16
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +2 -2
- data/lib/twilio-ruby/rest/marketplace/v1.rb +3 -0
- data/lib/twilio-ruby/rest/{flex_api/v1/create_flex_instance.rb → memory/v1/bulk.rb} +104 -124
- 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 +636 -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 +701 -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/memory_base.rb +38 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +15 -7
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +18 -10
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +10 -10
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +5 -5
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +14 -6
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +14 -6
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +15 -7
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +14 -6
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +14 -6
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +54 -46
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +61 -53
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +120 -112
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +22 -7
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v2.rb +2 -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 +5 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +13 -5
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +13 -5
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +32 -24
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +20 -12
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +20 -20
- data/lib/twilio-ruby/rest/notify/v1/service.rb +55 -47
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +6 -6
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1.rb +21 -2
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +19 -11
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +4 -4
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +8 -8
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +35 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +14 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +14 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +3 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +29 -21
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +20 -12
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +15 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +20 -12
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v2.rb +5 -0
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +19 -19
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +7 -7
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +10 -10
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +7 -7
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +11 -11
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +13 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +33 -25
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +50 -42
- 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 +13 -5
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +13 -5
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +15 -7
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +21 -13
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +20 -12
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +27 -19
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +6 -6
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +45 -37
- data/lib/twilio-ruby/rest/preview/wireless.rb +3 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +7 -7
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +10 -10
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +13 -5
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +54 -10
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +27 -11
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +2 -2
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +1 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1.rb +22 -4
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2.rb +13 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +18 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +13 -5
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +15 -7
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +17 -9
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +25 -17
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +37 -29
- data/lib/twilio-ruby/rest/proxy/v1.rb +1 -0
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +6 -6
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +6 -6
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +6 -6
- data/lib/twilio-ruby/rest/routes/v2.rb +3 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +13 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +16 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -9
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +15 -7
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +13 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +19 -11
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +15 -7
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +13 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +16 -8
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +23 -15
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +16 -8
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +18 -10
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +37 -14
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +4 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +42 -19
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -6
- data/lib/twilio-ruby/rest/studio/v2.rb +1 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +17 -9
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +36 -28
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +19 -11
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +14 -6
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +17 -9
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +27 -19
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +17 -9
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +19 -11
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +22 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +29 -21
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +19 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +20 -12
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +30 -22
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +19 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +20 -12
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +17 -9
- data/lib/twilio-ruby/rest/sync/v1/service.rb +34 -26
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +17 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +13 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +123 -115
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +38 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +20 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +13 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +31 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +119 -111
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +17 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +16 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +28 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +30 -22
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +33 -25
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +14 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +14 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +28 -20
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +14 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +6 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +37 -29
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +9 -9
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +45 -45
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +40 -40
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +15 -7
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +14 -6
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +14 -6
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +25 -17
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +20 -12
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +13 -5
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +13 -5
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +20 -12
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +13 -5
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +15 -7
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +14 -6
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +14 -6
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +25 -17
- data/lib/twilio-ruby/rest/trusthub/v1.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2/form.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +9 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +23 -15
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +31 -23
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +16 -16
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +14 -6
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +17 -9
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +10 -9
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +19 -11
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +17 -9
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +24 -24
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +40 -32
- data/lib/twilio-ruby/rest/verify/v2/service.rb +91 -83
- data/lib/twilio-ruby/rest/verify/v2/template.rb +13 -5
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +13 -5
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +14 -14
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +22 -14
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +43 -35
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +14 -14
- data/lib/twilio-ruby/rest/video/v1/recording.rb +13 -5
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +14 -14
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +13 -5
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +13 -5
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +15 -7
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +13 -5
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +18 -10
- data/lib/twilio-ruby/rest/video/v1/room.rb +32 -24
- data/lib/twilio-ruby/rest/video/v1.rb +4 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +43 -35
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +28 -20
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +16 -8
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +3 -3
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +13 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +13 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +18 -10
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +17 -9
- 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 +20 -12
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +29 -21
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +13 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +13 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +49 -41
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +13 -5
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +20 -11
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +49 -5
|
@@ -40,9 +40,9 @@ module Twilio
|
|
|
40
40
|
# @param [Object] parameters JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string.
|
|
41
41
|
# @return [ExecutionInstance] Created ExecutionInstance
|
|
42
42
|
def create(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
to: nil,
|
|
44
|
+
from: nil,
|
|
45
|
+
parameters: :unset
|
|
46
46
|
)
|
|
47
47
|
|
|
48
48
|
data = Twilio::Values.of({
|
|
@@ -108,6 +108,7 @@ module Twilio
|
|
|
108
108
|
# Lists ExecutionInstance records from the API as a list.
|
|
109
109
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
110
110
|
# memory before returning.
|
|
111
|
+
# @param [Status] status Only show Execution resources with the given status. Can be: `active` or `ended`.
|
|
111
112
|
# @param [Time] date_created_from Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
|
112
113
|
# @param [Time] date_created_to Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
|
113
114
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -117,8 +118,9 @@ module Twilio
|
|
|
117
118
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
118
119
|
# efficient page size, i.e. min(limit, 1000)
|
|
119
120
|
# @return [Array] Array of up to limit results
|
|
120
|
-
def list(date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
|
|
121
|
+
def list(status: :unset, date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
|
|
121
122
|
self.stream(
|
|
123
|
+
status: status,
|
|
122
124
|
date_created_from: date_created_from,
|
|
123
125
|
date_created_to: date_created_to,
|
|
124
126
|
limit: limit,
|
|
@@ -130,6 +132,7 @@ module Twilio
|
|
|
130
132
|
# Streams Instance records from the API as an Enumerable.
|
|
131
133
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
132
134
|
# is reached.
|
|
135
|
+
# @param [Status] status Only show Execution resources with the given status. Can be: `active` or `ended`.
|
|
133
136
|
# @param [Time] date_created_from Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
|
134
137
|
# @param [Time] date_created_to Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
|
135
138
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -139,19 +142,25 @@ module Twilio
|
|
|
139
142
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
140
143
|
# efficient page size, i.e. min(limit, 1000)
|
|
141
144
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
142
|
-
def stream(date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
|
|
145
|
+
def stream(status: :unset, date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
|
|
143
146
|
limits = @version.read_limits(limit, page_size)
|
|
144
147
|
|
|
145
148
|
page = self.page(
|
|
149
|
+
status: status,
|
|
146
150
|
date_created_from: date_created_from,
|
|
147
151
|
date_created_to: date_created_to,
|
|
148
152
|
page_size: limits[:page_size], )
|
|
149
153
|
|
|
150
|
-
|
|
154
|
+
return [].each if page.nil?
|
|
155
|
+
|
|
156
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
157
|
+
return [].each if result.nil?
|
|
158
|
+
result
|
|
151
159
|
end
|
|
152
160
|
|
|
153
161
|
##
|
|
154
162
|
# Lists ExecutionPageMetadata records from the API as a list.
|
|
163
|
+
# @param [Status] status Only show Execution resources with the given status. Can be: `active` or `ended`.
|
|
155
164
|
# @param [Time] date_created_from Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
|
156
165
|
# @param [Time] date_created_to Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
|
157
166
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -161,9 +170,10 @@ module Twilio
|
|
|
161
170
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
162
171
|
# efficient page size, i.e. min(limit, 1000)
|
|
163
172
|
# @return [Array] Array of up to limit results
|
|
164
|
-
def list_with_metadata(date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
|
|
173
|
+
def list_with_metadata(status: :unset, date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
|
|
165
174
|
limits = @version.read_limits(limit, page_size)
|
|
166
175
|
params = Twilio::Values.of({
|
|
176
|
+
'status' => status,
|
|
167
177
|
'DateCreatedFrom' => Twilio.serialize_iso8601_datetime(date_created_from),
|
|
168
178
|
'DateCreatedTo' => Twilio.serialize_iso8601_datetime(date_created_to),
|
|
169
179
|
|
|
@@ -185,22 +195,28 @@ module Twilio
|
|
|
185
195
|
|
|
186
196
|
page = self.page(page_size: limits[:page_size], )
|
|
187
197
|
|
|
188
|
-
|
|
198
|
+
return [].each if page.nil?
|
|
199
|
+
|
|
200
|
+
result = @version.stream(page,
|
|
189
201
|
limit: limits[:limit],
|
|
190
|
-
page_limit: limits[:page_limit])
|
|
202
|
+
page_limit: limits[:page_limit])
|
|
203
|
+
return [].each if result.nil?
|
|
204
|
+
result.each {|x| yield x}
|
|
191
205
|
end
|
|
192
206
|
|
|
193
207
|
##
|
|
194
208
|
# Retrieve a single page of ExecutionInstance records from the API.
|
|
195
209
|
# Request is executed immediately.
|
|
210
|
+
# @param [Status] status Only show Execution resources with the given status. Can be: `active` or `ended`.
|
|
196
211
|
# @param [Time] date_created_from Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
|
197
212
|
# @param [Time] date_created_to Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
|
198
213
|
# @param [String] page_token PageToken provided by the API
|
|
199
214
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
200
215
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
201
216
|
# @return [Page] Page of ExecutionInstance
|
|
202
|
-
def page(date_created_from: :unset, date_created_to: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
217
|
+
def page(status: :unset, date_created_from: :unset, date_created_to: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
203
218
|
params = Twilio::Values.of({
|
|
219
|
+
'status' => status,
|
|
204
220
|
'DateCreatedFrom' => Twilio.serialize_iso8601_datetime(date_created_from),
|
|
205
221
|
'DateCreatedTo' => Twilio.serialize_iso8601_datetime(date_created_to),
|
|
206
222
|
'PageToken' => page_token,
|
|
@@ -340,7 +356,7 @@ module Twilio
|
|
|
340
356
|
# @param [Status] status
|
|
341
357
|
# @return [ExecutionInstance] Updated ExecutionInstance
|
|
342
358
|
def update(
|
|
343
|
-
|
|
359
|
+
status: nil
|
|
344
360
|
)
|
|
345
361
|
|
|
346
362
|
data = Twilio::Values.of({
|
|
@@ -531,7 +547,7 @@ module Twilio
|
|
|
531
547
|
@execution_page << ExecutionListResponse.new(version, @payload, key, limit - records)
|
|
532
548
|
@payload = self.next_page
|
|
533
549
|
break unless @payload
|
|
534
|
-
records += @payload.body[key].size
|
|
550
|
+
records += (@payload.body[key] || []).size
|
|
535
551
|
end
|
|
536
552
|
# Path Solution
|
|
537
553
|
@solution = solution
|
|
@@ -553,7 +569,7 @@ module Twilio
|
|
|
553
569
|
# @param [Hash{String => Object}] headers
|
|
554
570
|
# @param [Integer] status_code
|
|
555
571
|
def initialize(version, payload, key, limit = :unset)
|
|
556
|
-
data_list = payload.body[key]
|
|
572
|
+
data_list = payload.body[key] || []
|
|
557
573
|
if limit != :unset
|
|
558
574
|
data_list = data_list[0, limit]
|
|
559
575
|
end
|
|
@@ -603,6 +619,7 @@ module Twilio
|
|
|
603
619
|
'status' => payload['status'],
|
|
604
620
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
605
621
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
622
|
+
'initiated_by' => payload['initiated_by'],
|
|
606
623
|
'url' => payload['url'],
|
|
607
624
|
'links' => payload['links'],
|
|
608
625
|
}
|
|
@@ -683,6 +700,12 @@ module Twilio
|
|
|
683
700
|
@properties['date_updated']
|
|
684
701
|
end
|
|
685
702
|
|
|
703
|
+
##
|
|
704
|
+
# @return [String] The SID or identifier that triggered this Execution. For example, a Call SID if triggered by an incoming call, a Message SID if triggered by an incoming message, a Request SID if triggered by a REST API request, and so on.
|
|
705
|
+
def initiated_by
|
|
706
|
+
@properties['initiated_by']
|
|
707
|
+
end
|
|
708
|
+
|
|
686
709
|
##
|
|
687
710
|
# @return [String] The absolute URL of the resource.
|
|
688
711
|
def url
|
|
@@ -716,7 +739,7 @@ module Twilio
|
|
|
716
739
|
# @param [Status] status
|
|
717
740
|
# @return [ExecutionInstance] Updated ExecutionInstance
|
|
718
741
|
def update(
|
|
719
|
-
|
|
742
|
+
status: nil
|
|
720
743
|
)
|
|
721
744
|
|
|
722
745
|
context.update(
|
|
@@ -69,7 +69,11 @@ module Twilio
|
|
|
69
69
|
page = self.page(
|
|
70
70
|
page_size: limits[:page_size], )
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
return [].each if page.nil?
|
|
73
|
+
|
|
74
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
75
|
+
return [].each if result.nil?
|
|
76
|
+
result
|
|
73
77
|
end
|
|
74
78
|
|
|
75
79
|
##
|
|
@@ -103,9 +107,13 @@ module Twilio
|
|
|
103
107
|
|
|
104
108
|
page = self.page(page_size: limits[:page_size], )
|
|
105
109
|
|
|
106
|
-
|
|
110
|
+
return [].each if page.nil?
|
|
111
|
+
|
|
112
|
+
result = @version.stream(page,
|
|
107
113
|
limit: limits[:limit],
|
|
108
|
-
page_limit: limits[:page_limit])
|
|
114
|
+
page_limit: limits[:page_limit])
|
|
115
|
+
return [].each if result.nil?
|
|
116
|
+
result.each {|x| yield x}
|
|
109
117
|
end
|
|
110
118
|
|
|
111
119
|
##
|
|
@@ -321,7 +329,7 @@ module Twilio
|
|
|
321
329
|
@flow_revision_page << FlowRevisionListResponse.new(version, @payload, key, limit - records)
|
|
322
330
|
@payload = self.next_page
|
|
323
331
|
break unless @payload
|
|
324
|
-
records += @payload.body[key].size
|
|
332
|
+
records += (@payload.body[key] || []).size
|
|
325
333
|
end
|
|
326
334
|
# Path Solution
|
|
327
335
|
@solution = solution
|
|
@@ -343,7 +351,7 @@ module Twilio
|
|
|
343
351
|
# @param [Hash{String => Object}] headers
|
|
344
352
|
# @param [Integer] status_code
|
|
345
353
|
def initialize(version, payload, key, limit = :unset)
|
|
346
|
-
data_list = payload.body[key]
|
|
354
|
+
data_list = payload.body[key] || []
|
|
347
355
|
if limit != :unset
|
|
348
356
|
data_list = data_list[0, limit]
|
|
349
357
|
end
|
|
@@ -108,7 +108,7 @@ module Twilio
|
|
|
108
108
|
# @param [Array[String]] test_users List of test user identities that can test draft versions of the flow.
|
|
109
109
|
# @return [FlowTestUserInstance] Updated FlowTestUserInstance
|
|
110
110
|
def update(
|
|
111
|
-
|
|
111
|
+
test_users: nil
|
|
112
112
|
)
|
|
113
113
|
|
|
114
114
|
data = Twilio::Values.of({
|
|
@@ -267,7 +267,7 @@ module Twilio
|
|
|
267
267
|
@flow_test_user_page << FlowTestUserListResponse.new(version, @payload, key, limit - records)
|
|
268
268
|
@payload = self.next_page
|
|
269
269
|
break unless @payload
|
|
270
|
-
records += @payload.body[key].size
|
|
270
|
+
records += (@payload.body[key] || []).size
|
|
271
271
|
end
|
|
272
272
|
# Path Solution
|
|
273
273
|
@solution = solution
|
|
@@ -289,7 +289,7 @@ module Twilio
|
|
|
289
289
|
# @param [Hash{String => Object}] headers
|
|
290
290
|
# @param [Integer] status_code
|
|
291
291
|
def initialize(version, payload, key, limit = :unset)
|
|
292
|
-
data_list = payload.body[key]
|
|
292
|
+
data_list = payload.body[key] || []
|
|
293
293
|
if limit != :unset
|
|
294
294
|
data_list = data_list[0, limit]
|
|
295
295
|
end
|
|
@@ -381,7 +381,7 @@ module Twilio
|
|
|
381
381
|
# @param [Array[String]] test_users List of test user identities that can test draft versions of the flow.
|
|
382
382
|
# @return [FlowTestUserInstance] Updated FlowTestUserInstance
|
|
383
383
|
def update(
|
|
384
|
-
|
|
384
|
+
test_users: nil
|
|
385
385
|
)
|
|
386
386
|
|
|
387
387
|
context.update(
|
|
@@ -37,12 +37,14 @@ module Twilio
|
|
|
37
37
|
# @param [Status] status
|
|
38
38
|
# @param [Object] definition JSON representation of flow definition.
|
|
39
39
|
# @param [String] commit_message Description of change made in the revision.
|
|
40
|
+
# @param [String] author_sid The SID of the User that created the Flow.
|
|
40
41
|
# @return [FlowInstance] Created FlowInstance
|
|
41
42
|
def create(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
friendly_name: nil,
|
|
44
|
+
status: nil,
|
|
45
|
+
definition: nil,
|
|
46
|
+
commit_message: :unset,
|
|
47
|
+
author_sid: :unset
|
|
46
48
|
)
|
|
47
49
|
|
|
48
50
|
data = Twilio::Values.of({
|
|
@@ -50,6 +52,7 @@ module Twilio
|
|
|
50
52
|
'Status' => status,
|
|
51
53
|
'Definition' => Twilio.serialize_object(definition),
|
|
52
54
|
'CommitMessage' => commit_message,
|
|
55
|
+
'AuthorSid' => author_sid,
|
|
53
56
|
})
|
|
54
57
|
|
|
55
58
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -71,12 +74,14 @@ module Twilio
|
|
|
71
74
|
# @param [Status] status
|
|
72
75
|
# @param [Object] definition JSON representation of flow definition.
|
|
73
76
|
# @param [String] commit_message Description of change made in the revision.
|
|
77
|
+
# @param [String] author_sid The SID of the User that created the Flow.
|
|
74
78
|
# @return [FlowInstance] Created FlowInstance
|
|
75
79
|
def create_with_metadata(
|
|
76
80
|
friendly_name: nil,
|
|
77
81
|
status: nil,
|
|
78
82
|
definition: nil,
|
|
79
|
-
commit_message: :unset
|
|
83
|
+
commit_message: :unset,
|
|
84
|
+
author_sid: :unset
|
|
80
85
|
)
|
|
81
86
|
|
|
82
87
|
data = Twilio::Values.of({
|
|
@@ -84,6 +89,7 @@ module Twilio
|
|
|
84
89
|
'Status' => status,
|
|
85
90
|
'Definition' => Twilio.serialize_object(definition),
|
|
86
91
|
'CommitMessage' => commit_message,
|
|
92
|
+
'AuthorSid' => author_sid,
|
|
87
93
|
})
|
|
88
94
|
|
|
89
95
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -141,7 +147,11 @@ module Twilio
|
|
|
141
147
|
page = self.page(
|
|
142
148
|
page_size: limits[:page_size], )
|
|
143
149
|
|
|
144
|
-
|
|
150
|
+
return [].each if page.nil?
|
|
151
|
+
|
|
152
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
153
|
+
return [].each if result.nil?
|
|
154
|
+
result
|
|
145
155
|
end
|
|
146
156
|
|
|
147
157
|
##
|
|
@@ -175,9 +185,13 @@ module Twilio
|
|
|
175
185
|
|
|
176
186
|
page = self.page(page_size: limits[:page_size], )
|
|
177
187
|
|
|
178
|
-
|
|
188
|
+
return [].each if page.nil?
|
|
189
|
+
|
|
190
|
+
result = @version.stream(page,
|
|
179
191
|
limit: limits[:limit],
|
|
180
|
-
page_limit: limits[:page_limit])
|
|
192
|
+
page_limit: limits[:page_limit])
|
|
193
|
+
return [].each if result.nil?
|
|
194
|
+
result.each {|x| yield x}
|
|
181
195
|
end
|
|
182
196
|
|
|
183
197
|
##
|
|
@@ -325,12 +339,14 @@ module Twilio
|
|
|
325
339
|
# @param [String] friendly_name The string that you assigned to describe the Flow.
|
|
326
340
|
# @param [Object] definition JSON representation of flow definition.
|
|
327
341
|
# @param [String] commit_message Description of change made in the revision.
|
|
342
|
+
# @param [String] author_sid The SID of the User that created or last updated the Flow.
|
|
328
343
|
# @return [FlowInstance] Updated FlowInstance
|
|
329
344
|
def update(
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
345
|
+
status: nil,
|
|
346
|
+
friendly_name: :unset,
|
|
347
|
+
definition: :unset,
|
|
348
|
+
commit_message: :unset,
|
|
349
|
+
author_sid: :unset
|
|
334
350
|
)
|
|
335
351
|
|
|
336
352
|
data = Twilio::Values.of({
|
|
@@ -338,6 +354,7 @@ module Twilio
|
|
|
338
354
|
'FriendlyName' => friendly_name,
|
|
339
355
|
'Definition' => Twilio.serialize_object(definition),
|
|
340
356
|
'CommitMessage' => commit_message,
|
|
357
|
+
'AuthorSid' => author_sid,
|
|
341
358
|
})
|
|
342
359
|
|
|
343
360
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -360,12 +377,14 @@ module Twilio
|
|
|
360
377
|
# @param [String] friendly_name The string that you assigned to describe the Flow.
|
|
361
378
|
# @param [Object] definition JSON representation of flow definition.
|
|
362
379
|
# @param [String] commit_message Description of change made in the revision.
|
|
380
|
+
# @param [String] author_sid The SID of the User that created or last updated the Flow.
|
|
363
381
|
# @return [FlowInstance] Updated FlowInstance
|
|
364
382
|
def update_with_metadata(
|
|
365
383
|
status: nil,
|
|
366
384
|
friendly_name: :unset,
|
|
367
385
|
definition: :unset,
|
|
368
|
-
commit_message: :unset
|
|
386
|
+
commit_message: :unset,
|
|
387
|
+
author_sid: :unset
|
|
369
388
|
)
|
|
370
389
|
|
|
371
390
|
data = Twilio::Values.of({
|
|
@@ -373,6 +392,7 @@ module Twilio
|
|
|
373
392
|
'FriendlyName' => friendly_name,
|
|
374
393
|
'Definition' => Twilio.serialize_object(definition),
|
|
375
394
|
'CommitMessage' => commit_message,
|
|
395
|
+
'AuthorSid' => author_sid,
|
|
376
396
|
})
|
|
377
397
|
|
|
378
398
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -549,7 +569,7 @@ module Twilio
|
|
|
549
569
|
@flow_page << FlowListResponse.new(version, @payload, key, limit - records)
|
|
550
570
|
@payload = self.next_page
|
|
551
571
|
break unless @payload
|
|
552
|
-
records += @payload.body[key].size
|
|
572
|
+
records += (@payload.body[key] || []).size
|
|
553
573
|
end
|
|
554
574
|
# Path Solution
|
|
555
575
|
@solution = solution
|
|
@@ -571,7 +591,7 @@ module Twilio
|
|
|
571
591
|
# @param [Hash{String => Object}] headers
|
|
572
592
|
# @param [Integer] status_code
|
|
573
593
|
def initialize(version, payload, key, limit = :unset)
|
|
574
|
-
data_list = payload.body[key]
|
|
594
|
+
data_list = payload.body[key] || []
|
|
575
595
|
if limit != :unset
|
|
576
596
|
data_list = data_list[0, limit]
|
|
577
597
|
end
|
|
@@ -763,12 +783,14 @@ module Twilio
|
|
|
763
783
|
# @param [String] friendly_name The string that you assigned to describe the Flow.
|
|
764
784
|
# @param [Object] definition JSON representation of flow definition.
|
|
765
785
|
# @param [String] commit_message Description of change made in the revision.
|
|
786
|
+
# @param [String] author_sid The SID of the User that created or last updated the Flow.
|
|
766
787
|
# @return [FlowInstance] Updated FlowInstance
|
|
767
788
|
def update(
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
789
|
+
status: nil,
|
|
790
|
+
friendly_name: :unset,
|
|
791
|
+
definition: :unset,
|
|
792
|
+
commit_message: :unset,
|
|
793
|
+
author_sid: :unset
|
|
772
794
|
)
|
|
773
795
|
|
|
774
796
|
context.update(
|
|
@@ -776,6 +798,7 @@ module Twilio
|
|
|
776
798
|
friendly_name: friendly_name,
|
|
777
799
|
definition: definition,
|
|
778
800
|
commit_message: commit_message,
|
|
801
|
+
author_sid: author_sid,
|
|
779
802
|
)
|
|
780
803
|
end
|
|
781
804
|
|
|
@@ -39,10 +39,10 @@ module Twilio
|
|
|
39
39
|
# @param [String] commit_message Description of change made in the revision.
|
|
40
40
|
# @return [FlowValidateInstance] Updated FlowValidateInstance
|
|
41
41
|
def update(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
friendly_name: nil,
|
|
43
|
+
status: nil,
|
|
44
|
+
definition: nil,
|
|
45
|
+
commit_message: :unset
|
|
46
46
|
)
|
|
47
47
|
|
|
48
48
|
data = Twilio::Values.of({
|
|
@@ -157,7 +157,7 @@ module Twilio
|
|
|
157
157
|
@flow_validate_page << FlowValidateListResponse.new(version, @payload, key, limit - records)
|
|
158
158
|
@payload = self.next_page
|
|
159
159
|
break unless @payload
|
|
160
|
-
records += @payload.body[key].size
|
|
160
|
+
records += (@payload.body[key] || []).size
|
|
161
161
|
end
|
|
162
162
|
# Path Solution
|
|
163
163
|
@solution = solution
|
|
@@ -179,7 +179,7 @@ module Twilio
|
|
|
179
179
|
# @param [Hash{String => Object}] headers
|
|
180
180
|
# @param [Integer] status_code
|
|
181
181
|
def initialize(version, payload, key, limit = :unset)
|
|
182
|
-
data_list = payload.body[key]
|
|
182
|
+
data_list = payload.body[key] || []
|
|
183
183
|
if limit != :unset
|
|
184
184
|
data_list = data_list[0, limit]
|
|
185
185
|
end
|
|
@@ -39,10 +39,10 @@ module Twilio
|
|
|
39
39
|
# @param [String] eid Identifier of the eUICC that will claim the eSIM Profile.
|
|
40
40
|
# @return [EsimProfileInstance] Created EsimProfileInstance
|
|
41
41
|
def create(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
callback_url: :unset,
|
|
43
|
+
callback_method: :unset,
|
|
44
|
+
generate_matching_id: :unset,
|
|
45
|
+
eid: :unset
|
|
46
46
|
)
|
|
47
47
|
|
|
48
48
|
data = Twilio::Values.of({
|
|
@@ -153,7 +153,11 @@ module Twilio
|
|
|
153
153
|
status: status,
|
|
154
154
|
page_size: limits[:page_size], )
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
return [].each if page.nil?
|
|
157
|
+
|
|
158
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
159
|
+
return [].each if result.nil?
|
|
160
|
+
result
|
|
157
161
|
end
|
|
158
162
|
|
|
159
163
|
##
|
|
@@ -193,9 +197,13 @@ module Twilio
|
|
|
193
197
|
|
|
194
198
|
page = self.page(page_size: limits[:page_size], )
|
|
195
199
|
|
|
196
|
-
|
|
200
|
+
return [].each if page.nil?
|
|
201
|
+
|
|
202
|
+
result = @version.stream(page,
|
|
197
203
|
limit: limits[:limit],
|
|
198
|
-
page_limit: limits[:page_limit])
|
|
204
|
+
page_limit: limits[:page_limit])
|
|
205
|
+
return [].each if result.nil?
|
|
206
|
+
result.each {|x| yield x}
|
|
199
207
|
end
|
|
200
208
|
|
|
201
209
|
##
|
|
@@ -414,7 +422,7 @@ module Twilio
|
|
|
414
422
|
@esim_profile_page << EsimProfileListResponse.new(version, @payload, key, limit - records)
|
|
415
423
|
@payload = self.next_page
|
|
416
424
|
break unless @payload
|
|
417
|
-
records += @payload.body[key].size
|
|
425
|
+
records += (@payload.body[key] || []).size
|
|
418
426
|
end
|
|
419
427
|
# Path Solution
|
|
420
428
|
@solution = solution
|
|
@@ -436,7 +444,7 @@ module Twilio
|
|
|
436
444
|
# @param [Hash{String => Object}] headers
|
|
437
445
|
# @param [Integer] status_code
|
|
438
446
|
def initialize(version, payload, key, limit = :unset)
|
|
439
|
-
data_list = payload.body[key]
|
|
447
|
+
data_list = payload.body[key] || []
|
|
440
448
|
if limit != :unset
|
|
441
449
|
data_list = data_list[0, limit]
|
|
442
450
|
end
|
|
@@ -44,15 +44,15 @@ module Twilio
|
|
|
44
44
|
# @param [String] sms_commands_method A string representing the HTTP method to use when making a request to `sms_commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
|
|
45
45
|
# @return [FleetInstance] Created FleetInstance
|
|
46
46
|
def create(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
network_access_profile: nil,
|
|
48
|
+
unique_name: :unset,
|
|
49
|
+
data_enabled: :unset,
|
|
50
|
+
data_limit: :unset,
|
|
51
|
+
ip_commands_url: :unset,
|
|
52
|
+
ip_commands_method: :unset,
|
|
53
|
+
sms_commands_enabled: :unset,
|
|
54
|
+
sms_commands_url: :unset,
|
|
55
|
+
sms_commands_method: :unset
|
|
56
56
|
)
|
|
57
57
|
|
|
58
58
|
data = Twilio::Values.of({
|
|
@@ -175,7 +175,11 @@ module Twilio
|
|
|
175
175
|
network_access_profile: network_access_profile,
|
|
176
176
|
page_size: limits[:page_size], )
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
return [].each if page.nil?
|
|
179
|
+
|
|
180
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
181
|
+
return [].each if result.nil?
|
|
182
|
+
result
|
|
179
183
|
end
|
|
180
184
|
|
|
181
185
|
##
|
|
@@ -211,9 +215,13 @@ module Twilio
|
|
|
211
215
|
|
|
212
216
|
page = self.page(page_size: limits[:page_size], )
|
|
213
217
|
|
|
214
|
-
|
|
218
|
+
return [].each if page.nil?
|
|
219
|
+
|
|
220
|
+
result = @version.stream(page,
|
|
215
221
|
limit: limits[:limit],
|
|
216
|
-
page_limit: limits[:page_limit])
|
|
222
|
+
page_limit: limits[:page_limit])
|
|
223
|
+
return [].each if result.nil?
|
|
224
|
+
result.each {|x| yield x}
|
|
217
225
|
end
|
|
218
226
|
|
|
219
227
|
##
|
|
@@ -333,13 +341,13 @@ module Twilio
|
|
|
333
341
|
# @param [String] data_limit The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000).
|
|
334
342
|
# @return [FleetInstance] Updated FleetInstance
|
|
335
343
|
def update(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
344
|
+
unique_name: :unset,
|
|
345
|
+
network_access_profile: :unset,
|
|
346
|
+
ip_commands_url: :unset,
|
|
347
|
+
ip_commands_method: :unset,
|
|
348
|
+
sms_commands_url: :unset,
|
|
349
|
+
sms_commands_method: :unset,
|
|
350
|
+
data_limit: :unset
|
|
343
351
|
)
|
|
344
352
|
|
|
345
353
|
data = Twilio::Values.of({
|
|
@@ -522,7 +530,7 @@ module Twilio
|
|
|
522
530
|
@fleet_page << FleetListResponse.new(version, @payload, key, limit - records)
|
|
523
531
|
@payload = self.next_page
|
|
524
532
|
break unless @payload
|
|
525
|
-
records += @payload.body[key].size
|
|
533
|
+
records += (@payload.body[key] || []).size
|
|
526
534
|
end
|
|
527
535
|
# Path Solution
|
|
528
536
|
@solution = solution
|
|
@@ -544,7 +552,7 @@ module Twilio
|
|
|
544
552
|
# @param [Hash{String => Object}] headers
|
|
545
553
|
# @param [Integer] status_code
|
|
546
554
|
def initialize(version, payload, key, limit = :unset)
|
|
547
|
-
data_list = payload.body[key]
|
|
555
|
+
data_list = payload.body[key] || []
|
|
548
556
|
if limit != :unset
|
|
549
557
|
data_list = data_list[0, limit]
|
|
550
558
|
end
|
|
@@ -726,13 +734,13 @@ module Twilio
|
|
|
726
734
|
# @param [String] data_limit The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000).
|
|
727
735
|
# @return [FleetInstance] Updated FleetInstance
|
|
728
736
|
def update(
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
737
|
+
unique_name: :unset,
|
|
738
|
+
network_access_profile: :unset,
|
|
739
|
+
ip_commands_url: :unset,
|
|
740
|
+
ip_commands_method: :unset,
|
|
741
|
+
sms_commands_url: :unset,
|
|
742
|
+
sms_commands_method: :unset,
|
|
743
|
+
data_limit: :unset
|
|
736
744
|
)
|
|
737
745
|
|
|
738
746
|
context.update(
|