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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio Memory API
|
|
8
|
-
# APIs for managing memory stores, profiles,
|
|
8
|
+
# APIs for managing memory stores, profiles, and conversational intelligence capabilities.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -24,7 +24,7 @@ module Twilio
|
|
|
24
24
|
# @param [description]: [String] A human readable description of this resource, up to 512 characters.
|
|
25
25
|
# @param [is_enabled]: [Boolean] Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
|
|
26
26
|
# @param [mapping_to]: [DataMappingList.DataMappingToTraits]
|
|
27
|
-
# @param [mapping_from]: [DataMappingList.
|
|
27
|
+
# @param [mapping_from]: [DataMappingList.DataMappingFromTypes]
|
|
28
28
|
attr_accessor :display_name, :description, :is_enabled, :mapping_to, :mapping_from
|
|
29
29
|
def initialize(payload)
|
|
30
30
|
@display_name = payload["display_name"]
|
|
@@ -67,20 +67,17 @@ module Twilio
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
class MappingTraitItem
|
|
70
|
-
# @param [field_name]: [String] The name of the field/column in the source. Deprecated in favor of expression.
|
|
71
70
|
# @param [expression]: [String] The expression identifying the field/column in the source.
|
|
72
71
|
# @param [trait_group]: [String] The name of the Trait Group to map to.
|
|
73
72
|
# @param [trait_name]: [String] The name of the trait within the Trait Group to map to.
|
|
74
|
-
attr_accessor :
|
|
73
|
+
attr_accessor :expression, :trait_group, :trait_name
|
|
75
74
|
def initialize(payload)
|
|
76
|
-
@field_name = payload["field_name"]
|
|
77
75
|
@expression = payload["expression"]
|
|
78
76
|
@trait_group = payload["trait_group"]
|
|
79
77
|
@trait_name = payload["trait_name"]
|
|
80
78
|
end
|
|
81
79
|
def to_json(options = {})
|
|
82
80
|
{
|
|
83
|
-
"fieldName": @field_name,
|
|
84
81
|
"expression": @expression,
|
|
85
82
|
"traitGroup": @trait_group,
|
|
86
83
|
"traitName": @trait_name,
|
|
@@ -94,7 +91,7 @@ module Twilio
|
|
|
94
91
|
# @param [description]: [String] A human readable description of this resource, up to 512 characters.
|
|
95
92
|
# @param [is_enabled]: [Boolean] Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
|
|
96
93
|
# @param [mapping_to]: [DataMappingList.DataMappingToTraits]
|
|
97
|
-
# @param [mapping_from]: [DataMappingList.
|
|
94
|
+
# @param [mapping_from]: [DataMappingList.DataMappingFromTypes]
|
|
98
95
|
attr_accessor :display_name, :description, :is_enabled, :mapping_to, :mapping_from
|
|
99
96
|
def initialize(payload)
|
|
100
97
|
@display_name = payload["display_name"]
|
|
@@ -137,20 +134,17 @@ module Twilio
|
|
|
137
134
|
end
|
|
138
135
|
|
|
139
136
|
class MappingTraitItem
|
|
140
|
-
# @param [field_name]: [String] The name of the field/column in the source. Deprecated in favor of expression.
|
|
141
137
|
# @param [expression]: [String] The expression identifying the field/column in the source.
|
|
142
138
|
# @param [trait_group]: [String] The name of the Trait Group to map to.
|
|
143
139
|
# @param [trait_name]: [String] The name of the trait within the Trait Group to map to.
|
|
144
|
-
attr_accessor :
|
|
140
|
+
attr_accessor :expression, :trait_group, :trait_name
|
|
145
141
|
def initialize(payload)
|
|
146
|
-
@field_name = payload["field_name"]
|
|
147
142
|
@expression = payload["expression"]
|
|
148
143
|
@trait_group = payload["trait_group"]
|
|
149
144
|
@trait_name = payload["trait_name"]
|
|
150
145
|
end
|
|
151
146
|
def to_json(options = {})
|
|
152
147
|
{
|
|
153
|
-
"fieldName": @field_name,
|
|
154
148
|
"expression": @expression,
|
|
155
149
|
"traitGroup": @trait_group,
|
|
156
150
|
"traitName": @trait_name,
|
|
@@ -761,7 +755,7 @@ module Twilio
|
|
|
761
755
|
end
|
|
762
756
|
|
|
763
757
|
##
|
|
764
|
-
# @return [
|
|
758
|
+
# @return [DataMappingFromTypes]
|
|
765
759
|
def mapping_from
|
|
766
760
|
@properties['mapping_from']
|
|
767
761
|
end
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio Memory API
|
|
8
|
-
# APIs for managing memory stores, profiles,
|
|
8
|
+
# APIs for managing memory stores, profiles, and conversational intelligence capabilities.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -197,27 +197,6 @@ module Twilio
|
|
|
197
197
|
result
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
##
|
|
201
|
-
# Lists IdentifierPageMetadata records from the API as a list.
|
|
202
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
203
|
-
# guarantees to never return more than limit. Default is no limit
|
|
204
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
205
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
|
206
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
207
|
-
# efficient page size, i.e. min(limit, 1000)
|
|
208
|
-
# @return [Array] Array of up to limit results
|
|
209
|
-
def list_with_metadata(limit: nil, page_size: nil)
|
|
210
|
-
limits = @version.read_limits(limit, page_size)
|
|
211
|
-
params = Twilio::Values.of({
|
|
212
|
-
|
|
213
|
-
'PageSize' => limits[:page_size],
|
|
214
|
-
});
|
|
215
|
-
headers = Twilio::Values.of({})
|
|
216
|
-
|
|
217
|
-
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
218
|
-
|
|
219
|
-
IdentifierPageMetadata.new(@version, response, @solution, limits[:limit])
|
|
220
|
-
end
|
|
221
200
|
|
|
222
201
|
##
|
|
223
202
|
# When passed a block, yields IdentifierInstance records from the API.
|
|
@@ -541,65 +520,6 @@ module Twilio
|
|
|
541
520
|
end
|
|
542
521
|
end
|
|
543
522
|
|
|
544
|
-
class IdentifierPageMetadata < PageMetadata
|
|
545
|
-
attr_reader :identifier_page
|
|
546
|
-
|
|
547
|
-
def initialize(version, response, solution, limit)
|
|
548
|
-
super(version, response)
|
|
549
|
-
@identifier_page = []
|
|
550
|
-
@limit = limit
|
|
551
|
-
key = get_key(response.body)
|
|
552
|
-
records = 0
|
|
553
|
-
while( limit != :unset && records < limit )
|
|
554
|
-
@identifier_page << IdentifierListResponse.new(version, @payload, key, limit - records)
|
|
555
|
-
@payload = self.next_page
|
|
556
|
-
break unless @payload
|
|
557
|
-
records += (@payload.body[key] || []).size
|
|
558
|
-
end
|
|
559
|
-
# Path Solution
|
|
560
|
-
@solution = solution
|
|
561
|
-
end
|
|
562
|
-
|
|
563
|
-
def each
|
|
564
|
-
@identifier_page.each do |record|
|
|
565
|
-
yield record
|
|
566
|
-
end
|
|
567
|
-
end
|
|
568
|
-
|
|
569
|
-
def to_s
|
|
570
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
571
|
-
end
|
|
572
|
-
end
|
|
573
|
-
class IdentifierListResponse < InstanceListResource
|
|
574
|
-
|
|
575
|
-
# @param [Array<IdentifierInstance>] instance
|
|
576
|
-
# @param [Hash{String => Object}] headers
|
|
577
|
-
# @param [Integer] status_code
|
|
578
|
-
def initialize(version, payload, key, limit = :unset)
|
|
579
|
-
data_list = payload.body[key] || []
|
|
580
|
-
if limit != :unset
|
|
581
|
-
data_list = data_list[0, limit]
|
|
582
|
-
end
|
|
583
|
-
@identifier = data_list.map do |data|
|
|
584
|
-
IdentifierInstance.new(version, data)
|
|
585
|
-
end
|
|
586
|
-
@headers = payload.headers
|
|
587
|
-
@status_code = payload.status_code
|
|
588
|
-
end
|
|
589
|
-
|
|
590
|
-
def identifier
|
|
591
|
-
@identifier
|
|
592
|
-
end
|
|
593
|
-
|
|
594
|
-
def headers
|
|
595
|
-
@headers
|
|
596
|
-
end
|
|
597
|
-
|
|
598
|
-
def status_code
|
|
599
|
-
@status_code
|
|
600
|
-
end
|
|
601
|
-
end
|
|
602
|
-
|
|
603
523
|
class IdentifierInstance < InstanceResource
|
|
604
524
|
##
|
|
605
525
|
# Initialize the IdentifierInstance
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio Memory API
|
|
8
|
-
# APIs for managing memory stores, profiles,
|
|
8
|
+
# APIs for managing memory stores, profiles, and conversational intelligence capabilities.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -21,7 +21,7 @@ module Twilio
|
|
|
21
21
|
|
|
22
22
|
class IdentityResolutionSettingsCore
|
|
23
23
|
# @param [identifier_configs]: [Array<IdentityResolutionSettingList.IdentifierConfig>] List of identifier types and their resolution settings.
|
|
24
|
-
# @param [matching_rules]: [Array<String>] Priority list of identifiers to locate profiles to apply new data to, or for
|
|
24
|
+
# @param [matching_rules]: [Array<String>] Priority list of identifiers to locate profiles to apply new data to, or for determining if two existing profiles should merge. Individual rules are evaluated with `OR` logic between them, meaning that satisfying any single rule will trigger a match. Each rule is a single identifier type; compound rules are not supported. Rules are evaluated in order. - If no rule matches against existing profiles, a new profile will be created. - If a rule matches to a single existing profile, the profile will be updated. - If a rule matches to multiple existing profiles, those existing profiles will be merged.
|
|
25
25
|
attr_accessor :identifier_configs, :matching_rules
|
|
26
26
|
def initialize(payload)
|
|
27
27
|
@identifier_configs = payload["identifier_configs"]
|
|
@@ -40,40 +40,13 @@ module Twilio
|
|
|
40
40
|
# Initialize the IdentityResolutionSettingList
|
|
41
41
|
# @param [Version] version Version that contains the resource
|
|
42
42
|
# @return [IdentityResolutionSettingList] IdentityResolutionSettingList
|
|
43
|
-
def initialize(version)
|
|
43
|
+
def initialize(version, store_id: nil)
|
|
44
44
|
|
|
45
45
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
46
46
|
super(apiV1Version)
|
|
47
47
|
# Path Solution
|
|
48
|
-
@solution = {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
# Provide a user friendly representation
|
|
56
|
-
def to_s
|
|
57
|
-
'#<Twilio.Memory.V1.IdentityResolutionSettingList>'
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
class IdentityResolutionSettingContext < InstanceContext
|
|
63
|
-
##
|
|
64
|
-
# Initialize the IdentityResolutionSettingContext
|
|
65
|
-
# @param [Version] version Version that contains the resource
|
|
66
|
-
# @param [String] store_id A unique Memory Store ID using Twilio Type ID (TTID) format
|
|
67
|
-
# @return [IdentityResolutionSettingContext] IdentityResolutionSettingContext
|
|
68
|
-
def initialize(version, store_id)
|
|
69
|
-
|
|
70
|
-
apiV1Version = ApiV1Version.new version.domain, version
|
|
71
|
-
super(apiV1Version)
|
|
72
|
-
|
|
73
|
-
# Path Solution
|
|
74
|
-
@solution = { store_id: store_id, }
|
|
48
|
+
@solution = { store_id: store_id }
|
|
75
49
|
@uri = "/ControlPlane/Stores/#{@solution[:store_id]}/IdentityResolutionSettings"
|
|
76
|
-
|
|
77
50
|
|
|
78
51
|
end
|
|
79
52
|
##
|
|
@@ -174,69 +147,15 @@ module Twilio
|
|
|
174
147
|
)
|
|
175
148
|
end
|
|
176
149
|
|
|
150
|
+
|
|
177
151
|
|
|
178
|
-
##
|
|
179
|
-
# Provide a user friendly representation
|
|
180
|
-
def to_s
|
|
181
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
182
|
-
"#<Twilio.Memory.V1.IdentityResolutionSettingContext #{context}>"
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
##
|
|
186
|
-
# Provide a detailed, user friendly representation
|
|
187
|
-
def inspect
|
|
188
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
189
|
-
"#<Twilio.Memory.V1.IdentityResolutionSettingContext #{context}>"
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
class IdentityResolutionSettingInstanceMetadata < InstanceResourceMetadata
|
|
194
|
-
##
|
|
195
|
-
# Initializes a new IdentityResolutionSettingInstanceMetadata.
|
|
196
|
-
# @param [Version] version Version that contains the resource
|
|
197
|
-
# @param [}IdentityResolutionSettingInstance] identity_resolution_setting_instance The instance associated with the metadata.
|
|
198
|
-
# @param [Hash] headers Header object with response headers.
|
|
199
|
-
# @param [Integer] status_code The HTTP status code of the response.
|
|
200
|
-
# @return [IdentityResolutionSettingInstanceMetadata] The initialized instance with metadata.
|
|
201
|
-
def initialize(version, identity_resolution_setting_instance, headers, status_code)
|
|
202
|
-
super(version, headers, status_code)
|
|
203
|
-
@identity_resolution_setting_instance = identity_resolution_setting_instance
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
def identity_resolution_setting
|
|
207
|
-
@identity_resolution_setting_instance
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
def headers
|
|
211
|
-
@headers
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
def status_code
|
|
215
|
-
@status_code
|
|
216
|
-
end
|
|
217
152
|
|
|
153
|
+
# Provide a user friendly representation
|
|
218
154
|
def to_s
|
|
219
|
-
|
|
155
|
+
'#<Twilio.Memory.V1.IdentityResolutionSettingList>'
|
|
220
156
|
end
|
|
221
157
|
end
|
|
222
158
|
|
|
223
|
-
class IdentityResolutionSettingListResponse < InstanceListResource
|
|
224
|
-
# @param [Array<IdentityResolutionSettingInstance>] instance
|
|
225
|
-
# @param [Hash{String => Object}] headers
|
|
226
|
-
# @param [Integer] status_code
|
|
227
|
-
def initialize(version, payload, key)
|
|
228
|
-
@identity_resolution_setting_instance = payload.body[key].map do |data|
|
|
229
|
-
IdentityResolutionSettingInstance.new(version, data)
|
|
230
|
-
end
|
|
231
|
-
@headers = payload.headers
|
|
232
|
-
@status_code = payload.status_code
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
def identity_resolution_setting_instance
|
|
236
|
-
@instance
|
|
237
|
-
end
|
|
238
|
-
end
|
|
239
|
-
|
|
240
159
|
class IdentityResolutionSettingPage < TokenPage
|
|
241
160
|
##
|
|
242
161
|
# Initialize the IdentityResolutionSettingPage
|
|
@@ -258,7 +177,7 @@ module Twilio
|
|
|
258
177
|
# @param [Hash] payload Payload response from the API
|
|
259
178
|
# @return [IdentityResolutionSettingInstance] IdentityResolutionSettingInstance
|
|
260
179
|
def get_instance(payload)
|
|
261
|
-
IdentityResolutionSettingInstance.new(@version, payload)
|
|
180
|
+
IdentityResolutionSettingInstance.new(@version, payload, store_id: @solution[:store_id])
|
|
262
181
|
end
|
|
263
182
|
|
|
264
183
|
##
|
|
@@ -268,65 +187,6 @@ module Twilio
|
|
|
268
187
|
end
|
|
269
188
|
end
|
|
270
189
|
|
|
271
|
-
class IdentityResolutionSettingPageMetadata < PageMetadata
|
|
272
|
-
attr_reader :identity_resolution_setting_page
|
|
273
|
-
|
|
274
|
-
def initialize(version, response, solution, limit)
|
|
275
|
-
super(version, response)
|
|
276
|
-
@identity_resolution_setting_page = []
|
|
277
|
-
@limit = limit
|
|
278
|
-
key = get_key(response.body)
|
|
279
|
-
records = 0
|
|
280
|
-
while( limit != :unset && records < limit )
|
|
281
|
-
@identity_resolution_setting_page << IdentityResolutionSettingListResponse.new(version, @payload, key, limit - records)
|
|
282
|
-
@payload = self.next_page
|
|
283
|
-
break unless @payload
|
|
284
|
-
records += (@payload.body[key] || []).size
|
|
285
|
-
end
|
|
286
|
-
# Path Solution
|
|
287
|
-
@solution = solution
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
def each
|
|
291
|
-
@identity_resolution_setting_page.each do |record|
|
|
292
|
-
yield record
|
|
293
|
-
end
|
|
294
|
-
end
|
|
295
|
-
|
|
296
|
-
def to_s
|
|
297
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
298
|
-
end
|
|
299
|
-
end
|
|
300
|
-
class IdentityResolutionSettingListResponse < InstanceListResource
|
|
301
|
-
|
|
302
|
-
# @param [Array<IdentityResolutionSettingInstance>] instance
|
|
303
|
-
# @param [Hash{String => Object}] headers
|
|
304
|
-
# @param [Integer] status_code
|
|
305
|
-
def initialize(version, payload, key, limit = :unset)
|
|
306
|
-
data_list = payload.body[key] || []
|
|
307
|
-
if limit != :unset
|
|
308
|
-
data_list = data_list[0, limit]
|
|
309
|
-
end
|
|
310
|
-
@identity_resolution_setting = data_list.map do |data|
|
|
311
|
-
IdentityResolutionSettingInstance.new(version, data)
|
|
312
|
-
end
|
|
313
|
-
@headers = payload.headers
|
|
314
|
-
@status_code = payload.status_code
|
|
315
|
-
end
|
|
316
|
-
|
|
317
|
-
def identity_resolution_setting
|
|
318
|
-
@identity_resolution_setting
|
|
319
|
-
end
|
|
320
|
-
|
|
321
|
-
def headers
|
|
322
|
-
@headers
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
def status_code
|
|
326
|
-
@status_code
|
|
327
|
-
end
|
|
328
|
-
end
|
|
329
|
-
|
|
330
190
|
class IdentityResolutionSettingInstance < InstanceResource
|
|
331
191
|
##
|
|
332
192
|
# Initialize the IdentityResolutionSettingInstance
|
|
@@ -350,22 +210,8 @@ module Twilio
|
|
|
350
210
|
'message' => payload['message'],
|
|
351
211
|
'status_url' => payload['status_url'],
|
|
352
212
|
}
|
|
353
|
-
|
|
354
|
-
# Context
|
|
355
|
-
@instance_context = nil
|
|
356
|
-
@params = { 'store_id' => store_id || @properties['store_id'] , }
|
|
357
213
|
end
|
|
358
214
|
|
|
359
|
-
##
|
|
360
|
-
# Generate an instance context for the instance, the context is capable of
|
|
361
|
-
# performing various actions. All instance actions are proxied to the context
|
|
362
|
-
# @return [IdentityResolutionSettingContext] CallContext for this CallInstance
|
|
363
|
-
def context
|
|
364
|
-
unless @instance_context
|
|
365
|
-
@instance_context = IdentityResolutionSettingContext.new(@version , @params['store_id'])
|
|
366
|
-
end
|
|
367
|
-
@instance_context
|
|
368
|
-
end
|
|
369
215
|
|
|
370
216
|
##
|
|
371
217
|
# @return [Array<IdentifierConfig>] List of identifier types and their resolution settings.
|
|
@@ -374,7 +220,7 @@ module Twilio
|
|
|
374
220
|
end
|
|
375
221
|
|
|
376
222
|
##
|
|
377
|
-
# @return [Array<String>] Priority list of identifiers to locate profiles to apply new data to, or for
|
|
223
|
+
# @return [Array<String>] Priority list of identifiers to locate profiles to apply new data to, or for determining if two existing profiles should merge. Individual rules are evaluated with `OR` logic between them, meaning that satisfying any single rule will trigger a match. Each rule is a single identifier type; compound rules are not supported. Rules are evaluated in order. - If no rule matches against existing profiles, a new profile will be created. - If a rule matches to a single existing profile, the profile will be updated. - If a rule matches to multiple existing profiles, those existing profiles will be merged.
|
|
378
224
|
def matching_rules
|
|
379
225
|
@properties['matching_rules']
|
|
380
226
|
end
|
|
@@ -397,42 +243,16 @@ module Twilio
|
|
|
397
243
|
@properties['status_url']
|
|
398
244
|
end
|
|
399
245
|
|
|
400
|
-
##
|
|
401
|
-
# Fetch the IdentityResolutionSettingInstance
|
|
402
|
-
# @return [IdentityResolutionSettingInstance] Fetched IdentityResolutionSettingInstance
|
|
403
|
-
def fetch
|
|
404
|
-
|
|
405
|
-
context.fetch
|
|
406
|
-
end
|
|
407
|
-
|
|
408
|
-
##
|
|
409
|
-
# Update the IdentityResolutionSettingInstance
|
|
410
|
-
# @param [String] if_match Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
|
|
411
|
-
# @param [IdentityResolutionSettingsCore] identity_resolution_settings_core
|
|
412
|
-
# @return [IdentityResolutionSettingInstance] Updated IdentityResolutionSettingInstance
|
|
413
|
-
def update(
|
|
414
|
-
if_match: :unset,
|
|
415
|
-
identity_resolution_settings_core: nil
|
|
416
|
-
)
|
|
417
|
-
|
|
418
|
-
context.update(
|
|
419
|
-
if_match: if_match,
|
|
420
|
-
identity_resolution_settings_core: identity_resolution_settings_core,
|
|
421
|
-
)
|
|
422
|
-
end
|
|
423
|
-
|
|
424
246
|
##
|
|
425
247
|
# Provide a user friendly representation
|
|
426
248
|
def to_s
|
|
427
|
-
|
|
428
|
-
"<Twilio.Memory.V1.IdentityResolutionSettingInstance #{values}>"
|
|
249
|
+
"<Twilio.Memory.V1.IdentityResolutionSettingInstance>"
|
|
429
250
|
end
|
|
430
251
|
|
|
431
252
|
##
|
|
432
253
|
# Provide a detailed, user friendly representation
|
|
433
254
|
def inspect
|
|
434
|
-
|
|
435
|
-
"<Twilio.Memory.V1.IdentityResolutionSettingInstance #{values}>"
|
|
255
|
+
"<Twilio.Memory.V1.IdentityResolutionSettingInstance>"
|
|
436
256
|
end
|
|
437
257
|
end
|
|
438
258
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio Memory API
|
|
8
|
-
# APIs for managing memory stores, profiles,
|
|
8
|
+
# APIs for managing memory stores, profiles, and conversational intelligence capabilities.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -105,6 +105,8 @@ module Twilio
|
|
|
105
105
|
# Lists ImportInstance records from the API as a list.
|
|
106
106
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
107
107
|
# memory before returning.
|
|
108
|
+
# @param [String] page_token The token for the page of results to retrieve.
|
|
109
|
+
# @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
|
|
108
110
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
109
111
|
# guarantees to never return more than limit. Default is no limit
|
|
110
112
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -112,8 +114,10 @@ module Twilio
|
|
|
112
114
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
113
115
|
# efficient page size, i.e. min(limit, 1000)
|
|
114
116
|
# @return [Array] Array of up to limit results
|
|
115
|
-
def list(limit: nil, page_size: nil)
|
|
117
|
+
def list(page_token: :unset, order_by: :unset, limit: nil, page_size: nil)
|
|
116
118
|
self.stream(
|
|
119
|
+
page_token: page_token,
|
|
120
|
+
order_by: order_by,
|
|
117
121
|
limit: limit,
|
|
118
122
|
page_size: page_size
|
|
119
123
|
).entries
|
|
@@ -123,6 +127,8 @@ module Twilio
|
|
|
123
127
|
# Streams Instance records from the API as an Enumerable.
|
|
124
128
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
125
129
|
# is reached.
|
|
130
|
+
# @param [String] page_token The token for the page of results to retrieve.
|
|
131
|
+
# @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
|
|
126
132
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
127
133
|
# guarantees to never return more than limit. Default is no limit
|
|
128
134
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -130,10 +136,12 @@ module Twilio
|
|
|
130
136
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
131
137
|
# efficient page size, i.e. min(limit, 1000)
|
|
132
138
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
133
|
-
def stream(limit: nil, page_size: nil)
|
|
139
|
+
def stream(page_token: :unset, order_by: :unset, limit: nil, page_size: nil)
|
|
134
140
|
limits = @version.read_limits(limit, page_size)
|
|
135
141
|
|
|
136
142
|
page = self.page(
|
|
143
|
+
page_token: page_token,
|
|
144
|
+
order_by: order_by,
|
|
137
145
|
page_size: limits[:page_size], )
|
|
138
146
|
|
|
139
147
|
return [].each if page.nil?
|
|
@@ -145,6 +153,8 @@ module Twilio
|
|
|
145
153
|
|
|
146
154
|
##
|
|
147
155
|
# Lists ImportPageMetadata records from the API as a list.
|
|
156
|
+
# @param [String] page_token The token for the page of results to retrieve.
|
|
157
|
+
# @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
|
|
148
158
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
149
159
|
# guarantees to never return more than limit. Default is no limit
|
|
150
160
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -152,9 +162,11 @@ module Twilio
|
|
|
152
162
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
153
163
|
# efficient page size, i.e. min(limit, 1000)
|
|
154
164
|
# @return [Array] Array of up to limit results
|
|
155
|
-
def list_with_metadata(limit: nil, page_size: nil)
|
|
165
|
+
def list_with_metadata(page_token: :unset, order_by: :unset, limit: nil, page_size: nil)
|
|
156
166
|
limits = @version.read_limits(limit, page_size)
|
|
157
167
|
params = Twilio::Values.of({
|
|
168
|
+
'pageToken' => page_token,
|
|
169
|
+
'orderBy' => order_by,
|
|
158
170
|
|
|
159
171
|
'PageSize' => limits[:page_size],
|
|
160
172
|
});
|
|
@@ -186,10 +198,14 @@ module Twilio
|
|
|
186
198
|
##
|
|
187
199
|
# Retrieve a single page of ImportInstance records from the API.
|
|
188
200
|
# Request is executed immediately.
|
|
201
|
+
# @param [String] page_token The token for the page of results to retrieve.
|
|
202
|
+
# @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
|
|
189
203
|
|
|
190
204
|
# @return [Page] Page of ImportInstance
|
|
191
|
-
def page(page_size: :unset)
|
|
205
|
+
def page(page_token: :unset, order_by: :unset, page_size: :unset)
|
|
192
206
|
params = Twilio::Values.of({
|
|
207
|
+
'pageToken' => page_token,
|
|
208
|
+
'orderBy' => order_by,
|
|
193
209
|
'PageSize' => page_size,
|
|
194
210
|
})
|
|
195
211
|
headers = Twilio::Values.of({})
|
|
@@ -467,6 +483,7 @@ module Twilio
|
|
|
467
483
|
'column_mappings' => payload['column_mappings'],
|
|
468
484
|
'summary' => payload['summary'],
|
|
469
485
|
'imports' => payload['imports'],
|
|
486
|
+
'meta' => payload['meta'],
|
|
470
487
|
}
|
|
471
488
|
|
|
472
489
|
# Context
|
|
@@ -545,6 +562,12 @@ module Twilio
|
|
|
545
562
|
@properties['imports']
|
|
546
563
|
end
|
|
547
564
|
|
|
565
|
+
##
|
|
566
|
+
# @return [ListProfileImportsV2200ResponseMeta]
|
|
567
|
+
def meta
|
|
568
|
+
@properties['meta']
|
|
569
|
+
end
|
|
570
|
+
|
|
548
571
|
##
|
|
549
572
|
# Fetch the ImportInstance
|
|
550
573
|
# @return [ImportInstance] Fetched ImportInstance
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio Memory API
|
|
8
|
-
# APIs for managing memory stores, profiles,
|
|
8
|
+
# APIs for managing memory stores, profiles, and conversational intelligence capabilities.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -137,65 +137,6 @@ module Twilio
|
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
class LookupPageMetadata < PageMetadata
|
|
141
|
-
attr_reader :lookup_page
|
|
142
|
-
|
|
143
|
-
def initialize(version, response, solution, limit)
|
|
144
|
-
super(version, response)
|
|
145
|
-
@lookup_page = []
|
|
146
|
-
@limit = limit
|
|
147
|
-
key = get_key(response.body)
|
|
148
|
-
records = 0
|
|
149
|
-
while( limit != :unset && records < limit )
|
|
150
|
-
@lookup_page << LookupListResponse.new(version, @payload, key, limit - records)
|
|
151
|
-
@payload = self.next_page
|
|
152
|
-
break unless @payload
|
|
153
|
-
records += (@payload.body[key] || []).size
|
|
154
|
-
end
|
|
155
|
-
# Path Solution
|
|
156
|
-
@solution = solution
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
def each
|
|
160
|
-
@lookup_page.each do |record|
|
|
161
|
-
yield record
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def to_s
|
|
166
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
class LookupListResponse < InstanceListResource
|
|
170
|
-
|
|
171
|
-
# @param [Array<LookupInstance>] instance
|
|
172
|
-
# @param [Hash{String => Object}] headers
|
|
173
|
-
# @param [Integer] status_code
|
|
174
|
-
def initialize(version, payload, key, limit = :unset)
|
|
175
|
-
data_list = payload.body[key] || []
|
|
176
|
-
if limit != :unset
|
|
177
|
-
data_list = data_list[0, limit]
|
|
178
|
-
end
|
|
179
|
-
@lookup = data_list.map do |data|
|
|
180
|
-
LookupInstance.new(version, data)
|
|
181
|
-
end
|
|
182
|
-
@headers = payload.headers
|
|
183
|
-
@status_code = payload.status_code
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
def lookup
|
|
187
|
-
@lookup
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def headers
|
|
191
|
-
@headers
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
def status_code
|
|
195
|
-
@status_code
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
|
|
199
140
|
class LookupInstance < InstanceResource
|
|
200
141
|
##
|
|
201
142
|
# Initialize the LookupInstance
|