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
|
@@ -124,65 +124,6 @@ module Twilio
|
|
|
124
124
|
end
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
-
class RateLimitPageMetadata < PageMetadata
|
|
128
|
-
attr_reader :rate_limit_page
|
|
129
|
-
|
|
130
|
-
def initialize(version, response, solution, limit)
|
|
131
|
-
super(version, response)
|
|
132
|
-
@rate_limit_page = []
|
|
133
|
-
@limit = limit
|
|
134
|
-
key = get_key(response.body)
|
|
135
|
-
records = 0
|
|
136
|
-
while( limit != :unset && records < limit )
|
|
137
|
-
@rate_limit_page << RateLimitListResponse.new(version, @payload, key, limit - records)
|
|
138
|
-
@payload = self.next_page
|
|
139
|
-
break unless @payload
|
|
140
|
-
records += (@payload.body[key] || []).size
|
|
141
|
-
end
|
|
142
|
-
# Path Solution
|
|
143
|
-
@solution = solution
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
def each
|
|
147
|
-
@rate_limit_page.each do |record|
|
|
148
|
-
yield record
|
|
149
|
-
end
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
def to_s
|
|
153
|
-
'<Twilio::REST::Lookups::V2PageMetadata>';
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
class RateLimitListResponse < InstanceListResource
|
|
157
|
-
|
|
158
|
-
# @param [Array<RateLimitInstance>] instance
|
|
159
|
-
# @param [Hash{String => Object}] headers
|
|
160
|
-
# @param [Integer] status_code
|
|
161
|
-
def initialize(version, payload, key, limit = :unset)
|
|
162
|
-
data_list = payload.body[key] || []
|
|
163
|
-
if limit != :unset
|
|
164
|
-
data_list = data_list[0, limit]
|
|
165
|
-
end
|
|
166
|
-
@rate_limit = data_list.map do |data|
|
|
167
|
-
RateLimitInstance.new(version, data)
|
|
168
|
-
end
|
|
169
|
-
@headers = payload.headers
|
|
170
|
-
@status_code = payload.status_code
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
def rate_limit
|
|
174
|
-
@rate_limit
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
def headers
|
|
178
|
-
@headers
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
def status_code
|
|
182
|
-
@status_code
|
|
183
|
-
end
|
|
184
|
-
end
|
|
185
|
-
|
|
186
127
|
class RateLimitInstance < InstanceResource
|
|
187
128
|
##
|
|
188
129
|
# Initialize the RateLimitInstance
|
|
@@ -137,65 +137,6 @@ module Twilio
|
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
class InstalledAddOnUsagePageMetadata < PageMetadata
|
|
141
|
-
attr_reader :installed_add_on_usage_page
|
|
142
|
-
|
|
143
|
-
def initialize(version, response, solution, limit)
|
|
144
|
-
super(version, response)
|
|
145
|
-
@installed_add_on_usage_page = []
|
|
146
|
-
@limit = limit
|
|
147
|
-
key = get_key(response.body)
|
|
148
|
-
records = 0
|
|
149
|
-
while( limit != :unset && records < limit )
|
|
150
|
-
@installed_add_on_usage_page << InstalledAddOnUsageListResponse.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
|
-
@installed_add_on_usage_page.each do |record|
|
|
161
|
-
yield record
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def to_s
|
|
166
|
-
'<Twilio::REST::Marketplace::V1PageMetadata>';
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
class InstalledAddOnUsageListResponse < InstanceListResource
|
|
170
|
-
|
|
171
|
-
# @param [Array<InstalledAddOnUsageInstance>] 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
|
-
@installed_add_on_usage = data_list.map do |data|
|
|
180
|
-
InstalledAddOnUsageInstance.new(version, data)
|
|
181
|
-
end
|
|
182
|
-
@headers = payload.headers
|
|
183
|
-
@status_code = payload.status_code
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
def installed_add_on_usage
|
|
187
|
-
@installed_add_on_usage
|
|
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 InstalledAddOnUsageInstance < InstanceResource
|
|
200
141
|
##
|
|
201
142
|
# Initialize the InstalledAddOnUsageInstance
|
|
@@ -174,65 +174,6 @@ module Twilio
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
class ModuleDataPageMetadata < PageMetadata
|
|
178
|
-
attr_reader :module_data_page
|
|
179
|
-
|
|
180
|
-
def initialize(version, response, solution, limit)
|
|
181
|
-
super(version, response)
|
|
182
|
-
@module_data_page = []
|
|
183
|
-
@limit = limit
|
|
184
|
-
key = get_key(response.body)
|
|
185
|
-
records = 0
|
|
186
|
-
while( limit != :unset && records < limit )
|
|
187
|
-
@module_data_page << ModuleDataListResponse.new(version, @payload, key, limit - records)
|
|
188
|
-
@payload = self.next_page
|
|
189
|
-
break unless @payload
|
|
190
|
-
records += (@payload.body[key] || []).size
|
|
191
|
-
end
|
|
192
|
-
# Path Solution
|
|
193
|
-
@solution = solution
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def each
|
|
197
|
-
@module_data_page.each do |record|
|
|
198
|
-
yield record
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
def to_s
|
|
203
|
-
'<Twilio::REST::Marketplace::V1PageMetadata>';
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
class ModuleDataListResponse < InstanceListResource
|
|
207
|
-
|
|
208
|
-
# @param [Array<ModuleDataInstance>] instance
|
|
209
|
-
# @param [Hash{String => Object}] headers
|
|
210
|
-
# @param [Integer] status_code
|
|
211
|
-
def initialize(version, payload, key, limit = :unset)
|
|
212
|
-
data_list = payload.body[key] || []
|
|
213
|
-
if limit != :unset
|
|
214
|
-
data_list = data_list[0, limit]
|
|
215
|
-
end
|
|
216
|
-
@module_data = data_list.map do |data|
|
|
217
|
-
ModuleDataInstance.new(version, data)
|
|
218
|
-
end
|
|
219
|
-
@headers = payload.headers
|
|
220
|
-
@status_code = payload.status_code
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
def module_data
|
|
224
|
-
@module_data
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
def headers
|
|
228
|
-
@headers
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
def status_code
|
|
232
|
-
@status_code
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
177
|
class ModuleDataInstance < InstanceResource
|
|
237
178
|
##
|
|
238
179
|
# Initialize the ModuleDataInstance
|
|
@@ -288,65 +288,6 @@ module Twilio
|
|
|
288
288
|
end
|
|
289
289
|
end
|
|
290
290
|
|
|
291
|
-
class ModuleDataManagementPageMetadata < PageMetadata
|
|
292
|
-
attr_reader :module_data_management_page
|
|
293
|
-
|
|
294
|
-
def initialize(version, response, solution, limit)
|
|
295
|
-
super(version, response)
|
|
296
|
-
@module_data_management_page = []
|
|
297
|
-
@limit = limit
|
|
298
|
-
key = get_key(response.body)
|
|
299
|
-
records = 0
|
|
300
|
-
while( limit != :unset && records < limit )
|
|
301
|
-
@module_data_management_page << ModuleDataManagementListResponse.new(version, @payload, key, limit - records)
|
|
302
|
-
@payload = self.next_page
|
|
303
|
-
break unless @payload
|
|
304
|
-
records += (@payload.body[key] || []).size
|
|
305
|
-
end
|
|
306
|
-
# Path Solution
|
|
307
|
-
@solution = solution
|
|
308
|
-
end
|
|
309
|
-
|
|
310
|
-
def each
|
|
311
|
-
@module_data_management_page.each do |record|
|
|
312
|
-
yield record
|
|
313
|
-
end
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
def to_s
|
|
317
|
-
'<Twilio::REST::Marketplace::V1PageMetadata>';
|
|
318
|
-
end
|
|
319
|
-
end
|
|
320
|
-
class ModuleDataManagementListResponse < InstanceListResource
|
|
321
|
-
|
|
322
|
-
# @param [Array<ModuleDataManagementInstance>] instance
|
|
323
|
-
# @param [Hash{String => Object}] headers
|
|
324
|
-
# @param [Integer] status_code
|
|
325
|
-
def initialize(version, payload, key, limit = :unset)
|
|
326
|
-
data_list = payload.body[key] || []
|
|
327
|
-
if limit != :unset
|
|
328
|
-
data_list = data_list[0, limit]
|
|
329
|
-
end
|
|
330
|
-
@module_data_management = data_list.map do |data|
|
|
331
|
-
ModuleDataManagementInstance.new(version, data)
|
|
332
|
-
end
|
|
333
|
-
@headers = payload.headers
|
|
334
|
-
@status_code = payload.status_code
|
|
335
|
-
end
|
|
336
|
-
|
|
337
|
-
def module_data_management
|
|
338
|
-
@module_data_management
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
def headers
|
|
342
|
-
@headers
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
def status_code
|
|
346
|
-
@status_code
|
|
347
|
-
end
|
|
348
|
-
end
|
|
349
|
-
|
|
350
291
|
class ModuleDataManagementInstance < InstanceResource
|
|
351
292
|
##
|
|
352
293
|
# Initialize the ModuleDataManagementInstance
|
|
@@ -130,65 +130,6 @@ module Twilio
|
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
class ReferralConversionPageMetadata < PageMetadata
|
|
134
|
-
attr_reader :referral_conversion_page
|
|
135
|
-
|
|
136
|
-
def initialize(version, response, solution, limit)
|
|
137
|
-
super(version, response)
|
|
138
|
-
@referral_conversion_page = []
|
|
139
|
-
@limit = limit
|
|
140
|
-
key = get_key(response.body)
|
|
141
|
-
records = 0
|
|
142
|
-
while( limit != :unset && records < limit )
|
|
143
|
-
@referral_conversion_page << ReferralConversionListResponse.new(version, @payload, key, limit - records)
|
|
144
|
-
@payload = self.next_page
|
|
145
|
-
break unless @payload
|
|
146
|
-
records += (@payload.body[key] || []).size
|
|
147
|
-
end
|
|
148
|
-
# Path Solution
|
|
149
|
-
@solution = solution
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
def each
|
|
153
|
-
@referral_conversion_page.each do |record|
|
|
154
|
-
yield record
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
def to_s
|
|
159
|
-
'<Twilio::REST::Marketplace::V1PageMetadata>';
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
class ReferralConversionListResponse < InstanceListResource
|
|
163
|
-
|
|
164
|
-
# @param [Array<ReferralConversionInstance>] instance
|
|
165
|
-
# @param [Hash{String => Object}] headers
|
|
166
|
-
# @param [Integer] status_code
|
|
167
|
-
def initialize(version, payload, key, limit = :unset)
|
|
168
|
-
data_list = payload.body[key] || []
|
|
169
|
-
if limit != :unset
|
|
170
|
-
data_list = data_list[0, limit]
|
|
171
|
-
end
|
|
172
|
-
@referral_conversion = data_list.map do |data|
|
|
173
|
-
ReferralConversionInstance.new(version, data)
|
|
174
|
-
end
|
|
175
|
-
@headers = payload.headers
|
|
176
|
-
@status_code = payload.status_code
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
def referral_conversion
|
|
180
|
-
@referral_conversion
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
def headers
|
|
184
|
-
@headers
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
def status_code
|
|
188
|
-
@status_code
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
133
|
class ReferralConversionInstance < InstanceResource
|
|
193
134
|
##
|
|
194
135
|
# Initialize the ReferralConversionInstance
|
|
@@ -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
|
|
@@ -50,40 +50,13 @@ module Twilio
|
|
|
50
50
|
# Initialize the BulkList
|
|
51
51
|
# @param [Version] version Version that contains the resource
|
|
52
52
|
# @return [BulkList] BulkList
|
|
53
|
-
def initialize(version)
|
|
53
|
+
def initialize(version, store_id: nil)
|
|
54
54
|
|
|
55
55
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
56
56
|
super(apiV1Version)
|
|
57
57
|
# Path Solution
|
|
58
|
-
@solution = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# Provide a user friendly representation
|
|
66
|
-
def to_s
|
|
67
|
-
'#<Twilio.Memory.V1.BulkList>'
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
class BulkContext < InstanceContext
|
|
73
|
-
##
|
|
74
|
-
# Initialize the BulkContext
|
|
75
|
-
# @param [Version] version Version that contains the resource
|
|
76
|
-
# @param [String] store_id A unique Memory Store ID using Twilio Type ID (TTID) format
|
|
77
|
-
# @return [BulkContext] BulkContext
|
|
78
|
-
def initialize(version, store_id)
|
|
79
|
-
|
|
80
|
-
apiV1Version = ApiV1Version.new version.domain, version
|
|
81
|
-
super(apiV1Version)
|
|
82
|
-
|
|
83
|
-
# Path Solution
|
|
84
|
-
@solution = { store_id: store_id, }
|
|
58
|
+
@solution = { store_id: store_id }
|
|
85
59
|
@uri = "/Stores/#{@solution[:store_id]}/Profiles/Bulk"
|
|
86
|
-
|
|
87
60
|
|
|
88
61
|
end
|
|
89
62
|
##
|
|
@@ -134,69 +107,15 @@ module Twilio
|
|
|
134
107
|
)
|
|
135
108
|
end
|
|
136
109
|
|
|
110
|
+
|
|
137
111
|
|
|
138
|
-
##
|
|
139
|
-
# Provide a user friendly representation
|
|
140
|
-
def to_s
|
|
141
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
142
|
-
"#<Twilio.Memory.V1.BulkContext #{context}>"
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
##
|
|
146
|
-
# Provide a detailed, user friendly representation
|
|
147
|
-
def inspect
|
|
148
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
149
|
-
"#<Twilio.Memory.V1.BulkContext #{context}>"
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
class BulkInstanceMetadata < InstanceResourceMetadata
|
|
154
|
-
##
|
|
155
|
-
# Initializes a new BulkInstanceMetadata.
|
|
156
|
-
# @param [Version] version Version that contains the resource
|
|
157
|
-
# @param [}BulkInstance] bulk_instance The instance associated with the metadata.
|
|
158
|
-
# @param [Hash] headers Header object with response headers.
|
|
159
|
-
# @param [Integer] status_code The HTTP status code of the response.
|
|
160
|
-
# @return [BulkInstanceMetadata] The initialized instance with metadata.
|
|
161
|
-
def initialize(version, bulk_instance, headers, status_code)
|
|
162
|
-
super(version, headers, status_code)
|
|
163
|
-
@bulk_instance = bulk_instance
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
def bulk
|
|
167
|
-
@bulk_instance
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
def headers
|
|
171
|
-
@headers
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
def status_code
|
|
175
|
-
@status_code
|
|
176
|
-
end
|
|
177
112
|
|
|
113
|
+
# Provide a user friendly representation
|
|
178
114
|
def to_s
|
|
179
|
-
|
|
115
|
+
'#<Twilio.Memory.V1.BulkList>'
|
|
180
116
|
end
|
|
181
117
|
end
|
|
182
118
|
|
|
183
|
-
class BulkListResponse < InstanceListResource
|
|
184
|
-
# @param [Array<BulkInstance>] instance
|
|
185
|
-
# @param [Hash{String => Object}] headers
|
|
186
|
-
# @param [Integer] status_code
|
|
187
|
-
def initialize(version, payload, key)
|
|
188
|
-
@bulk_instance = payload.body[key].map do |data|
|
|
189
|
-
BulkInstance.new(version, data)
|
|
190
|
-
end
|
|
191
|
-
@headers = payload.headers
|
|
192
|
-
@status_code = payload.status_code
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
def bulk_instance
|
|
196
|
-
@instance
|
|
197
|
-
end
|
|
198
|
-
end
|
|
199
|
-
|
|
200
119
|
class BulkPage < TokenPage
|
|
201
120
|
##
|
|
202
121
|
# Initialize the BulkPage
|
|
@@ -218,7 +137,7 @@ module Twilio
|
|
|
218
137
|
# @param [Hash] payload Payload response from the API
|
|
219
138
|
# @return [BulkInstance] BulkInstance
|
|
220
139
|
def get_instance(payload)
|
|
221
|
-
BulkInstance.new(@version, payload)
|
|
140
|
+
BulkInstance.new(@version, payload, store_id: @solution[:store_id])
|
|
222
141
|
end
|
|
223
142
|
|
|
224
143
|
##
|
|
@@ -228,65 +147,6 @@ module Twilio
|
|
|
228
147
|
end
|
|
229
148
|
end
|
|
230
149
|
|
|
231
|
-
class BulkPageMetadata < PageMetadata
|
|
232
|
-
attr_reader :bulk_page
|
|
233
|
-
|
|
234
|
-
def initialize(version, response, solution, limit)
|
|
235
|
-
super(version, response)
|
|
236
|
-
@bulk_page = []
|
|
237
|
-
@limit = limit
|
|
238
|
-
key = get_key(response.body)
|
|
239
|
-
records = 0
|
|
240
|
-
while( limit != :unset && records < limit )
|
|
241
|
-
@bulk_page << BulkListResponse.new(version, @payload, key, limit - records)
|
|
242
|
-
@payload = self.next_page
|
|
243
|
-
break unless @payload
|
|
244
|
-
records += (@payload.body[key] || []).size
|
|
245
|
-
end
|
|
246
|
-
# Path Solution
|
|
247
|
-
@solution = solution
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
def each
|
|
251
|
-
@bulk_page.each do |record|
|
|
252
|
-
yield record
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
def to_s
|
|
257
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
258
|
-
end
|
|
259
|
-
end
|
|
260
|
-
class BulkListResponse < InstanceListResource
|
|
261
|
-
|
|
262
|
-
# @param [Array<BulkInstance>] instance
|
|
263
|
-
# @param [Hash{String => Object}] headers
|
|
264
|
-
# @param [Integer] status_code
|
|
265
|
-
def initialize(version, payload, key, limit = :unset)
|
|
266
|
-
data_list = payload.body[key] || []
|
|
267
|
-
if limit != :unset
|
|
268
|
-
data_list = data_list[0, limit]
|
|
269
|
-
end
|
|
270
|
-
@bulk = data_list.map do |data|
|
|
271
|
-
BulkInstance.new(version, data)
|
|
272
|
-
end
|
|
273
|
-
@headers = payload.headers
|
|
274
|
-
@status_code = payload.status_code
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
def bulk
|
|
278
|
-
@bulk
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
def headers
|
|
282
|
-
@headers
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
def status_code
|
|
286
|
-
@status_code
|
|
287
|
-
end
|
|
288
|
-
end
|
|
289
|
-
|
|
290
150
|
class BulkInstance < InstanceResource
|
|
291
151
|
##
|
|
292
152
|
# Initialize the BulkInstance
|
|
@@ -306,22 +166,8 @@ module Twilio
|
|
|
306
166
|
@properties = {
|
|
307
167
|
'message' => payload['message'],
|
|
308
168
|
}
|
|
309
|
-
|
|
310
|
-
# Context
|
|
311
|
-
@instance_context = nil
|
|
312
|
-
@params = { 'store_id' => store_id || @properties['store_id'] , }
|
|
313
169
|
end
|
|
314
170
|
|
|
315
|
-
##
|
|
316
|
-
# Generate an instance context for the instance, the context is capable of
|
|
317
|
-
# performing various actions. All instance actions are proxied to the context
|
|
318
|
-
# @return [BulkContext] CallContext for this CallInstance
|
|
319
|
-
def context
|
|
320
|
-
unless @instance_context
|
|
321
|
-
@instance_context = BulkContext.new(@version , @params['store_id'])
|
|
322
|
-
end
|
|
323
|
-
@instance_context
|
|
324
|
-
end
|
|
325
171
|
|
|
326
172
|
##
|
|
327
173
|
# @return [String]
|
|
@@ -329,30 +175,16 @@ module Twilio
|
|
|
329
175
|
@properties['message']
|
|
330
176
|
end
|
|
331
177
|
|
|
332
|
-
##
|
|
333
|
-
# Update the BulkInstance
|
|
334
|
-
# @param [UpdateProfilesBulkRequest] update_profiles_bulk_request
|
|
335
|
-
# @return [BulkInstance] Updated BulkInstance
|
|
336
|
-
def update(update_profiles_bulk_request: nil
|
|
337
|
-
)
|
|
338
|
-
|
|
339
|
-
context.update(
|
|
340
|
-
update_profiles_bulk_request: update_profiles_bulk_request,
|
|
341
|
-
)
|
|
342
|
-
end
|
|
343
|
-
|
|
344
178
|
##
|
|
345
179
|
# Provide a user friendly representation
|
|
346
180
|
def to_s
|
|
347
|
-
|
|
348
|
-
"<Twilio.Memory.V1.BulkInstance #{values}>"
|
|
181
|
+
"<Twilio.Memory.V1.BulkInstance>"
|
|
349
182
|
end
|
|
350
183
|
|
|
351
184
|
##
|
|
352
185
|
# Provide a detailed, user friendly representation
|
|
353
186
|
def inspect
|
|
354
|
-
|
|
355
|
-
"<Twilio.Memory.V1.BulkInstance #{values}>"
|
|
187
|
+
"<Twilio.Memory.V1.BulkInstance>"
|
|
356
188
|
end
|
|
357
189
|
end
|
|
358
190
|
|
|
@@ -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
|
|
@@ -214,6 +214,7 @@ module Twilio
|
|
|
214
214
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
215
215
|
# memory before returning.
|
|
216
216
|
# @param [String] page_token The token for the page of results to retrieve.
|
|
217
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
217
218
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
218
219
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
219
220
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -222,9 +223,10 @@ module Twilio
|
|
|
222
223
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
223
224
|
# efficient page size, i.e. min(limit, 1000)
|
|
224
225
|
# @return [Array] Array of up to limit results
|
|
225
|
-
def list(page_token: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
226
|
+
def list(page_token: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
226
227
|
self.stream(
|
|
227
228
|
page_token: page_token,
|
|
229
|
+
conversation_id: conversation_id,
|
|
228
230
|
accept_encoding: accept_encoding,
|
|
229
231
|
limit: limit,
|
|
230
232
|
page_size: page_size
|
|
@@ -236,6 +238,7 @@ module Twilio
|
|
|
236
238
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
237
239
|
# is reached.
|
|
238
240
|
# @param [String] page_token The token for the page of results to retrieve.
|
|
241
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
239
242
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
240
243
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
241
244
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -244,11 +247,12 @@ module Twilio
|
|
|
244
247
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
245
248
|
# efficient page size, i.e. min(limit, 1000)
|
|
246
249
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
247
|
-
def stream(page_token: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
250
|
+
def stream(page_token: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
248
251
|
limits = @version.read_limits(limit, page_size)
|
|
249
252
|
|
|
250
253
|
page = self.page(
|
|
251
254
|
page_token: page_token,
|
|
255
|
+
conversation_id: conversation_id,
|
|
252
256
|
accept_encoding: accept_encoding,
|
|
253
257
|
page_size: limits[:page_size], )
|
|
254
258
|
|
|
@@ -262,6 +266,7 @@ module Twilio
|
|
|
262
266
|
##
|
|
263
267
|
# Lists ConversationSummaryPageMetadata records from the API as a list.
|
|
264
268
|
# @param [String] page_token The token for the page of results to retrieve.
|
|
269
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
265
270
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
266
271
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
267
272
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -270,15 +275,15 @@ module Twilio
|
|
|
270
275
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
271
276
|
# efficient page size, i.e. min(limit, 1000)
|
|
272
277
|
# @return [Array] Array of up to limit results
|
|
273
|
-
def list_with_metadata(page_token: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
278
|
+
def list_with_metadata(page_token: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
274
279
|
limits = @version.read_limits(limit, page_size)
|
|
275
280
|
params = Twilio::Values.of({
|
|
276
281
|
'pageToken' => page_token,
|
|
277
|
-
'
|
|
282
|
+
'conversationId' => conversation_id,
|
|
278
283
|
|
|
279
284
|
'PageSize' => limits[:page_size],
|
|
280
285
|
});
|
|
281
|
-
headers = Twilio::Values.of({})
|
|
286
|
+
headers = Twilio::Values.of({ 'Accept-Encoding' => accept_encoding, })
|
|
282
287
|
|
|
283
288
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
284
289
|
|
|
@@ -307,16 +312,17 @@ module Twilio
|
|
|
307
312
|
# Retrieve a single page of ConversationSummaryInstance records from the API.
|
|
308
313
|
# Request is executed immediately.
|
|
309
314
|
# @param [String] page_token The token for the page of results to retrieve.
|
|
315
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
310
316
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
311
317
|
|
|
312
318
|
# @return [Page] Page of ConversationSummaryInstance
|
|
313
|
-
def page(page_token: :unset, accept_encoding: :unset, page_size: :unset)
|
|
319
|
+
def page(page_token: :unset, conversation_id: :unset, accept_encoding: :unset, page_size: :unset)
|
|
314
320
|
params = Twilio::Values.of({
|
|
315
321
|
'pageToken' => page_token,
|
|
316
|
-
'
|
|
322
|
+
'conversationId' => conversation_id,
|
|
317
323
|
'PageSize' => page_size,
|
|
318
324
|
})
|
|
319
|
-
headers = Twilio::Values.of({})
|
|
325
|
+
headers = Twilio::Values.of({ 'Accept-Encoding' => accept_encoding, })
|
|
320
326
|
|
|
321
327
|
|
|
322
328
|
|