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
|
@@ -154,65 +154,6 @@ module Twilio
|
|
|
154
154
|
end
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
class WebChannelsPageMetadata < PageMetadata
|
|
158
|
-
attr_reader :web_channels_page
|
|
159
|
-
|
|
160
|
-
def initialize(version, response, solution, limit)
|
|
161
|
-
super(version, response)
|
|
162
|
-
@web_channels_page = []
|
|
163
|
-
@limit = limit
|
|
164
|
-
key = get_key(response.body)
|
|
165
|
-
records = 0
|
|
166
|
-
while( limit != :unset && records < limit )
|
|
167
|
-
@web_channels_page << WebChannelsListResponse.new(version, @payload, key, limit - records)
|
|
168
|
-
@payload = self.next_page
|
|
169
|
-
break unless @payload
|
|
170
|
-
records += (@payload.body[key] || []).size
|
|
171
|
-
end
|
|
172
|
-
# Path Solution
|
|
173
|
-
@solution = solution
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
def each
|
|
177
|
-
@web_channels_page.each do |record|
|
|
178
|
-
yield record
|
|
179
|
-
end
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
def to_s
|
|
183
|
-
'<Twilio::REST::FlexApi::V2PageMetadata>';
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
class WebChannelsListResponse < InstanceListResource
|
|
187
|
-
|
|
188
|
-
# @param [Array<WebChannelsInstance>] instance
|
|
189
|
-
# @param [Hash{String => Object}] headers
|
|
190
|
-
# @param [Integer] status_code
|
|
191
|
-
def initialize(version, payload, key, limit = :unset)
|
|
192
|
-
data_list = payload.body[key] || []
|
|
193
|
-
if limit != :unset
|
|
194
|
-
data_list = data_list[0, limit]
|
|
195
|
-
end
|
|
196
|
-
@web_channels = data_list.map do |data|
|
|
197
|
-
WebChannelsInstance.new(version, data)
|
|
198
|
-
end
|
|
199
|
-
@headers = payload.headers
|
|
200
|
-
@status_code = payload.status_code
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
def web_channels
|
|
204
|
-
@web_channels
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
def headers
|
|
208
|
-
@headers
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
def status_code
|
|
212
|
-
@status_code
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
|
-
|
|
216
157
|
class WebChannelsInstance < InstanceResource
|
|
217
158
|
##
|
|
218
159
|
# Initialize the WebChannelsInstance
|
|
@@ -270,65 +270,6 @@ module Twilio
|
|
|
270
270
|
end
|
|
271
271
|
end
|
|
272
272
|
|
|
273
|
-
class UserPageMetadata < PageMetadata
|
|
274
|
-
attr_reader :user_page
|
|
275
|
-
|
|
276
|
-
def initialize(version, response, solution, limit)
|
|
277
|
-
super(version, response)
|
|
278
|
-
@user_page = []
|
|
279
|
-
@limit = limit
|
|
280
|
-
key = get_key(response.body)
|
|
281
|
-
records = 0
|
|
282
|
-
while( limit != :unset && records < limit )
|
|
283
|
-
@user_page << UserListResponse.new(version, @payload, key, limit - records)
|
|
284
|
-
@payload = self.next_page
|
|
285
|
-
break unless @payload
|
|
286
|
-
records += (@payload.body[key] || []).size
|
|
287
|
-
end
|
|
288
|
-
# Path Solution
|
|
289
|
-
@solution = solution
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
def each
|
|
293
|
-
@user_page.each do |record|
|
|
294
|
-
yield record
|
|
295
|
-
end
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
def to_s
|
|
299
|
-
'<Twilio::REST::FrontlineApi::V1PageMetadata>';
|
|
300
|
-
end
|
|
301
|
-
end
|
|
302
|
-
class UserListResponse < InstanceListResource
|
|
303
|
-
|
|
304
|
-
# @param [Array<UserInstance>] instance
|
|
305
|
-
# @param [Hash{String => Object}] headers
|
|
306
|
-
# @param [Integer] status_code
|
|
307
|
-
def initialize(version, payload, key, limit = :unset)
|
|
308
|
-
data_list = payload.body[key] || []
|
|
309
|
-
if limit != :unset
|
|
310
|
-
data_list = data_list[0, limit]
|
|
311
|
-
end
|
|
312
|
-
@user = data_list.map do |data|
|
|
313
|
-
UserInstance.new(version, data)
|
|
314
|
-
end
|
|
315
|
-
@headers = payload.headers
|
|
316
|
-
@status_code = payload.status_code
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
def user
|
|
320
|
-
@user
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
def headers
|
|
324
|
-
@headers
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
def status_code
|
|
328
|
-
@status_code
|
|
329
|
-
end
|
|
330
|
-
end
|
|
331
|
-
|
|
332
273
|
class UserInstance < InstanceResource
|
|
333
274
|
##
|
|
334
275
|
# Initialize the UserInstance
|
|
@@ -290,65 +290,6 @@ module Twilio
|
|
|
290
290
|
end
|
|
291
291
|
end
|
|
292
292
|
|
|
293
|
-
class ApiKeyPageMetadata < PageMetadata
|
|
294
|
-
attr_reader :api_key_page
|
|
295
|
-
|
|
296
|
-
def initialize(version, response, solution, limit)
|
|
297
|
-
super(version, response)
|
|
298
|
-
@api_key_page = []
|
|
299
|
-
@limit = limit
|
|
300
|
-
key = get_key(response.body)
|
|
301
|
-
records = 0
|
|
302
|
-
while( limit != :unset && records < limit )
|
|
303
|
-
@api_key_page << ApiKeyListResponse.new(version, @payload, key, limit - records)
|
|
304
|
-
@payload = self.next_page
|
|
305
|
-
break unless @payload
|
|
306
|
-
records += (@payload.body[key] || []).size
|
|
307
|
-
end
|
|
308
|
-
# Path Solution
|
|
309
|
-
@solution = solution
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
def each
|
|
313
|
-
@api_key_page.each do |record|
|
|
314
|
-
yield record
|
|
315
|
-
end
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
def to_s
|
|
319
|
-
'<Twilio::REST::Iam::V1PageMetadata>';
|
|
320
|
-
end
|
|
321
|
-
end
|
|
322
|
-
class ApiKeyListResponse < InstanceListResource
|
|
323
|
-
|
|
324
|
-
# @param [Array<ApiKeyInstance>] instance
|
|
325
|
-
# @param [Hash{String => Object}] headers
|
|
326
|
-
# @param [Integer] status_code
|
|
327
|
-
def initialize(version, payload, key, limit = :unset)
|
|
328
|
-
data_list = payload.body[key] || []
|
|
329
|
-
if limit != :unset
|
|
330
|
-
data_list = data_list[0, limit]
|
|
331
|
-
end
|
|
332
|
-
@api_key = data_list.map do |data|
|
|
333
|
-
ApiKeyInstance.new(version, data)
|
|
334
|
-
end
|
|
335
|
-
@headers = payload.headers
|
|
336
|
-
@status_code = payload.status_code
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
def api_key
|
|
340
|
-
@api_key
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
def headers
|
|
344
|
-
@headers
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
def status_code
|
|
348
|
-
@status_code
|
|
349
|
-
end
|
|
350
|
-
end
|
|
351
|
-
|
|
352
293
|
class ApiKeyInstance < InstanceResource
|
|
353
294
|
##
|
|
354
295
|
# Initialize the ApiKeyInstance
|
|
@@ -35,7 +35,7 @@ module Twilio
|
|
|
35
35
|
# Create the NewApiKeyInstance
|
|
36
36
|
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
|
|
37
37
|
# @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
|
|
38
|
-
# @param [
|
|
38
|
+
# @param [String] key_type The \\\\`KeyType\\\\` form parameter is used to specify the type of key you want to create. **Default Behavior**: If \\\\`KeyType\\\\` is not specified, the API will generate a standard key. **Restricted Key**: If \\\\`KeyType\\\\` is set to \\\\`restricted\\\\`, the API will create a new restricted key. In this case, a policy object is required to define the permissions.
|
|
39
39
|
# @param [Object] policy The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
|
|
40
40
|
# @return [NewApiKeyInstance] Created NewApiKeyInstance
|
|
41
41
|
def create(
|
|
@@ -69,7 +69,7 @@ module Twilio
|
|
|
69
69
|
# Create the NewApiKeyInstanceMetadata
|
|
70
70
|
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
|
|
71
71
|
# @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
|
|
72
|
-
# @param [
|
|
72
|
+
# @param [String] key_type The \\\\`KeyType\\\\` form parameter is used to specify the type of key you want to create. **Default Behavior**: If \\\\`KeyType\\\\` is not specified, the API will generate a standard key. **Restricted Key**: If \\\\`KeyType\\\\` is set to \\\\`restricted\\\\`, the API will create a new restricted key. In this case, a policy object is required to define the permissions.
|
|
73
73
|
# @param [Object] policy The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
|
|
74
74
|
# @return [NewApiKeyInstance] Created NewApiKeyInstance
|
|
75
75
|
def create_with_metadata(
|
|
@@ -144,65 +144,6 @@ module Twilio
|
|
|
144
144
|
end
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
class NewApiKeyPageMetadata < PageMetadata
|
|
148
|
-
attr_reader :new_api_key_page
|
|
149
|
-
|
|
150
|
-
def initialize(version, response, solution, limit)
|
|
151
|
-
super(version, response)
|
|
152
|
-
@new_api_key_page = []
|
|
153
|
-
@limit = limit
|
|
154
|
-
key = get_key(response.body)
|
|
155
|
-
records = 0
|
|
156
|
-
while( limit != :unset && records < limit )
|
|
157
|
-
@new_api_key_page << NewApiKeyListResponse.new(version, @payload, key, limit - records)
|
|
158
|
-
@payload = self.next_page
|
|
159
|
-
break unless @payload
|
|
160
|
-
records += (@payload.body[key] || []).size
|
|
161
|
-
end
|
|
162
|
-
# Path Solution
|
|
163
|
-
@solution = solution
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
def each
|
|
167
|
-
@new_api_key_page.each do |record|
|
|
168
|
-
yield record
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
def to_s
|
|
173
|
-
'<Twilio::REST::Iam::V1PageMetadata>';
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
|
-
class NewApiKeyListResponse < InstanceListResource
|
|
177
|
-
|
|
178
|
-
# @param [Array<NewApiKeyInstance>] instance
|
|
179
|
-
# @param [Hash{String => Object}] headers
|
|
180
|
-
# @param [Integer] status_code
|
|
181
|
-
def initialize(version, payload, key, limit = :unset)
|
|
182
|
-
data_list = payload.body[key] || []
|
|
183
|
-
if limit != :unset
|
|
184
|
-
data_list = data_list[0, limit]
|
|
185
|
-
end
|
|
186
|
-
@new_api_key = data_list.map do |data|
|
|
187
|
-
NewApiKeyInstance.new(version, data)
|
|
188
|
-
end
|
|
189
|
-
@headers = payload.headers
|
|
190
|
-
@status_code = payload.status_code
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
def new_api_key
|
|
194
|
-
@new_api_key
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
def headers
|
|
198
|
-
@headers
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
def status_code
|
|
202
|
-
@status_code
|
|
203
|
-
end
|
|
204
|
-
end
|
|
205
|
-
|
|
206
147
|
class NewApiKeyInstance < InstanceResource
|
|
207
148
|
##
|
|
208
149
|
# Initialize the NewApiKeyInstance
|
|
@@ -25,15 +25,17 @@ module Twilio
|
|
|
25
25
|
# @param [owner_sid]: [String]
|
|
26
26
|
# @param [description]: [String]
|
|
27
27
|
# @param [client_sid]: [String]
|
|
28
|
+
# @param [token_endpoint_auth_method]: [String] Determines how the client authenticates. Account OAuth apps on v1 only support 'client_secret_basic'. For PKCE (none), use the v2 API.
|
|
28
29
|
# @param [policy]: [OAuthAppList.IamV1OrganizationVendoroauthappPolicy]
|
|
29
30
|
# @param [access_token_ttl]: [String]
|
|
30
|
-
attr_accessor :type, :friendly_name, :owner_sid, :description, :client_sid, :policy, :access_token_ttl
|
|
31
|
+
attr_accessor :type, :friendly_name, :owner_sid, :description, :client_sid, :token_endpoint_auth_method, :policy, :access_token_ttl
|
|
31
32
|
def initialize(payload)
|
|
32
33
|
@type = payload["type"]
|
|
33
34
|
@friendly_name = payload["friendly_name"]
|
|
34
35
|
@owner_sid = payload["owner_sid"]
|
|
35
36
|
@description = payload["description"]
|
|
36
37
|
@client_sid = payload["client_sid"]
|
|
38
|
+
@token_endpoint_auth_method = payload["token_endpoint_auth_method"]
|
|
37
39
|
@policy = payload["policy"]
|
|
38
40
|
@access_token_ttl = payload["access_token_ttl"]
|
|
39
41
|
end
|
|
@@ -44,6 +46,7 @@ module Twilio
|
|
|
44
46
|
"owner_sid": @owner_sid,
|
|
45
47
|
"description": @description,
|
|
46
48
|
"client_sid": @client_sid,
|
|
49
|
+
"token_endpoint_auth_method": @token_endpoint_auth_method,
|
|
47
50
|
"policy": @policy,
|
|
48
51
|
"access_token_ttl": @access_token_ttl,
|
|
49
52
|
}.to_json(options)
|
|
@@ -98,15 +101,17 @@ module Twilio
|
|
|
98
101
|
# @param [owner_sid]: [String]
|
|
99
102
|
# @param [description]: [String]
|
|
100
103
|
# @param [client_sid]: [String]
|
|
104
|
+
# @param [token_endpoint_auth_method]: [String] Determines how the client authenticates. Account OAuth apps on v1 only support 'client_secret_basic'. For PKCE (none), use the v2 API.
|
|
101
105
|
# @param [policy]: [OAuthAppList.IamV1OrganizationVendoroauthappPolicy]
|
|
102
106
|
# @param [access_token_ttl]: [String]
|
|
103
|
-
attr_accessor :type, :friendly_name, :owner_sid, :description, :client_sid, :policy, :access_token_ttl
|
|
107
|
+
attr_accessor :type, :friendly_name, :owner_sid, :description, :client_sid, :token_endpoint_auth_method, :policy, :access_token_ttl
|
|
104
108
|
def initialize(payload)
|
|
105
109
|
@type = payload["type"]
|
|
106
110
|
@friendly_name = payload["friendly_name"]
|
|
107
111
|
@owner_sid = payload["owner_sid"]
|
|
108
112
|
@description = payload["description"]
|
|
109
113
|
@client_sid = payload["client_sid"]
|
|
114
|
+
@token_endpoint_auth_method = payload["token_endpoint_auth_method"]
|
|
110
115
|
@policy = payload["policy"]
|
|
111
116
|
@access_token_ttl = payload["access_token_ttl"]
|
|
112
117
|
end
|
|
@@ -117,6 +122,7 @@ module Twilio
|
|
|
117
122
|
"owner_sid": @owner_sid,
|
|
118
123
|
"description": @description,
|
|
119
124
|
"client_sid": @client_sid,
|
|
125
|
+
"token_endpoint_auth_method": @token_endpoint_auth_method,
|
|
120
126
|
"policy": @policy,
|
|
121
127
|
"access_token_ttl": @access_token_ttl,
|
|
122
128
|
}.to_json(options)
|
|
@@ -422,65 +428,6 @@ module Twilio
|
|
|
422
428
|
end
|
|
423
429
|
end
|
|
424
430
|
|
|
425
|
-
class OAuthAppPageMetadata < PageMetadata
|
|
426
|
-
attr_reader :o_auth_app_page
|
|
427
|
-
|
|
428
|
-
def initialize(version, response, solution, limit)
|
|
429
|
-
super(version, response)
|
|
430
|
-
@o_auth_app_page = []
|
|
431
|
-
@limit = limit
|
|
432
|
-
key = get_key(response.body)
|
|
433
|
-
records = 0
|
|
434
|
-
while( limit != :unset && records < limit )
|
|
435
|
-
@o_auth_app_page << OAuthAppListResponse.new(version, @payload, key, limit - records)
|
|
436
|
-
@payload = self.next_page
|
|
437
|
-
break unless @payload
|
|
438
|
-
records += (@payload.body[key] || []).size
|
|
439
|
-
end
|
|
440
|
-
# Path Solution
|
|
441
|
-
@solution = solution
|
|
442
|
-
end
|
|
443
|
-
|
|
444
|
-
def each
|
|
445
|
-
@o_auth_app_page.each do |record|
|
|
446
|
-
yield record
|
|
447
|
-
end
|
|
448
|
-
end
|
|
449
|
-
|
|
450
|
-
def to_s
|
|
451
|
-
'<Twilio::REST::Iam::V1PageMetadata>';
|
|
452
|
-
end
|
|
453
|
-
end
|
|
454
|
-
class OAuthAppListResponse < InstanceListResource
|
|
455
|
-
|
|
456
|
-
# @param [Array<OAuthAppInstance>] instance
|
|
457
|
-
# @param [Hash{String => Object}] headers
|
|
458
|
-
# @param [Integer] status_code
|
|
459
|
-
def initialize(version, payload, key, limit = :unset)
|
|
460
|
-
data_list = payload.body[key] || []
|
|
461
|
-
if limit != :unset
|
|
462
|
-
data_list = data_list[0, limit]
|
|
463
|
-
end
|
|
464
|
-
@o_auth_app = data_list.map do |data|
|
|
465
|
-
OAuthAppInstance.new(version, data)
|
|
466
|
-
end
|
|
467
|
-
@headers = payload.headers
|
|
468
|
-
@status_code = payload.status_code
|
|
469
|
-
end
|
|
470
|
-
|
|
471
|
-
def o_auth_app
|
|
472
|
-
@o_auth_app
|
|
473
|
-
end
|
|
474
|
-
|
|
475
|
-
def headers
|
|
476
|
-
@headers
|
|
477
|
-
end
|
|
478
|
-
|
|
479
|
-
def status_code
|
|
480
|
-
@status_code
|
|
481
|
-
end
|
|
482
|
-
end
|
|
483
|
-
|
|
484
431
|
class OAuthAppInstance < InstanceResource
|
|
485
432
|
##
|
|
486
433
|
# Initialize the OAuthAppInstance
|
|
@@ -503,6 +450,7 @@ module Twilio
|
|
|
503
450
|
'description' => payload['description'],
|
|
504
451
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
505
452
|
'created_by' => payload['created_by'],
|
|
453
|
+
'creator_sid' => payload['creator_sid'],
|
|
506
454
|
'secret' => payload['secret'],
|
|
507
455
|
'status' => payload['status'],
|
|
508
456
|
'policy' => payload['policy'],
|
|
@@ -564,6 +512,12 @@ module Twilio
|
|
|
564
512
|
@properties['created_by']
|
|
565
513
|
end
|
|
566
514
|
|
|
515
|
+
##
|
|
516
|
+
# @return [String] The unique identifier (SID) of the user who created this OAuth app.
|
|
517
|
+
def creator_sid
|
|
518
|
+
@properties['creator_sid']
|
|
519
|
+
end
|
|
520
|
+
|
|
567
521
|
##
|
|
568
522
|
# @return [String]
|
|
569
523
|
def secret
|
|
@@ -168,65 +168,6 @@ module Twilio
|
|
|
168
168
|
end
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
-
class TokenPageMetadata < PageMetadata
|
|
172
|
-
attr_reader :token_page
|
|
173
|
-
|
|
174
|
-
def initialize(version, response, solution, limit)
|
|
175
|
-
super(version, response)
|
|
176
|
-
@token_page = []
|
|
177
|
-
@limit = limit
|
|
178
|
-
key = get_key(response.body)
|
|
179
|
-
records = 0
|
|
180
|
-
while( limit != :unset && records < limit )
|
|
181
|
-
@token_page << TokenListResponse.new(version, @payload, key, limit - records)
|
|
182
|
-
@payload = self.next_page
|
|
183
|
-
break unless @payload
|
|
184
|
-
records += (@payload.body[key] || []).size
|
|
185
|
-
end
|
|
186
|
-
# Path Solution
|
|
187
|
-
@solution = solution
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def each
|
|
191
|
-
@token_page.each do |record|
|
|
192
|
-
yield record
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def to_s
|
|
197
|
-
'<Twilio::REST::Iam::V1PageMetadata>';
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
class TokenListResponse < InstanceListResource
|
|
201
|
-
|
|
202
|
-
# @param [Array<TokenInstance>] instance
|
|
203
|
-
# @param [Hash{String => Object}] headers
|
|
204
|
-
# @param [Integer] status_code
|
|
205
|
-
def initialize(version, payload, key, limit = :unset)
|
|
206
|
-
data_list = payload.body[key] || []
|
|
207
|
-
if limit != :unset
|
|
208
|
-
data_list = data_list[0, limit]
|
|
209
|
-
end
|
|
210
|
-
@token = data_list.map do |data|
|
|
211
|
-
TokenInstance.new(version, data)
|
|
212
|
-
end
|
|
213
|
-
@headers = payload.headers
|
|
214
|
-
@status_code = payload.status_code
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
def token
|
|
218
|
-
@token
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
def headers
|
|
222
|
-
@headers
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def status_code
|
|
226
|
-
@status_code
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
|
|
230
171
|
class TokenInstance < InstanceResource
|
|
231
172
|
##
|
|
232
173
|
# Initialize the TokenInstance
|
|
@@ -21,12 +21,17 @@ module Twilio
|
|
|
21
21
|
@base_url = "https://iam.twilio.com"
|
|
22
22
|
@host = "iam.twilio.com"
|
|
23
23
|
@port = 443
|
|
24
|
+
@v1 = nil
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def v1
|
|
28
|
+
@v1 ||= Iam::V1.new self
|
|
24
29
|
end
|
|
25
30
|
|
|
26
31
|
##
|
|
27
32
|
# Provide a user friendly representation
|
|
28
33
|
def to_s
|
|
29
|
-
'<Twilio::REST::Iam>';
|
|
34
|
+
'<Twilio::REST::Iam::V1>';
|
|
30
35
|
end
|
|
31
36
|
end
|
|
32
37
|
end
|
|
@@ -290,65 +290,6 @@ module Twilio
|
|
|
290
290
|
end
|
|
291
291
|
end
|
|
292
292
|
|
|
293
|
-
class AnnotationPageMetadata < PageMetadata
|
|
294
|
-
attr_reader :annotation_page
|
|
295
|
-
|
|
296
|
-
def initialize(version, response, solution, limit)
|
|
297
|
-
super(version, response)
|
|
298
|
-
@annotation_page = []
|
|
299
|
-
@limit = limit
|
|
300
|
-
key = get_key(response.body)
|
|
301
|
-
records = 0
|
|
302
|
-
while( limit != :unset && records < limit )
|
|
303
|
-
@annotation_page << AnnotationListResponse.new(version, @payload, key, limit - records)
|
|
304
|
-
@payload = self.next_page
|
|
305
|
-
break unless @payload
|
|
306
|
-
records += (@payload.body[key] || []).size
|
|
307
|
-
end
|
|
308
|
-
# Path Solution
|
|
309
|
-
@solution = solution
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
def each
|
|
313
|
-
@annotation_page.each do |record|
|
|
314
|
-
yield record
|
|
315
|
-
end
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
def to_s
|
|
319
|
-
'<Twilio::REST::Insights::V1PageMetadata>';
|
|
320
|
-
end
|
|
321
|
-
end
|
|
322
|
-
class AnnotationListResponse < InstanceListResource
|
|
323
|
-
|
|
324
|
-
# @param [Array<AnnotationInstance>] instance
|
|
325
|
-
# @param [Hash{String => Object}] headers
|
|
326
|
-
# @param [Integer] status_code
|
|
327
|
-
def initialize(version, payload, key, limit = :unset)
|
|
328
|
-
data_list = payload.body[key] || []
|
|
329
|
-
if limit != :unset
|
|
330
|
-
data_list = data_list[0, limit]
|
|
331
|
-
end
|
|
332
|
-
@annotation = data_list.map do |data|
|
|
333
|
-
AnnotationInstance.new(version, data)
|
|
334
|
-
end
|
|
335
|
-
@headers = payload.headers
|
|
336
|
-
@status_code = payload.status_code
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
def annotation
|
|
340
|
-
@annotation
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
def headers
|
|
344
|
-
@headers
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
def status_code
|
|
348
|
-
@status_code
|
|
349
|
-
end
|
|
350
|
-
end
|
|
351
|
-
|
|
352
293
|
class AnnotationInstance < InstanceResource
|
|
353
294
|
##
|
|
354
295
|
# Initialize the AnnotationInstance
|
|
@@ -208,65 +208,6 @@ module Twilio
|
|
|
208
208
|
end
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
class CallSummaryPageMetadata < PageMetadata
|
|
212
|
-
attr_reader :call_summary_page
|
|
213
|
-
|
|
214
|
-
def initialize(version, response, solution, limit)
|
|
215
|
-
super(version, response)
|
|
216
|
-
@call_summary_page = []
|
|
217
|
-
@limit = limit
|
|
218
|
-
key = get_key(response.body)
|
|
219
|
-
records = 0
|
|
220
|
-
while( limit != :unset && records < limit )
|
|
221
|
-
@call_summary_page << CallSummaryListResponse.new(version, @payload, key, limit - records)
|
|
222
|
-
@payload = self.next_page
|
|
223
|
-
break unless @payload
|
|
224
|
-
records += (@payload.body[key] || []).size
|
|
225
|
-
end
|
|
226
|
-
# Path Solution
|
|
227
|
-
@solution = solution
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def each
|
|
231
|
-
@call_summary_page.each do |record|
|
|
232
|
-
yield record
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def to_s
|
|
237
|
-
'<Twilio::REST::Insights::V1PageMetadata>';
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
class CallSummaryListResponse < InstanceListResource
|
|
241
|
-
|
|
242
|
-
# @param [Array<CallSummaryInstance>] instance
|
|
243
|
-
# @param [Hash{String => Object}] headers
|
|
244
|
-
# @param [Integer] status_code
|
|
245
|
-
def initialize(version, payload, key, limit = :unset)
|
|
246
|
-
data_list = payload.body[key] || []
|
|
247
|
-
if limit != :unset
|
|
248
|
-
data_list = data_list[0, limit]
|
|
249
|
-
end
|
|
250
|
-
@call_summary = data_list.map do |data|
|
|
251
|
-
CallSummaryInstance.new(version, data)
|
|
252
|
-
end
|
|
253
|
-
@headers = payload.headers
|
|
254
|
-
@status_code = payload.status_code
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def call_summary
|
|
258
|
-
@call_summary
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def headers
|
|
262
|
-
@headers
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def status_code
|
|
266
|
-
@status_code
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
|
|
270
211
|
class CallSummaryInstance < InstanceResource
|
|
271
212
|
##
|
|
272
213
|
# Initialize the CallSummaryInstance
|
|
@@ -306,6 +247,7 @@ module Twilio
|
|
|
306
247
|
'properties' => payload['properties'],
|
|
307
248
|
'trust' => payload['trust'],
|
|
308
249
|
'annotation' => payload['annotation'],
|
|
250
|
+
'agent_session_summaries' => payload['agent_session_summaries'],
|
|
309
251
|
}
|
|
310
252
|
|
|
311
253
|
# Context
|
|
@@ -462,6 +404,12 @@ module Twilio
|
|
|
462
404
|
@properties['annotation']
|
|
463
405
|
end
|
|
464
406
|
|
|
407
|
+
##
|
|
408
|
+
# @return [Array<CallSummaryAgentSessionSummary>] `object` List of session summaries for conversation relay. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#conversation-relay-object) for the object properties.
|
|
409
|
+
def agent_session_summaries
|
|
410
|
+
@properties['agent_session_summaries']
|
|
411
|
+
end
|
|
412
|
+
|
|
465
413
|
##
|
|
466
414
|
# Fetch the CallSummaryInstance
|
|
467
415
|
# @param [ProcessingState] processing_state The Processing State of this Call Summary. One of `complete`, `partial` or `all`.
|