sentdm 0.45.0 → 0.46.0
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/CHANGELOG.md +11 -0
- data/README.md +11 -11
- data/lib/sentdm/client.rb +66 -0
- data/lib/sentdm/internal/sender_profiles_page.rb +140 -0
- data/lib/sentdm/internal/type/enum.rb +11 -11
- data/lib/sentdm/models/account.rb +173 -0
- data/lib/sentdm/models/account_channels.rb +39 -0
- data/lib/sentdm/models/account_profile.rb +86 -0
- data/lib/sentdm/models/account_rcs_channel.rb +26 -0
- data/lib/sentdm/models/account_sms_channel.rb +26 -0
- data/lib/sentdm/models/account_whatsapp_channel.rb +35 -0
- data/lib/sentdm/models/api_response_of_account.rb +48 -0
- data/lib/sentdm/models/api_response_of_cancelled_message.rb +43 -0
- data/lib/sentdm/models/api_response_of_channels_state.rb +48 -0
- data/lib/sentdm/models/api_response_of_compliance_requirements.rb +47 -0
- data/lib/sentdm/models/api_response_of_contacts_list.rb +42 -0
- data/lib/sentdm/models/api_response_of_message.rb +51 -0
- data/lib/sentdm/models/api_response_of_message_activities.rb +43 -0
- data/lib/sentdm/models/api_response_of_number_lookup_result.rb +43 -0
- data/lib/sentdm/models/api_response_of_profile_completion_accepted.rb +47 -0
- data/lib/sentdm/models/api_response_of_profile_completion_result.rb +47 -0
- data/lib/sentdm/models/api_response_of_profiles_list.rb +43 -0
- data/lib/sentdm/models/api_response_of_sender_profile.rb +54 -0
- data/lib/sentdm/models/api_response_of_sender_profiles_list.rb +42 -0
- data/lib/sentdm/models/api_response_of_templates_list.rb +42 -0
- data/lib/sentdm/models/api_response_of_users_list.rb +43 -0
- data/lib/sentdm/models/api_response_of_webhook_event_types_list.rb +43 -0
- data/lib/sentdm/models/api_response_of_webhook_events_list.rb +42 -0
- data/lib/sentdm/models/{webhook_rotate_secret_response.rb → api_response_of_webhook_secret.rb} +4 -17
- data/lib/sentdm/models/{webhook_test_response.rb → api_response_of_webhook_test.rb} +4 -23
- data/lib/sentdm/models/api_response_of_webhooks_list.rb +42 -0
- data/lib/sentdm/models/billing_contact.rb +35 -0
- data/lib/sentdm/models/brand_business.rb +96 -0
- data/lib/sentdm/models/brand_business_info.rb +3 -20
- data/lib/sentdm/models/brand_compliance.rb +75 -0
- data/lib/sentdm/models/brand_contact.rb +56 -0
- data/lib/sentdm/models/brand_with_kyc.rb +129 -0
- data/lib/sentdm/models/cancelled_message.rb +28 -0
- data/lib/sentdm/models/channel_event_payload.rb +3 -114
- data/lib/sentdm/models/channel_list_params.rb +20 -0
- data/lib/sentdm/models/channel_score.rb +35 -0
- data/lib/sentdm/models/channels/api_response_of_list_of_sms_market.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_rcs_agent.rb +60 -0
- data/lib/sentdm/models/channels/api_response_of_sms_market.rb +54 -0
- data/lib/sentdm/models/channels/api_response_of_whatsapp_channel.rb +47 -0
- data/lib/sentdm/models/channels/market_compliance.rb +409 -0
- data/lib/sentdm/models/channels/rc_create_params.rb +260 -0
- data/lib/sentdm/models/channels/rcs_address.rb +43 -0
- data/lib/sentdm/models/channels/rcs_agent.rb +278 -0
- data/lib/sentdm/models/channels/sms_create_params.rb +173 -0
- data/lib/sentdm/models/channels/sms_list_params.rb +22 -0
- data/lib/sentdm/models/channels/sms_market.rb +158 -0
- data/lib/sentdm/models/channels/sms_number.rb +41 -0
- data/lib/sentdm/models/channels/sms_number_request.rb +33 -0
- data/lib/sentdm/models/channels/sms_retrieve_params.rb +34 -0
- data/lib/sentdm/models/channels/sms_update_params.rb +64 -0
- data/lib/sentdm/models/channels/supplied_compliance.rb +89 -0
- data/lib/sentdm/models/channels/supplied_document.rb +35 -0
- data/lib/sentdm/models/channels/whatsapp_channel.rb +109 -0
- data/lib/sentdm/models/channels/whatsapp_create_params.rb +65 -0
- data/lib/sentdm/models/channels_state.rb +89 -0
- data/lib/sentdm/models/compliance_attachment_template.rb +36 -0
- data/lib/sentdm/models/compliance_requirement.rb +112 -0
- data/lib/sentdm/models/compliance_requirements.rb +98 -0
- data/lib/sentdm/models/compliance_retrieve_requirements_params.rb +52 -0
- data/lib/sentdm/models/compliance_setup_step.rb +78 -0
- data/lib/sentdm/models/contact_message_summary.rb +3 -34
- data/lib/sentdm/models/contacts_list.rb +26 -0
- data/lib/sentdm/models/conversation_messages_list.rb +3 -430
- data/lib/sentdm/models/entity_type.rb +18 -0
- data/lib/sentdm/models/inbound_media.rb +53 -0
- data/lib/sentdm/models/inbound_message_event_payload.rb +3 -53
- data/lib/sentdm/models/link_event.rb +79 -0
- data/lib/sentdm/models/link_event_payload.rb +211 -0
- data/lib/sentdm/models/message.rb +168 -0
- data/lib/sentdm/models/message_activities.rb +34 -0
- data/lib/sentdm/models/message_activity.rb +105 -0
- data/lib/sentdm/models/message_body.rb +79 -0
- data/lib/sentdm/models/message_button.rb +33 -0
- data/lib/sentdm/models/message_cancel_params.rb +32 -0
- data/lib/sentdm/models/message_channel_options.rb +43 -0
- data/lib/sentdm/models/message_header_media.rb +31 -0
- data/lib/sentdm/models/message_media.rb +74 -0
- data/lib/sentdm/models/message_recipient.rb +46 -0
- data/lib/sentdm/models/message_send_params.rb +6 -90
- data/lib/sentdm/models/message_send_response.rb +3 -95
- data/lib/sentdm/models/message_send_result.rb +55 -0
- data/lib/sentdm/models/message_status_event.rb +54 -0
- data/lib/sentdm/models/mms_market.rb +48 -0
- data/lib/sentdm/models/number_lookup_result.rb +63 -0
- data/lib/sentdm/models/pagination_cursors.rb +27 -0
- data/lib/sentdm/models/pagination_meta.rb +3 -27
- data/lib/sentdm/models/profile_completion_accepted.rb +20 -0
- data/lib/sentdm/models/profile_completion_result.rb +31 -0
- data/lib/sentdm/models/profile_detail.rb +6 -408
- data/lib/sentdm/models/profiles/brand_campaign.rb +3 -15
- data/lib/sentdm/models/profiles_list.rb +26 -0
- data/lib/sentdm/models/sender_profile.rb +138 -0
- data/lib/sentdm/models/sender_profile_billing.rb +21 -0
- data/lib/sentdm/models/sender_profile_billing_request.rb +33 -0
- data/lib/sentdm/models/sender_profile_channels.rb +90 -0
- data/lib/sentdm/models/sender_profile_create_params.rb +116 -0
- data/lib/sentdm/models/sender_profile_delete_params.rb +20 -0
- data/lib/sentdm/models/sender_profile_list_params.rb +30 -0
- data/lib/sentdm/models/sender_profile_rcs.rb +209 -0
- data/lib/sentdm/models/sender_profile_retrieve_params.rb +20 -0
- data/lib/sentdm/models/sender_profile_sms.rb +106 -0
- data/lib/sentdm/models/sender_profile_update_params.rb +71 -0
- data/lib/sentdm/models/sender_profile_whatsapp.rb +61 -0
- data/lib/sentdm/models/sender_profiles_list.rb +26 -0
- data/lib/sentdm/models/tcr_brand_identity_status.rb +17 -0
- data/lib/sentdm/models/tcr_brand_status.rb +16 -0
- data/lib/sentdm/models/tcr_campaign_status.rb +16 -0
- data/lib/sentdm/models/template_body.rb +3 -70
- data/lib/sentdm/models/template_header.rb +3 -37
- data/lib/sentdm/models/template_header_location.rb +38 -0
- data/lib/sentdm/models/template_media_item.rb +34 -0
- data/lib/sentdm/models/template_mms_body_content.rb +49 -0
- data/lib/sentdm/models/template_ref.rb +51 -0
- data/lib/sentdm/models/template_variable.rb +3 -64
- data/lib/sentdm/models/template_variable_props.rb +65 -0
- data/lib/sentdm/models/templates_list.rb +26 -0
- data/lib/sentdm/models/users_list.rb +26 -0
- data/lib/sentdm/models/voice/call.rb +3 -54
- data/lib/sentdm/models/voice/call_leg.rb +58 -0
- data/lib/sentdm/models/webhook_create_params.rb +3 -25
- data/lib/sentdm/models/webhook_delivery.rb +160 -0
- data/lib/sentdm/models/webhook_event_types_list.rb +26 -0
- data/lib/sentdm/models/webhook_events_list.rb +26 -0
- data/lib/sentdm/models/webhook_response.rb +3 -28
- data/lib/sentdm/models/webhook_secret.rb +15 -0
- data/lib/sentdm/models/webhook_sender_profile.rb +29 -0
- data/lib/sentdm/models/webhook_sender_profile_config.rb +27 -0
- data/lib/sentdm/models/webhook_test.rb +21 -0
- data/lib/sentdm/models/webhook_update_params.rb +3 -25
- data/lib/sentdm/models/webhooks_list.rb +26 -0
- data/lib/sentdm/models.rb +188 -0
- data/lib/sentdm/resources/channels/rcs.rb +177 -0
- data/lib/sentdm/resources/channels/sms.rb +417 -0
- data/lib/sentdm/resources/channels/whatsapp.rb +106 -0
- data/lib/sentdm/resources/channels.rb +162 -0
- data/lib/sentdm/resources/compliance.rb +127 -0
- data/lib/sentdm/resources/conversations.rb +4 -4
- data/lib/sentdm/resources/me.rb +2 -2
- data/lib/sentdm/resources/messages.rb +71 -6
- data/lib/sentdm/resources/numbers.rb +2 -2
- data/lib/sentdm/resources/profiles.rb +4 -4
- data/lib/sentdm/resources/sender_profiles.rb +463 -0
- data/lib/sentdm/resources/users.rb +2 -2
- data/lib/sentdm/resources/webhooks.rb +10 -10
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +120 -11
- data/rbi/sentdm/client.rbi +64 -0
- data/rbi/sentdm/internal/sender_profiles_page.rbi +122 -0
- data/rbi/sentdm/models/account.rbi +242 -0
- data/rbi/sentdm/models/account_channels.rbi +66 -0
- data/rbi/sentdm/models/account_profile.rbi +116 -0
- data/rbi/sentdm/models/account_rcs_channel.rbi +45 -0
- data/rbi/sentdm/models/account_sms_channel.rbi +45 -0
- data/rbi/sentdm/models/account_whatsapp_channel.rbi +58 -0
- data/rbi/sentdm/models/api_response_of_account.rbi +78 -0
- data/rbi/sentdm/models/{webhook_rotate_secret_response.rbi → api_response_of_cancelled_message.rbi} +6 -41
- data/rbi/sentdm/models/api_response_of_channels_state.rbi +78 -0
- data/rbi/sentdm/models/api_response_of_compliance_requirements.rbi +81 -0
- data/rbi/sentdm/models/api_response_of_contacts_list.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_message.rbi +84 -0
- data/rbi/sentdm/models/api_response_of_message_activities.rbi +77 -0
- data/rbi/sentdm/models/{webhook_test_response.rbi → api_response_of_number_lookup_result.rbi} +9 -43
- data/rbi/sentdm/models/api_response_of_profile_completion_accepted.rbi +83 -0
- data/rbi/sentdm/models/{profile_complete_response.rbi → api_response_of_profile_completion_result.rbi} +6 -52
- data/rbi/sentdm/models/api_response_of_profiles_list.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_sender_profile.rbi +90 -0
- data/rbi/sentdm/models/api_response_of_sender_profiles_list.rbi +77 -0
- data/rbi/sentdm/models/api_response_of_templates_list.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_users_list.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_webhook_event_types_list.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_webhook_events_list.rbi +77 -0
- data/rbi/sentdm/models/api_response_of_webhook_secret.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_webhook_test.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_webhooks_list.rbi +74 -0
- data/rbi/sentdm/models/billing_contact.rbi +49 -0
- data/rbi/sentdm/models/brand_business.rbi +115 -0
- data/rbi/sentdm/models/brand_business_info.rbi +3 -49
- data/rbi/sentdm/models/brand_compliance.rbi +108 -0
- data/rbi/sentdm/models/brand_contact.rbi +78 -0
- data/rbi/sentdm/models/brand_with_kyc.rbi +167 -0
- data/rbi/sentdm/models/cancelled_message.rbi +37 -0
- data/rbi/sentdm/models/channel_event_payload.rbi +4 -204
- data/rbi/sentdm/models/channel_list_params.rbi +38 -0
- data/rbi/sentdm/models/channel_score.rbi +56 -0
- data/rbi/sentdm/models/channels/api_response_of_list_of_sms_market.rbi +76 -0
- data/rbi/sentdm/models/channels/api_response_of_rcs_agent.rbi +103 -0
- data/rbi/sentdm/models/channels/api_response_of_sms_market.rbi +93 -0
- data/rbi/sentdm/models/channels/api_response_of_whatsapp_channel.rbi +85 -0
- data/rbi/sentdm/models/channels/market_compliance.rbi +770 -0
- data/rbi/sentdm/models/channels/rc_create_params.rbi +397 -0
- data/rbi/sentdm/models/channels/rcs_address.rbi +62 -0
- data/rbi/sentdm/models/channels/rcs_agent.rbi +320 -0
- data/rbi/sentdm/models/channels/sms_create_params.rbi +291 -0
- data/rbi/sentdm/models/channels/sms_list_params.rbi +40 -0
- data/rbi/sentdm/models/channels/sms_market.rbi +247 -0
- data/rbi/sentdm/models/channels/sms_number.rbi +60 -0
- data/rbi/sentdm/models/channels/sms_number_request.rbi +48 -0
- data/rbi/sentdm/models/channels/sms_retrieve_params.rbi +56 -0
- data/rbi/sentdm/models/channels/sms_update_params.rbi +93 -0
- data/rbi/sentdm/models/channels/supplied_compliance.rbi +140 -0
- data/rbi/sentdm/models/channels/supplied_document.rbi +57 -0
- data/rbi/sentdm/models/channels/whatsapp_channel.rbi +172 -0
- data/rbi/sentdm/models/channels/whatsapp_create_params.rbi +104 -0
- data/rbi/sentdm/models/channels_state.rbi +151 -0
- data/rbi/sentdm/models/compliance_attachment_template.rbi +56 -0
- data/rbi/sentdm/models/compliance_requirement.rbi +149 -0
- data/rbi/sentdm/models/compliance_requirements.rbi +165 -0
- data/rbi/sentdm/models/compliance_retrieve_requirements_params.rbi +79 -0
- data/rbi/sentdm/models/compliance_setup_step.rbi +115 -0
- data/rbi/sentdm/models/contact_message_summary.rbi +4 -69
- data/rbi/sentdm/models/contacts_list.rbi +50 -0
- data/rbi/sentdm/models/conversation_messages_list.rbi +4 -669
- data/rbi/sentdm/models/entity_type.rbi +23 -0
- data/rbi/sentdm/models/inbound_media.rbi +76 -0
- data/rbi/sentdm/models/inbound_message_event_payload.rbi +3 -85
- data/rbi/sentdm/models/link_event.rbi +128 -0
- data/rbi/sentdm/models/link_event_payload.rbi +279 -0
- data/rbi/sentdm/models/message.rbi +214 -0
- data/rbi/sentdm/models/message_activities.rbi +63 -0
- data/rbi/sentdm/models/message_activity.rbi +145 -0
- data/rbi/sentdm/models/message_body.rbi +104 -0
- data/rbi/sentdm/models/message_button.rbi +52 -0
- data/rbi/sentdm/models/message_cancel_params.rbi +59 -0
- data/rbi/sentdm/models/message_channel_options.rbi +65 -0
- data/rbi/sentdm/models/message_header_media.rbi +44 -0
- data/rbi/sentdm/models/message_media.rbi +95 -0
- data/rbi/sentdm/models/message_recipient.rbi +70 -0
- data/rbi/sentdm/models/message_send_params.rbi +7 -155
- data/rbi/sentdm/models/message_send_response.rbi +4 -163
- data/rbi/sentdm/models/message_send_result.rbi +85 -0
- data/rbi/sentdm/models/message_status_event.rbi +70 -0
- data/rbi/sentdm/models/mms_market.rbi +66 -0
- data/rbi/sentdm/models/number_lookup_result.rbi +89 -0
- data/rbi/sentdm/models/pagination_cursors.rbi +42 -0
- data/rbi/sentdm/models/pagination_meta.rbi +4 -43
- data/rbi/sentdm/models/profile_completion_accepted.rbi +33 -0
- data/rbi/sentdm/models/profile_completion_result.rbi +43 -0
- data/rbi/sentdm/models/profile_detail.rbi +8 -621
- data/rbi/sentdm/models/profiles/brand_campaign.rbi +3 -45
- data/rbi/sentdm/models/profiles_list.rbi +50 -0
- data/rbi/sentdm/models/sender_profile.rbi +204 -0
- data/rbi/sentdm/models/sender_profile_billing.rbi +34 -0
- data/rbi/sentdm/models/sender_profile_billing_request.rbi +46 -0
- data/rbi/sentdm/models/sender_profile_channels.rbi +163 -0
- data/rbi/sentdm/models/sender_profile_create_params.rbi +190 -0
- data/rbi/sentdm/models/sender_profile_delete_params.rbi +35 -0
- data/rbi/sentdm/models/sender_profile_list_params.rbi +57 -0
- data/rbi/sentdm/models/sender_profile_rcs.rbi +211 -0
- data/rbi/sentdm/models/sender_profile_retrieve_params.rbi +35 -0
- data/rbi/sentdm/models/sender_profile_sms.rbi +156 -0
- data/rbi/sentdm/models/sender_profile_update_params.rbi +96 -0
- data/rbi/sentdm/models/sender_profile_whatsapp.rbi +83 -0
- data/rbi/sentdm/models/sender_profiles_list.rbi +54 -0
- data/rbi/sentdm/models/tcr_brand_identity_status.rbi +27 -0
- data/rbi/sentdm/models/tcr_brand_status.rbi +20 -0
- data/rbi/sentdm/models/tcr_campaign_status.rbi +23 -0
- data/rbi/sentdm/models/template_body.rbi +6 -114
- data/rbi/sentdm/models/template_header.rbi +4 -53
- data/rbi/sentdm/models/template_header_location.rbi +47 -0
- data/rbi/sentdm/models/template_media_item.rbi +51 -0
- data/rbi/sentdm/models/template_mms_body_content.rbi +73 -0
- data/rbi/sentdm/models/template_ref.rbi +79 -0
- data/rbi/sentdm/models/template_variable.rbi +4 -80
- data/rbi/sentdm/models/template_variable_props.rbi +81 -0
- data/rbi/sentdm/models/templates_list.rbi +50 -0
- data/rbi/sentdm/models/users_list.rbi +50 -0
- data/rbi/sentdm/models/voice/call.rbi +3 -86
- data/rbi/sentdm/models/voice/call_leg.rbi +90 -0
- data/rbi/sentdm/models/webhook_create_params.rbi +4 -49
- data/rbi/sentdm/models/webhook_delivery.rbi +211 -0
- data/rbi/sentdm/models/webhook_event_types_list.rbi +54 -0
- data/rbi/sentdm/models/webhook_events_list.rbi +52 -0
- data/rbi/sentdm/models/webhook_response.rbi +4 -50
- data/rbi/sentdm/models/webhook_secret.rbi +24 -0
- data/rbi/sentdm/models/webhook_sender_profile.rbi +46 -0
- data/rbi/sentdm/models/webhook_sender_profile_config.rbi +44 -0
- data/rbi/sentdm/models/webhook_test.rbi +32 -0
- data/rbi/sentdm/models/webhook_update_params.rbi +4 -49
- data/rbi/sentdm/models/webhooks_list.rbi +50 -0
- data/rbi/sentdm/models.rbi +197 -0
- data/rbi/sentdm/resources/channels/rcs.rbi +208 -0
- data/rbi/sentdm/resources/channels/sms.rbi +437 -0
- data/rbi/sentdm/resources/channels/whatsapp.rbi +108 -0
- data/rbi/sentdm/resources/channels.rbi +149 -0
- data/rbi/sentdm/resources/compliance.rbi +121 -0
- data/rbi/sentdm/resources/conversations.rbi +2 -10
- data/rbi/sentdm/resources/me.rbi +1 -1
- data/rbi/sentdm/resources/messages.rbi +64 -7
- data/rbi/sentdm/resources/numbers.rbi +1 -1
- data/rbi/sentdm/resources/profiles.rbi +2 -2
- data/rbi/sentdm/resources/sender_profiles.rbi +461 -0
- data/rbi/sentdm/resources/users.rbi +1 -1
- data/rbi/sentdm/resources/webhooks.rbi +6 -12
- data/sig/sentdm/client.rbs +4 -0
- data/sig/sentdm/internal/sender_profiles_page.rbs +80 -0
- data/sig/sentdm/models/account.rbs +111 -0
- data/sig/sentdm/models/account_channels.rbs +38 -0
- data/sig/sentdm/models/account_profile.rbs +68 -0
- data/sig/sentdm/models/account_rcs_channel.rbs +17 -0
- data/sig/sentdm/models/account_sms_channel.rbs +17 -0
- data/sig/sentdm/models/account_whatsapp_channel.rbs +28 -0
- data/sig/sentdm/models/api_response_of_account.rbs +39 -0
- data/sig/sentdm/models/api_response_of_cancelled_message.rbs +39 -0
- data/sig/sentdm/models/api_response_of_channels_state.rbs +39 -0
- data/sig/sentdm/models/api_response_of_compliance_requirements.rbs +39 -0
- data/sig/sentdm/models/api_response_of_contacts_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_message.rbs +39 -0
- data/sig/sentdm/models/api_response_of_message_activities.rbs +39 -0
- data/sig/sentdm/models/api_response_of_number_lookup_result.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_completion_accepted.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_completion_result.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profiles_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_sender_profile.rbs +39 -0
- data/sig/sentdm/models/api_response_of_sender_profiles_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_templates_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_users_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_webhook_event_types_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_webhook_events_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_webhook_secret.rbs +39 -0
- data/sig/sentdm/models/api_response_of_webhook_test.rbs +39 -0
- data/sig/sentdm/models/api_response_of_webhooks_list.rbs +39 -0
- data/sig/sentdm/models/billing_contact.rbs +30 -0
- data/sig/sentdm/models/brand_business.rbs +70 -0
- data/sig/sentdm/models/brand_business_info.rbs +4 -23
- data/sig/sentdm/models/brand_compliance.rbs +56 -0
- data/sig/sentdm/models/brand_contact.rbs +47 -0
- data/sig/sentdm/models/brand_with_kyc.rbs +93 -0
- data/sig/sentdm/models/cancelled_message.rbs +15 -0
- data/sig/sentdm/models/channel_event_payload.rbs +4 -56
- data/sig/sentdm/models/channel_list_params.rbs +25 -0
- data/sig/sentdm/models/channel_score.rbs +32 -0
- data/sig/sentdm/models/channels/api_response_of_list_of_sms_market.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_rcs_agent.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_sms_market.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_whatsapp_channel.rbs +43 -0
- data/sig/sentdm/models/channels/market_compliance.rbs +338 -0
- data/sig/sentdm/models/channels/rc_create_params.rbs +242 -0
- data/sig/sentdm/models/channels/rcs_address.rbs +42 -0
- data/sig/sentdm/models/channels/rcs_agent.rbs +181 -0
- data/sig/sentdm/models/channels/sms_create_params.rbs +116 -0
- data/sig/sentdm/models/channels/sms_list_params.rbs +27 -0
- data/sig/sentdm/models/channels/sms_market.rbs +85 -0
- data/sig/sentdm/models/channels/sms_number.rbs +28 -0
- data/sig/sentdm/models/channels/sms_number_request.rbs +17 -0
- data/sig/sentdm/models/channels/sms_retrieve_params.rbs +36 -0
- data/sig/sentdm/models/channels/sms_update_params.rbs +63 -0
- data/sig/sentdm/models/channels/supplied_compliance.rbs +32 -0
- data/sig/sentdm/models/channels/supplied_document.rbs +30 -0
- data/sig/sentdm/models/channels/whatsapp_channel.rbs +78 -0
- data/sig/sentdm/models/channels/whatsapp_create_params.rbs +56 -0
- data/sig/sentdm/models/channels_state.rbs +55 -0
- data/sig/sentdm/models/compliance_attachment_template.rbs +26 -0
- data/sig/sentdm/models/compliance_requirement.rbs +76 -0
- data/sig/sentdm/models/compliance_requirements.rbs +66 -0
- data/sig/sentdm/models/compliance_retrieve_requirements_params.rbs +43 -0
- data/sig/sentdm/models/compliance_setup_step.rbs +62 -0
- data/sig/sentdm/models/contact_message_summary.rbs +6 -35
- data/sig/sentdm/models/contacts_list.rbs +31 -0
- data/sig/sentdm/models/conversation_messages_list.rbs +5 -312
- data/sig/sentdm/models/entity_type.rbs +22 -0
- data/sig/sentdm/models/inbound_media.rbs +35 -0
- data/sig/sentdm/models/inbound_message_event_payload.rbs +4 -36
- data/sig/sentdm/models/link_event.rbs +44 -0
- data/sig/sentdm/models/link_event_payload.rbs +106 -0
- data/sig/sentdm/models/message.rbs +130 -0
- data/sig/sentdm/models/message_activities.rbs +38 -0
- data/sig/sentdm/models/message_activity.rbs +66 -0
- data/sig/sentdm/models/message_body.rbs +52 -0
- data/sig/sentdm/models/message_button.rbs +34 -0
- data/sig/sentdm/models/message_cancel_params.rbs +38 -0
- data/sig/sentdm/models/message_channel_options.rbs +26 -0
- data/sig/sentdm/models/message_header_media.rbs +19 -0
- data/sig/sentdm/models/message_media.rbs +40 -0
- data/sig/sentdm/models/message_recipient.rbs +34 -0
- data/sig/sentdm/models/message_send_params.rbs +8 -54
- data/sig/sentdm/models/message_send_response.rbs +4 -77
- data/sig/sentdm/models/message_send_result.rbs +45 -0
- data/sig/sentdm/models/message_status_event.rbs +40 -0
- data/sig/sentdm/models/mms_market.rbs +35 -0
- data/sig/sentdm/models/number_lookup_result.rbs +64 -0
- data/sig/sentdm/models/pagination_cursors.rbs +15 -0
- data/sig/sentdm/models/pagination_meta.rbs +4 -16
- data/sig/sentdm/models/profile_completion_accepted.rbs +15 -0
- data/sig/sentdm/models/profile_completion_result.rbs +19 -0
- data/sig/sentdm/models/profile_detail.rbs +8 -315
- data/sig/sentdm/models/profiles/brand_campaign.rbs +4 -16
- data/sig/sentdm/models/profiles_list.rbs +31 -0
- data/sig/sentdm/models/sender_profile.rbs +76 -0
- data/sig/sentdm/models/sender_profile_billing.rbs +15 -0
- data/sig/sentdm/models/sender_profile_billing_request.rbs +15 -0
- data/sig/sentdm/models/sender_profile_channels.rbs +30 -0
- data/sig/sentdm/models/sender_profile_create_params.rbs +78 -0
- data/sig/sentdm/models/sender_profile_delete_params.rbs +20 -0
- data/sig/sentdm/models/sender_profile_list_params.rbs +32 -0
- data/sig/sentdm/models/sender_profile_rcs.rbs +150 -0
- data/sig/sentdm/models/sender_profile_retrieve_params.rbs +20 -0
- data/sig/sentdm/models/sender_profile_sms.rbs +40 -0
- data/sig/sentdm/models/sender_profile_update_params.rbs +62 -0
- data/sig/sentdm/models/sender_profile_whatsapp.rbs +16 -0
- data/sig/sentdm/models/sender_profiles_list.rbs +31 -0
- data/sig/sentdm/models/tcr_brand_identity_status.rbs +17 -0
- data/sig/sentdm/models/tcr_brand_status.rbs +15 -0
- data/sig/sentdm/models/tcr_campaign_status.rbs +15 -0
- data/sig/sentdm/models/template_body.rbs +4 -43
- data/sig/sentdm/models/template_header.rbs +4 -31
- data/sig/sentdm/models/template_header_location.rbs +30 -0
- data/sig/sentdm/models/template_media_item.rbs +17 -0
- data/sig/sentdm/models/template_mms_body_content.rbs +28 -0
- data/sig/sentdm/models/template_ref.rbs +26 -0
- data/sig/sentdm/models/template_variable.rbs +4 -51
- data/sig/sentdm/models/template_variable_props.rbs +50 -0
- data/sig/sentdm/models/templates_list.rbs +29 -0
- data/sig/sentdm/models/users_list.rbs +31 -0
- data/sig/sentdm/models/voice/call.rbs +4 -49
- data/sig/sentdm/models/voice/call_leg.rbs +50 -0
- data/sig/sentdm/models/webhook_create_params.rbs +4 -28
- data/sig/sentdm/models/webhook_delivery.rbs +99 -0
- data/sig/sentdm/models/webhook_event_types_list.rbs +31 -0
- data/sig/sentdm/models/webhook_events_list.rbs +31 -0
- data/sig/sentdm/models/webhook_response.rbs +4 -28
- data/sig/sentdm/models/webhook_secret.rbs +15 -0
- data/sig/sentdm/models/webhook_sender_profile.rbs +27 -0
- data/sig/sentdm/models/webhook_sender_profile_config.rbs +27 -0
- data/sig/sentdm/models/webhook_test.rbs +19 -0
- data/sig/sentdm/models/webhook_update_params.rbs +4 -28
- data/sig/sentdm/models/webhooks_list.rbs +31 -0
- data/sig/sentdm/models.rbs +188 -0
- data/sig/sentdm/resources/channels/rcs.rbs +41 -0
- data/sig/sentdm/resources/channels/sms.rbs +44 -0
- data/sig/sentdm/resources/channels/whatsapp.rbs +18 -0
- data/sig/sentdm/resources/channels.rbs +11 -0
- data/sig/sentdm/resources/compliance.rbs +15 -0
- data/sig/sentdm/resources/conversations.rbs +2 -2
- data/sig/sentdm/resources/me.rbs +1 -1
- data/sig/sentdm/resources/messages.rbs +12 -4
- data/sig/sentdm/resources/numbers.rbs +1 -1
- data/sig/sentdm/resources/profiles.rbs +2 -2
- data/sig/sentdm/resources/sender_profiles.rbs +44 -0
- data/sig/sentdm/resources/users.rbs +1 -1
- data/sig/sentdm/resources/webhooks.rbs +6 -6
- metadata +362 -35
- data/lib/sentdm/models/me_retrieve_response.rb +0 -409
- data/lib/sentdm/models/message_retrieve_activities_response.rb +0 -175
- data/lib/sentdm/models/message_retrieve_status_response.rb +0 -477
- data/lib/sentdm/models/number_lookup_response.rb +0 -104
- data/lib/sentdm/models/profile_complete_response.rb +0 -74
- data/lib/sentdm/models/profile_list_response.rb +0 -65
- data/lib/sentdm/models/user_list_response.rb +0 -65
- data/lib/sentdm/models/webhook_list_event_types_response.rb +0 -65
- data/lib/sentdm/models/webhook_list_events_response.rb +0 -445
- data/rbi/sentdm/models/me_retrieve_response.rbi +0 -705
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +0 -319
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +0 -765
- data/rbi/sentdm/models/number_lookup_response.rbi +0 -166
- data/rbi/sentdm/models/profile_list_response.rbi +0 -128
- data/rbi/sentdm/models/user_list_response.rbi +0 -128
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +0 -142
- data/rbi/sentdm/models/webhook_list_events_response.rbi +0 -647
- data/sig/sentdm/models/me_retrieve_response.rbs +0 -306
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +0 -137
- data/sig/sentdm/models/message_retrieve_status_response.rbs +0 -341
- data/sig/sentdm/models/number_lookup_response.rbs +0 -100
- data/sig/sentdm/models/profile_complete_response.rbs +0 -55
- data/sig/sentdm/models/profile_list_response.rbs +0 -67
- data/sig/sentdm/models/user_list_response.rbs +0 -67
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +0 -67
- data/sig/sentdm/models/webhook_list_events_response.rbs +0 -243
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +0 -51
- data/sig/sentdm/models/webhook_test_response.rbs +0 -55
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
# @see Sentdm::Resources::Me#retrieve
|
|
6
|
-
class MeRetrieveResponse < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
# Account response for GET /v3/me endpoint. Returns organization (with profiles),
|
|
9
|
-
# user (standalone), or profile (child of an organization) data depending on the
|
|
10
|
-
# API key type. Always includes messaging channel configuration.
|
|
11
|
-
#
|
|
12
|
-
# @return [Sentdm::Models::MeRetrieveResponse::Data, nil]
|
|
13
|
-
optional :data, -> { Sentdm::Models::MeRetrieveResponse::Data }, nil?: true
|
|
14
|
-
|
|
15
|
-
# @!attribute error
|
|
16
|
-
# Error information
|
|
17
|
-
#
|
|
18
|
-
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
19
|
-
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
20
|
-
|
|
21
|
-
# @!attribute meta
|
|
22
|
-
# Request and response metadata
|
|
23
|
-
#
|
|
24
|
-
# @return [Sentdm::Models::APIMeta, nil]
|
|
25
|
-
optional :meta, -> { Sentdm::APIMeta }
|
|
26
|
-
|
|
27
|
-
# @!attribute success
|
|
28
|
-
# Indicates whether the request was successful
|
|
29
|
-
#
|
|
30
|
-
# @return [Boolean, nil]
|
|
31
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
32
|
-
|
|
33
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
34
|
-
# Some parameter documentations has been truncated, see
|
|
35
|
-
# {Sentdm::Models::MeRetrieveResponse} for more details.
|
|
36
|
-
#
|
|
37
|
-
# Standard API response envelope for all v3 endpoints
|
|
38
|
-
#
|
|
39
|
-
# @param data [Sentdm::Models::MeRetrieveResponse::Data, nil] Account response for GET /v3/me endpoint.
|
|
40
|
-
#
|
|
41
|
-
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
42
|
-
#
|
|
43
|
-
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
44
|
-
#
|
|
45
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
46
|
-
|
|
47
|
-
# @see Sentdm::Models::MeRetrieveResponse#data
|
|
48
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
49
|
-
# @!attribute id
|
|
50
|
-
# Customer ID (organization, account, or profile)
|
|
51
|
-
#
|
|
52
|
-
# @return [String, nil]
|
|
53
|
-
optional :id, String
|
|
54
|
-
|
|
55
|
-
# @!attribute channels
|
|
56
|
-
# Messaging channel configuration. All three channels are always present. Each
|
|
57
|
-
# channel has a "configured" flag; configured channels expose additional details.
|
|
58
|
-
#
|
|
59
|
-
# @return [Sentdm::Models::MeRetrieveResponse::Data::Channels, nil]
|
|
60
|
-
optional :channels, -> { Sentdm::Models::MeRetrieveResponse::Data::Channels }
|
|
61
|
-
|
|
62
|
-
# @!attribute created_at
|
|
63
|
-
# When the account was created
|
|
64
|
-
#
|
|
65
|
-
# @return [Time, nil]
|
|
66
|
-
optional :created_at, Time
|
|
67
|
-
|
|
68
|
-
# @!attribute description
|
|
69
|
-
# Account description
|
|
70
|
-
#
|
|
71
|
-
# @return [String, nil]
|
|
72
|
-
optional :description, String, nil?: true
|
|
73
|
-
|
|
74
|
-
# @!attribute email
|
|
75
|
-
# Contact email address
|
|
76
|
-
#
|
|
77
|
-
# @return [String, nil]
|
|
78
|
-
optional :email, String, nil?: true
|
|
79
|
-
|
|
80
|
-
# @!attribute enable_template_auto_creation_for_sp
|
|
81
|
-
# Whether this account may mark a template for automatic creation on its sender
|
|
82
|
-
# profiles. Granted by Sent per account and off by default, so it is what a
|
|
83
|
-
# template-create form reads to decide whether to offer the option at all —
|
|
84
|
-
# marking a template without it does nothing.
|
|
85
|
-
#
|
|
86
|
-
# Top-level rather than inside settings, which is written for type: "profile" only
|
|
87
|
-
# and so would never carry it to the account type that can act on it.
|
|
88
|
-
#
|
|
89
|
-
# This is the capability, not the stored flag: a profile reports false whatever
|
|
90
|
-
# its own row holds. A sender profile owns no sender profiles, so a template it
|
|
91
|
-
# marked would have nothing to be created on and the fan-out would never read the
|
|
92
|
-
# flag. The admin GET /customers/{id} reports the stored value instead, because
|
|
93
|
-
# that is the one an operator granted.
|
|
94
|
-
#
|
|
95
|
-
# @return [Boolean, nil]
|
|
96
|
-
optional :enable_template_auto_creation_for_sp, Sentdm::Internal::Type::Boolean
|
|
97
|
-
|
|
98
|
-
# @!attribute icon
|
|
99
|
-
# Account icon URL
|
|
100
|
-
#
|
|
101
|
-
# @return [String, nil]
|
|
102
|
-
optional :icon, String, nil?: true
|
|
103
|
-
|
|
104
|
-
# @!attribute name
|
|
105
|
-
# Account name
|
|
106
|
-
#
|
|
107
|
-
# @return [String, nil]
|
|
108
|
-
optional :name, String
|
|
109
|
-
|
|
110
|
-
# @!attribute organization_id
|
|
111
|
-
# Organization ID (only for profile type — the parent organization)
|
|
112
|
-
#
|
|
113
|
-
# @return [String, nil]
|
|
114
|
-
optional :organization_id, String, nil?: true
|
|
115
|
-
|
|
116
|
-
# @!attribute profiles
|
|
117
|
-
# List of profiles (populated for organization type, empty for user and profile
|
|
118
|
-
# types)
|
|
119
|
-
#
|
|
120
|
-
# @return [Array<Sentdm::Models::MeRetrieveResponse::Data::Profile>, nil]
|
|
121
|
-
optional :profiles,
|
|
122
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Models::MeRetrieveResponse::Data::Profile] }
|
|
123
|
-
|
|
124
|
-
# @!attribute sending_phone_number
|
|
125
|
-
# The SMS sender this account sends from in the United States, in E.164 form. Null
|
|
126
|
-
# when the account has no US SMS sender.
|
|
127
|
-
#
|
|
128
|
-
# The same value as channels.sms.phone_number, published under both names on
|
|
129
|
-
# purpose: sending_phone_number is what this value is already called on GET
|
|
130
|
-
# /v3/profiles, so the same key answers the same question whichever of the two
|
|
131
|
-
# endpoints you ask. Neither name is preferred over the other and neither is
|
|
132
|
-
# deprecated.
|
|
133
|
-
#
|
|
134
|
-
# The same value, not the same presence: this key is always written, including as
|
|
135
|
-
# null, whereas channels.sms.phone_number is left out entirely when there is no
|
|
136
|
-
# sender.
|
|
137
|
-
#
|
|
138
|
-
# @return [String, nil]
|
|
139
|
-
optional :sending_phone_number, String, nil?: true
|
|
140
|
-
|
|
141
|
-
# @!attribute sending_phone_number_profile_id
|
|
142
|
-
# The account that holds sending_phone_number in number inventory: normally this
|
|
143
|
-
# account itself, and a different account when the number is held elsewhere. Null
|
|
144
|
-
# when there is no US sender, or when the sender is not a number drawn from
|
|
145
|
-
# inventory — an alphanumeric sender ID or a short code.
|
|
146
|
-
#
|
|
147
|
-
# @return [String, nil]
|
|
148
|
-
optional :sending_phone_number_profile_id, String, nil?: true
|
|
149
|
-
|
|
150
|
-
# @!attribute settings
|
|
151
|
-
# Profile configuration settings
|
|
152
|
-
#
|
|
153
|
-
# @return [Sentdm::Models::ProfileSettings, nil]
|
|
154
|
-
optional :settings, -> { Sentdm::ProfileSettings }, nil?: true
|
|
155
|
-
|
|
156
|
-
# @!attribute short_name
|
|
157
|
-
# Short name / abbreviation (only for profile type)
|
|
158
|
-
#
|
|
159
|
-
# @return [String, nil]
|
|
160
|
-
optional :short_name, String, nil?: true
|
|
161
|
-
|
|
162
|
-
# @!attribute status
|
|
163
|
-
# Profile status (only for profile type): incomplete, pending_review, approved,
|
|
164
|
-
# etc.
|
|
165
|
-
#
|
|
166
|
-
# @return [String, nil]
|
|
167
|
-
optional :status, String, nil?: true
|
|
168
|
-
|
|
169
|
-
# @!attribute type
|
|
170
|
-
# Account type: "organization" (has profiles), "user" (no profiles), or "profile"
|
|
171
|
-
# (child of an organization)
|
|
172
|
-
#
|
|
173
|
-
# @return [String, nil]
|
|
174
|
-
optional :type, String
|
|
175
|
-
|
|
176
|
-
# @!method initialize(id: nil, channels: nil, created_at: nil, description: nil, email: nil, enable_template_auto_creation_for_sp: nil, icon: nil, name: nil, organization_id: nil, profiles: nil, sending_phone_number: nil, sending_phone_number_profile_id: nil, settings: nil, short_name: nil, status: nil, type: nil)
|
|
177
|
-
# Some parameter documentations has been truncated, see
|
|
178
|
-
# {Sentdm::Models::MeRetrieveResponse::Data} for more details.
|
|
179
|
-
#
|
|
180
|
-
# Account response for GET /v3/me endpoint. Returns organization (with profiles),
|
|
181
|
-
# user (standalone), or profile (child of an organization) data depending on the
|
|
182
|
-
# API key type. Always includes messaging channel configuration.
|
|
183
|
-
#
|
|
184
|
-
# @param id [String] Customer ID (organization, account, or profile)
|
|
185
|
-
#
|
|
186
|
-
# @param channels [Sentdm::Models::MeRetrieveResponse::Data::Channels] Messaging channel configuration. All three channels are always present.
|
|
187
|
-
#
|
|
188
|
-
# @param created_at [Time] When the account was created
|
|
189
|
-
#
|
|
190
|
-
# @param description [String, nil] Account description
|
|
191
|
-
#
|
|
192
|
-
# @param email [String, nil] Contact email address
|
|
193
|
-
#
|
|
194
|
-
# @param enable_template_auto_creation_for_sp [Boolean] Whether this account may mark a template for automatic creation on its sender pr
|
|
195
|
-
#
|
|
196
|
-
# @param icon [String, nil] Account icon URL
|
|
197
|
-
#
|
|
198
|
-
# @param name [String] Account name
|
|
199
|
-
#
|
|
200
|
-
# @param organization_id [String, nil] Organization ID (only for profile type — the parent organization)
|
|
201
|
-
#
|
|
202
|
-
# @param profiles [Array<Sentdm::Models::MeRetrieveResponse::Data::Profile>] List of profiles (populated for organization type, empty for user and profile ty
|
|
203
|
-
#
|
|
204
|
-
# @param sending_phone_number [String, nil] The SMS sender this account sends from in the United States, in E.164 form. Null
|
|
205
|
-
#
|
|
206
|
-
# @param sending_phone_number_profile_id [String, nil] The account that holds sending_phone_number in number inventory: normally this a
|
|
207
|
-
#
|
|
208
|
-
# @param settings [Sentdm::Models::ProfileSettings, nil] Profile configuration settings
|
|
209
|
-
#
|
|
210
|
-
# @param short_name [String, nil] Short name / abbreviation (only for profile type)
|
|
211
|
-
#
|
|
212
|
-
# @param status [String, nil] Profile status (only for profile type): incomplete, pending_review, approved, et
|
|
213
|
-
#
|
|
214
|
-
# @param type [String] Account type: "organization" (has profiles), "user" (no profiles), or "profile"
|
|
215
|
-
|
|
216
|
-
# @see Sentdm::Models::MeRetrieveResponse::Data#channels
|
|
217
|
-
class Channels < Sentdm::Internal::Type::BaseModel
|
|
218
|
-
# @!attribute rcs
|
|
219
|
-
# RCS channel configuration. When configured, includes the RCS phone number.
|
|
220
|
-
#
|
|
221
|
-
# @return [Sentdm::Models::MeRetrieveResponse::Data::Channels::Rcs, nil]
|
|
222
|
-
optional :rcs, -> { Sentdm::Models::MeRetrieveResponse::Data::Channels::Rcs }
|
|
223
|
-
|
|
224
|
-
# @!attribute sms
|
|
225
|
-
# SMS channel configuration. When configured, includes the sending phone number.
|
|
226
|
-
#
|
|
227
|
-
# @return [Sentdm::Models::MeRetrieveResponse::Data::Channels::SMS, nil]
|
|
228
|
-
optional :sms, -> { Sentdm::Models::MeRetrieveResponse::Data::Channels::SMS }
|
|
229
|
-
|
|
230
|
-
# @!attribute whatsapp
|
|
231
|
-
# WhatsApp Business channel configuration. When configured, includes the WhatsApp
|
|
232
|
-
# phone number and business name.
|
|
233
|
-
#
|
|
234
|
-
# @return [Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp, nil]
|
|
235
|
-
optional :whatsapp, -> { Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp }
|
|
236
|
-
|
|
237
|
-
# @!method initialize(rcs: nil, sms: nil, whatsapp: nil)
|
|
238
|
-
# Some parameter documentations has been truncated, see
|
|
239
|
-
# {Sentdm::Models::MeRetrieveResponse::Data::Channels} for more details.
|
|
240
|
-
#
|
|
241
|
-
# Messaging channel configuration. All three channels are always present. Each
|
|
242
|
-
# channel has a "configured" flag; configured channels expose additional details.
|
|
243
|
-
#
|
|
244
|
-
# @param rcs [Sentdm::Models::MeRetrieveResponse::Data::Channels::Rcs] RCS channel configuration. When configured, includes the RCS phone number.
|
|
245
|
-
#
|
|
246
|
-
# @param sms [Sentdm::Models::MeRetrieveResponse::Data::Channels::SMS] SMS channel configuration. When configured, includes the sending phone number.
|
|
247
|
-
#
|
|
248
|
-
# @param whatsapp [Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp] WhatsApp Business channel configuration. When configured, includes the WhatsApp
|
|
249
|
-
|
|
250
|
-
# @see Sentdm::Models::MeRetrieveResponse::Data::Channels#rcs
|
|
251
|
-
class Rcs < Sentdm::Internal::Type::BaseModel
|
|
252
|
-
# @!attribute configured
|
|
253
|
-
# Whether RCS is configured for this account
|
|
254
|
-
#
|
|
255
|
-
# @return [Boolean, nil]
|
|
256
|
-
optional :configured, Sentdm::Internal::Type::Boolean
|
|
257
|
-
|
|
258
|
-
# @!attribute phone_number
|
|
259
|
-
# RCS-enabled phone number in E.164 format
|
|
260
|
-
#
|
|
261
|
-
# @return [String, nil]
|
|
262
|
-
optional :phone_number, String, nil?: true
|
|
263
|
-
|
|
264
|
-
# @!method initialize(configured: nil, phone_number: nil)
|
|
265
|
-
# RCS channel configuration. When configured, includes the RCS phone number.
|
|
266
|
-
#
|
|
267
|
-
# @param configured [Boolean] Whether RCS is configured for this account
|
|
268
|
-
#
|
|
269
|
-
# @param phone_number [String, nil] RCS-enabled phone number in E.164 format
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
# @see Sentdm::Models::MeRetrieveResponse::Data::Channels#sms
|
|
273
|
-
class SMS < Sentdm::Internal::Type::BaseModel
|
|
274
|
-
# @!attribute configured
|
|
275
|
-
# Whether SMS is configured for this account
|
|
276
|
-
#
|
|
277
|
-
# @return [Boolean, nil]
|
|
278
|
-
optional :configured, Sentdm::Internal::Type::Boolean
|
|
279
|
-
|
|
280
|
-
# @!attribute phone_number
|
|
281
|
-
# Sending phone number in E.164 format
|
|
282
|
-
#
|
|
283
|
-
# @return [String, nil]
|
|
284
|
-
optional :phone_number, String, nil?: true
|
|
285
|
-
|
|
286
|
-
# @!method initialize(configured: nil, phone_number: nil)
|
|
287
|
-
# SMS channel configuration. When configured, includes the sending phone number.
|
|
288
|
-
#
|
|
289
|
-
# @param configured [Boolean] Whether SMS is configured for this account
|
|
290
|
-
#
|
|
291
|
-
# @param phone_number [String, nil] Sending phone number in E.164 format
|
|
292
|
-
end
|
|
293
|
-
|
|
294
|
-
# @see Sentdm::Models::MeRetrieveResponse::Data::Channels#whatsapp
|
|
295
|
-
class Whatsapp < Sentdm::Internal::Type::BaseModel
|
|
296
|
-
# @!attribute business_name
|
|
297
|
-
# WhatsApp Business display name
|
|
298
|
-
#
|
|
299
|
-
# @return [String, nil]
|
|
300
|
-
optional :business_name, String, nil?: true
|
|
301
|
-
|
|
302
|
-
# @!attribute configured
|
|
303
|
-
# Whether WhatsApp is configured for this account
|
|
304
|
-
#
|
|
305
|
-
# @return [Boolean, nil]
|
|
306
|
-
optional :configured, Sentdm::Internal::Type::Boolean
|
|
307
|
-
|
|
308
|
-
# @!attribute phone_number
|
|
309
|
-
# WhatsApp phone number in E.164 format
|
|
310
|
-
#
|
|
311
|
-
# @return [String, nil]
|
|
312
|
-
optional :phone_number, String, nil?: true
|
|
313
|
-
|
|
314
|
-
# @!method initialize(business_name: nil, configured: nil, phone_number: nil)
|
|
315
|
-
# WhatsApp Business channel configuration. When configured, includes the WhatsApp
|
|
316
|
-
# phone number and business name.
|
|
317
|
-
#
|
|
318
|
-
# @param business_name [String, nil] WhatsApp Business display name
|
|
319
|
-
#
|
|
320
|
-
# @param configured [Boolean] Whether WhatsApp is configured for this account
|
|
321
|
-
#
|
|
322
|
-
# @param phone_number [String, nil] WhatsApp phone number in E.164 format
|
|
323
|
-
end
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
class Profile < Sentdm::Internal::Type::BaseModel
|
|
327
|
-
# @!attribute id
|
|
328
|
-
# Profile unique identifier
|
|
329
|
-
#
|
|
330
|
-
# @return [String, nil]
|
|
331
|
-
optional :id, String
|
|
332
|
-
|
|
333
|
-
# @!attribute created_at
|
|
334
|
-
# When the profile was created
|
|
335
|
-
#
|
|
336
|
-
# @return [Time, nil]
|
|
337
|
-
optional :created_at, Time
|
|
338
|
-
|
|
339
|
-
# @!attribute description
|
|
340
|
-
# Profile description
|
|
341
|
-
#
|
|
342
|
-
# @return [String, nil]
|
|
343
|
-
optional :description, String, nil?: true
|
|
344
|
-
|
|
345
|
-
# @!attribute icon
|
|
346
|
-
# Profile icon URL
|
|
347
|
-
#
|
|
348
|
-
# @return [String, nil]
|
|
349
|
-
optional :icon, String, nil?: true
|
|
350
|
-
|
|
351
|
-
# @!attribute name
|
|
352
|
-
# Profile name
|
|
353
|
-
#
|
|
354
|
-
# @return [String, nil]
|
|
355
|
-
optional :name, String
|
|
356
|
-
|
|
357
|
-
# @!attribute role
|
|
358
|
-
# User's role in this profile: admin, billing, developer (inherited from
|
|
359
|
-
# organization if not explicitly set)
|
|
360
|
-
#
|
|
361
|
-
# @return [String, nil]
|
|
362
|
-
optional :role, String, nil?: true
|
|
363
|
-
|
|
364
|
-
# @!attribute settings
|
|
365
|
-
# Profile configuration settings
|
|
366
|
-
#
|
|
367
|
-
# @return [Sentdm::Models::ProfileSettings, nil]
|
|
368
|
-
optional :settings, -> { Sentdm::ProfileSettings }
|
|
369
|
-
|
|
370
|
-
# @!attribute short_name
|
|
371
|
-
# Profile short name (abbreviation)
|
|
372
|
-
#
|
|
373
|
-
# @return [String, nil]
|
|
374
|
-
optional :short_name, String, nil?: true
|
|
375
|
-
|
|
376
|
-
# @!attribute status
|
|
377
|
-
# Profile setup status: incomplete, pending_review, approved, rejected
|
|
378
|
-
#
|
|
379
|
-
# @return [String, nil]
|
|
380
|
-
optional :status, String, nil?: true
|
|
381
|
-
|
|
382
|
-
# @!method initialize(id: nil, created_at: nil, description: nil, icon: nil, name: nil, role: nil, settings: nil, short_name: nil, status: nil)
|
|
383
|
-
# Some parameter documentations has been truncated, see
|
|
384
|
-
# {Sentdm::Models::MeRetrieveResponse::Data::Profile} for more details.
|
|
385
|
-
#
|
|
386
|
-
# Profile (sender profile) response for v3 API
|
|
387
|
-
#
|
|
388
|
-
# @param id [String] Profile unique identifier
|
|
389
|
-
#
|
|
390
|
-
# @param created_at [Time] When the profile was created
|
|
391
|
-
#
|
|
392
|
-
# @param description [String, nil] Profile description
|
|
393
|
-
#
|
|
394
|
-
# @param icon [String, nil] Profile icon URL
|
|
395
|
-
#
|
|
396
|
-
# @param name [String] Profile name
|
|
397
|
-
#
|
|
398
|
-
# @param role [String, nil] User's role in this profile: admin, billing, developer (inherited from organizat
|
|
399
|
-
#
|
|
400
|
-
# @param settings [Sentdm::Models::ProfileSettings] Profile configuration settings
|
|
401
|
-
#
|
|
402
|
-
# @param short_name [String, nil] Profile short name (abbreviation)
|
|
403
|
-
#
|
|
404
|
-
# @param status [String, nil] Profile setup status: incomplete, pending_review, approved, rejected
|
|
405
|
-
end
|
|
406
|
-
end
|
|
407
|
-
end
|
|
408
|
-
end
|
|
409
|
-
end
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
# @see Sentdm::Resources::Messages#retrieve_activities
|
|
6
|
-
class MessageRetrieveActivitiesResponse < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
# Response for GET /messages/{id}/activities
|
|
9
|
-
#
|
|
10
|
-
# @return [Sentdm::Models::MessageRetrieveActivitiesResponse::Data, nil]
|
|
11
|
-
optional :data, -> { Sentdm::Models::MessageRetrieveActivitiesResponse::Data }, nil?: true
|
|
12
|
-
|
|
13
|
-
# @!attribute error
|
|
14
|
-
# Error information
|
|
15
|
-
#
|
|
16
|
-
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
17
|
-
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute meta
|
|
20
|
-
# Request and response metadata
|
|
21
|
-
#
|
|
22
|
-
# @return [Sentdm::Models::APIMeta, nil]
|
|
23
|
-
optional :meta, -> { Sentdm::APIMeta }
|
|
24
|
-
|
|
25
|
-
# @!attribute success
|
|
26
|
-
# Indicates whether the request was successful
|
|
27
|
-
#
|
|
28
|
-
# @return [Boolean, nil]
|
|
29
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
30
|
-
|
|
31
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
32
|
-
# Standard API response envelope for all v3 endpoints
|
|
33
|
-
#
|
|
34
|
-
# @param data [Sentdm::Models::MessageRetrieveActivitiesResponse::Data, nil] Response for GET /messages/{id}/activities
|
|
35
|
-
#
|
|
36
|
-
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
37
|
-
#
|
|
38
|
-
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
39
|
-
#
|
|
40
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
41
|
-
|
|
42
|
-
# @see Sentdm::Models::MessageRetrieveActivitiesResponse#data
|
|
43
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
44
|
-
# @!attribute activities
|
|
45
|
-
# List of activity events ordered by most recent first
|
|
46
|
-
#
|
|
47
|
-
# @return [Array<Sentdm::Models::MessageRetrieveActivitiesResponse::Data::Activity>, nil]
|
|
48
|
-
optional :activities,
|
|
49
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Models::MessageRetrieveActivitiesResponse::Data::Activity] }
|
|
50
|
-
|
|
51
|
-
# @!attribute message_id
|
|
52
|
-
# The message ID these activities belong to
|
|
53
|
-
#
|
|
54
|
-
# @return [String, nil]
|
|
55
|
-
optional :message_id, String
|
|
56
|
-
|
|
57
|
-
# @!attribute pagination
|
|
58
|
-
# Pagination metadata for list responses
|
|
59
|
-
#
|
|
60
|
-
# @return [Sentdm::Models::PaginationMeta, nil]
|
|
61
|
-
optional :pagination, -> { Sentdm::PaginationMeta }
|
|
62
|
-
|
|
63
|
-
# @!method initialize(activities: nil, message_id: nil, pagination: nil)
|
|
64
|
-
# Response for GET /messages/{id}/activities
|
|
65
|
-
#
|
|
66
|
-
# @param activities [Array<Sentdm::Models::MessageRetrieveActivitiesResponse::Data::Activity>] List of activity events ordered by most recent first
|
|
67
|
-
#
|
|
68
|
-
# @param message_id [String] The message ID these activities belong to
|
|
69
|
-
#
|
|
70
|
-
# @param pagination [Sentdm::Models::PaginationMeta] Pagination metadata for list responses
|
|
71
|
-
|
|
72
|
-
class Activity < Sentdm::Internal::Type::BaseModel
|
|
73
|
-
# @!attribute active_contact_price
|
|
74
|
-
# Active contact markup applied on top of the channel cost, formatted to 4 decimal
|
|
75
|
-
# places.
|
|
76
|
-
#
|
|
77
|
-
# @return [String, nil]
|
|
78
|
-
optional :active_contact_price, String, nil?: true
|
|
79
|
-
|
|
80
|
-
# @!attribute description
|
|
81
|
-
# Human-readable description of the activity
|
|
82
|
-
#
|
|
83
|
-
# @return [String, nil]
|
|
84
|
-
optional :description, String
|
|
85
|
-
|
|
86
|
-
# @!attribute from
|
|
87
|
-
# Sender phone number for this activity (the customer's sending number for
|
|
88
|
-
# outbound, the external sender for inbound). Null when not reported by the
|
|
89
|
-
# provider.
|
|
90
|
-
#
|
|
91
|
-
# @return [String, nil]
|
|
92
|
-
optional :from, String, nil?: true
|
|
93
|
-
|
|
94
|
-
# @!attribute price
|
|
95
|
-
# Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
|
|
96
|
-
# 4 decimal places.
|
|
97
|
-
#
|
|
98
|
-
# @return [String, nil]
|
|
99
|
-
optional :price, String, nil?: true
|
|
100
|
-
|
|
101
|
-
# @!attribute reason
|
|
102
|
-
# A human-readable sentence for reason_code, for example "The recipient is not
|
|
103
|
-
# registered on this channel" Omitted whenever reason_code is.
|
|
104
|
-
#
|
|
105
|
-
# @return [String, nil]
|
|
106
|
-
optional :reason, String, nil?: true
|
|
107
|
-
|
|
108
|
-
# @!attribute reason_code
|
|
109
|
-
# Why the message reached this status, as a stable platform code such as
|
|
110
|
-
# DELIVERY_007 or BUSINESS_003. Present on FAILED, FILTERED and BLOCKED
|
|
111
|
-
# activities; omitted on every status that needs no explanation. Switch on this
|
|
112
|
-
# rather than on reason: the code is stable, the wording may be improved. Same
|
|
113
|
-
# wire name and vocabulary as on the message and the webhook.
|
|
114
|
-
#
|
|
115
|
-
# @return [String, nil]
|
|
116
|
-
optional :reason_code, String, nil?: true
|
|
117
|
-
|
|
118
|
-
# @!attribute scheduled_at
|
|
119
|
-
# SCHEDULED and CANCELLED activities only, in UTC: on a SCHEDULED entry, when the
|
|
120
|
-
# held message will be released for delivery; on a CANCELLED entry, the instant
|
|
121
|
-
# that was called off. Same wire name as on the send response, the message and the
|
|
122
|
-
# webhook. Omitted on every other activity. A message that quiet hours moved at
|
|
123
|
-
# release has two SCHEDULED entries, each carrying the instant as it stood at that
|
|
124
|
-
# moment.
|
|
125
|
-
#
|
|
126
|
-
# @return [Time, nil]
|
|
127
|
-
optional :scheduled_at, Time, nil?: true
|
|
128
|
-
|
|
129
|
-
# @!attribute status
|
|
130
|
-
# Activity status. Outbound: QUEUED, PROCESSED, ROUTED, SCHEDULED, SENT,
|
|
131
|
-
# DELIVERED, READ, FAILED. Inbound (from contact): RECEIVED (terminal).
|
|
132
|
-
#
|
|
133
|
-
# @return [String, nil]
|
|
134
|
-
optional :status, String
|
|
135
|
-
|
|
136
|
-
# @!attribute timestamp
|
|
137
|
-
# When this activity occurred
|
|
138
|
-
#
|
|
139
|
-
# @return [Time, nil]
|
|
140
|
-
optional :timestamp, Time
|
|
141
|
-
|
|
142
|
-
# @!method initialize(active_contact_price: nil, description: nil, from: nil, price: nil, reason: nil, reason_code: nil, scheduled_at: nil, status: nil, timestamp: nil)
|
|
143
|
-
# Some parameter documentations has been truncated, see
|
|
144
|
-
# {Sentdm::Models::MessageRetrieveActivitiesResponse::Data::Activity} for more
|
|
145
|
-
# details.
|
|
146
|
-
#
|
|
147
|
-
# A single message activity event for v3 API.
|
|
148
|
-
#
|
|
149
|
-
# The activity list mixes statuses, so unlike a message it is one shape rather
|
|
150
|
-
# than two: a SCHEDULED entry carries scheduled_at, and every other entry has no
|
|
151
|
-
# such key.
|
|
152
|
-
#
|
|
153
|
-
# @param active_contact_price [String, nil] Active contact markup applied on top of the channel cost, formatted to 4 decimal
|
|
154
|
-
#
|
|
155
|
-
# @param description [String] Human-readable description of the activity
|
|
156
|
-
#
|
|
157
|
-
# @param from [String, nil] Sender phone number for this activity (the customer's sending number for outboun
|
|
158
|
-
#
|
|
159
|
-
# @param price [String, nil] Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
|
|
160
|
-
#
|
|
161
|
-
# @param reason [String, nil] A human-readable sentence for reason_code, for example "The recipient is not reg
|
|
162
|
-
#
|
|
163
|
-
# @param reason_code [String, nil] Why the message reached this status, as a stable platform code such as
|
|
164
|
-
# DELIVERY\_
|
|
165
|
-
#
|
|
166
|
-
# @param scheduled_at [Time, nil] SCHEDULED and CANCELLED activities only, in UTC: on a SCHEDULED entry, when the
|
|
167
|
-
#
|
|
168
|
-
# @param status [String] Activity status. Outbound: QUEUED, PROCESSED, ROUTED, SCHEDULED, SENT, DELIVERED
|
|
169
|
-
#
|
|
170
|
-
# @param timestamp [Time] When this activity occurred
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
end
|