sentdm 0.45.0 → 0.47.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 +22 -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 +148 -0
- data/lib/sentdm/models/channels/sms_number.rb +52 -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_campaign.rb +10 -0
- data/lib/sentdm/models/channels/supplied_compliance.rb +115 -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 +14 -16
- 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 +7 -57
- 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 +420 -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/campaigns.rb +4 -1
- data/lib/sentdm/resources/profiles.rb +4 -4
- data/lib/sentdm/resources/sender_profiles.rb +465 -0
- data/lib/sentdm/resources/users.rb +2 -2
- data/lib/sentdm/resources/voice/calls/participants.rb +5 -5
- data/lib/sentdm/resources/webhooks.rb +10 -10
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +121 -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 +235 -0
- data/rbi/sentdm/models/channels/sms_number.rbi +74 -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_campaign.rbi +13 -0
- data/rbi/sentdm/models/channels/supplied_compliance.rbi +180 -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 +18 -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 +11 -92
- 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 +440 -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/campaigns.rbi +4 -1
- data/rbi/sentdm/resources/profiles.rbi +2 -2
- data/rbi/sentdm/resources/sender_profiles.rbi +463 -0
- data/rbi/sentdm/resources/users.rbi +1 -1
- data/rbi/sentdm/resources/voice/calls/participants.rbi +5 -5
- 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 +80 -0
- data/sig/sentdm/models/channels/sms_number.rbs +37 -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_campaign.rbs +9 -0
- data/sig/sentdm/models/channels/supplied_compliance.rbs +37 -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 +11 -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 +365 -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
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class BrandWithKYC < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# Unique identifier for the brand
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute business
|
|
13
|
+
# Business details and address information
|
|
14
|
+
#
|
|
15
|
+
# @return [Sentdm::Models::BrandBusiness, nil]
|
|
16
|
+
optional :business, -> { Sentdm::BrandBusiness }, nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute compliance
|
|
19
|
+
# Compliance and TCR-related information
|
|
20
|
+
#
|
|
21
|
+
# @return [Sentdm::Models::BrandCompliance, nil]
|
|
22
|
+
optional :compliance, -> { Sentdm::BrandCompliance }, nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute contact
|
|
25
|
+
# Contact information for the brand
|
|
26
|
+
#
|
|
27
|
+
# @return [Sentdm::Models::BrandContact, nil]
|
|
28
|
+
optional :contact, -> { Sentdm::BrandContact }, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!attribute created_at
|
|
31
|
+
# When the brand was created
|
|
32
|
+
#
|
|
33
|
+
# @return [Time, nil]
|
|
34
|
+
optional :created_at, Time
|
|
35
|
+
|
|
36
|
+
# @!attribute csp_id
|
|
37
|
+
# @deprecated
|
|
38
|
+
#
|
|
39
|
+
# Deprecated and scheduled for removal. Identifies the Campaign Service Provider
|
|
40
|
+
# that registered the brand, which is Sent, so the value is the same for every
|
|
41
|
+
# brand and every account. Nothing on your side can act on it and there is no
|
|
42
|
+
# replacement. Stop reading it.
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :csp_id, String, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute identity_status
|
|
48
|
+
#
|
|
49
|
+
# @return [Symbol, Sentdm::Models::TcrBrandIdentityStatus, nil]
|
|
50
|
+
optional :identity_status, enum: -> { Sentdm::TcrBrandIdentityStatus }, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!attribute is_inherited
|
|
53
|
+
# Whether this brand is inherited from the parent organization
|
|
54
|
+
#
|
|
55
|
+
# @return [Boolean, nil]
|
|
56
|
+
optional :is_inherited, Sentdm::Internal::Type::Boolean
|
|
57
|
+
|
|
58
|
+
# @!attribute status
|
|
59
|
+
#
|
|
60
|
+
# @return [Symbol, Sentdm::Models::TcrBrandStatus, nil]
|
|
61
|
+
optional :status, enum: -> { Sentdm::TcrBrandStatus }, nil?: true
|
|
62
|
+
|
|
63
|
+
# @!attribute submitted_at
|
|
64
|
+
# When the brand was submitted to TCR
|
|
65
|
+
#
|
|
66
|
+
# @return [Time, nil]
|
|
67
|
+
optional :submitted_at, Time, nil?: true
|
|
68
|
+
|
|
69
|
+
# @!attribute submitted_to_tcr
|
|
70
|
+
# Whether this brand has been submitted to TCR
|
|
71
|
+
#
|
|
72
|
+
# @return [Boolean, nil]
|
|
73
|
+
optional :submitted_to_tcr, Sentdm::Internal::Type::Boolean
|
|
74
|
+
|
|
75
|
+
# @!attribute tcr_brand_id
|
|
76
|
+
# TCR brand ID (populated after TCR submission)
|
|
77
|
+
#
|
|
78
|
+
# @return [String, nil]
|
|
79
|
+
optional :tcr_brand_id, String, nil?: true
|
|
80
|
+
|
|
81
|
+
# @!attribute universal_ein
|
|
82
|
+
# Universal EIN from TCR
|
|
83
|
+
#
|
|
84
|
+
# @return [String, nil]
|
|
85
|
+
optional :universal_ein, String, nil?: true
|
|
86
|
+
|
|
87
|
+
# @!attribute updated_at
|
|
88
|
+
# When the brand was last updated
|
|
89
|
+
#
|
|
90
|
+
# @return [Time, nil]
|
|
91
|
+
optional :updated_at, Time, nil?: true
|
|
92
|
+
|
|
93
|
+
# @!method initialize(id: nil, business: nil, compliance: nil, contact: nil, created_at: nil, csp_id: nil, identity_status: nil, is_inherited: nil, status: nil, submitted_at: nil, submitted_to_tcr: nil, tcr_brand_id: nil, universal_ein: nil, updated_at: nil)
|
|
94
|
+
# Some parameter documentations has been truncated, see
|
|
95
|
+
# {Sentdm::Models::BrandWithKYC} for more details.
|
|
96
|
+
#
|
|
97
|
+
# Brand response with nested contact, business, and compliance sections — mirrors
|
|
98
|
+
# the request structure.
|
|
99
|
+
#
|
|
100
|
+
# @param id [String] Unique identifier for the brand
|
|
101
|
+
#
|
|
102
|
+
# @param business [Sentdm::Models::BrandBusiness, nil] Business details and address information
|
|
103
|
+
#
|
|
104
|
+
# @param compliance [Sentdm::Models::BrandCompliance, nil] Compliance and TCR-related information
|
|
105
|
+
#
|
|
106
|
+
# @param contact [Sentdm::Models::BrandContact, nil] Contact information for the brand
|
|
107
|
+
#
|
|
108
|
+
# @param created_at [Time] When the brand was created
|
|
109
|
+
#
|
|
110
|
+
# @param csp_id [String, nil] Deprecated and scheduled for removal. Identifies the Campaign Service Provider t
|
|
111
|
+
#
|
|
112
|
+
# @param identity_status [Symbol, Sentdm::Models::TcrBrandIdentityStatus, nil]
|
|
113
|
+
#
|
|
114
|
+
# @param is_inherited [Boolean] Whether this brand is inherited from the parent organization
|
|
115
|
+
#
|
|
116
|
+
# @param status [Symbol, Sentdm::Models::TcrBrandStatus, nil]
|
|
117
|
+
#
|
|
118
|
+
# @param submitted_at [Time, nil] When the brand was submitted to TCR
|
|
119
|
+
#
|
|
120
|
+
# @param submitted_to_tcr [Boolean] Whether this brand has been submitted to TCR
|
|
121
|
+
#
|
|
122
|
+
# @param tcr_brand_id [String, nil] TCR brand ID (populated after TCR submission)
|
|
123
|
+
#
|
|
124
|
+
# @param universal_ein [String, nil] Universal EIN from TCR
|
|
125
|
+
#
|
|
126
|
+
# @param updated_at [Time, nil] When the brand was last updated
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class CancelledMessage < Sentdm::Models::Message
|
|
6
|
+
# @!attribute scheduled_at
|
|
7
|
+
# The send time that was called off, in UTC — the scheduled_at the message was
|
|
8
|
+
# being held for, whether you set it or the recipient's quiet hours moved it
|
|
9
|
+
# there. Omitted only for a held message that carried no recorded instant.
|
|
10
|
+
#
|
|
11
|
+
# @return [Time, nil]
|
|
12
|
+
optional :scheduled_at, Time, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!method initialize(scheduled_at: nil)
|
|
15
|
+
# Some parameter documentations has been truncated, see
|
|
16
|
+
# {Sentdm::Models::CancelledMessage} for more details.
|
|
17
|
+
#
|
|
18
|
+
# Message response for v3 API — same shape as v2 with snake_case JSON conventions.
|
|
19
|
+
#
|
|
20
|
+
# The shape of a message that was sent immediately: it never has a scheduled_at
|
|
21
|
+
# key. A message that is or was held for a later instant is a
|
|
22
|
+
# ScheduledMessageResponse, and the endpoint decides which of the two to answer
|
|
23
|
+
# with. From always returns this type.
|
|
24
|
+
#
|
|
25
|
+
# @param scheduled_at [Time, nil] The send time that was called off, in UTC — the scheduled_at the message was bei
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -50,8 +50,8 @@ module Sentdm
|
|
|
50
50
|
# only when the market registers with nobody and compliance was not computed —
|
|
51
51
|
# nothing to show at all.
|
|
52
52
|
#
|
|
53
|
-
# @return [Sentdm::Models::
|
|
54
|
-
optional :compliance, -> { Sentdm::
|
|
53
|
+
# @return [Sentdm::Models::Channels::SuppliedCompliance, nil]
|
|
54
|
+
optional :compliance, -> { Sentdm::Channels::SuppliedCompliance }, nil?: true
|
|
55
55
|
|
|
56
56
|
# @!attribute number_type
|
|
57
57
|
# The kind of sender the market uses, for example TEN_DLC, LOCAL, or ALPHANUMERIC.
|
|
@@ -146,7 +146,7 @@ module Sentdm
|
|
|
146
146
|
#
|
|
147
147
|
# @param channel [String] The channel this market belongs to: sms, whatsapp, or rcs. Never
|
|
148
148
|
#
|
|
149
|
-
# @param compliance [Sentdm::Models::
|
|
149
|
+
# @param compliance [Sentdm::Models::Channels::SuppliedCompliance, nil] What a market has been given: the identity it registers under, its programme, an
|
|
150
150
|
#
|
|
151
151
|
# @param number_type [String, nil] The kind of sender the market uses, for example TEN_DLC, LOCAL, or
|
|
152
152
|
#
|
|
@@ -159,117 +159,6 @@ module Sentdm
|
|
|
159
159
|
# @param status [String] Where the market stands: PENDING_REVIEW, ACTION_NEEDED, PROVISIONING,
|
|
160
160
|
#
|
|
161
161
|
# @param updated_at [String] When the transition happened, in UTC (yyyy-MM-ddTHH:mm:ssZ).
|
|
162
|
-
|
|
163
|
-
# @see Sentdm::Models::ChannelEventPayload#compliance
|
|
164
|
-
class Compliance < Sentdm::Internal::Type::BaseModel
|
|
165
|
-
# @!attribute brand
|
|
166
|
-
# The identity this market registers under, with inherit saying whose it is.
|
|
167
|
-
#
|
|
168
|
-
# Reported here rather than on the profile because it belongs to the registration
|
|
169
|
-
# this market files, and only one market files one. It was a top-level block for a
|
|
170
|
-
# while, which put a per-registration value beside a list of markets and left a
|
|
171
|
-
# caller to work out which market it belonged to.
|
|
172
|
-
#
|
|
173
|
-
# Absent for a market that registers with nobody — such a market asks for no
|
|
174
|
-
# identity, so there is none to report. Absent and null mean different things:
|
|
175
|
-
# absent says this market does not ask, null would say it asks and nothing was
|
|
176
|
-
# supplied.
|
|
177
|
-
#
|
|
178
|
-
# Untyped, like the request side, because its members are declared by the market's
|
|
179
|
-
# own schema rather than by a C# class. A typed pair here would be a second
|
|
180
|
-
# definition of what a market wants, free to drift from the one that validates.
|
|
181
|
-
#
|
|
182
|
-
# @return [Hash{Symbol=>Object}, nil]
|
|
183
|
-
optional :brand, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::Unknown], nil?: true
|
|
184
|
-
|
|
185
|
-
# @!attribute campaign
|
|
186
|
-
# The programme this market registers, with inherit saying whose it is.
|
|
187
|
-
#
|
|
188
|
-
# One, not a list. TcrCampaigns permits several and an account built on the admin
|
|
189
|
-
# side may hold them, but this surface offers one — which is what lets the
|
|
190
|
-
# market's PATCH be an upsert rather than a collection with an addressable create
|
|
191
|
-
# behind it. An account holding several is reported as its first and refused on
|
|
192
|
-
# write, rather than half-edited.
|
|
193
|
-
#
|
|
194
|
-
# Carries no id. Nothing addresses a campaign, and an undeclared key would be
|
|
195
|
-
# refused if the caller sent this object back — which it is meant to be able to
|
|
196
|
-
# do.
|
|
197
|
-
#
|
|
198
|
-
# @return [Hash{Symbol=>Object}, nil]
|
|
199
|
-
optional :campaign, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::Unknown], nil?: true
|
|
200
|
-
|
|
201
|
-
# @!attribute documents
|
|
202
|
-
# What has been supplied for this market.
|
|
203
|
-
#
|
|
204
|
-
# Files, not values — the declared halves above carry the values. A document
|
|
205
|
-
# cannot be a JSON value, so it is sent as multipart on the channel call and
|
|
206
|
-
# reported here as a reference.
|
|
207
|
-
#
|
|
208
|
-
# Absent on a list read, which fetches identity but does not compute compliance
|
|
209
|
-
# documents per market. Absent and empty mean different things: absent says the
|
|
210
|
-
# documents were not fetched; empty says the market has been given none.
|
|
211
|
-
#
|
|
212
|
-
# @return [Array<Sentdm::Models::ChannelEventPayload::Compliance::Document>, nil]
|
|
213
|
-
optional :documents,
|
|
214
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::ChannelEventPayload::Compliance::Document] },
|
|
215
|
-
nil?: true
|
|
216
|
-
|
|
217
|
-
# @!method initialize(brand: nil, campaign: nil, documents: nil)
|
|
218
|
-
# Some parameter documentations has been truncated, see
|
|
219
|
-
# {Sentdm::Models::ChannelEventPayload::Compliance} for more details.
|
|
220
|
-
#
|
|
221
|
-
# What a market has been given: the identity it registers under, its programme,
|
|
222
|
-
# and any documents attached.
|
|
223
|
-
#
|
|
224
|
-
# What it does not carry is what the market asks for. That is the subject of GET
|
|
225
|
-
# /v3/compliance/requirements, and it is the same answer for every caller — a
|
|
226
|
-
# description of what a compliance regime wants, not a record of one customer's
|
|
227
|
-
# progress through it. It was reported here as well for a while, which put the
|
|
228
|
-
# same array in six response shapes and left a caller deciding which of two
|
|
229
|
-
# sources to believe.
|
|
230
|
-
#
|
|
231
|
-
# Present on a list read for markets that register (carrying brand and campaign),
|
|
232
|
-
# but with documents absent — documents are not fetched for a list, because a
|
|
233
|
-
# catalog lookup and a document read per market would multiply across a page.
|
|
234
|
-
# Absent documents is distinct from an empty list: absent says they were not
|
|
235
|
-
# fetched; empty says the market has been given none. The parent object is null
|
|
236
|
-
# only when the market registers with nobody and compliance was not computed —
|
|
237
|
-
# nothing to show at all.
|
|
238
|
-
#
|
|
239
|
-
# @param brand [Hash{Symbol=>Object}, nil] The identity this market registers under, with inherit saying whose it is.
|
|
240
|
-
#
|
|
241
|
-
# @param campaign [Hash{Symbol=>Object}, nil] The programme this market registers, with inherit saying whose it is.
|
|
242
|
-
#
|
|
243
|
-
# @param documents [Array<Sentdm::Models::ChannelEventPayload::Compliance::Document>, nil] What has been supplied for this market.
|
|
244
|
-
|
|
245
|
-
class Document < Sentdm::Internal::Type::BaseModel
|
|
246
|
-
# @!attribute document_id
|
|
247
|
-
# Identifier of the upload, for fetching it back through the documents endpoints.
|
|
248
|
-
#
|
|
249
|
-
# @return [String, nil]
|
|
250
|
-
optional :document_id, String, nil?: true
|
|
251
|
-
|
|
252
|
-
# @!attribute file_name
|
|
253
|
-
#
|
|
254
|
-
# @return [String, nil]
|
|
255
|
-
optional :file_name, String, nil?: true
|
|
256
|
-
|
|
257
|
-
# @!attribute key
|
|
258
|
-
# The catalog's name for this document, matching the requirement it satisfies.
|
|
259
|
-
#
|
|
260
|
-
# @return [String, nil]
|
|
261
|
-
optional :key, String
|
|
262
|
-
|
|
263
|
-
# @!method initialize(document_id: nil, file_name: nil, key: nil)
|
|
264
|
-
# A document a market asked for and has been given.
|
|
265
|
-
#
|
|
266
|
-
# @param document_id [String, nil] Identifier of the upload, for fetching it back through the documents endpoints.
|
|
267
|
-
#
|
|
268
|
-
# @param file_name [String, nil]
|
|
269
|
-
#
|
|
270
|
-
# @param key [String] The catalog's name for this document, matching the requirement it satisfies.
|
|
271
|
-
end
|
|
272
|
-
end
|
|
273
162
|
end
|
|
274
163
|
end
|
|
275
164
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
# @see Sentdm::Resources::Channels#list
|
|
6
|
+
class ChannelListParams < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute x_profile_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String, nil]
|
|
13
|
+
optional :x_profile_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(x_profile_id: nil, request_options: {})
|
|
16
|
+
# @param x_profile_id [String]
|
|
17
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class ChannelScore < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute channel
|
|
7
|
+
#
|
|
8
|
+
# @return [String, nil]
|
|
9
|
+
optional :channel, String
|
|
10
|
+
|
|
11
|
+
# @!attribute fail_score
|
|
12
|
+
# Percentage (0-100) of messages on this channel that ended in FAILED.
|
|
13
|
+
#
|
|
14
|
+
# @return [Integer, nil]
|
|
15
|
+
optional :fail_score, Integer
|
|
16
|
+
|
|
17
|
+
# @!attribute success_score
|
|
18
|
+
# Percentage (0-100) of messages on this channel that reached a successful
|
|
19
|
+
# terminal state: SENT/DELIVERED/READ for outbound, RECEIVED for inbound.
|
|
20
|
+
#
|
|
21
|
+
# @return [Integer, nil]
|
|
22
|
+
optional :success_score, Integer
|
|
23
|
+
|
|
24
|
+
# @!method initialize(channel: nil, fail_score: nil, success_score: nil)
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Sentdm::Models::ChannelScore} for more details.
|
|
27
|
+
#
|
|
28
|
+
# @param channel [String]
|
|
29
|
+
#
|
|
30
|
+
# @param fail_score [Integer] Percentage (0-100) of messages on this channel that ended in FAILED.
|
|
31
|
+
#
|
|
32
|
+
# @param success_score [Integer] Percentage (0-100) of messages on this channel that reached a successful termina
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Channels
|
|
6
|
+
# @see Sentdm::Resources::Channels::SMS#list
|
|
7
|
+
class APIResponseOfListOfSMSMarket < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
# The response data (null if error)
|
|
10
|
+
#
|
|
11
|
+
# @return [Array<Sentdm::Models::Channels::SMSMarket>, nil]
|
|
12
|
+
optional :data, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Channels::SMSMarket] }, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute error
|
|
15
|
+
# Error information
|
|
16
|
+
#
|
|
17
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
18
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute meta
|
|
21
|
+
# Request and response metadata
|
|
22
|
+
#
|
|
23
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
24
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
25
|
+
|
|
26
|
+
# @!attribute success
|
|
27
|
+
# Indicates whether the request was successful
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
31
|
+
|
|
32
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
|
+
# Standard API response envelope for all v3 endpoints
|
|
34
|
+
#
|
|
35
|
+
# @param data [Array<Sentdm::Models::Channels::SMSMarket>, nil] The response data (null if error)
|
|
36
|
+
#
|
|
37
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
38
|
+
#
|
|
39
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
40
|
+
#
|
|
41
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Channels
|
|
6
|
+
# @see Sentdm::Resources::Channels::Rcs#create
|
|
7
|
+
class APIResponseOfRcsAgent < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
# An RCS agent as its owner sees it: the order form back, plus where the
|
|
10
|
+
# submission stands.
|
|
11
|
+
#
|
|
12
|
+
# Not RcsSenderResponse. That one is the admin projection and carries the pipeline
|
|
13
|
+
# we track about a customer's request — internalStatus, statusReason, isLaunched —
|
|
14
|
+
# and the S3 keys behind the assets. None of that is the customer's to read: an
|
|
15
|
+
# internal status is a note to ourselves, and an S3 key is a storage detail that
|
|
16
|
+
# would become a contract the moment it was published.
|
|
17
|
+
#
|
|
18
|
+
# What is here is what the caller sent, in the names it sent them under, plus the
|
|
19
|
+
# three things only we can answer: the record's id, its status, and the number it
|
|
20
|
+
# sends from. So a read after a write shows the form as stored rather than as
|
|
21
|
+
# echoed.
|
|
22
|
+
#
|
|
23
|
+
# @return [Sentdm::Models::Channels::RcsAgent, nil]
|
|
24
|
+
optional :data, -> { Sentdm::Channels::RcsAgent }, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute error
|
|
27
|
+
# Error information
|
|
28
|
+
#
|
|
29
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
30
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute meta
|
|
33
|
+
# Request and response metadata
|
|
34
|
+
#
|
|
35
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
36
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
37
|
+
|
|
38
|
+
# @!attribute success
|
|
39
|
+
# Indicates whether the request was successful
|
|
40
|
+
#
|
|
41
|
+
# @return [Boolean, nil]
|
|
42
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
43
|
+
|
|
44
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
45
|
+
# Some parameter documentations has been truncated, see
|
|
46
|
+
# {Sentdm::Models::Channels::APIResponseOfRcsAgent} for more details.
|
|
47
|
+
#
|
|
48
|
+
# Standard API response envelope for all v3 endpoints
|
|
49
|
+
#
|
|
50
|
+
# @param data [Sentdm::Models::Channels::RcsAgent, nil] An RCS agent as its owner sees it: the order form back, plus where the submissio
|
|
51
|
+
#
|
|
52
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
53
|
+
#
|
|
54
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
55
|
+
#
|
|
56
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Channels
|
|
6
|
+
# @see Sentdm::Resources::Channels::SMS#create
|
|
7
|
+
class APIResponseOfSMSMarket < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
# One SMS market the profile sends in — its sender, where that sender stands, and
|
|
10
|
+
# what the market wants.
|
|
11
|
+
#
|
|
12
|
+
# A profile may send in several: it is a tenant, not a market. Each carries its
|
|
13
|
+
# own status, because a profile can be live in one country and mid-registration in
|
|
14
|
+
# another — and each carries what it still owes, rather than that being reported
|
|
15
|
+
# in a separate array a caller has to join on.
|
|
16
|
+
#
|
|
17
|
+
# @return [Sentdm::Models::Channels::SMSMarket, nil]
|
|
18
|
+
optional :data, -> { Sentdm::Channels::SMSMarket }, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute error
|
|
21
|
+
# Error information
|
|
22
|
+
#
|
|
23
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
24
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute meta
|
|
27
|
+
# Request and response metadata
|
|
28
|
+
#
|
|
29
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
30
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
31
|
+
|
|
32
|
+
# @!attribute success
|
|
33
|
+
# Indicates whether the request was successful
|
|
34
|
+
#
|
|
35
|
+
# @return [Boolean, nil]
|
|
36
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
37
|
+
|
|
38
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {Sentdm::Models::Channels::APIResponseOfSMSMarket} for more details.
|
|
41
|
+
#
|
|
42
|
+
# Standard API response envelope for all v3 endpoints
|
|
43
|
+
#
|
|
44
|
+
# @param data [Sentdm::Models::Channels::SMSMarket, nil] One SMS market the profile sends in — its sender, where that sender stands, and
|
|
45
|
+
#
|
|
46
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
47
|
+
#
|
|
48
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
49
|
+
#
|
|
50
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Channels
|
|
6
|
+
# @see Sentdm::Resources::Channels::Whatsapp#create
|
|
7
|
+
class APIResponseOfWhatsappChannel < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
# The profile's WhatsApp account. Its status is Meta's verification state.
|
|
10
|
+
#
|
|
11
|
+
# @return [Sentdm::Models::Channels::WhatsappChannel, nil]
|
|
12
|
+
optional :data, -> { Sentdm::Channels::WhatsappChannel }, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute error
|
|
15
|
+
# Error information
|
|
16
|
+
#
|
|
17
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
18
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute meta
|
|
21
|
+
# Request and response metadata
|
|
22
|
+
#
|
|
23
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
24
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
25
|
+
|
|
26
|
+
# @!attribute success
|
|
27
|
+
# Indicates whether the request was successful
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
31
|
+
|
|
32
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
|
+
# Standard API response envelope for all v3 endpoints
|
|
34
|
+
#
|
|
35
|
+
# @param data [Sentdm::Models::Channels::WhatsappChannel, nil] The profile's WhatsApp account. Its status is Meta's verification state.
|
|
36
|
+
#
|
|
37
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
38
|
+
#
|
|
39
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
40
|
+
#
|
|
41
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
APIResponseOfWhatsappChannel = Channels::APIResponseOfWhatsappChannel
|
|
46
|
+
end
|
|
47
|
+
end
|