twilio-ruby 7.11.1 → 7.11.3
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 +13 -1
- data/CHANGES.md +417 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/githooks/pre-commit +11 -0
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
- 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 +0 -59
- 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/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/content/v1/content/approval_create.rb +0 -59
- 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_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_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +101 -12
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
- 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 +0 -59
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- 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/capacity.rb +161 -0
- data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +279 -0
- 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 +29 -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/rule_execution.rb +33 -60
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
- 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 +0 -59
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/store.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- 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/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 +0 -59
- 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 +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- 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/v2.rb +0 -16
- 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 +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
- 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 -59
- 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 +0 -59
- 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 +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
- 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 +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
- 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/factor.rb +1 -1
- 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 +1 -60
- 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 +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording_account_default_configuration.rb +547 -0
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2.rb +6 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/twiml/voice_response.rb +12 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -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
|
|
@@ -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
|
|
@@ -240,65 +240,6 @@ module Twilio
|
|
|
240
240
|
end
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
class CallPageMetadata < PageMetadata
|
|
244
|
-
attr_reader :call_page
|
|
245
|
-
|
|
246
|
-
def initialize(version, response, solution, limit)
|
|
247
|
-
super(version, response)
|
|
248
|
-
@call_page = []
|
|
249
|
-
@limit = limit
|
|
250
|
-
key = get_key(response.body)
|
|
251
|
-
records = 0
|
|
252
|
-
while( limit != :unset && records < limit )
|
|
253
|
-
@call_page << CallListResponse.new(version, @payload, key, limit - records)
|
|
254
|
-
@payload = self.next_page
|
|
255
|
-
break unless @payload
|
|
256
|
-
records += (@payload.body[key] || []).size
|
|
257
|
-
end
|
|
258
|
-
# Path Solution
|
|
259
|
-
@solution = solution
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
def each
|
|
263
|
-
@call_page.each do |record|
|
|
264
|
-
yield record
|
|
265
|
-
end
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
def to_s
|
|
269
|
-
'<Twilio::REST::Insights::V1PageMetadata>';
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
class CallListResponse < InstanceListResource
|
|
273
|
-
|
|
274
|
-
# @param [Array<CallInstance>] instance
|
|
275
|
-
# @param [Hash{String => Object}] headers
|
|
276
|
-
# @param [Integer] status_code
|
|
277
|
-
def initialize(version, payload, key, limit = :unset)
|
|
278
|
-
data_list = payload.body[key] || []
|
|
279
|
-
if limit != :unset
|
|
280
|
-
data_list = data_list[0, limit]
|
|
281
|
-
end
|
|
282
|
-
@call = data_list.map do |data|
|
|
283
|
-
CallInstance.new(version, data)
|
|
284
|
-
end
|
|
285
|
-
@headers = payload.headers
|
|
286
|
-
@status_code = payload.status_code
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
def call
|
|
290
|
-
@call
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
def headers
|
|
294
|
-
@headers
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
def status_code
|
|
298
|
-
@status_code
|
|
299
|
-
end
|
|
300
|
-
end
|
|
301
|
-
|
|
302
243
|
class CallInstance < InstanceResource
|
|
303
244
|
##
|
|
304
245
|
# Initialize the CallInstance
|
|
@@ -271,65 +271,6 @@ module Twilio
|
|
|
271
271
|
end
|
|
272
272
|
end
|
|
273
273
|
|
|
274
|
-
class SettingPageMetadata < PageMetadata
|
|
275
|
-
attr_reader :setting_page
|
|
276
|
-
|
|
277
|
-
def initialize(version, response, solution, limit)
|
|
278
|
-
super(version, response)
|
|
279
|
-
@setting_page = []
|
|
280
|
-
@limit = limit
|
|
281
|
-
key = get_key(response.body)
|
|
282
|
-
records = 0
|
|
283
|
-
while( limit != :unset && records < limit )
|
|
284
|
-
@setting_page << SettingListResponse.new(version, @payload, key, limit - records)
|
|
285
|
-
@payload = self.next_page
|
|
286
|
-
break unless @payload
|
|
287
|
-
records += (@payload.body[key] || []).size
|
|
288
|
-
end
|
|
289
|
-
# Path Solution
|
|
290
|
-
@solution = solution
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
def each
|
|
294
|
-
@setting_page.each do |record|
|
|
295
|
-
yield record
|
|
296
|
-
end
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
def to_s
|
|
300
|
-
'<Twilio::REST::Insights::V1PageMetadata>';
|
|
301
|
-
end
|
|
302
|
-
end
|
|
303
|
-
class SettingListResponse < InstanceListResource
|
|
304
|
-
|
|
305
|
-
# @param [Array<SettingInstance>] instance
|
|
306
|
-
# @param [Hash{String => Object}] headers
|
|
307
|
-
# @param [Integer] status_code
|
|
308
|
-
def initialize(version, payload, key, limit = :unset)
|
|
309
|
-
data_list = payload.body[key] || []
|
|
310
|
-
if limit != :unset
|
|
311
|
-
data_list = data_list[0, limit]
|
|
312
|
-
end
|
|
313
|
-
@setting = data_list.map do |data|
|
|
314
|
-
SettingInstance.new(version, data)
|
|
315
|
-
end
|
|
316
|
-
@headers = payload.headers
|
|
317
|
-
@status_code = payload.status_code
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
def setting
|
|
321
|
-
@setting
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
def headers
|
|
325
|
-
@headers
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
def status_code
|
|
329
|
-
@status_code
|
|
330
|
-
end
|
|
331
|
-
end
|
|
332
|
-
|
|
333
274
|
class SettingInstance < InstanceResource
|
|
334
275
|
##
|
|
335
276
|
# Initialize the SettingInstance
|
|
@@ -19,74 +19,6 @@ module Twilio
|
|
|
19
19
|
class V2 < Version
|
|
20
20
|
class InboundList < ListResource
|
|
21
21
|
|
|
22
|
-
class InsightsV2CreatePhoneNumbersReportRequest
|
|
23
|
-
# @param [time_range]: [InboundList.InsightsV2CreatePhoneNumbersReportRequestTimeRange]
|
|
24
|
-
# @param [filters]: [Array<InboundList.PhoneNumberReportFilter>]
|
|
25
|
-
# @param [size]: [String] The number of max available top Phone Numbers to generate.
|
|
26
|
-
attr_accessor :time_range, :filters, :size
|
|
27
|
-
def initialize(payload)
|
|
28
|
-
@time_range = payload["time_range"]
|
|
29
|
-
@filters = payload["filters"]
|
|
30
|
-
@size = payload["size"]
|
|
31
|
-
end
|
|
32
|
-
def to_json(options = {})
|
|
33
|
-
{
|
|
34
|
-
"time_range": @time_range,
|
|
35
|
-
"filters": @filters,
|
|
36
|
-
"size": @size,
|
|
37
|
-
}.to_json(options)
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
class InsightsV2CreatePhoneNumbersReportRequestTimeRange
|
|
42
|
-
# @param [start_datetime]: [Time] Start date time of the report
|
|
43
|
-
# @param [end_datetime]: [Time] End date time of the report
|
|
44
|
-
attr_accessor :start_datetime, :end_datetime
|
|
45
|
-
def initialize(payload)
|
|
46
|
-
@start_datetime = payload["start_datetime"]
|
|
47
|
-
@end_datetime = payload["end_datetime"]
|
|
48
|
-
end
|
|
49
|
-
def to_json(options = {})
|
|
50
|
-
{
|
|
51
|
-
"start_datetime": @start_datetime,
|
|
52
|
-
"end_datetime": @end_datetime,
|
|
53
|
-
}.to_json(options)
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
class PhoneNumberReportFilter
|
|
58
|
-
# @param [key]: [String] The name of the filter
|
|
59
|
-
# @param [values]: [Array<String>] List of supported filter values for the field name
|
|
60
|
-
attr_accessor :key, :values
|
|
61
|
-
def initialize(payload)
|
|
62
|
-
@key = payload["key"]
|
|
63
|
-
@values = payload["values"]
|
|
64
|
-
end
|
|
65
|
-
def to_json(options = {})
|
|
66
|
-
{
|
|
67
|
-
"key": @key,
|
|
68
|
-
"values": @values,
|
|
69
|
-
}.to_json(options)
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
class ReportFilter
|
|
74
|
-
# @param [key]: [String] The name of the filter 'call_state', 'call_direction', 'call_type', 'twilio_regions', 'caller_country_code', 'callee_country_code', 'silent'
|
|
75
|
-
# @param [values]: [Array<String>] List of supported filter values for the field name
|
|
76
|
-
attr_accessor :key, :values
|
|
77
|
-
def initialize(payload)
|
|
78
|
-
@key = payload["key"]
|
|
79
|
-
@values = payload["values"]
|
|
80
|
-
end
|
|
81
|
-
def to_json(options = {})
|
|
82
|
-
{
|
|
83
|
-
"key": @key,
|
|
84
|
-
"values": @values,
|
|
85
|
-
}.to_json(options)
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
|
|
90
22
|
##
|
|
91
23
|
# Initialize the InboundList
|
|
92
24
|
# @param [Version] version Version that contains the resource
|
|
@@ -225,134 +157,6 @@ module Twilio
|
|
|
225
157
|
end
|
|
226
158
|
end
|
|
227
159
|
|
|
228
|
-
|
|
229
|
-
class InboundContext < InstanceContext
|
|
230
|
-
##
|
|
231
|
-
# Initialize the InboundContext
|
|
232
|
-
# @param [Version] version Version that contains the resource
|
|
233
|
-
# @param [String] report_id A unique Report Id.
|
|
234
|
-
# @return [InboundContext] InboundContext
|
|
235
|
-
def initialize(version, report_id)
|
|
236
|
-
super(version)
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
# Path Solution
|
|
240
|
-
@solution = { report_id: report_id, }
|
|
241
|
-
@uri = "/Voice/Reports/PhoneNumbers/Inbound"
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
end
|
|
245
|
-
##
|
|
246
|
-
# Create the InboundInstance
|
|
247
|
-
# @param [InsightsV2CreatePhoneNumbersReportRequest] insights_v2_create_phone_numbers_report_request
|
|
248
|
-
# @return [InboundInstance] Created InboundInstance
|
|
249
|
-
def create(insights_v2_create_phone_numbers_report_request: :unset
|
|
250
|
-
)
|
|
251
|
-
|
|
252
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
253
|
-
headers['Content-Type'] = 'application/json'
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
payload = @version.create('POST', @uri, headers: headers, data: insights_v2_create_phone_numbers_report_request.to_json)
|
|
259
|
-
InboundInstance.new(
|
|
260
|
-
@version,
|
|
261
|
-
payload,
|
|
262
|
-
report_id: @solution[:report_id],
|
|
263
|
-
)
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
##
|
|
267
|
-
# Create the InboundInstanceMetadata
|
|
268
|
-
# @param [InsightsV2CreatePhoneNumbersReportRequest] insights_v2_create_phone_numbers_report_request
|
|
269
|
-
# @return [InboundInstance] Created InboundInstance
|
|
270
|
-
def create_with_metadata(insights_v2_create_phone_numbers_report_request: :unset
|
|
271
|
-
)
|
|
272
|
-
|
|
273
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
274
|
-
headers['Content-Type'] = 'application/json'
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
response = @version.create_with_metadata('POST', @uri, headers: headers, data: insights_v2_create_phone_numbers_report_request.to_json)
|
|
280
|
-
inbound_instance = InboundInstance.new(
|
|
281
|
-
@version,
|
|
282
|
-
response.body,
|
|
283
|
-
report_id: @solution[:report_id],
|
|
284
|
-
)
|
|
285
|
-
InboundInstanceMetadata.new(
|
|
286
|
-
@version,
|
|
287
|
-
inbound_instance,
|
|
288
|
-
response.headers,
|
|
289
|
-
response.status_code
|
|
290
|
-
)
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
##
|
|
295
|
-
# Provide a user friendly representation
|
|
296
|
-
def to_s
|
|
297
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
298
|
-
"#<Twilio.Insights.V2.InboundContext #{context}>"
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
##
|
|
302
|
-
# Provide a detailed, user friendly representation
|
|
303
|
-
def inspect
|
|
304
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
305
|
-
"#<Twilio.Insights.V2.InboundContext #{context}>"
|
|
306
|
-
end
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
class InboundInstanceMetadata < InstanceResourceMetadata
|
|
310
|
-
##
|
|
311
|
-
# Initializes a new InboundInstanceMetadata.
|
|
312
|
-
# @param [Version] version Version that contains the resource
|
|
313
|
-
# @param [}InboundInstance] inbound_instance The instance associated with the metadata.
|
|
314
|
-
# @param [Hash] headers Header object with response headers.
|
|
315
|
-
# @param [Integer] status_code The HTTP status code of the response.
|
|
316
|
-
# @return [InboundInstanceMetadata] The initialized instance with metadata.
|
|
317
|
-
def initialize(version, inbound_instance, headers, status_code)
|
|
318
|
-
super(version, headers, status_code)
|
|
319
|
-
@inbound_instance = inbound_instance
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
def inbound
|
|
323
|
-
@inbound_instance
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def headers
|
|
327
|
-
@headers
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
def status_code
|
|
331
|
-
@status_code
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
def to_s
|
|
335
|
-
"<Twilio.Api.V2010.InboundInstanceMetadata status=#{@status_code}>"
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
class InboundListResponse < InstanceListResource
|
|
340
|
-
# @param [Array<InboundInstance>] instance
|
|
341
|
-
# @param [Hash{String => Object}] headers
|
|
342
|
-
# @param [Integer] status_code
|
|
343
|
-
def initialize(version, payload, key)
|
|
344
|
-
@inbound_instance = payload.body[key].map do |data|
|
|
345
|
-
InboundInstance.new(version, data)
|
|
346
|
-
end
|
|
347
|
-
@headers = payload.headers
|
|
348
|
-
@status_code = payload.status_code
|
|
349
|
-
end
|
|
350
|
-
|
|
351
|
-
def inbound_instance
|
|
352
|
-
@instance
|
|
353
|
-
end
|
|
354
|
-
end
|
|
355
|
-
|
|
356
160
|
class InboundPage < Page
|
|
357
161
|
##
|
|
358
162
|
# Initialize the InboundPage
|
|
@@ -458,63 +262,14 @@ module Twilio
|
|
|
458
262
|
|
|
459
263
|
# Marshaled Properties
|
|
460
264
|
@properties = {
|
|
461
|
-
'account_sid' => payload['account_sid'],
|
|
462
|
-
'report_id' => payload['report_id'],
|
|
463
|
-
'status' => payload['status'],
|
|
464
|
-
'request_meta' => payload['request_meta'],
|
|
465
|
-
'url' => payload['url'],
|
|
466
265
|
'handle' => payload['handle'],
|
|
467
266
|
'total_calls' => payload['total_calls'] == nil ? payload['total_calls'] : payload['total_calls'].to_i,
|
|
468
267
|
'call_answer_score' => payload['call_answer_score'],
|
|
469
268
|
'call_state_percentage' => payload['call_state_percentage'],
|
|
470
269
|
'silent_calls_percentage' => payload['silent_calls_percentage'],
|
|
471
270
|
}
|
|
472
|
-
|
|
473
|
-
# Context
|
|
474
|
-
@instance_context = nil
|
|
475
|
-
@params = { 'report_id' => report_id || @properties['report_id'] , }
|
|
476
271
|
end
|
|
477
272
|
|
|
478
|
-
##
|
|
479
|
-
# Generate an instance context for the instance, the context is capable of
|
|
480
|
-
# performing various actions. All instance actions are proxied to the context
|
|
481
|
-
# @return [InboundContext] CallContext for this CallInstance
|
|
482
|
-
def context
|
|
483
|
-
unless @instance_context
|
|
484
|
-
@instance_context = InboundContext.new(@version , @params['report_id'])
|
|
485
|
-
end
|
|
486
|
-
@instance_context
|
|
487
|
-
end
|
|
488
|
-
|
|
489
|
-
##
|
|
490
|
-
# @return [String] The unique SID identifier of the Account.
|
|
491
|
-
def account_sid
|
|
492
|
-
@properties['account_sid']
|
|
493
|
-
end
|
|
494
|
-
|
|
495
|
-
##
|
|
496
|
-
# @return [String] The report identifier as Voice Insights Report TTID.
|
|
497
|
-
def report_id
|
|
498
|
-
@properties['report_id']
|
|
499
|
-
end
|
|
500
|
-
|
|
501
|
-
##
|
|
502
|
-
# @return [ReportStatus]
|
|
503
|
-
def status
|
|
504
|
-
@properties['status']
|
|
505
|
-
end
|
|
506
|
-
|
|
507
|
-
##
|
|
508
|
-
# @return [ReportMetadata]
|
|
509
|
-
def request_meta
|
|
510
|
-
@properties['request_meta']
|
|
511
|
-
end
|
|
512
|
-
|
|
513
|
-
##
|
|
514
|
-
# @return [String] The URL of this resource.
|
|
515
|
-
def url
|
|
516
|
-
@properties['url']
|
|
517
|
-
end
|
|
518
273
|
|
|
519
274
|
##
|
|
520
275
|
# @return [String] Inbound phone number handle represented in the report.
|
|
@@ -546,30 +301,16 @@ module Twilio
|
|
|
546
301
|
@properties['silent_calls_percentage']
|
|
547
302
|
end
|
|
548
303
|
|
|
549
|
-
##
|
|
550
|
-
# Create the InboundInstance
|
|
551
|
-
# @param [InsightsV2CreatePhoneNumbersReportRequest] insights_v2_create_phone_numbers_report_request
|
|
552
|
-
# @return [InboundInstance] Created InboundInstance
|
|
553
|
-
def create(insights_v2_create_phone_numbers_report_request: :unset
|
|
554
|
-
)
|
|
555
|
-
|
|
556
|
-
context.create(
|
|
557
|
-
insights_v2_create_phone_numbers_report_request: insights_v2_create_phone_numbers_report_request,
|
|
558
|
-
)
|
|
559
|
-
end
|
|
560
|
-
|
|
561
304
|
##
|
|
562
305
|
# Provide a user friendly representation
|
|
563
306
|
def to_s
|
|
564
|
-
|
|
565
|
-
"<Twilio.Insights.V2.InboundInstance #{values}>"
|
|
307
|
+
"<Twilio.Insights.V2.InboundInstance>"
|
|
566
308
|
end
|
|
567
309
|
|
|
568
310
|
##
|
|
569
311
|
# Provide a detailed, user friendly representation
|
|
570
312
|
def inspect
|
|
571
|
-
|
|
572
|
-
"<Twilio.Insights.V2.InboundInstance #{values}>"
|
|
313
|
+
"<Twilio.Insights.V2.InboundInstance>"
|
|
573
314
|
end
|
|
574
315
|
end
|
|
575
316
|
|