twilio-ruby 7.10.7 → 7.11.2
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 +43 -67
- data/.gitignore +0 -1
- data/CHANGES.md +267 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +154 -0
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +25 -65
- 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 +48 -71
- 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/call.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -2
- 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/client.rb +0 -5
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +11 -60
- 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/message.rb +10 -10
- 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/message.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +2 -61
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +43 -21
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +584 -21
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +28 -28
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +10 -69
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +58 -58
- data/lib/twilio-ruby/rest/conversations/v2.rb +55 -49
- 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 +2 -61
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +15 -61
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/iam_base.rb +6 -1
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +7 -59
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
- 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/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 +17 -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/conversation.rb +8 -8
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +443 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +28 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +38 -0
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +8 -176
- data/lib/twilio-ruby/rest/knowledge/v2.rb +1 -2
- 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 +9 -177
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +15 -9
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +6 -12
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +1 -81
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +11 -191
- data/lib/twilio-ruby/rest/memory/v1/import.rb +28 -5
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +72 -22
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +2 -2
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +3 -5
- data/lib/twilio-ruby/rest/memory/v1/store.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +56 -6
- data/lib/twilio-ruby/rest/memory/v1.rb +3 -46
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -18
- 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/channels_sender.rb +23 -4
- 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 +4 -63
- 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 +172 -0
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +179 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +186 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +165 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1.rb +24 -0
- 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/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 +14 -61
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +200 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +10 -63
- 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 -78
- 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 +406 -0
- data/lib/twilio-ruby/rest/routes/v3.rb +50 -0
- data/lib/twilio-ruby/rest/routes_base.rb +6 -1
- 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 +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +174 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +262 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +174 -0
- 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 +386 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +386 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +74 -0
- 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/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 +0 -59
- 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 +497 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +297 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +353 -0
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +557 -0
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +532 -0
- data/lib/twilio-ruby/rest/voice/v2/type.rb +459 -0
- data/lib/twilio-ruby/rest/voice/v2.rb +141 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/rest/voice_base.rb +5 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +6 -68
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +36 -22
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +0 -431
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +0 -296
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +0 -927
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +0 -325
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +0 -349
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +0 -871
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +0 -364
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +0 -360
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +0 -501
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +0 -847
- data/lib/twilio-ruby/rest/assistants/v1.rb +0 -104
- data/lib/twilio-ruby/rest/assistants.rb +0 -6
- data/lib/twilio-ruby/rest/assistants_base.rb +0 -38
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
|
@@ -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
|
|
|
@@ -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 PluginConfigurationInstance
|
|
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 PluginConfigurationArchivePageMetadata < PageMetadata
|
|
204
|
-
attr_reader :plugin_configuration_archive_page
|
|
205
|
-
|
|
206
|
-
def initialize(version, response, solution, limit)
|
|
207
|
-
super(version, response)
|
|
208
|
-
@plugin_configuration_archive_page = []
|
|
209
|
-
@limit = limit
|
|
210
|
-
key = get_key(response.body)
|
|
211
|
-
records = 0
|
|
212
|
-
while( limit != :unset && records < limit )
|
|
213
|
-
@plugin_configuration_archive_page << PluginConfigurationArchiveListResponse.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_configuration_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 PluginConfigurationArchiveListResponse < InstanceListResource
|
|
233
|
-
|
|
234
|
-
# @param [Array<PluginConfigurationArchiveInstance>] 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_configuration_archive = data_list.map do |data|
|
|
243
|
-
PluginConfigurationArchiveInstance.new(version, data)
|
|
244
|
-
end
|
|
245
|
-
@headers = payload.headers
|
|
246
|
-
@status_code = payload.status_code
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def plugin_configuration_archive
|
|
250
|
-
@plugin_configuration_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 PluginConfigurationArchiveInstance < InstanceResource
|
|
263
204
|
##
|
|
264
205
|
# Initialize the PluginConfigurationArchiveInstance
|
|
@@ -151,11 +151,10 @@ module Twilio
|
|
|
151
151
|
def list_with_metadata(flex_metadata: :unset, limit: nil, page_size: nil)
|
|
152
152
|
limits = @version.read_limits(limit, page_size)
|
|
153
153
|
params = Twilio::Values.of({
|
|
154
|
-
'Flex-Metadata' => flex_metadata,
|
|
155
154
|
|
|
156
155
|
'PageSize' => limits[:page_size],
|
|
157
156
|
});
|
|
158
|
-
headers = Twilio::Values.of({})
|
|
157
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
159
158
|
|
|
160
159
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
161
160
|
|
|
@@ -190,12 +189,11 @@ module Twilio
|
|
|
190
189
|
# @return [Page] Page of PluginReleaseInstance
|
|
191
190
|
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
192
191
|
params = Twilio::Values.of({
|
|
193
|
-
'Flex-Metadata' => flex_metadata,
|
|
194
192
|
'PageToken' => page_token,
|
|
195
193
|
'Page' => page_number,
|
|
196
194
|
'PageSize' => page_size,
|
|
197
195
|
})
|
|
198
|
-
headers = Twilio::Values.of({})
|
|
196
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
199
197
|
|
|
200
198
|
|
|
201
199
|
|
|
@@ -203,65 +203,6 @@ module Twilio
|
|
|
203
203
|
end
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
-
class PluginVersionArchivePageMetadata < PageMetadata
|
|
207
|
-
attr_reader :plugin_version_archive_page
|
|
208
|
-
|
|
209
|
-
def initialize(version, response, solution, limit)
|
|
210
|
-
super(version, response)
|
|
211
|
-
@plugin_version_archive_page = []
|
|
212
|
-
@limit = limit
|
|
213
|
-
key = get_key(response.body)
|
|
214
|
-
records = 0
|
|
215
|
-
while( limit != :unset && records < limit )
|
|
216
|
-
@plugin_version_archive_page << PluginVersionArchiveListResponse.new(version, @payload, key, limit - records)
|
|
217
|
-
@payload = self.next_page
|
|
218
|
-
break unless @payload
|
|
219
|
-
records += (@payload.body[key] || []).size
|
|
220
|
-
end
|
|
221
|
-
# Path Solution
|
|
222
|
-
@solution = solution
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def each
|
|
226
|
-
@plugin_version_archive_page.each do |record|
|
|
227
|
-
yield record
|
|
228
|
-
end
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
def to_s
|
|
232
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
class PluginVersionArchiveListResponse < InstanceListResource
|
|
236
|
-
|
|
237
|
-
# @param [Array<PluginVersionArchiveInstance>] instance
|
|
238
|
-
# @param [Hash{String => Object}] headers
|
|
239
|
-
# @param [Integer] status_code
|
|
240
|
-
def initialize(version, payload, key, limit = :unset)
|
|
241
|
-
data_list = payload.body[key] || []
|
|
242
|
-
if limit != :unset
|
|
243
|
-
data_list = data_list[0, limit]
|
|
244
|
-
end
|
|
245
|
-
@plugin_version_archive = data_list.map do |data|
|
|
246
|
-
PluginVersionArchiveInstance.new(version, data)
|
|
247
|
-
end
|
|
248
|
-
@headers = payload.headers
|
|
249
|
-
@status_code = payload.status_code
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
def plugin_version_archive
|
|
253
|
-
@plugin_version_archive
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
def headers
|
|
257
|
-
@headers
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def status_code
|
|
261
|
-
@status_code
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
|
|
265
206
|
class PluginVersionArchiveInstance < InstanceResource
|
|
266
207
|
##
|
|
267
208
|
# Initialize the PluginVersionArchiveInstance
|
|
@@ -191,65 +191,6 @@ module Twilio
|
|
|
191
191
|
end
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
class ProvisioningStatusPageMetadata < PageMetadata
|
|
195
|
-
attr_reader :provisioning_status_page
|
|
196
|
-
|
|
197
|
-
def initialize(version, response, solution, limit)
|
|
198
|
-
super(version, response)
|
|
199
|
-
@provisioning_status_page = []
|
|
200
|
-
@limit = limit
|
|
201
|
-
key = get_key(response.body)
|
|
202
|
-
records = 0
|
|
203
|
-
while( limit != :unset && records < limit )
|
|
204
|
-
@provisioning_status_page << ProvisioningStatusListResponse.new(version, @payload, key, limit - records)
|
|
205
|
-
@payload = self.next_page
|
|
206
|
-
break unless @payload
|
|
207
|
-
records += (@payload.body[key] || []).size
|
|
208
|
-
end
|
|
209
|
-
# Path Solution
|
|
210
|
-
@solution = solution
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
def each
|
|
214
|
-
@provisioning_status_page.each do |record|
|
|
215
|
-
yield record
|
|
216
|
-
end
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
def to_s
|
|
220
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
class ProvisioningStatusListResponse < InstanceListResource
|
|
224
|
-
|
|
225
|
-
# @param [Array<ProvisioningStatusInstance>] instance
|
|
226
|
-
# @param [Hash{String => Object}] headers
|
|
227
|
-
# @param [Integer] status_code
|
|
228
|
-
def initialize(version, payload, key, limit = :unset)
|
|
229
|
-
data_list = payload.body[key] || []
|
|
230
|
-
if limit != :unset
|
|
231
|
-
data_list = data_list[0, limit]
|
|
232
|
-
end
|
|
233
|
-
@provisioning_status = data_list.map do |data|
|
|
234
|
-
ProvisioningStatusInstance.new(version, data)
|
|
235
|
-
end
|
|
236
|
-
@headers = payload.headers
|
|
237
|
-
@status_code = payload.status_code
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
def provisioning_status
|
|
241
|
-
@provisioning_status
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
def headers
|
|
245
|
-
@headers
|
|
246
|
-
end
|
|
247
|
-
|
|
248
|
-
def status_code
|
|
249
|
-
@status_code
|
|
250
|
-
end
|
|
251
|
-
end
|
|
252
|
-
|
|
253
194
|
class ProvisioningStatusInstance < InstanceResource
|
|
254
195
|
##
|
|
255
196
|
# Initialize the ProvisioningStatusInstance
|
|
@@ -269,65 +269,6 @@ module Twilio
|
|
|
269
269
|
end
|
|
270
270
|
end
|
|
271
271
|
|
|
272
|
-
class FlexUserPageMetadata < PageMetadata
|
|
273
|
-
attr_reader :flex_user_page
|
|
274
|
-
|
|
275
|
-
def initialize(version, response, solution, limit)
|
|
276
|
-
super(version, response)
|
|
277
|
-
@flex_user_page = []
|
|
278
|
-
@limit = limit
|
|
279
|
-
key = get_key(response.body)
|
|
280
|
-
records = 0
|
|
281
|
-
while( limit != :unset && records < limit )
|
|
282
|
-
@flex_user_page << FlexUserListResponse.new(version, @payload, key, limit - records)
|
|
283
|
-
@payload = self.next_page
|
|
284
|
-
break unless @payload
|
|
285
|
-
records += (@payload.body[key] || []).size
|
|
286
|
-
end
|
|
287
|
-
# Path Solution
|
|
288
|
-
@solution = solution
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
def each
|
|
292
|
-
@flex_user_page.each do |record|
|
|
293
|
-
yield record
|
|
294
|
-
end
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
def to_s
|
|
298
|
-
'<Twilio::REST::FlexApi::V2PageMetadata>';
|
|
299
|
-
end
|
|
300
|
-
end
|
|
301
|
-
class FlexUserListResponse < InstanceListResource
|
|
302
|
-
|
|
303
|
-
# @param [Array<FlexUserInstance>] instance
|
|
304
|
-
# @param [Hash{String => Object}] headers
|
|
305
|
-
# @param [Integer] status_code
|
|
306
|
-
def initialize(version, payload, key, limit = :unset)
|
|
307
|
-
data_list = payload.body[key] || []
|
|
308
|
-
if limit != :unset
|
|
309
|
-
data_list = data_list[0, limit]
|
|
310
|
-
end
|
|
311
|
-
@flex_user = data_list.map do |data|
|
|
312
|
-
FlexUserInstance.new(version, data)
|
|
313
|
-
end
|
|
314
|
-
@headers = payload.headers
|
|
315
|
-
@status_code = payload.status_code
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
def flex_user
|
|
319
|
-
@flex_user
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
def headers
|
|
323
|
-
@headers
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def status_code
|
|
327
|
-
@status_code
|
|
328
|
-
end
|
|
329
|
-
end
|
|
330
|
-
|
|
331
272
|
class FlexUserInstance < InstanceResource
|
|
332
273
|
##
|
|
333
274
|
# Initialize the FlexUserInstance
|