sentdm 0.1.0 → 0.3.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 +18 -0
- data/README.md +96 -39
- data/lib/sentdm/client.rb +29 -36
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +25 -0
- data/lib/sentdm/models/api_error.rb +42 -0
- data/lib/sentdm/models/api_meta.rb +42 -0
- data/lib/sentdm/models/api_response_brand_with_kyc.rb +43 -0
- data/lib/sentdm/models/api_response_contact.rb +43 -0
- data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
- data/lib/sentdm/models/api_response_of_user.rb +43 -0
- data/lib/sentdm/models/api_response_template.rb +43 -0
- data/lib/sentdm/models/api_response_webhook.rb +43 -0
- data/lib/sentdm/models/brand_create_params.rb +41 -0
- data/lib/sentdm/models/brand_data.rb +237 -0
- data/lib/sentdm/models/brand_delete_params.rb +27 -0
- data/lib/sentdm/models/brand_list_params.rb +14 -0
- data/lib/sentdm/models/brand_list_response.rb +43 -0
- data/lib/sentdm/models/brand_update_params.rb +41 -0
- data/lib/sentdm/models/brand_with_kyc.rb +335 -0
- data/lib/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rb +45 -0
- data/lib/sentdm/models/brands/base_dto.rb +32 -0
- data/lib/sentdm/models/brands/campaign_create_params.rb +43 -0
- data/lib/sentdm/models/brands/campaign_data.rb +123 -0
- data/lib/sentdm/models/brands/campaign_delete_params.rb +36 -0
- data/lib/sentdm/models/brands/campaign_list_params.rb +16 -0
- data/lib/sentdm/models/brands/campaign_list_response.rb +47 -0
- data/lib/sentdm/models/brands/campaign_update_params.rb +50 -0
- data/lib/sentdm/models/brands/messaging_use_case_us.rb +28 -0
- data/lib/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +30 -0
- data/lib/sentdm/models/brands/tcr_campaign_with_use_cases.rb +236 -0
- data/lib/sentdm/models/contact.rb +122 -0
- data/lib/sentdm/models/contact_create_params.rb +41 -0
- data/lib/sentdm/models/contact_delete_params.rb +27 -0
- data/lib/sentdm/models/contact_list_params.rb +28 -5
- data/lib/sentdm/models/contact_list_response.rb +46 -21
- data/lib/sentdm/models/{message_retrieve_params.rb → contact_retrieve_params.rb} +2 -2
- data/lib/sentdm/models/contact_update_params.rb +49 -0
- data/lib/sentdm/models/destination_country.rb +21 -0
- data/lib/sentdm/models/lookup_retrieve_phone_info_params.rb +14 -0
- data/lib/sentdm/models/lookup_retrieve_phone_info_response.rb +104 -0
- data/lib/sentdm/models/me_retrieve_params.rb +14 -0
- data/lib/sentdm/models/me_retrieve_response.rb +200 -0
- data/lib/sentdm/models/message_retrieve_activities_params.rb +14 -0
- data/lib/sentdm/models/message_retrieve_activities_response.rb +103 -0
- data/lib/sentdm/models/message_retrieve_status_params.rb +14 -0
- data/lib/sentdm/models/message_retrieve_status_response.rb +237 -0
- data/lib/sentdm/models/message_send_params.rb +88 -0
- data/lib/sentdm/models/message_send_response.rb +123 -0
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/pagination_meta.rb +80 -0
- data/lib/sentdm/models/profile_complete_params.rb +41 -0
- data/lib/sentdm/models/profile_complete_response.rb +8 -0
- data/lib/sentdm/models/profile_create_params.rb +122 -0
- data/lib/sentdm/models/profile_delete_params.rb +34 -0
- data/lib/sentdm/models/profile_detail.rb +200 -0
- data/lib/sentdm/models/profile_list_params.rb +14 -0
- data/lib/sentdm/models/profile_list_response.rb +57 -0
- data/lib/sentdm/models/profile_retrieve_params.rb +14 -0
- data/lib/sentdm/models/profile_settings.rb +66 -0
- data/lib/sentdm/models/profile_update_params.rb +169 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +34 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +40 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +38 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +81 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +34 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +39 -0
- data/lib/sentdm/models/tcr_brand_relationship.rb +18 -0
- data/lib/sentdm/models/tcr_vertical.rb +36 -0
- data/lib/sentdm/models/template.rb +90 -0
- data/lib/sentdm/models/template_create_params.rb +40 -19
- data/lib/sentdm/models/template_definition.rb +15 -255
- data/lib/sentdm/models/template_delete_params.rb +22 -1
- data/lib/sentdm/models/template_list_params.rb +9 -10
- data/lib/sentdm/models/template_list_response.rb +46 -21
- data/lib/sentdm/models/template_update_params.rb +73 -0
- data/lib/sentdm/models/user_invite_params.rb +57 -0
- data/lib/sentdm/models/user_list_params.rb +14 -0
- data/lib/sentdm/models/user_list_response.rb +57 -0
- data/lib/sentdm/models/user_remove_params.rb +34 -0
- data/lib/sentdm/models/user_response.rb +82 -0
- data/lib/sentdm/models/user_retrieve_params.rb +14 -0
- data/lib/sentdm/models/user_update_role_params.rb +49 -0
- data/lib/sentdm/models/webhook_create_params.rb +68 -0
- data/lib/sentdm/models/webhook_delete_params.rb +14 -0
- data/lib/sentdm/models/webhook_list_event_types_params.rb +14 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +85 -0
- data/lib/sentdm/models/webhook_list_events_params.rb +32 -0
- data/lib/sentdm/models/webhook_list_events_response.rb +135 -0
- data/lib/sentdm/models/webhook_list_params.rb +38 -0
- data/lib/sentdm/models/webhook_list_response.rb +64 -0
- data/lib/sentdm/models/webhook_response.rb +87 -0
- data/lib/sentdm/models/webhook_retrieve_params.rb +14 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +30 -0
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +56 -0
- data/lib/sentdm/models/webhook_test_params.rb +40 -0
- data/lib/sentdm/models/webhook_test_response.rb +62 -0
- data/lib/sentdm/models/webhook_toggle_status_params.rb +40 -0
- data/lib/sentdm/models/webhook_update_params.rb +68 -0
- data/lib/sentdm/models.rb +124 -10
- data/lib/sentdm/resources/brands/campaigns.rb +144 -0
- data/lib/sentdm/resources/brands.rb +128 -0
- data/lib/sentdm/resources/contacts.rb +111 -38
- data/lib/sentdm/resources/lookup.rb +35 -0
- data/lib/sentdm/resources/me.rb +34 -0
- data/lib/sentdm/resources/messages.rb +42 -77
- data/lib/sentdm/resources/profiles.rb +254 -0
- data/lib/sentdm/resources/templates.rb +94 -45
- data/lib/sentdm/resources/users.rb +158 -0
- data/lib/sentdm/resources/webhooks.rb +295 -0
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +94 -14
- data/rbi/sentdm/client.rbi +22 -25
- data/rbi/sentdm/models/api_error.rbi +66 -0
- data/rbi/sentdm/models/api_meta.rbi +69 -0
- data/rbi/sentdm/models/api_response_brand_with_kyc.rbi +74 -0
- data/rbi/sentdm/models/api_response_contact.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
- data/rbi/sentdm/models/api_response_template.rbi +74 -0
- data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
- data/rbi/sentdm/models/brand_create_params.rbi +68 -0
- data/rbi/sentdm/models/brand_data.rbi +266 -0
- data/rbi/sentdm/models/brand_delete_params.rbi +62 -0
- data/rbi/sentdm/models/brand_list_params.rbi +27 -0
- data/rbi/sentdm/models/brand_list_response.rbi +71 -0
- data/rbi/sentdm/models/brand_update_params.rbi +68 -0
- data/rbi/sentdm/models/brand_with_kyc.rbi +398 -0
- data/rbi/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rbi +83 -0
- data/rbi/sentdm/models/brands/base_dto.rbi +53 -0
- data/rbi/sentdm/models/brands/campaign_create_params.rbi +73 -0
- data/rbi/sentdm/models/brands/campaign_data.rbi +148 -0
- data/rbi/sentdm/models/brands/campaign_delete_params.rbi +78 -0
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +29 -0
- data/rbi/sentdm/models/brands/campaign_list_response.rbi +82 -0
- data/rbi/sentdm/models/brands/campaign_update_params.rbi +79 -0
- data/rbi/sentdm/models/brands/messaging_use_case_us.rbi +69 -0
- data/rbi/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +52 -0
- data/rbi/sentdm/models/brands/tcr_campaign_with_use_cases.rbi +404 -0
- data/rbi/sentdm/models/contact.rbi +179 -0
- data/rbi/sentdm/models/contact_create_params.rbi +68 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +62 -0
- data/rbi/sentdm/models/contact_list_params.rbi +26 -4
- data/rbi/sentdm/models/contact_list_response.rbi +91 -37
- data/rbi/sentdm/models/{message_retrieve_params.rbi → contact_retrieve_params.rbi} +2 -2
- data/rbi/sentdm/models/contact_update_params.rbi +73 -0
- data/rbi/sentdm/models/destination_country.rbi +32 -0
- data/rbi/sentdm/models/lookup_retrieve_phone_info_params.rbi +30 -0
- data/rbi/sentdm/models/lookup_retrieve_phone_info_response.rbi +183 -0
- data/rbi/sentdm/models/me_retrieve_params.rbi +27 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +314 -0
- data/rbi/sentdm/models/message_retrieve_activities_params.rbi +30 -0
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +234 -0
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +27 -0
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +434 -0
- data/rbi/sentdm/models/message_send_params.rbi +143 -0
- data/rbi/sentdm/models/message_send_response.rbi +231 -0
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/profile_complete_params.rbi +65 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -0
- data/rbi/sentdm/models/profile_create_params.rbi +156 -0
- data/rbi/sentdm/models/profile_delete_params.rbi +59 -0
- data/rbi/sentdm/models/profile_detail.rbi +273 -0
- data/rbi/sentdm/models/profile_list_params.rbi +27 -0
- data/rbi/sentdm/models/profile_list_response.rbi +111 -0
- data/rbi/sentdm/models/profile_retrieve_params.rbi +27 -0
- data/rbi/sentdm/models/profile_settings.rbi +86 -0
- data/rbi/sentdm/models/profile_update_params.rbi +196 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +56 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +76 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +79 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +104 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +60 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +62 -0
- data/rbi/sentdm/models/tcr_brand_relationship.rbi +30 -0
- data/rbi/sentdm/models/tcr_vertical.rbi +41 -0
- data/rbi/sentdm/models/template.rbi +129 -0
- data/rbi/sentdm/models/template_create_params.rbi +47 -23
- data/rbi/sentdm/models/template_definition.rbi +74 -405
- data/rbi/sentdm/models/template_delete_params.rbi +36 -5
- data/rbi/sentdm/models/template_list_params.rbi +8 -10
- data/rbi/sentdm/models/template_list_response.rbi +91 -37
- data/rbi/sentdm/models/template_update_params.rbi +105 -0
- data/rbi/sentdm/models/user_invite_params.rbi +90 -0
- data/rbi/sentdm/models/user_list_params.rbi +27 -0
- data/rbi/sentdm/models/user_list_response.rbi +111 -0
- data/rbi/sentdm/models/user_remove_params.rbi +59 -0
- data/rbi/sentdm/models/user_response.rbi +118 -0
- data/rbi/sentdm/models/user_retrieve_params.rbi +27 -0
- data/rbi/sentdm/models/user_update_role_params.rbi +79 -0
- data/rbi/sentdm/models/webhook_create_params.rbi +102 -0
- data/rbi/sentdm/models/webhook_delete_params.rbi +27 -0
- data/rbi/sentdm/models/webhook_list_event_types_params.rbi +27 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +206 -0
- data/rbi/sentdm/models/webhook_list_events_params.rbi +48 -0
- data/rbi/sentdm/models/webhook_list_events_response.rbi +263 -0
- data/rbi/sentdm/models/webhook_list_params.rbi +59 -0
- data/rbi/sentdm/models/webhook_list_response.rbi +126 -0
- data/rbi/sentdm/models/webhook_response.rbi +134 -0
- data/rbi/sentdm/models/webhook_retrieve_params.rbi +27 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +67 -0
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +112 -0
- data/rbi/sentdm/models/webhook_test_params.rbi +66 -0
- data/rbi/sentdm/models/webhook_test_response.rbi +111 -0
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +66 -0
- data/rbi/sentdm/models/webhook_update_params.rbi +102 -0
- data/rbi/sentdm/models.rbi +125 -10
- data/rbi/sentdm/resources/brands/campaigns.rbi +108 -0
- data/rbi/sentdm/resources/brands.rbi +93 -0
- data/rbi/sentdm/resources/contacts.rbi +89 -26
- data/rbi/sentdm/resources/lookup.rbi +24 -0
- data/rbi/sentdm/resources/me.rbi +23 -0
- data/rbi/sentdm/resources/messages.rbi +41 -60
- data/rbi/sentdm/resources/profiles.rbi +238 -0
- data/rbi/sentdm/resources/templates.rbi +94 -41
- data/rbi/sentdm/resources/users.rbi +116 -0
- data/rbi/sentdm/resources/webhooks.rbi +218 -0
- data/sig/sentdm/client.rbs +9 -8
- data/sig/sentdm/models/api_error.rbs +39 -0
- data/sig/sentdm/models/api_meta.rbs +41 -0
- data/sig/sentdm/models/api_response_brand_with_kyc.rbs +39 -0
- data/sig/sentdm/models/api_response_contact.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
- data/sig/sentdm/models/api_response_of_user.rbs +39 -0
- data/sig/sentdm/models/api_response_template.rbs +39 -0
- data/sig/sentdm/models/api_response_webhook.rbs +39 -0
- data/sig/sentdm/models/brand_create_params.rbs +36 -0
- data/sig/sentdm/models/brand_data.rbs +164 -0
- data/sig/sentdm/models/brand_delete_params.rbs +32 -0
- data/sig/sentdm/models/brand_list_params.rbs +14 -0
- data/sig/sentdm/models/brand_list_response.rbs +39 -0
- data/sig/sentdm/models/brand_update_params.rbs +36 -0
- data/sig/sentdm/models/brand_with_kyc.rbs +237 -0
- data/sig/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rbs +41 -0
- data/sig/sentdm/models/brands/base_dto.rbs +27 -0
- data/sig/sentdm/models/brands/campaign_create_params.rbs +42 -0
- data/sig/sentdm/models/brands/campaign_data.rbs +82 -0
- data/sig/sentdm/models/brands/campaign_delete_params.rbs +38 -0
- data/sig/sentdm/models/brands/campaign_list_params.rbs +17 -0
- data/sig/sentdm/models/brands/campaign_list_response.rbs +41 -0
- data/sig/sentdm/models/brands/campaign_update_params.rbs +47 -0
- data/sig/sentdm/models/brands/messaging_use_case_us.rbs +40 -0
- data/sig/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/brands/tcr_campaign_with_use_cases.rbs +285 -0
- data/sig/sentdm/models/{contact_list_item.rbs → contact.rbs} +31 -5
- data/sig/sentdm/models/contact_create_params.rbs +38 -0
- data/sig/sentdm/models/contact_delete_params.rbs +32 -0
- data/sig/sentdm/models/contact_list_params.rbs +19 -1
- data/sig/sentdm/models/contact_list_response.rbs +44 -31
- data/sig/sentdm/models/{message_retrieve_params.rbs → contact_retrieve_params.rbs} +2 -2
- data/sig/sentdm/models/contact_update_params.rbs +45 -0
- data/sig/sentdm/models/destination_country.rbs +19 -0
- data/sig/sentdm/models/lookup_retrieve_phone_info_params.rbs +15 -0
- data/sig/sentdm/models/lookup_retrieve_phone_info_response.rbs +102 -0
- data/sig/sentdm/models/me_retrieve_params.rbs +14 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +162 -0
- data/sig/sentdm/models/message_retrieve_activities_params.rbs +15 -0
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +105 -0
- data/sig/sentdm/models/message_retrieve_status_params.rbs +15 -0
- data/sig/sentdm/models/message_retrieve_status_response.rbs +224 -0
- data/sig/sentdm/models/message_send_params.rbs +79 -0
- data/sig/sentdm/models/message_send_response.rbs +108 -0
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/profile_complete_params.rbs +36 -0
- data/sig/sentdm/models/profile_complete_response.rbs +5 -0
- data/sig/sentdm/models/profile_create_params.rbs +96 -0
- data/sig/sentdm/models/profile_delete_params.rbs +32 -0
- data/sig/sentdm/models/profile_detail.rbs +168 -0
- data/sig/sentdm/models/profile_list_params.rbs +14 -0
- data/sig/sentdm/models/profile_list_response.rbs +53 -0
- data/sig/sentdm/models/profile_retrieve_params.rbs +15 -0
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +122 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +24 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +30 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +38 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +75 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +32 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +32 -0
- data/sig/sentdm/models/tcr_brand_relationship.rbs +22 -0
- data/sig/sentdm/models/tcr_vertical.rbs +58 -0
- data/sig/sentdm/models/{template_response.rbs → template.rbs} +18 -31
- data/sig/sentdm/models/template_create_params.rbs +29 -6
- data/sig/sentdm/models/template_definition.rbs +20 -233
- data/sig/sentdm/models/template_delete_params.rbs +18 -3
- data/sig/sentdm/models/template_list_response.rbs +44 -31
- data/sig/sentdm/models/template_update_params.rbs +62 -0
- data/sig/sentdm/models/user_invite_params.rbs +56 -0
- data/sig/sentdm/models/user_list_params.rbs +14 -0
- data/sig/sentdm/models/user_list_response.rbs +53 -0
- data/sig/sentdm/models/user_remove_params.rbs +32 -0
- data/sig/sentdm/models/user_response.rbs +72 -0
- data/sig/sentdm/models/user_retrieve_params.rbs +15 -0
- data/sig/sentdm/models/user_update_role_params.rbs +49 -0
- data/sig/sentdm/models/webhook_create_params.rbs +70 -0
- data/sig/sentdm/models/webhook_delete_params.rbs +15 -0
- data/sig/sentdm/models/webhook_list_event_types_params.rbs +15 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +98 -0
- data/sig/sentdm/models/webhook_list_events_params.rbs +32 -0
- data/sig/sentdm/models/webhook_list_events_response.rbs +146 -0
- data/sig/sentdm/models/webhook_list_params.rbs +36 -0
- data/sig/sentdm/models/webhook_list_response.rbs +67 -0
- data/sig/sentdm/models/webhook_response.rbs +98 -0
- data/sig/sentdm/models/webhook_retrieve_params.rbs +15 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +38 -0
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +51 -0
- data/sig/sentdm/models/webhook_test_params.rbs +38 -0
- data/sig/sentdm/models/webhook_test_response.rbs +55 -0
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +38 -0
- data/sig/sentdm/models/webhook_update_params.rbs +70 -0
- data/sig/sentdm/models.rbs +118 -10
- data/sig/sentdm/resources/brands/campaigns.rbs +38 -0
- data/sig/sentdm/resources/brands.rbs +34 -0
- data/sig/sentdm/resources/contacts.rbs +28 -8
- data/sig/sentdm/resources/lookup.rbs +12 -0
- data/sig/sentdm/resources/{number_lookup.rbs → me.rbs} +2 -3
- data/sig/sentdm/resources/messages.rbs +12 -18
- data/sig/sentdm/resources/profiles.rbs +72 -0
- data/sig/sentdm/resources/templates.rbs +24 -4
- data/sig/sentdm/resources/users.rbs +41 -0
- data/sig/sentdm/resources/webhooks.rbs +80 -0
- metadata +284 -44
- data/lib/sentdm/models/contact_list_item.rb +0 -96
- data/lib/sentdm/models/contact_retrieve_by_phone_params.rb +0 -22
- data/lib/sentdm/models/contact_retrieve_id_params.rb +0 -22
- data/lib/sentdm/models/message_retrieve_response.rb +0 -227
- data/lib/sentdm/models/message_send_quick_message_params.rb +0 -34
- data/lib/sentdm/models/message_send_to_contact_params.rb +0 -46
- data/lib/sentdm/models/message_send_to_phone_params.rb +0 -47
- data/lib/sentdm/models/number_lookup_retrieve_params.rb +0 -20
- data/lib/sentdm/models/number_lookup_retrieve_response.rb +0 -83
- data/lib/sentdm/models/template_response.rb +0 -100
- data/lib/sentdm/resources/number_lookup.rb +0 -37
- data/lib/sentdm/resources/organizations/users.rb +0 -16
- data/lib/sentdm/resources/organizations.rb +0 -18
- data/rbi/sentdm/models/contact_list_item.rbi +0 -144
- data/rbi/sentdm/models/contact_retrieve_by_phone_params.rbi +0 -40
- data/rbi/sentdm/models/contact_retrieve_id_params.rbi +0 -40
- data/rbi/sentdm/models/message_retrieve_response.rbi +0 -376
- data/rbi/sentdm/models/message_send_quick_message_params.rbi +0 -56
- data/rbi/sentdm/models/message_send_to_contact_params.rbi +0 -63
- data/rbi/sentdm/models/message_send_to_phone_params.rbi +0 -65
- data/rbi/sentdm/models/number_lookup_retrieve_params.rbi +0 -35
- data/rbi/sentdm/models/number_lookup_retrieve_response.rbi +0 -132
- data/rbi/sentdm/models/template_response.rbi +0 -149
- data/rbi/sentdm/resources/number_lookup.rbi +0 -24
- data/rbi/sentdm/resources/organizations/users.rbi +0 -14
- data/rbi/sentdm/resources/organizations.rbi +0 -15
- data/sig/sentdm/models/contact_retrieve_by_phone_params.rbs +0 -23
- data/sig/sentdm/models/contact_retrieve_id_params.rbs +0 -20
- data/sig/sentdm/models/message_retrieve_response.rbs +0 -188
- data/sig/sentdm/models/message_send_quick_message_params.rbs +0 -28
- data/sig/sentdm/models/message_send_to_contact_params.rbs +0 -36
- data/sig/sentdm/models/message_send_to_phone_params.rbs +0 -36
- data/sig/sentdm/models/number_lookup_retrieve_params.rbs +0 -23
- data/sig/sentdm/models/number_lookup_retrieve_response.rbs +0 -78
- data/sig/sentdm/resources/organizations/users.rbs +0 -9
- data/sig/sentdm/resources/organizations.rbs +0 -9
|
@@ -10,28 +10,44 @@ module Sentdm
|
|
|
10
10
|
|
|
11
11
|
# Required template body with content for different channels (multi-channel,
|
|
12
12
|
# SMS-specific, or WhatsApp-specific)
|
|
13
|
-
sig { returns(Sentdm::
|
|
13
|
+
sig { returns(Sentdm::SentDmServicesCommonContractsPocOsTemplateBody) }
|
|
14
14
|
attr_reader :body
|
|
15
15
|
|
|
16
|
-
sig
|
|
16
|
+
sig do
|
|
17
|
+
params(
|
|
18
|
+
body: Sentdm::SentDmServicesCommonContractsPocOsTemplateBody::OrHash
|
|
19
|
+
).void
|
|
20
|
+
end
|
|
17
21
|
attr_writer :body
|
|
18
22
|
|
|
19
23
|
# Configuration specific to AUTHENTICATION category templates (optional)
|
|
20
24
|
sig do
|
|
21
|
-
returns(
|
|
25
|
+
returns(
|
|
26
|
+
T.nilable(
|
|
27
|
+
Sentdm::SentDmServicesCommonContractsPocOsAuthenticationConfig
|
|
28
|
+
)
|
|
29
|
+
)
|
|
22
30
|
end
|
|
23
31
|
attr_reader :authentication_config
|
|
24
32
|
|
|
25
33
|
sig do
|
|
26
34
|
params(
|
|
27
35
|
authentication_config:
|
|
28
|
-
T.nilable(
|
|
36
|
+
T.nilable(
|
|
37
|
+
Sentdm::SentDmServicesCommonContractsPocOsAuthenticationConfig::OrHash
|
|
38
|
+
)
|
|
29
39
|
).void
|
|
30
40
|
end
|
|
31
41
|
attr_writer :authentication_config
|
|
32
42
|
|
|
33
43
|
# Optional list of interactive buttons (e.g., quick replies, URLs, phone numbers)
|
|
34
|
-
sig
|
|
44
|
+
sig do
|
|
45
|
+
returns(
|
|
46
|
+
T.nilable(
|
|
47
|
+
T::Array[Sentdm::SentDmServicesCommonContractsPocOsTemplateButton]
|
|
48
|
+
)
|
|
49
|
+
)
|
|
50
|
+
end
|
|
35
51
|
attr_accessor :buttons
|
|
36
52
|
|
|
37
53
|
# The version of the template definition format
|
|
@@ -39,23 +55,37 @@ module Sentdm
|
|
|
39
55
|
attr_accessor :definition_version
|
|
40
56
|
|
|
41
57
|
# Optional template footer with optional variables
|
|
42
|
-
sig
|
|
58
|
+
sig do
|
|
59
|
+
returns(
|
|
60
|
+
T.nilable(Sentdm::SentDmServicesCommonContractsPocOsTemplateFooter)
|
|
61
|
+
)
|
|
62
|
+
end
|
|
43
63
|
attr_reader :footer
|
|
44
64
|
|
|
45
65
|
sig do
|
|
46
66
|
params(
|
|
47
|
-
footer:
|
|
67
|
+
footer:
|
|
68
|
+
T.nilable(
|
|
69
|
+
Sentdm::SentDmServicesCommonContractsPocOsTemplateFooter::OrHash
|
|
70
|
+
)
|
|
48
71
|
).void
|
|
49
72
|
end
|
|
50
73
|
attr_writer :footer
|
|
51
74
|
|
|
52
75
|
# Optional template header with optional variables
|
|
53
|
-
sig
|
|
76
|
+
sig do
|
|
77
|
+
returns(
|
|
78
|
+
T.nilable(Sentdm::SentDmServicesCommonContractsPocOsTemplateHeader)
|
|
79
|
+
)
|
|
80
|
+
end
|
|
54
81
|
attr_reader :header
|
|
55
82
|
|
|
56
83
|
sig do
|
|
57
84
|
params(
|
|
58
|
-
header:
|
|
85
|
+
header:
|
|
86
|
+
T.nilable(
|
|
87
|
+
Sentdm::SentDmServicesCommonContractsPocOsTemplateHeader::OrHash
|
|
88
|
+
)
|
|
59
89
|
).void
|
|
60
90
|
end
|
|
61
91
|
attr_writer :header
|
|
@@ -64,14 +94,26 @@ module Sentdm
|
|
|
64
94
|
# buttons
|
|
65
95
|
sig do
|
|
66
96
|
params(
|
|
67
|
-
body: Sentdm::
|
|
97
|
+
body: Sentdm::SentDmServicesCommonContractsPocOsTemplateBody::OrHash,
|
|
68
98
|
authentication_config:
|
|
69
|
-
T.nilable(
|
|
99
|
+
T.nilable(
|
|
100
|
+
Sentdm::SentDmServicesCommonContractsPocOsAuthenticationConfig::OrHash
|
|
101
|
+
),
|
|
70
102
|
buttons:
|
|
71
|
-
T.nilable(
|
|
103
|
+
T.nilable(
|
|
104
|
+
T::Array[
|
|
105
|
+
Sentdm::SentDmServicesCommonContractsPocOsTemplateButton::OrHash
|
|
106
|
+
]
|
|
107
|
+
),
|
|
72
108
|
definition_version: T.nilable(String),
|
|
73
|
-
footer:
|
|
74
|
-
|
|
109
|
+
footer:
|
|
110
|
+
T.nilable(
|
|
111
|
+
Sentdm::SentDmServicesCommonContractsPocOsTemplateFooter::OrHash
|
|
112
|
+
),
|
|
113
|
+
header:
|
|
114
|
+
T.nilable(
|
|
115
|
+
Sentdm::SentDmServicesCommonContractsPocOsTemplateHeader::OrHash
|
|
116
|
+
)
|
|
75
117
|
).returns(T.attached_class)
|
|
76
118
|
end
|
|
77
119
|
def self.new(
|
|
@@ -94,404 +136,31 @@ module Sentdm
|
|
|
94
136
|
sig do
|
|
95
137
|
override.returns(
|
|
96
138
|
{
|
|
97
|
-
body: Sentdm::
|
|
139
|
+
body: Sentdm::SentDmServicesCommonContractsPocOsTemplateBody,
|
|
98
140
|
authentication_config:
|
|
99
|
-
T.nilable(
|
|
100
|
-
|
|
141
|
+
T.nilable(
|
|
142
|
+
Sentdm::SentDmServicesCommonContractsPocOsAuthenticationConfig
|
|
143
|
+
),
|
|
144
|
+
buttons:
|
|
145
|
+
T.nilable(
|
|
146
|
+
T::Array[
|
|
147
|
+
Sentdm::SentDmServicesCommonContractsPocOsTemplateButton
|
|
148
|
+
]
|
|
149
|
+
),
|
|
101
150
|
definition_version: T.nilable(String),
|
|
102
|
-
footer:
|
|
103
|
-
|
|
151
|
+
footer:
|
|
152
|
+
T.nilable(
|
|
153
|
+
Sentdm::SentDmServicesCommonContractsPocOsTemplateFooter
|
|
154
|
+
),
|
|
155
|
+
header:
|
|
156
|
+
T.nilable(
|
|
157
|
+
Sentdm::SentDmServicesCommonContractsPocOsTemplateHeader
|
|
158
|
+
)
|
|
104
159
|
}
|
|
105
160
|
)
|
|
106
161
|
end
|
|
107
162
|
def to_hash
|
|
108
163
|
end
|
|
109
|
-
|
|
110
|
-
class Body < Sentdm::Internal::Type::BaseModel
|
|
111
|
-
OrHash =
|
|
112
|
-
T.type_alias do
|
|
113
|
-
T.any(Sentdm::TemplateDefinition::Body, Sentdm::Internal::AnyHash)
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
# Content that will be used for all channels (SMS and WhatsApp) unless
|
|
117
|
-
# channel-specific content is provided
|
|
118
|
-
sig { returns(T.nilable(Sentdm::TemplateBodyContent)) }
|
|
119
|
-
attr_reader :multi_channel
|
|
120
|
-
|
|
121
|
-
sig do
|
|
122
|
-
params(
|
|
123
|
-
multi_channel: T.nilable(Sentdm::TemplateBodyContent::OrHash)
|
|
124
|
-
).void
|
|
125
|
-
end
|
|
126
|
-
attr_writer :multi_channel
|
|
127
|
-
|
|
128
|
-
# SMS-specific content that overrides multi-channel content for SMS messages
|
|
129
|
-
sig { returns(T.nilable(Sentdm::TemplateBodyContent)) }
|
|
130
|
-
attr_reader :sms
|
|
131
|
-
|
|
132
|
-
sig { params(sms: T.nilable(Sentdm::TemplateBodyContent::OrHash)).void }
|
|
133
|
-
attr_writer :sms
|
|
134
|
-
|
|
135
|
-
# WhatsApp-specific content that overrides multi-channel content for WhatsApp
|
|
136
|
-
# messages
|
|
137
|
-
sig { returns(T.nilable(Sentdm::TemplateBodyContent)) }
|
|
138
|
-
attr_reader :whatsapp
|
|
139
|
-
|
|
140
|
-
sig do
|
|
141
|
-
params(whatsapp: T.nilable(Sentdm::TemplateBodyContent::OrHash)).void
|
|
142
|
-
end
|
|
143
|
-
attr_writer :whatsapp
|
|
144
|
-
|
|
145
|
-
# Required template body with content for different channels (multi-channel,
|
|
146
|
-
# SMS-specific, or WhatsApp-specific)
|
|
147
|
-
sig do
|
|
148
|
-
params(
|
|
149
|
-
multi_channel: T.nilable(Sentdm::TemplateBodyContent::OrHash),
|
|
150
|
-
sms: T.nilable(Sentdm::TemplateBodyContent::OrHash),
|
|
151
|
-
whatsapp: T.nilable(Sentdm::TemplateBodyContent::OrHash)
|
|
152
|
-
).returns(T.attached_class)
|
|
153
|
-
end
|
|
154
|
-
def self.new(
|
|
155
|
-
# Content that will be used for all channels (SMS and WhatsApp) unless
|
|
156
|
-
# channel-specific content is provided
|
|
157
|
-
multi_channel: nil,
|
|
158
|
-
# SMS-specific content that overrides multi-channel content for SMS messages
|
|
159
|
-
sms: nil,
|
|
160
|
-
# WhatsApp-specific content that overrides multi-channel content for WhatsApp
|
|
161
|
-
# messages
|
|
162
|
-
whatsapp: nil
|
|
163
|
-
)
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
sig do
|
|
167
|
-
override.returns(
|
|
168
|
-
{
|
|
169
|
-
multi_channel: T.nilable(Sentdm::TemplateBodyContent),
|
|
170
|
-
sms: T.nilable(Sentdm::TemplateBodyContent),
|
|
171
|
-
whatsapp: T.nilable(Sentdm::TemplateBodyContent)
|
|
172
|
-
}
|
|
173
|
-
)
|
|
174
|
-
end
|
|
175
|
-
def to_hash
|
|
176
|
-
end
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
class AuthenticationConfig < Sentdm::Internal::Type::BaseModel
|
|
180
|
-
OrHash =
|
|
181
|
-
T.type_alias do
|
|
182
|
-
T.any(
|
|
183
|
-
Sentdm::TemplateDefinition::AuthenticationConfig,
|
|
184
|
-
Sentdm::Internal::AnyHash
|
|
185
|
-
)
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
# Whether to add the security recommendation text: "For your security, do not
|
|
189
|
-
# share this code."
|
|
190
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
191
|
-
attr_reader :add_security_recommendation
|
|
192
|
-
|
|
193
|
-
sig { params(add_security_recommendation: T::Boolean).void }
|
|
194
|
-
attr_writer :add_security_recommendation
|
|
195
|
-
|
|
196
|
-
# Code expiration time in minutes (1-90). If set, adds footer: "This code expires
|
|
197
|
-
# in X minutes."
|
|
198
|
-
sig { returns(T.nilable(Integer)) }
|
|
199
|
-
attr_accessor :code_expiration_minutes
|
|
200
|
-
|
|
201
|
-
# Configuration specific to AUTHENTICATION category templates (optional)
|
|
202
|
-
sig do
|
|
203
|
-
params(
|
|
204
|
-
add_security_recommendation: T::Boolean,
|
|
205
|
-
code_expiration_minutes: T.nilable(Integer)
|
|
206
|
-
).returns(T.attached_class)
|
|
207
|
-
end
|
|
208
|
-
def self.new(
|
|
209
|
-
# Whether to add the security recommendation text: "For your security, do not
|
|
210
|
-
# share this code."
|
|
211
|
-
add_security_recommendation: nil,
|
|
212
|
-
# Code expiration time in minutes (1-90). If set, adds footer: "This code expires
|
|
213
|
-
# in X minutes."
|
|
214
|
-
code_expiration_minutes: nil
|
|
215
|
-
)
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
sig do
|
|
219
|
-
override.returns(
|
|
220
|
-
{
|
|
221
|
-
add_security_recommendation: T::Boolean,
|
|
222
|
-
code_expiration_minutes: T.nilable(Integer)
|
|
223
|
-
}
|
|
224
|
-
)
|
|
225
|
-
end
|
|
226
|
-
def to_hash
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
class Button < Sentdm::Internal::Type::BaseModel
|
|
231
|
-
OrHash =
|
|
232
|
-
T.type_alias do
|
|
233
|
-
T.any(Sentdm::TemplateDefinition::Button, Sentdm::Internal::AnyHash)
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
# The unique identifier of the button (1-based index)
|
|
237
|
-
sig { returns(T.nilable(Integer)) }
|
|
238
|
-
attr_reader :id
|
|
239
|
-
|
|
240
|
-
sig { params(id: Integer).void }
|
|
241
|
-
attr_writer :id
|
|
242
|
-
|
|
243
|
-
# Properties specific to the button type
|
|
244
|
-
sig { returns(T.nilable(Sentdm::TemplateDefinition::Button::Props)) }
|
|
245
|
-
attr_reader :props
|
|
246
|
-
|
|
247
|
-
sig do
|
|
248
|
-
params(props: Sentdm::TemplateDefinition::Button::Props::OrHash).void
|
|
249
|
-
end
|
|
250
|
-
attr_writer :props
|
|
251
|
-
|
|
252
|
-
# The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
|
|
253
|
-
sig { returns(T.nilable(String)) }
|
|
254
|
-
attr_reader :type
|
|
255
|
-
|
|
256
|
-
sig { params(type: String).void }
|
|
257
|
-
attr_writer :type
|
|
258
|
-
|
|
259
|
-
# Interactive button in a message template
|
|
260
|
-
sig do
|
|
261
|
-
params(
|
|
262
|
-
id: Integer,
|
|
263
|
-
props: Sentdm::TemplateDefinition::Button::Props::OrHash,
|
|
264
|
-
type: String
|
|
265
|
-
).returns(T.attached_class)
|
|
266
|
-
end
|
|
267
|
-
def self.new(
|
|
268
|
-
# The unique identifier of the button (1-based index)
|
|
269
|
-
id: nil,
|
|
270
|
-
# Properties specific to the button type
|
|
271
|
-
props: nil,
|
|
272
|
-
# The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
|
|
273
|
-
type: nil
|
|
274
|
-
)
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
sig do
|
|
278
|
-
override.returns(
|
|
279
|
-
{
|
|
280
|
-
id: Integer,
|
|
281
|
-
props: Sentdm::TemplateDefinition::Button::Props,
|
|
282
|
-
type: String
|
|
283
|
-
}
|
|
284
|
-
)
|
|
285
|
-
end
|
|
286
|
-
def to_hash
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
class Props < Sentdm::Internal::Type::BaseModel
|
|
290
|
-
OrHash =
|
|
291
|
-
T.type_alias do
|
|
292
|
-
T.any(
|
|
293
|
-
Sentdm::TemplateDefinition::Button::Props,
|
|
294
|
-
Sentdm::Internal::AnyHash
|
|
295
|
-
)
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
sig { returns(T.nilable(Integer)) }
|
|
299
|
-
attr_accessor :active_for
|
|
300
|
-
|
|
301
|
-
sig { returns(T.nilable(String)) }
|
|
302
|
-
attr_accessor :autofill_text
|
|
303
|
-
|
|
304
|
-
sig { returns(T.nilable(String)) }
|
|
305
|
-
attr_accessor :country_code
|
|
306
|
-
|
|
307
|
-
sig { returns(T.nilable(String)) }
|
|
308
|
-
attr_accessor :offer_code
|
|
309
|
-
|
|
310
|
-
sig { returns(T.nilable(String)) }
|
|
311
|
-
attr_accessor :otp_type
|
|
312
|
-
|
|
313
|
-
sig { returns(T.nilable(String)) }
|
|
314
|
-
attr_accessor :package_name
|
|
315
|
-
|
|
316
|
-
sig { returns(T.nilable(String)) }
|
|
317
|
-
attr_accessor :phone_number
|
|
318
|
-
|
|
319
|
-
sig { returns(T.nilable(String)) }
|
|
320
|
-
attr_accessor :quick_reply_type
|
|
321
|
-
|
|
322
|
-
sig { returns(T.nilable(String)) }
|
|
323
|
-
attr_accessor :signature_hash
|
|
324
|
-
|
|
325
|
-
sig { returns(T.nilable(String)) }
|
|
326
|
-
attr_accessor :text
|
|
327
|
-
|
|
328
|
-
sig { returns(T.nilable(String)) }
|
|
329
|
-
attr_accessor :url
|
|
330
|
-
|
|
331
|
-
sig { returns(T.nilable(String)) }
|
|
332
|
-
attr_accessor :url_type
|
|
333
|
-
|
|
334
|
-
# Properties specific to the button type
|
|
335
|
-
sig do
|
|
336
|
-
params(
|
|
337
|
-
active_for: T.nilable(Integer),
|
|
338
|
-
autofill_text: T.nilable(String),
|
|
339
|
-
country_code: T.nilable(String),
|
|
340
|
-
offer_code: T.nilable(String),
|
|
341
|
-
otp_type: T.nilable(String),
|
|
342
|
-
package_name: T.nilable(String),
|
|
343
|
-
phone_number: T.nilable(String),
|
|
344
|
-
quick_reply_type: T.nilable(String),
|
|
345
|
-
signature_hash: T.nilable(String),
|
|
346
|
-
text: T.nilable(String),
|
|
347
|
-
url: T.nilable(String),
|
|
348
|
-
url_type: T.nilable(String)
|
|
349
|
-
).returns(T.attached_class)
|
|
350
|
-
end
|
|
351
|
-
def self.new(
|
|
352
|
-
active_for: nil,
|
|
353
|
-
autofill_text: nil,
|
|
354
|
-
country_code: nil,
|
|
355
|
-
offer_code: nil,
|
|
356
|
-
otp_type: nil,
|
|
357
|
-
package_name: nil,
|
|
358
|
-
phone_number: nil,
|
|
359
|
-
quick_reply_type: nil,
|
|
360
|
-
signature_hash: nil,
|
|
361
|
-
text: nil,
|
|
362
|
-
url: nil,
|
|
363
|
-
url_type: nil
|
|
364
|
-
)
|
|
365
|
-
end
|
|
366
|
-
|
|
367
|
-
sig do
|
|
368
|
-
override.returns(
|
|
369
|
-
{
|
|
370
|
-
active_for: T.nilable(Integer),
|
|
371
|
-
autofill_text: T.nilable(String),
|
|
372
|
-
country_code: T.nilable(String),
|
|
373
|
-
offer_code: T.nilable(String),
|
|
374
|
-
otp_type: T.nilable(String),
|
|
375
|
-
package_name: T.nilable(String),
|
|
376
|
-
phone_number: T.nilable(String),
|
|
377
|
-
quick_reply_type: T.nilable(String),
|
|
378
|
-
signature_hash: T.nilable(String),
|
|
379
|
-
text: T.nilable(String),
|
|
380
|
-
url: T.nilable(String),
|
|
381
|
-
url_type: T.nilable(String)
|
|
382
|
-
}
|
|
383
|
-
)
|
|
384
|
-
end
|
|
385
|
-
def to_hash
|
|
386
|
-
end
|
|
387
|
-
end
|
|
388
|
-
end
|
|
389
|
-
|
|
390
|
-
class Footer < Sentdm::Internal::Type::BaseModel
|
|
391
|
-
OrHash =
|
|
392
|
-
T.type_alias do
|
|
393
|
-
T.any(Sentdm::TemplateDefinition::Footer, Sentdm::Internal::AnyHash)
|
|
394
|
-
end
|
|
395
|
-
|
|
396
|
-
# The footer template text with optional variable placeholders
|
|
397
|
-
sig { returns(T.nilable(String)) }
|
|
398
|
-
attr_reader :template
|
|
399
|
-
|
|
400
|
-
sig { params(template: String).void }
|
|
401
|
-
attr_writer :template
|
|
402
|
-
|
|
403
|
-
# The type of footer (typically "text")
|
|
404
|
-
sig { returns(T.nilable(String)) }
|
|
405
|
-
attr_accessor :type
|
|
406
|
-
|
|
407
|
-
# List of variables used in the footer template
|
|
408
|
-
sig { returns(T.nilable(T::Array[Sentdm::TemplateVariable])) }
|
|
409
|
-
attr_accessor :variables
|
|
410
|
-
|
|
411
|
-
# Optional template footer with optional variables
|
|
412
|
-
sig do
|
|
413
|
-
params(
|
|
414
|
-
template: String,
|
|
415
|
-
type: T.nilable(String),
|
|
416
|
-
variables: T.nilable(T::Array[Sentdm::TemplateVariable::OrHash])
|
|
417
|
-
).returns(T.attached_class)
|
|
418
|
-
end
|
|
419
|
-
def self.new(
|
|
420
|
-
# The footer template text with optional variable placeholders
|
|
421
|
-
template: nil,
|
|
422
|
-
# The type of footer (typically "text")
|
|
423
|
-
type: nil,
|
|
424
|
-
# List of variables used in the footer template
|
|
425
|
-
variables: nil
|
|
426
|
-
)
|
|
427
|
-
end
|
|
428
|
-
|
|
429
|
-
sig do
|
|
430
|
-
override.returns(
|
|
431
|
-
{
|
|
432
|
-
template: String,
|
|
433
|
-
type: T.nilable(String),
|
|
434
|
-
variables: T.nilable(T::Array[Sentdm::TemplateVariable])
|
|
435
|
-
}
|
|
436
|
-
)
|
|
437
|
-
end
|
|
438
|
-
def to_hash
|
|
439
|
-
end
|
|
440
|
-
end
|
|
441
|
-
|
|
442
|
-
class Header < Sentdm::Internal::Type::BaseModel
|
|
443
|
-
OrHash =
|
|
444
|
-
T.type_alias do
|
|
445
|
-
T.any(Sentdm::TemplateDefinition::Header, Sentdm::Internal::AnyHash)
|
|
446
|
-
end
|
|
447
|
-
|
|
448
|
-
# The header template text with optional variable placeholders (e.g., "Welcome to
|
|
449
|
-
# {{0:variable}}")
|
|
450
|
-
sig { returns(T.nilable(String)) }
|
|
451
|
-
attr_reader :template
|
|
452
|
-
|
|
453
|
-
sig { params(template: String).void }
|
|
454
|
-
attr_writer :template
|
|
455
|
-
|
|
456
|
-
# The type of header (e.g., "text", "image", "video", "document")
|
|
457
|
-
sig { returns(T.nilable(String)) }
|
|
458
|
-
attr_accessor :type
|
|
459
|
-
|
|
460
|
-
# List of variables used in the header template
|
|
461
|
-
sig { returns(T.nilable(T::Array[Sentdm::TemplateVariable])) }
|
|
462
|
-
attr_accessor :variables
|
|
463
|
-
|
|
464
|
-
# Optional template header with optional variables
|
|
465
|
-
sig do
|
|
466
|
-
params(
|
|
467
|
-
template: String,
|
|
468
|
-
type: T.nilable(String),
|
|
469
|
-
variables: T.nilable(T::Array[Sentdm::TemplateVariable::OrHash])
|
|
470
|
-
).returns(T.attached_class)
|
|
471
|
-
end
|
|
472
|
-
def self.new(
|
|
473
|
-
# The header template text with optional variable placeholders (e.g., "Welcome to
|
|
474
|
-
# {{0:variable}}")
|
|
475
|
-
template: nil,
|
|
476
|
-
# The type of header (e.g., "text", "image", "video", "document")
|
|
477
|
-
type: nil,
|
|
478
|
-
# List of variables used in the header template
|
|
479
|
-
variables: nil
|
|
480
|
-
)
|
|
481
|
-
end
|
|
482
|
-
|
|
483
|
-
sig do
|
|
484
|
-
override.returns(
|
|
485
|
-
{
|
|
486
|
-
template: String,
|
|
487
|
-
type: T.nilable(String),
|
|
488
|
-
variables: T.nilable(T::Array[Sentdm::TemplateVariable])
|
|
489
|
-
}
|
|
490
|
-
)
|
|
491
|
-
end
|
|
492
|
-
def to_hash
|
|
493
|
-
end
|
|
494
|
-
end
|
|
495
164
|
end
|
|
496
165
|
end
|
|
497
166
|
end
|
|
@@ -11,15 +11,46 @@ module Sentdm
|
|
|
11
11
|
T.any(Sentdm::TemplateDeleteParams, Sentdm::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Whether to also delete the template from WhatsApp/Meta (optional, defaults to
|
|
15
|
+
# false)
|
|
16
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
17
|
+
attr_accessor :delete_from_meta
|
|
18
|
+
|
|
19
|
+
# Test mode flag - when true, the operation is simulated without side effects
|
|
20
|
+
# Useful for testing integrations without actual execution
|
|
21
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
22
|
+
attr_reader :test_mode
|
|
23
|
+
|
|
24
|
+
sig { params(test_mode: T::Boolean).void }
|
|
25
|
+
attr_writer :test_mode
|
|
26
|
+
|
|
14
27
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
T.
|
|
17
|
-
|
|
28
|
+
params(
|
|
29
|
+
delete_from_meta: T.nilable(T::Boolean),
|
|
30
|
+
test_mode: T::Boolean,
|
|
31
|
+
request_options: Sentdm::RequestOptions::OrHash
|
|
32
|
+
).returns(T.attached_class)
|
|
18
33
|
end
|
|
19
|
-
def self.new(
|
|
34
|
+
def self.new(
|
|
35
|
+
# Whether to also delete the template from WhatsApp/Meta (optional, defaults to
|
|
36
|
+
# false)
|
|
37
|
+
delete_from_meta: nil,
|
|
38
|
+
# Test mode flag - when true, the operation is simulated without side effects
|
|
39
|
+
# Useful for testing integrations without actual execution
|
|
40
|
+
test_mode: nil,
|
|
41
|
+
request_options: {}
|
|
42
|
+
)
|
|
20
43
|
end
|
|
21
44
|
|
|
22
|
-
sig
|
|
45
|
+
sig do
|
|
46
|
+
override.returns(
|
|
47
|
+
{
|
|
48
|
+
delete_from_meta: T.nilable(T::Boolean),
|
|
49
|
+
test_mode: T::Boolean,
|
|
50
|
+
request_options: Sentdm::RequestOptions
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
23
54
|
def to_hash
|
|
24
55
|
end
|
|
25
56
|
end
|
|
@@ -11,23 +11,22 @@ module Sentdm
|
|
|
11
11
|
T.any(Sentdm::TemplateListParams, Sentdm::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Page number (1-indexed)
|
|
15
15
|
sig { returns(Integer) }
|
|
16
16
|
attr_accessor :page
|
|
17
17
|
|
|
18
|
-
# The number of items per page (1-1000). Default is 100.
|
|
19
18
|
sig { returns(Integer) }
|
|
20
19
|
attr_accessor :page_size
|
|
21
20
|
|
|
22
|
-
# Optional
|
|
21
|
+
# Optional category filter: MARKETING, UTILITY, AUTHENTICATION
|
|
23
22
|
sig { returns(T.nilable(String)) }
|
|
24
23
|
attr_accessor :category
|
|
25
24
|
|
|
26
|
-
# Optional search term
|
|
25
|
+
# Optional search term for filtering templates
|
|
27
26
|
sig { returns(T.nilable(String)) }
|
|
28
27
|
attr_accessor :search
|
|
29
28
|
|
|
30
|
-
# Optional
|
|
29
|
+
# Optional status filter: APPROVED, PENDING, REJECTED
|
|
31
30
|
sig { returns(T.nilable(String)) }
|
|
32
31
|
attr_accessor :status
|
|
33
32
|
|
|
@@ -42,15 +41,14 @@ module Sentdm
|
|
|
42
41
|
).returns(T.attached_class)
|
|
43
42
|
end
|
|
44
43
|
def self.new(
|
|
45
|
-
#
|
|
44
|
+
# Page number (1-indexed)
|
|
46
45
|
page:,
|
|
47
|
-
# The number of items per page (1-1000). Default is 100.
|
|
48
46
|
page_size:,
|
|
49
|
-
# Optional
|
|
47
|
+
# Optional category filter: MARKETING, UTILITY, AUTHENTICATION
|
|
50
48
|
category: nil,
|
|
51
|
-
# Optional search term
|
|
49
|
+
# Optional search term for filtering templates
|
|
52
50
|
search: nil,
|
|
53
|
-
# Optional
|
|
51
|
+
# Optional status filter: APPROVED, PENDING, REJECTED
|
|
54
52
|
status: nil,
|
|
55
53
|
request_options: {}
|
|
56
54
|
)
|