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
|
|
@@ -20,7 +20,7 @@ module Twilio
|
|
|
20
20
|
class ObservationList < ListResource
|
|
21
21
|
|
|
22
22
|
class CreateObservationsRequest
|
|
23
|
-
# @param [observations]: [Array<ObservationList.
|
|
23
|
+
# @param [observations]: [Array<ObservationList.ObservationCreateRequest>] Array of observations to create in a single batch operation.
|
|
24
24
|
attr_accessor :observations
|
|
25
25
|
def initialize(payload)
|
|
26
26
|
@observations = payload["observations"]
|
|
@@ -32,7 +32,29 @@ module Twilio
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class ObservationBase
|
|
36
|
+
# @param [content]: [String] The main content of the observation.
|
|
37
|
+
# @param [occurred_at]: [Time] The timestamp when the observation originally occurred.
|
|
38
|
+
# @param [source]: [String] The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
39
|
+
# @param [conversation_ids]: [Array<String>] Array of conversation IDs associated with this observation.
|
|
40
|
+
attr_accessor :content, :occurred_at, :source, :conversation_ids
|
|
41
|
+
def initialize(payload)
|
|
42
|
+
@content = payload["content"]
|
|
43
|
+
@occurred_at = payload["occurred_at"]
|
|
44
|
+
@source = payload["source"]
|
|
45
|
+
@conversation_ids = payload["conversation_ids"]
|
|
46
|
+
end
|
|
47
|
+
def to_json(options = {})
|
|
48
|
+
{
|
|
49
|
+
"content": @content,
|
|
50
|
+
"occurredAt": @occurred_at,
|
|
51
|
+
"source": @source,
|
|
52
|
+
"conversationIds": @conversation_ids,
|
|
53
|
+
}.to_json(options)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
class ObservationCreateRequest
|
|
36
58
|
# @param [content]: [String] The main content of the observation.
|
|
37
59
|
# @param [occurred_at]: [Time] The timestamp when the observation originally occurred.
|
|
38
60
|
# @param [source]: [String] The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
@@ -56,7 +78,7 @@ module Twilio
|
|
|
56
78
|
|
|
57
79
|
|
|
58
80
|
class CreateObservationsRequest
|
|
59
|
-
# @param [observations]: [Array<ObservationList.
|
|
81
|
+
# @param [observations]: [Array<ObservationList.ObservationCreateRequest>] Array of observations to create in a single batch operation.
|
|
60
82
|
attr_accessor :observations
|
|
61
83
|
def initialize(payload)
|
|
62
84
|
@observations = payload["observations"]
|
|
@@ -68,7 +90,29 @@ module Twilio
|
|
|
68
90
|
end
|
|
69
91
|
end
|
|
70
92
|
|
|
71
|
-
class
|
|
93
|
+
class ObservationBase
|
|
94
|
+
# @param [content]: [String] The main content of the observation.
|
|
95
|
+
# @param [occurred_at]: [Time] The timestamp when the observation originally occurred.
|
|
96
|
+
# @param [source]: [String] The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
97
|
+
# @param [conversation_ids]: [Array<String>] Array of conversation IDs associated with this observation.
|
|
98
|
+
attr_accessor :content, :occurred_at, :source, :conversation_ids
|
|
99
|
+
def initialize(payload)
|
|
100
|
+
@content = payload["content"]
|
|
101
|
+
@occurred_at = payload["occurred_at"]
|
|
102
|
+
@source = payload["source"]
|
|
103
|
+
@conversation_ids = payload["conversation_ids"]
|
|
104
|
+
end
|
|
105
|
+
def to_json(options = {})
|
|
106
|
+
{
|
|
107
|
+
"content": @content,
|
|
108
|
+
"occurredAt": @occurred_at,
|
|
109
|
+
"source": @source,
|
|
110
|
+
"conversationIds": @conversation_ids,
|
|
111
|
+
}.to_json(options)
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class ObservationCreateRequest
|
|
72
116
|
# @param [content]: [String] The main content of the observation.
|
|
73
117
|
# @param [occurred_at]: [Time] The timestamp when the observation originally occurred.
|
|
74
118
|
# @param [source]: [String] The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
@@ -174,6 +218,7 @@ module Twilio
|
|
|
174
218
|
# @param [String] source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
175
219
|
# @param [Time] created_after Filter observations created after this timestamp (inclusive).
|
|
176
220
|
# @param [Time] created_before Filter observations created before this timestamp (exclusive).
|
|
221
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
177
222
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
178
223
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
179
224
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -182,13 +227,14 @@ module Twilio
|
|
|
182
227
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
183
228
|
# efficient page size, i.e. min(limit, 1000)
|
|
184
229
|
# @return [Array] Array of up to limit results
|
|
185
|
-
def list(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
230
|
+
def list(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
186
231
|
self.stream(
|
|
187
232
|
page_token: page_token,
|
|
188
233
|
order_by: order_by,
|
|
189
234
|
source: source,
|
|
190
235
|
created_after: created_after,
|
|
191
236
|
created_before: created_before,
|
|
237
|
+
conversation_id: conversation_id,
|
|
192
238
|
accept_encoding: accept_encoding,
|
|
193
239
|
limit: limit,
|
|
194
240
|
page_size: page_size
|
|
@@ -204,6 +250,7 @@ module Twilio
|
|
|
204
250
|
# @param [String] source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
205
251
|
# @param [Time] created_after Filter observations created after this timestamp (inclusive).
|
|
206
252
|
# @param [Time] created_before Filter observations created before this timestamp (exclusive).
|
|
253
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
207
254
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
208
255
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
209
256
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -212,7 +259,7 @@ module Twilio
|
|
|
212
259
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
213
260
|
# efficient page size, i.e. min(limit, 1000)
|
|
214
261
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
215
|
-
def stream(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
262
|
+
def stream(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
216
263
|
limits = @version.read_limits(limit, page_size)
|
|
217
264
|
|
|
218
265
|
page = self.page(
|
|
@@ -221,6 +268,7 @@ module Twilio
|
|
|
221
268
|
source: source,
|
|
222
269
|
created_after: created_after,
|
|
223
270
|
created_before: created_before,
|
|
271
|
+
conversation_id: conversation_id,
|
|
224
272
|
accept_encoding: accept_encoding,
|
|
225
273
|
page_size: limits[:page_size], )
|
|
226
274
|
|
|
@@ -238,6 +286,7 @@ module Twilio
|
|
|
238
286
|
# @param [String] source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
239
287
|
# @param [Time] created_after Filter observations created after this timestamp (inclusive).
|
|
240
288
|
# @param [Time] created_before Filter observations created before this timestamp (exclusive).
|
|
289
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
241
290
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
242
291
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
243
292
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -246,7 +295,7 @@ module Twilio
|
|
|
246
295
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
247
296
|
# efficient page size, i.e. min(limit, 1000)
|
|
248
297
|
# @return [Array] Array of up to limit results
|
|
249
|
-
def list_with_metadata(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
298
|
+
def list_with_metadata(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
250
299
|
limits = @version.read_limits(limit, page_size)
|
|
251
300
|
params = Twilio::Values.of({
|
|
252
301
|
'pageToken' => page_token,
|
|
@@ -254,11 +303,11 @@ module Twilio
|
|
|
254
303
|
'source' => source,
|
|
255
304
|
'createdAfter' => Twilio.serialize_iso8601_datetime(created_after),
|
|
256
305
|
'createdBefore' => Twilio.serialize_iso8601_datetime(created_before),
|
|
257
|
-
'
|
|
306
|
+
'conversationId' => conversation_id,
|
|
258
307
|
|
|
259
308
|
'PageSize' => limits[:page_size],
|
|
260
309
|
});
|
|
261
|
-
headers = Twilio::Values.of({})
|
|
310
|
+
headers = Twilio::Values.of({ 'Accept-Encoding' => accept_encoding, })
|
|
262
311
|
|
|
263
312
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
264
313
|
|
|
@@ -291,20 +340,21 @@ module Twilio
|
|
|
291
340
|
# @param [String] source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
292
341
|
# @param [Time] created_after Filter observations created after this timestamp (inclusive).
|
|
293
342
|
# @param [Time] created_before Filter observations created before this timestamp (exclusive).
|
|
343
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
294
344
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
295
345
|
|
|
296
346
|
# @return [Page] Page of ObservationInstance
|
|
297
|
-
def page(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, accept_encoding: :unset, page_size: :unset)
|
|
347
|
+
def page(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, conversation_id: :unset, accept_encoding: :unset, page_size: :unset)
|
|
298
348
|
params = Twilio::Values.of({
|
|
299
349
|
'pageToken' => page_token,
|
|
300
350
|
'orderBy' => order_by,
|
|
301
351
|
'source' => source,
|
|
302
352
|
'createdAfter' => Twilio.serialize_iso8601_datetime(created_after),
|
|
303
353
|
'createdBefore' => Twilio.serialize_iso8601_datetime(created_before),
|
|
304
|
-
'
|
|
354
|
+
'conversationId' => conversation_id,
|
|
305
355
|
'PageSize' => page_size,
|
|
306
356
|
})
|
|
307
|
-
headers = Twilio::Values.of({})
|
|
357
|
+
headers = Twilio::Values.of({ 'Accept-Encoding' => accept_encoding, })
|
|
308
358
|
|
|
309
359
|
|
|
310
360
|
|
|
@@ -443,9 +493,9 @@ module Twilio
|
|
|
443
493
|
|
|
444
494
|
##
|
|
445
495
|
# Patch the ObservationInstance
|
|
446
|
-
# @param [
|
|
496
|
+
# @param [ObservationBase] observation_base
|
|
447
497
|
# @return [ObservationInstance] Patched ObservationInstance
|
|
448
|
-
def patch(
|
|
498
|
+
def patch(observation_base: nil
|
|
449
499
|
)
|
|
450
500
|
|
|
451
501
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -454,7 +504,7 @@ module Twilio
|
|
|
454
504
|
|
|
455
505
|
|
|
456
506
|
|
|
457
|
-
payload = @version.patch('PATCH', @uri, headers: headers, data:
|
|
507
|
+
payload = @version.patch('PATCH', @uri, headers: headers, data: observation_base.to_json)
|
|
458
508
|
ObservationInstance.new(
|
|
459
509
|
@version,
|
|
460
510
|
payload,
|
|
@@ -466,9 +516,9 @@ module Twilio
|
|
|
466
516
|
|
|
467
517
|
##
|
|
468
518
|
# Patch the ObservationInstanceMetadata
|
|
469
|
-
# @param [
|
|
519
|
+
# @param [ObservationBase] observation_base
|
|
470
520
|
# @return [ObservationInstance] Patchd ObservationInstance
|
|
471
|
-
def patch_with_metadata(
|
|
521
|
+
def patch_with_metadata(observation_base: nil
|
|
472
522
|
)
|
|
473
523
|
|
|
474
524
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -477,7 +527,7 @@ module Twilio
|
|
|
477
527
|
|
|
478
528
|
|
|
479
529
|
|
|
480
|
-
response = @version.patch_with_metadata('PATCH', @uri, headers: headers, data:
|
|
530
|
+
response = @version.patch_with_metadata('PATCH', @uri, headers: headers, data: observation_base.to_json)
|
|
481
531
|
observation_instance = ObservationInstance.new(
|
|
482
532
|
@version,
|
|
483
533
|
response.body,
|
|
@@ -755,13 +805,13 @@ module Twilio
|
|
|
755
805
|
|
|
756
806
|
##
|
|
757
807
|
# Patch the ObservationInstance
|
|
758
|
-
# @param [
|
|
808
|
+
# @param [ObservationBase] observation_base
|
|
759
809
|
# @return [ObservationInstance] Patched ObservationInstance
|
|
760
|
-
def patch(
|
|
810
|
+
def patch(observation_base: nil
|
|
761
811
|
)
|
|
762
812
|
|
|
763
813
|
context.patch(
|
|
764
|
-
|
|
814
|
+
observation_base: observation_base,
|
|
765
815
|
)
|
|
766
816
|
end
|
|
767
817
|
|
|
@@ -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,65 +197,6 @@ module Twilio
|
|
|
197
197
|
end
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
class OperationPageMetadata < PageMetadata
|
|
201
|
-
attr_reader :operation_page
|
|
202
|
-
|
|
203
|
-
def initialize(version, response, solution, limit)
|
|
204
|
-
super(version, response)
|
|
205
|
-
@operation_page = []
|
|
206
|
-
@limit = limit
|
|
207
|
-
key = get_key(response.body)
|
|
208
|
-
records = 0
|
|
209
|
-
while( limit != :unset && records < limit )
|
|
210
|
-
@operation_page << OperationListResponse.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
|
-
@operation_page.each do |record|
|
|
221
|
-
yield record
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def to_s
|
|
226
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
class OperationListResponse < InstanceListResource
|
|
230
|
-
|
|
231
|
-
# @param [Array<OperationInstance>] 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
|
-
@operation = data_list.map do |data|
|
|
240
|
-
OperationInstance.new(version, data)
|
|
241
|
-
end
|
|
242
|
-
@headers = payload.headers
|
|
243
|
-
@status_code = payload.status_code
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
def operation
|
|
247
|
-
@operation
|
|
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 OperationInstance < InstanceResource
|
|
260
201
|
##
|
|
261
202
|
# Initialize the OperationInstance
|
|
@@ -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
|
|
@@ -662,7 +662,7 @@ module Twilio
|
|
|
662
662
|
end
|
|
663
663
|
|
|
664
664
|
##
|
|
665
|
-
# @return [
|
|
665
|
+
# @return [IdentityProfilesMeta]
|
|
666
666
|
def meta
|
|
667
667
|
@properties['meta']
|
|
668
668
|
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
|
|
@@ -239,65 +239,6 @@ module Twilio
|
|
|
239
239
|
end
|
|
240
240
|
end
|
|
241
241
|
|
|
242
|
-
class RecallPageMetadata < PageMetadata
|
|
243
|
-
attr_reader :recall_page
|
|
244
|
-
|
|
245
|
-
def initialize(version, response, solution, limit)
|
|
246
|
-
super(version, response)
|
|
247
|
-
@recall_page = []
|
|
248
|
-
@limit = limit
|
|
249
|
-
key = get_key(response.body)
|
|
250
|
-
records = 0
|
|
251
|
-
while( limit != :unset && records < limit )
|
|
252
|
-
@recall_page << RecallListResponse.new(version, @payload, key, limit - records)
|
|
253
|
-
@payload = self.next_page
|
|
254
|
-
break unless @payload
|
|
255
|
-
records += (@payload.body[key] || []).size
|
|
256
|
-
end
|
|
257
|
-
# Path Solution
|
|
258
|
-
@solution = solution
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def each
|
|
262
|
-
@recall_page.each do |record|
|
|
263
|
-
yield record
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
def to_s
|
|
268
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
class RecallListResponse < InstanceListResource
|
|
272
|
-
|
|
273
|
-
# @param [Array<RecallInstance>] instance
|
|
274
|
-
# @param [Hash{String => Object}] headers
|
|
275
|
-
# @param [Integer] status_code
|
|
276
|
-
def initialize(version, payload, key, limit = :unset)
|
|
277
|
-
data_list = payload.body[key] || []
|
|
278
|
-
if limit != :unset
|
|
279
|
-
data_list = data_list[0, limit]
|
|
280
|
-
end
|
|
281
|
-
@recall = data_list.map do |data|
|
|
282
|
-
RecallInstance.new(version, data)
|
|
283
|
-
end
|
|
284
|
-
@headers = payload.headers
|
|
285
|
-
@status_code = payload.status_code
|
|
286
|
-
end
|
|
287
|
-
|
|
288
|
-
def recall
|
|
289
|
-
@recall
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
def headers
|
|
293
|
-
@headers
|
|
294
|
-
end
|
|
295
|
-
|
|
296
|
-
def status_code
|
|
297
|
-
@status_code
|
|
298
|
-
end
|
|
299
|
-
end
|
|
300
|
-
|
|
301
242
|
class RecallInstance < InstanceResource
|
|
302
243
|
##
|
|
303
244
|
# Initialize the RecallInstance
|
|
@@ -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
|
|
@@ -98,11 +98,10 @@ module Twilio
|
|
|
98
98
|
limits = @version.read_limits(limit, page_size)
|
|
99
99
|
params = Twilio::Values.of({
|
|
100
100
|
'pageToken' => page_token,
|
|
101
|
-
'Accept-Encoding' => accept_encoding,
|
|
102
101
|
|
|
103
102
|
'PageSize' => limits[:page_size],
|
|
104
103
|
});
|
|
105
|
-
headers = Twilio::Values.of({})
|
|
104
|
+
headers = Twilio::Values.of({ 'Accept-Encoding' => accept_encoding, })
|
|
106
105
|
|
|
107
106
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
108
107
|
|
|
@@ -137,10 +136,9 @@ module Twilio
|
|
|
137
136
|
def page(page_token: :unset, accept_encoding: :unset, page_size: :unset)
|
|
138
137
|
params = Twilio::Values.of({
|
|
139
138
|
'pageToken' => page_token,
|
|
140
|
-
'Accept-Encoding' => accept_encoding,
|
|
141
139
|
'PageSize' => page_size,
|
|
142
140
|
})
|
|
143
|
-
headers = Twilio::Values.of({})
|
|
141
|
+
headers = Twilio::Values.of({ 'Accept-Encoding' => accept_encoding, })
|
|
144
142
|
|
|
145
143
|
|
|
146
144
|
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -38,17 +38,20 @@ module Twilio
|
|
|
38
38
|
class TraitDefinition
|
|
39
39
|
# @param [data_type]: [String] Data type of the Trait, such as STRING, NUMBER, BOOLEAN, ARRAY. For DELETE operations in PATCH requests, set this to an empty string (\"\") to mark the trait for deletion.
|
|
40
40
|
# @param [description]: [String] Description of the Trait, providing additional context or information.
|
|
41
|
+
# @param [validation_rule]: [ValidationRule]
|
|
41
42
|
# @param [id_type_promotion]: [String] The name of the identifier type to promote the trait value to, such as ''email'', ''phone'', ''user_id'', etc. This allows the trait to be mapped to an identifier in Identity Resolution. The identifier type should be configured in the Identity Resolution Settings.
|
|
42
|
-
attr_accessor :data_type, :description, :id_type_promotion
|
|
43
|
+
attr_accessor :data_type, :description, :validation_rule, :id_type_promotion
|
|
43
44
|
def initialize(payload)
|
|
44
45
|
@data_type = payload["data_type"]
|
|
45
46
|
@description = payload["description"]
|
|
47
|
+
@validation_rule = payload["validation_rule"]
|
|
46
48
|
@id_type_promotion = payload["id_type_promotion"]
|
|
47
49
|
end
|
|
48
50
|
def to_json(options = {})
|
|
49
51
|
{
|
|
50
52
|
"dataType": @data_type,
|
|
51
53
|
"description": @description,
|
|
54
|
+
"validationRule": @validation_rule,
|
|
52
55
|
"idTypePromotion": @id_type_promotion,
|
|
53
56
|
}.to_json(options)
|
|
54
57
|
end
|
|
@@ -57,7 +60,7 @@ module Twilio
|
|
|
57
60
|
class TraitGroupRequest
|
|
58
61
|
# @param [display_name]: [String] Unique name of the Trait Group
|
|
59
62
|
# @param [description]: [String] description of the Trait Group
|
|
60
|
-
# @param [traits]: [Hash<String,
|
|
63
|
+
# @param [traits]: [Hash<String, TraitGroupRequestTraits>] Map of traits belonging to this Trait Group, keyed by trait name.
|
|
61
64
|
attr_accessor :display_name, :description, :traits
|
|
62
65
|
def initialize(payload)
|
|
63
66
|
@display_name = payload["display_name"]
|
|
@@ -73,6 +76,28 @@ module Twilio
|
|
|
73
76
|
end
|
|
74
77
|
end
|
|
75
78
|
|
|
79
|
+
class TraitGroupRequestTraits
|
|
80
|
+
# @param [data_type]: [String] Data type of the Trait, such as STRING, NUMBER, BOOLEAN, ARRAY. For DELETE operations in PATCH requests, set this to an empty string (\"\") to mark the trait for deletion.
|
|
81
|
+
# @param [description]: [String] Description of the Trait, providing additional context or information.
|
|
82
|
+
# @param [validation_rule]: [ValidationRule]
|
|
83
|
+
# @param [id_type_promotion]: [String] The name of the identifier type to promote the trait value to, such as ''email'', ''phone'', ''user_id'', etc. This allows the trait to be mapped to an identifier in Identity Resolution. The identifier type should be configured in the Identity Resolution Settings.
|
|
84
|
+
attr_accessor :data_type, :description, :validation_rule, :id_type_promotion
|
|
85
|
+
def initialize(payload)
|
|
86
|
+
@data_type = payload["data_type"]
|
|
87
|
+
@description = payload["description"]
|
|
88
|
+
@validation_rule = payload["validation_rule"]
|
|
89
|
+
@id_type_promotion = payload["id_type_promotion"]
|
|
90
|
+
end
|
|
91
|
+
def to_json(options = {})
|
|
92
|
+
{
|
|
93
|
+
"dataType": @data_type,
|
|
94
|
+
"description": @description,
|
|
95
|
+
"validationRule": @validation_rule,
|
|
96
|
+
"idTypePromotion": @id_type_promotion,
|
|
97
|
+
}.to_json(options)
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
76
101
|
class ValidationRule
|
|
77
102
|
# @param [pattern]: [String] Regex pattern (max 1000 chars)
|
|
78
103
|
# @param [min_length]: [Integer] Minimum string length
|
|
@@ -127,17 +152,20 @@ module Twilio
|
|
|
127
152
|
class TraitDefinition
|
|
128
153
|
# @param [data_type]: [String] Data type of the Trait, such as STRING, NUMBER, BOOLEAN, ARRAY. For DELETE operations in PATCH requests, set this to an empty string (\"\") to mark the trait for deletion.
|
|
129
154
|
# @param [description]: [String] Description of the Trait, providing additional context or information.
|
|
155
|
+
# @param [validation_rule]: [ValidationRule]
|
|
130
156
|
# @param [id_type_promotion]: [String] The name of the identifier type to promote the trait value to, such as ''email'', ''phone'', ''user_id'', etc. This allows the trait to be mapped to an identifier in Identity Resolution. The identifier type should be configured in the Identity Resolution Settings.
|
|
131
|
-
attr_accessor :data_type, :description, :id_type_promotion
|
|
157
|
+
attr_accessor :data_type, :description, :validation_rule, :id_type_promotion
|
|
132
158
|
def initialize(payload)
|
|
133
159
|
@data_type = payload["data_type"]
|
|
134
160
|
@description = payload["description"]
|
|
161
|
+
@validation_rule = payload["validation_rule"]
|
|
135
162
|
@id_type_promotion = payload["id_type_promotion"]
|
|
136
163
|
end
|
|
137
164
|
def to_json(options = {})
|
|
138
165
|
{
|
|
139
166
|
"dataType": @data_type,
|
|
140
167
|
"description": @description,
|
|
168
|
+
"validationRule": @validation_rule,
|
|
141
169
|
"idTypePromotion": @id_type_promotion,
|
|
142
170
|
}.to_json(options)
|
|
143
171
|
end
|
|
@@ -146,7 +174,7 @@ module Twilio
|
|
|
146
174
|
class TraitGroupRequest
|
|
147
175
|
# @param [display_name]: [String] Unique name of the Trait Group
|
|
148
176
|
# @param [description]: [String] description of the Trait Group
|
|
149
|
-
# @param [traits]: [Hash<String,
|
|
177
|
+
# @param [traits]: [Hash<String, TraitGroupRequestTraits>] Map of traits belonging to this Trait Group, keyed by trait name.
|
|
150
178
|
attr_accessor :display_name, :description, :traits
|
|
151
179
|
def initialize(payload)
|
|
152
180
|
@display_name = payload["display_name"]
|
|
@@ -162,6 +190,28 @@ module Twilio
|
|
|
162
190
|
end
|
|
163
191
|
end
|
|
164
192
|
|
|
193
|
+
class TraitGroupRequestTraits
|
|
194
|
+
# @param [data_type]: [String] Data type of the Trait, such as STRING, NUMBER, BOOLEAN, ARRAY. For DELETE operations in PATCH requests, set this to an empty string (\"\") to mark the trait for deletion.
|
|
195
|
+
# @param [description]: [String] Description of the Trait, providing additional context or information.
|
|
196
|
+
# @param [validation_rule]: [ValidationRule]
|
|
197
|
+
# @param [id_type_promotion]: [String] The name of the identifier type to promote the trait value to, such as ''email'', ''phone'', ''user_id'', etc. This allows the trait to be mapped to an identifier in Identity Resolution. The identifier type should be configured in the Identity Resolution Settings.
|
|
198
|
+
attr_accessor :data_type, :description, :validation_rule, :id_type_promotion
|
|
199
|
+
def initialize(payload)
|
|
200
|
+
@data_type = payload["data_type"]
|
|
201
|
+
@description = payload["description"]
|
|
202
|
+
@validation_rule = payload["validation_rule"]
|
|
203
|
+
@id_type_promotion = payload["id_type_promotion"]
|
|
204
|
+
end
|
|
205
|
+
def to_json(options = {})
|
|
206
|
+
{
|
|
207
|
+
"dataType": @data_type,
|
|
208
|
+
"description": @description,
|
|
209
|
+
"validationRule": @validation_rule,
|
|
210
|
+
"idTypePromotion": @id_type_promotion,
|
|
211
|
+
}.to_json(options)
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
165
215
|
class ValidationRule
|
|
166
216
|
# @param [pattern]: [String] Regex pattern (max 1000 chars)
|
|
167
217
|
# @param [min_length]: [Integer] Minimum string length
|
|
@@ -826,7 +876,7 @@ module Twilio
|
|
|
826
876
|
end
|
|
827
877
|
|
|
828
878
|
##
|
|
829
|
-
# @return [Hash<String,
|
|
879
|
+
# @return [Hash<String, TraitGroupCoreTraits>] Map of traits that are part of this Trait Group, where the key is the trait name and the value is the trait's definition.
|
|
830
880
|
def traits
|
|
831
881
|
@properties['traits']
|
|
832
882
|
end
|