twilio-ruby 7.11.1 → 7.11.3
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 +13 -1
- data/CHANGES.md +417 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/githooks/pre-commit +11 -0
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +101 -12
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
- data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
- data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
- data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
- data/lib/twilio-ruby/rest/insights/v3/capacity.rb +161 -0
- data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +279 -0
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
- data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +29 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +33 -60
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/store.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2.rb +0 -16
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +1 -60
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording_account_default_configuration.rb +547 -0
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2.rb +6 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/twiml/voice_response.rb +12 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -36,9 +36,9 @@ module Twilio
|
|
|
36
36
|
# Lists InsightsSegmentsInstance records from the API as a list.
|
|
37
37
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
38
38
|
# memory before returning.
|
|
39
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
40
39
|
# @param [String] segment_id To unique id of the segment
|
|
41
40
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
41
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
42
42
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
43
43
|
# guarantees to never return more than limit. Default is no limit
|
|
44
44
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -46,11 +46,11 @@ module Twilio
|
|
|
46
46
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
47
47
|
# efficient page size, i.e. min(limit, 1000)
|
|
48
48
|
# @return [Array] Array of up to limit results
|
|
49
|
-
def list(
|
|
49
|
+
def list(segment_id: :unset, reservation_id: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
50
50
|
self.stream(
|
|
51
|
-
authorization: authorization,
|
|
52
51
|
segment_id: segment_id,
|
|
53
52
|
reservation_id: reservation_id,
|
|
53
|
+
authorization: authorization,
|
|
54
54
|
limit: limit,
|
|
55
55
|
page_size: page_size
|
|
56
56
|
).entries
|
|
@@ -60,9 +60,9 @@ module Twilio
|
|
|
60
60
|
# Streams Instance records from the API as an Enumerable.
|
|
61
61
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
62
62
|
# is reached.
|
|
63
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
64
63
|
# @param [String] segment_id To unique id of the segment
|
|
65
64
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
65
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
66
66
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
67
67
|
# guarantees to never return more than limit. Default is no limit
|
|
68
68
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -70,13 +70,13 @@ module Twilio
|
|
|
70
70
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
71
71
|
# efficient page size, i.e. min(limit, 1000)
|
|
72
72
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
73
|
-
def stream(
|
|
73
|
+
def stream(segment_id: :unset, reservation_id: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
74
74
|
limits = @version.read_limits(limit, page_size)
|
|
75
75
|
|
|
76
76
|
page = self.page(
|
|
77
|
-
authorization: authorization,
|
|
78
77
|
segment_id: segment_id,
|
|
79
78
|
reservation_id: reservation_id,
|
|
79
|
+
authorization: authorization,
|
|
80
80
|
page_size: limits[:page_size], )
|
|
81
81
|
|
|
82
82
|
return [].each if page.nil?
|
|
@@ -88,9 +88,9 @@ module Twilio
|
|
|
88
88
|
|
|
89
89
|
##
|
|
90
90
|
# Lists InsightsSegmentsPageMetadata records from the API as a list.
|
|
91
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
92
91
|
# @param [String] segment_id To unique id of the segment
|
|
93
92
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
93
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
94
94
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
95
95
|
# guarantees to never return more than limit. Default is no limit
|
|
96
96
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -98,17 +98,16 @@ module Twilio
|
|
|
98
98
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
99
99
|
# efficient page size, i.e. min(limit, 1000)
|
|
100
100
|
# @return [Array] Array of up to limit results
|
|
101
|
-
def list_with_metadata(
|
|
101
|
+
def list_with_metadata(segment_id: :unset, reservation_id: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
102
102
|
limits = @version.read_limits(limit, page_size)
|
|
103
103
|
params = Twilio::Values.of({
|
|
104
|
-
'Authorization' => authorization,
|
|
105
104
|
'SegmentId' => segment_id,
|
|
106
105
|
|
|
107
106
|
'ReservationId' => Twilio.serialize_list(reservation_id) { |e| e },
|
|
108
107
|
|
|
109
108
|
'PageSize' => limits[:page_size],
|
|
110
109
|
});
|
|
111
|
-
headers = Twilio::Values.of({})
|
|
110
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
112
111
|
|
|
113
112
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
114
113
|
|
|
@@ -136,16 +135,15 @@ module Twilio
|
|
|
136
135
|
##
|
|
137
136
|
# Retrieve a single page of InsightsSegmentsInstance records from the API.
|
|
138
137
|
# Request is executed immediately.
|
|
139
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
140
138
|
# @param [String] segment_id To unique id of the segment
|
|
141
139
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
140
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
142
141
|
# @param [String] page_token PageToken provided by the API
|
|
143
142
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
144
143
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
145
144
|
# @return [Page] Page of InsightsSegmentsInstance
|
|
146
|
-
def page(
|
|
145
|
+
def page(segment_id: :unset, reservation_id: :unset, authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
147
146
|
params = Twilio::Values.of({
|
|
148
|
-
'Authorization' => authorization,
|
|
149
147
|
'SegmentId' => segment_id,
|
|
150
148
|
|
|
151
149
|
'ReservationId' => Twilio.serialize_list(reservation_id) { |e| e },
|
|
@@ -153,7 +151,7 @@ module Twilio
|
|
|
153
151
|
'Page' => page_number,
|
|
154
152
|
'PageSize' => page_size,
|
|
155
153
|
})
|
|
156
|
-
headers = Twilio::Values.of({})
|
|
154
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
157
155
|
|
|
158
156
|
|
|
159
157
|
|
|
@@ -197,65 +197,6 @@ module Twilio
|
|
|
197
197
|
end
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
class InsightsSessionPageMetadata < PageMetadata
|
|
201
|
-
attr_reader :insights_session_page
|
|
202
|
-
|
|
203
|
-
def initialize(version, response, solution, limit)
|
|
204
|
-
super(version, response)
|
|
205
|
-
@insights_session_page = []
|
|
206
|
-
@limit = limit
|
|
207
|
-
key = get_key(response.body)
|
|
208
|
-
records = 0
|
|
209
|
-
while( limit != :unset && records < limit )
|
|
210
|
-
@insights_session_page << InsightsSessionListResponse.new(version, @payload, key, limit - records)
|
|
211
|
-
@payload = self.next_page
|
|
212
|
-
break unless @payload
|
|
213
|
-
records += (@payload.body[key] || []).size
|
|
214
|
-
end
|
|
215
|
-
# Path Solution
|
|
216
|
-
@solution = solution
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
def each
|
|
220
|
-
@insights_session_page.each do |record|
|
|
221
|
-
yield record
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def to_s
|
|
226
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
class InsightsSessionListResponse < InstanceListResource
|
|
230
|
-
|
|
231
|
-
# @param [Array<InsightsSessionInstance>] instance
|
|
232
|
-
# @param [Hash{String => Object}] headers
|
|
233
|
-
# @param [Integer] status_code
|
|
234
|
-
def initialize(version, payload, key, limit = :unset)
|
|
235
|
-
data_list = payload.body[key] || []
|
|
236
|
-
if limit != :unset
|
|
237
|
-
data_list = data_list[0, limit]
|
|
238
|
-
end
|
|
239
|
-
@insights_session = data_list.map do |data|
|
|
240
|
-
InsightsSessionInstance.new(version, data)
|
|
241
|
-
end
|
|
242
|
-
@headers = payload.headers
|
|
243
|
-
@status_code = payload.status_code
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
def insights_session
|
|
247
|
-
@insights_session
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
def headers
|
|
251
|
-
@headers
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
def status_code
|
|
255
|
-
@status_code
|
|
256
|
-
end
|
|
257
|
-
end
|
|
258
|
-
|
|
259
200
|
class InsightsSessionInstance < InstanceResource
|
|
260
201
|
##
|
|
261
202
|
# Initialize the InsightsSessionInstance
|
|
@@ -118,65 +118,6 @@ module Twilio
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
class InsightsSettingsAnswerSetsPageMetadata < PageMetadata
|
|
122
|
-
attr_reader :insights_settings_answer_sets_page
|
|
123
|
-
|
|
124
|
-
def initialize(version, response, solution, limit)
|
|
125
|
-
super(version, response)
|
|
126
|
-
@insights_settings_answer_sets_page = []
|
|
127
|
-
@limit = limit
|
|
128
|
-
key = get_key(response.body)
|
|
129
|
-
records = 0
|
|
130
|
-
while( limit != :unset && records < limit )
|
|
131
|
-
@insights_settings_answer_sets_page << InsightsSettingsAnswerSetsListResponse.new(version, @payload, key, limit - records)
|
|
132
|
-
@payload = self.next_page
|
|
133
|
-
break unless @payload
|
|
134
|
-
records += (@payload.body[key] || []).size
|
|
135
|
-
end
|
|
136
|
-
# Path Solution
|
|
137
|
-
@solution = solution
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def each
|
|
141
|
-
@insights_settings_answer_sets_page.each do |record|
|
|
142
|
-
yield record
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
def to_s
|
|
147
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
148
|
-
end
|
|
149
|
-
end
|
|
150
|
-
class InsightsSettingsAnswerSetsListResponse < InstanceListResource
|
|
151
|
-
|
|
152
|
-
# @param [Array<InsightsSettingsAnswerSetsInstance>] instance
|
|
153
|
-
# @param [Hash{String => Object}] headers
|
|
154
|
-
# @param [Integer] status_code
|
|
155
|
-
def initialize(version, payload, key, limit = :unset)
|
|
156
|
-
data_list = payload.body[key] || []
|
|
157
|
-
if limit != :unset
|
|
158
|
-
data_list = data_list[0, limit]
|
|
159
|
-
end
|
|
160
|
-
@insights_settings_answer_sets = data_list.map do |data|
|
|
161
|
-
InsightsSettingsAnswerSetsInstance.new(version, data)
|
|
162
|
-
end
|
|
163
|
-
@headers = payload.headers
|
|
164
|
-
@status_code = payload.status_code
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def insights_settings_answer_sets
|
|
168
|
-
@insights_settings_answer_sets
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
def headers
|
|
172
|
-
@headers
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
def status_code
|
|
176
|
-
@status_code
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
|
|
180
121
|
class InsightsSettingsAnswerSetsInstance < InstanceResource
|
|
181
122
|
##
|
|
182
123
|
# Initialize the InsightsSettingsAnswerSetsInstance
|
|
@@ -118,65 +118,6 @@ module Twilio
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
class InsightsSettingsCommentPageMetadata < PageMetadata
|
|
122
|
-
attr_reader :insights_settings_comment_page
|
|
123
|
-
|
|
124
|
-
def initialize(version, response, solution, limit)
|
|
125
|
-
super(version, response)
|
|
126
|
-
@insights_settings_comment_page = []
|
|
127
|
-
@limit = limit
|
|
128
|
-
key = get_key(response.body)
|
|
129
|
-
records = 0
|
|
130
|
-
while( limit != :unset && records < limit )
|
|
131
|
-
@insights_settings_comment_page << InsightsSettingsCommentListResponse.new(version, @payload, key, limit - records)
|
|
132
|
-
@payload = self.next_page
|
|
133
|
-
break unless @payload
|
|
134
|
-
records += (@payload.body[key] || []).size
|
|
135
|
-
end
|
|
136
|
-
# Path Solution
|
|
137
|
-
@solution = solution
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def each
|
|
141
|
-
@insights_settings_comment_page.each do |record|
|
|
142
|
-
yield record
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
def to_s
|
|
147
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
148
|
-
end
|
|
149
|
-
end
|
|
150
|
-
class InsightsSettingsCommentListResponse < InstanceListResource
|
|
151
|
-
|
|
152
|
-
# @param [Array<InsightsSettingsCommentInstance>] instance
|
|
153
|
-
# @param [Hash{String => Object}] headers
|
|
154
|
-
# @param [Integer] status_code
|
|
155
|
-
def initialize(version, payload, key, limit = :unset)
|
|
156
|
-
data_list = payload.body[key] || []
|
|
157
|
-
if limit != :unset
|
|
158
|
-
data_list = data_list[0, limit]
|
|
159
|
-
end
|
|
160
|
-
@insights_settings_comment = data_list.map do |data|
|
|
161
|
-
InsightsSettingsCommentInstance.new(version, data)
|
|
162
|
-
end
|
|
163
|
-
@headers = payload.headers
|
|
164
|
-
@status_code = payload.status_code
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def insights_settings_comment
|
|
168
|
-
@insights_settings_comment
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
def headers
|
|
172
|
-
@headers
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
def status_code
|
|
176
|
-
@status_code
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
|
|
180
121
|
class InsightsSettingsCommentInstance < InstanceResource
|
|
181
122
|
##
|
|
182
123
|
# Initialize the InsightsSettingsCommentInstance
|
|
@@ -197,65 +197,6 @@ module Twilio
|
|
|
197
197
|
end
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
class InsightsUserRolesPageMetadata < PageMetadata
|
|
201
|
-
attr_reader :insights_user_roles_page
|
|
202
|
-
|
|
203
|
-
def initialize(version, response, solution, limit)
|
|
204
|
-
super(version, response)
|
|
205
|
-
@insights_user_roles_page = []
|
|
206
|
-
@limit = limit
|
|
207
|
-
key = get_key(response.body)
|
|
208
|
-
records = 0
|
|
209
|
-
while( limit != :unset && records < limit )
|
|
210
|
-
@insights_user_roles_page << InsightsUserRolesListResponse.new(version, @payload, key, limit - records)
|
|
211
|
-
@payload = self.next_page
|
|
212
|
-
break unless @payload
|
|
213
|
-
records += (@payload.body[key] || []).size
|
|
214
|
-
end
|
|
215
|
-
# Path Solution
|
|
216
|
-
@solution = solution
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
def each
|
|
220
|
-
@insights_user_roles_page.each do |record|
|
|
221
|
-
yield record
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def to_s
|
|
226
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
class InsightsUserRolesListResponse < InstanceListResource
|
|
230
|
-
|
|
231
|
-
# @param [Array<InsightsUserRolesInstance>] instance
|
|
232
|
-
# @param [Hash{String => Object}] headers
|
|
233
|
-
# @param [Integer] status_code
|
|
234
|
-
def initialize(version, payload, key, limit = :unset)
|
|
235
|
-
data_list = payload.body[key] || []
|
|
236
|
-
if limit != :unset
|
|
237
|
-
data_list = data_list[0, limit]
|
|
238
|
-
end
|
|
239
|
-
@insights_user_roles = data_list.map do |data|
|
|
240
|
-
InsightsUserRolesInstance.new(version, data)
|
|
241
|
-
end
|
|
242
|
-
@headers = payload.headers
|
|
243
|
-
@status_code = payload.status_code
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
def insights_user_roles
|
|
247
|
-
@insights_user_roles
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
def headers
|
|
251
|
-
@headers
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
def status_code
|
|
255
|
-
@status_code
|
|
256
|
-
end
|
|
257
|
-
end
|
|
258
|
-
|
|
259
200
|
class InsightsUserRolesInstance < InstanceResource
|
|
260
201
|
##
|
|
261
202
|
# Initialize the InsightsUserRolesInstance
|
data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb
CHANGED
|
@@ -305,65 +305,6 @@ module Twilio
|
|
|
305
305
|
end
|
|
306
306
|
end
|
|
307
307
|
|
|
308
|
-
class InteractionTransferPageMetadata < PageMetadata
|
|
309
|
-
attr_reader :interaction_transfer_page
|
|
310
|
-
|
|
311
|
-
def initialize(version, response, solution, limit)
|
|
312
|
-
super(version, response)
|
|
313
|
-
@interaction_transfer_page = []
|
|
314
|
-
@limit = limit
|
|
315
|
-
key = get_key(response.body)
|
|
316
|
-
records = 0
|
|
317
|
-
while( limit != :unset && records < limit )
|
|
318
|
-
@interaction_transfer_page << InteractionTransferListResponse.new(version, @payload, key, limit - records)
|
|
319
|
-
@payload = self.next_page
|
|
320
|
-
break unless @payload
|
|
321
|
-
records += (@payload.body[key] || []).size
|
|
322
|
-
end
|
|
323
|
-
# Path Solution
|
|
324
|
-
@solution = solution
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
def each
|
|
328
|
-
@interaction_transfer_page.each do |record|
|
|
329
|
-
yield record
|
|
330
|
-
end
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
def to_s
|
|
334
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
335
|
-
end
|
|
336
|
-
end
|
|
337
|
-
class InteractionTransferListResponse < InstanceListResource
|
|
338
|
-
|
|
339
|
-
# @param [Array<InteractionTransferInstance>] instance
|
|
340
|
-
# @param [Hash{String => Object}] headers
|
|
341
|
-
# @param [Integer] status_code
|
|
342
|
-
def initialize(version, payload, key, limit = :unset)
|
|
343
|
-
data_list = payload.body[key] || []
|
|
344
|
-
if limit != :unset
|
|
345
|
-
data_list = data_list[0, limit]
|
|
346
|
-
end
|
|
347
|
-
@interaction_transfer = data_list.map do |data|
|
|
348
|
-
InteractionTransferInstance.new(version, data)
|
|
349
|
-
end
|
|
350
|
-
@headers = payload.headers
|
|
351
|
-
@status_code = payload.status_code
|
|
352
|
-
end
|
|
353
|
-
|
|
354
|
-
def interaction_transfer
|
|
355
|
-
@interaction_transfer
|
|
356
|
-
end
|
|
357
|
-
|
|
358
|
-
def headers
|
|
359
|
-
@headers
|
|
360
|
-
end
|
|
361
|
-
|
|
362
|
-
def status_code
|
|
363
|
-
@status_code
|
|
364
|
-
end
|
|
365
|
-
end
|
|
366
|
-
|
|
367
308
|
class InteractionTransferInstance < InstanceResource
|
|
368
309
|
##
|
|
369
310
|
# Initialize the InteractionTransferInstance
|
|
@@ -346,65 +346,6 @@ module Twilio
|
|
|
346
346
|
end
|
|
347
347
|
end
|
|
348
348
|
|
|
349
|
-
class InteractionPageMetadata < PageMetadata
|
|
350
|
-
attr_reader :interaction_page
|
|
351
|
-
|
|
352
|
-
def initialize(version, response, solution, limit)
|
|
353
|
-
super(version, response)
|
|
354
|
-
@interaction_page = []
|
|
355
|
-
@limit = limit
|
|
356
|
-
key = get_key(response.body)
|
|
357
|
-
records = 0
|
|
358
|
-
while( limit != :unset && records < limit )
|
|
359
|
-
@interaction_page << InteractionListResponse.new(version, @payload, key, limit - records)
|
|
360
|
-
@payload = self.next_page
|
|
361
|
-
break unless @payload
|
|
362
|
-
records += (@payload.body[key] || []).size
|
|
363
|
-
end
|
|
364
|
-
# Path Solution
|
|
365
|
-
@solution = solution
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
def each
|
|
369
|
-
@interaction_page.each do |record|
|
|
370
|
-
yield record
|
|
371
|
-
end
|
|
372
|
-
end
|
|
373
|
-
|
|
374
|
-
def to_s
|
|
375
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
376
|
-
end
|
|
377
|
-
end
|
|
378
|
-
class InteractionListResponse < InstanceListResource
|
|
379
|
-
|
|
380
|
-
# @param [Array<InteractionInstance>] instance
|
|
381
|
-
# @param [Hash{String => Object}] headers
|
|
382
|
-
# @param [Integer] status_code
|
|
383
|
-
def initialize(version, payload, key, limit = :unset)
|
|
384
|
-
data_list = payload.body[key] || []
|
|
385
|
-
if limit != :unset
|
|
386
|
-
data_list = data_list[0, limit]
|
|
387
|
-
end
|
|
388
|
-
@interaction = data_list.map do |data|
|
|
389
|
-
InteractionInstance.new(version, data)
|
|
390
|
-
end
|
|
391
|
-
@headers = payload.headers
|
|
392
|
-
@status_code = payload.status_code
|
|
393
|
-
end
|
|
394
|
-
|
|
395
|
-
def interaction
|
|
396
|
-
@interaction
|
|
397
|
-
end
|
|
398
|
-
|
|
399
|
-
def headers
|
|
400
|
-
@headers
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
def status_code
|
|
404
|
-
@status_code
|
|
405
|
-
end
|
|
406
|
-
end
|
|
407
|
-
|
|
408
349
|
class InteractionInstance < InstanceResource
|
|
409
350
|
##
|
|
410
351
|
# Initialize the InteractionInstance
|
|
@@ -185,11 +185,10 @@ module Twilio
|
|
|
185
185
|
def list_with_metadata(flex_metadata: :unset, limit: nil, page_size: nil)
|
|
186
186
|
limits = @version.read_limits(limit, page_size)
|
|
187
187
|
params = Twilio::Values.of({
|
|
188
|
-
'Flex-Metadata' => flex_metadata,
|
|
189
188
|
|
|
190
189
|
'PageSize' => limits[:page_size],
|
|
191
190
|
});
|
|
192
|
-
headers = Twilio::Values.of({})
|
|
191
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
193
192
|
|
|
194
193
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
195
194
|
|
|
@@ -224,12 +223,11 @@ module Twilio
|
|
|
224
223
|
# @return [Page] Page of PluginVersionsInstance
|
|
225
224
|
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
226
225
|
params = Twilio::Values.of({
|
|
227
|
-
'Flex-Metadata' => flex_metadata,
|
|
228
226
|
'PageToken' => page_token,
|
|
229
227
|
'Page' => page_number,
|
|
230
228
|
'PageSize' => page_size,
|
|
231
229
|
})
|
|
232
|
-
headers = Twilio::Values.of({})
|
|
230
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
233
231
|
|
|
234
232
|
|
|
235
233
|
|
|
@@ -163,11 +163,10 @@ module Twilio
|
|
|
163
163
|
def list_with_metadata(flex_metadata: :unset, limit: nil, page_size: nil)
|
|
164
164
|
limits = @version.read_limits(limit, page_size)
|
|
165
165
|
params = Twilio::Values.of({
|
|
166
|
-
'Flex-Metadata' => flex_metadata,
|
|
167
166
|
|
|
168
167
|
'PageSize' => limits[:page_size],
|
|
169
168
|
});
|
|
170
|
-
headers = Twilio::Values.of({})
|
|
169
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
171
170
|
|
|
172
171
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
173
172
|
|
|
@@ -202,12 +201,11 @@ module Twilio
|
|
|
202
201
|
# @return [Page] Page of PluginInstance
|
|
203
202
|
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
204
203
|
params = Twilio::Values.of({
|
|
205
|
-
'Flex-Metadata' => flex_metadata,
|
|
206
204
|
'PageToken' => page_token,
|
|
207
205
|
'Page' => page_number,
|
|
208
206
|
'PageSize' => page_size,
|
|
209
207
|
})
|
|
210
|
-
headers = Twilio::Values.of({})
|
|
208
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
211
209
|
|
|
212
210
|
|
|
213
211
|
|
|
@@ -200,65 +200,6 @@ module Twilio
|
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
-
class PluginArchivePageMetadata < PageMetadata
|
|
204
|
-
attr_reader :plugin_archive_page
|
|
205
|
-
|
|
206
|
-
def initialize(version, response, solution, limit)
|
|
207
|
-
super(version, response)
|
|
208
|
-
@plugin_archive_page = []
|
|
209
|
-
@limit = limit
|
|
210
|
-
key = get_key(response.body)
|
|
211
|
-
records = 0
|
|
212
|
-
while( limit != :unset && records < limit )
|
|
213
|
-
@plugin_archive_page << PluginArchiveListResponse.new(version, @payload, key, limit - records)
|
|
214
|
-
@payload = self.next_page
|
|
215
|
-
break unless @payload
|
|
216
|
-
records += (@payload.body[key] || []).size
|
|
217
|
-
end
|
|
218
|
-
# Path Solution
|
|
219
|
-
@solution = solution
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def each
|
|
223
|
-
@plugin_archive_page.each do |record|
|
|
224
|
-
yield record
|
|
225
|
-
end
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def to_s
|
|
229
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
230
|
-
end
|
|
231
|
-
end
|
|
232
|
-
class PluginArchiveListResponse < InstanceListResource
|
|
233
|
-
|
|
234
|
-
# @param [Array<PluginArchiveInstance>] instance
|
|
235
|
-
# @param [Hash{String => Object}] headers
|
|
236
|
-
# @param [Integer] status_code
|
|
237
|
-
def initialize(version, payload, key, limit = :unset)
|
|
238
|
-
data_list = payload.body[key] || []
|
|
239
|
-
if limit != :unset
|
|
240
|
-
data_list = data_list[0, limit]
|
|
241
|
-
end
|
|
242
|
-
@plugin_archive = data_list.map do |data|
|
|
243
|
-
PluginArchiveInstance.new(version, data)
|
|
244
|
-
end
|
|
245
|
-
@headers = payload.headers
|
|
246
|
-
@status_code = payload.status_code
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def plugin_archive
|
|
250
|
-
@plugin_archive
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
def headers
|
|
254
|
-
@headers
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def status_code
|
|
258
|
-
@status_code
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
|
|
262
203
|
class PluginArchiveInstance < InstanceResource
|
|
263
204
|
##
|
|
264
205
|
# Initialize the PluginArchiveInstance
|
|
@@ -93,11 +93,10 @@ module Twilio
|
|
|
93
93
|
def list_with_metadata(flex_metadata: :unset, limit: nil, page_size: nil)
|
|
94
94
|
limits = @version.read_limits(limit, page_size)
|
|
95
95
|
params = Twilio::Values.of({
|
|
96
|
-
'Flex-Metadata' => flex_metadata,
|
|
97
96
|
|
|
98
97
|
'PageSize' => limits[:page_size],
|
|
99
98
|
});
|
|
100
|
-
headers = Twilio::Values.of({})
|
|
99
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
101
100
|
|
|
102
101
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
103
102
|
|
|
@@ -132,12 +131,11 @@ module Twilio
|
|
|
132
131
|
# @return [Page] Page of ConfiguredPluginInstance
|
|
133
132
|
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
134
133
|
params = Twilio::Values.of({
|
|
135
|
-
'Flex-Metadata' => flex_metadata,
|
|
136
134
|
'PageToken' => page_token,
|
|
137
135
|
'Page' => page_number,
|
|
138
136
|
'PageSize' => page_size,
|
|
139
137
|
})
|
|
140
|
-
headers = Twilio::Values.of({})
|
|
138
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
141
139
|
|
|
142
140
|
|
|
143
141
|
|