sentdm 0.2.0 → 0.3.1
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 +26 -0
- data/README.md +105 -39
- data/lib/sentdm/client.rb +36 -36
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +25 -0
- data/lib/sentdm/internal/util.rb +31 -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 +34 -0
- data/lib/sentdm/models/{message_retrieve_params.rb → brand_list_params.rb} +2 -2
- data/lib/sentdm/models/brand_list_response.rb +43 -0
- data/lib/sentdm/models/brand_update_params.rb +48 -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 +50 -0
- data/lib/sentdm/models/brands/campaign_data.rb +123 -0
- data/lib/sentdm/models/brands/campaign_delete_params.rb +43 -0
- data/lib/sentdm/models/brands/campaign_list_params.rb +22 -0
- data/lib/sentdm/models/brands/campaign_list_response.rb +47 -0
- data/lib/sentdm/models/brands/campaign_update_params.rb +57 -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 +34 -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/{contact_retrieve_id_params.rb → contact_retrieve_params.rb} +3 -5
- data/lib/sentdm/models/contact_update_params.rb +56 -0
- data/lib/sentdm/models/destination_country.rb +21 -0
- data/lib/sentdm/models/{number_lookup_retrieve_params.rb → lookup_retrieve_phone_info_params.rb} +2 -2
- 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 +20 -0
- data/lib/sentdm/models/message_retrieve_activities_response.rb +103 -0
- data/lib/sentdm/models/message_retrieve_status_params.rb +20 -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 +48 -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 +41 -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 +20 -0
- data/lib/sentdm/models/profile_settings.rb +66 -0
- data/lib/sentdm/models/profile_update_params.rb +176 -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 +29 -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_retrieve_params.rb +7 -1
- data/lib/sentdm/models/template_update_params.rb +80 -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 +41 -0
- data/lib/sentdm/models/user_response.rb +82 -0
- data/lib/sentdm/models/user_retrieve_params.rb +20 -0
- data/lib/sentdm/models/user_update_role_params.rb +56 -0
- data/lib/sentdm/models/webhook_create_params.rb +68 -0
- data/lib/sentdm/models/webhook_delete_params.rb +20 -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 +38 -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 +20 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +36 -0
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +56 -0
- data/lib/sentdm/models/webhook_test_params.rb +47 -0
- data/lib/sentdm/models/webhook_test_response.rb +62 -0
- data/lib/sentdm/models/webhook_toggle_status_params.rb +47 -0
- data/lib/sentdm/models/webhook_update_params.rb +75 -0
- data/lib/sentdm/models.rb +124 -10
- data/lib/sentdm/resources/brands/campaigns.rb +145 -0
- data/lib/sentdm/resources/brands.rb +130 -0
- data/lib/sentdm/resources/contacts.rb +113 -38
- data/lib/sentdm/resources/lookup.rb +35 -0
- data/lib/sentdm/resources/me.rb +35 -0
- data/lib/sentdm/resources/messages.rb +43 -77
- data/lib/sentdm/resources/profiles.rb +255 -0
- data/lib/sentdm/resources/templates.rb +97 -46
- data/lib/sentdm/resources/users.rb +159 -0
- data/lib/sentdm/resources/webhooks.rb +298 -0
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +94 -12
- data/rbi/sentdm/client.rbi +28 -25
- data/rbi/sentdm/internal/util.rbi +20 -0
- 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 +68 -0
- data/rbi/sentdm/models/{message_retrieve_params.rbi → brand_list_params.rbi} +2 -2
- data/rbi/sentdm/models/brand_list_response.rbi +71 -0
- data/rbi/sentdm/models/brand_update_params.rbi +74 -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 +79 -0
- data/rbi/sentdm/models/brands/campaign_data.rbi +148 -0
- data/rbi/sentdm/models/brands/campaign_delete_params.rbi +84 -0
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +37 -0
- data/rbi/sentdm/models/brands/campaign_list_response.rbi +82 -0
- data/rbi/sentdm/models/brands/campaign_update_params.rbi +85 -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 +68 -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/{contact_retrieve_id_params.rbi → contact_retrieve_params.rbi} +3 -8
- data/rbi/sentdm/models/contact_update_params.rbi +79 -0
- data/rbi/sentdm/models/destination_country.rbi +32 -0
- data/rbi/sentdm/models/{number_lookup_retrieve_params.rbi → lookup_retrieve_phone_info_params.rbi} +5 -2
- 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 +38 -0
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +234 -0
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +35 -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 +71 -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 +65 -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 +35 -0
- data/rbi/sentdm/models/profile_settings.rbi +86 -0
- data/rbi/sentdm/models/profile_update_params.rbi +202 -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 +42 -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_retrieve_params.rbi +13 -5
- data/rbi/sentdm/models/template_update_params.rbi +111 -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 +65 -0
- data/rbi/sentdm/models/user_response.rbi +118 -0
- data/rbi/sentdm/models/user_retrieve_params.rbi +35 -0
- data/rbi/sentdm/models/user_update_role_params.rbi +85 -0
- data/rbi/sentdm/models/webhook_create_params.rbi +102 -0
- data/rbi/sentdm/models/webhook_delete_params.rbi +35 -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 +53 -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 +35 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +72 -0
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +112 -0
- data/rbi/sentdm/models/webhook_test_params.rbi +72 -0
- data/rbi/sentdm/models/webhook_test_response.rbi +111 -0
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +72 -0
- data/rbi/sentdm/models/webhook_update_params.rbi +108 -0
- data/rbi/sentdm/models.rbi +125 -10
- data/rbi/sentdm/resources/brands/campaigns.rbi +109 -0
- data/rbi/sentdm/resources/brands.rbi +95 -0
- data/rbi/sentdm/resources/contacts.rbi +90 -26
- data/rbi/sentdm/resources/lookup.rbi +24 -0
- data/rbi/sentdm/resources/me.rbi +24 -0
- data/rbi/sentdm/resources/messages.rbi +42 -60
- data/rbi/sentdm/resources/profiles.rbi +239 -0
- data/rbi/sentdm/resources/templates.rbi +95 -41
- data/rbi/sentdm/resources/users.rbi +117 -0
- data/rbi/sentdm/resources/webhooks.rbi +219 -0
- data/sig/sentdm/client.rbs +11 -8
- data/sig/sentdm/internal/util.rbs +10 -0
- 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 +36 -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 +45 -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 +47 -0
- data/sig/sentdm/models/brands/campaign_data.rbs +82 -0
- data/sig/sentdm/models/brands/campaign_delete_params.rbs +46 -0
- data/sig/sentdm/models/brands/campaign_list_params.rbs +25 -0
- data/sig/sentdm/models/brands/campaign_list_response.rbs +41 -0
- data/sig/sentdm/models/brands/campaign_update_params.rbs +52 -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 +36 -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/{contact_retrieve_id_params.rbs → contact_retrieve_params.rbs} +2 -2
- data/sig/sentdm/models/contact_update_params.rbs +50 -0
- data/sig/sentdm/models/destination_country.rbs +19 -0
- data/sig/sentdm/models/{number_lookup_retrieve_params.rbs → lookup_retrieve_phone_info_params.rbs} +2 -2
- 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 +20 -0
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +105 -0
- data/sig/sentdm/models/message_retrieve_status_params.rbs +20 -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 +45 -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 +36 -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/{contact_retrieve_by_phone_params.rbs → profile_retrieve_params.rbs} +6 -6
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +127 -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_v2.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 +22 -3
- data/sig/sentdm/models/template_list_response.rbs +44 -31
- data/sig/sentdm/models/template_retrieve_params.rbs +8 -3
- data/sig/sentdm/models/template_update_params.rbs +67 -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 +36 -0
- data/sig/sentdm/models/user_response.rbs +72 -0
- data/sig/sentdm/models/user_retrieve_params.rbs +23 -0
- data/sig/sentdm/models/user_update_role_params.rbs +54 -0
- data/sig/sentdm/models/webhook_create_params.rbs +70 -0
- data/sig/sentdm/models/webhook_delete_params.rbs +20 -0
- data/sig/sentdm/models/{message_retrieve_params.rbs → webhook_list_event_types_params.rbs} +2 -2
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +98 -0
- data/sig/sentdm/models/webhook_list_events_params.rbs +36 -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 +20 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +46 -0
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +51 -0
- data/sig/sentdm/models/webhook_test_params.rbs +47 -0
- data/sig/sentdm/models/webhook_test_response.rbs +55 -0
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +42 -0
- data/sig/sentdm/models/webhook_update_params.rbs +75 -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 -38
- 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/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_response.rb +0 -83
- data/lib/sentdm/models/template_response_v2.rb +0 -100
- data/lib/sentdm/resources/number_lookup.rb +0 -37
- 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/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_response.rbi +0 -132
- data/rbi/sentdm/models/template_response_v2.rbi +0 -149
- data/rbi/sentdm/resources/number_lookup.rbi +0 -24
- 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_response.rbs +0 -78
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_toggle_status_params =
|
|
4
|
+
{ id: String, is_active: bool, test_mode: bool, idempotency_key: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class WebhookToggleStatusParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_reader is_active: bool?
|
|
14
|
+
|
|
15
|
+
def is_active=: (bool) -> bool
|
|
16
|
+
|
|
17
|
+
attr_reader test_mode: bool?
|
|
18
|
+
|
|
19
|
+
def test_mode=: (bool) -> bool
|
|
20
|
+
|
|
21
|
+
attr_reader idempotency_key: String?
|
|
22
|
+
|
|
23
|
+
def idempotency_key=: (String) -> String
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
id: String,
|
|
27
|
+
?is_active: bool,
|
|
28
|
+
?test_mode: bool,
|
|
29
|
+
?idempotency_key: String,
|
|
30
|
+
?request_options: Sentdm::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
id: String,
|
|
35
|
+
is_active: bool,
|
|
36
|
+
test_mode: bool,
|
|
37
|
+
idempotency_key: String,
|
|
38
|
+
request_options: Sentdm::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_update_params =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
display_name: String,
|
|
7
|
+
endpoint_url: String,
|
|
8
|
+
event_types: ::Array[String],
|
|
9
|
+
retry_count: Integer,
|
|
10
|
+
test_mode: bool,
|
|
11
|
+
timeout_seconds: Integer,
|
|
12
|
+
idempotency_key: String
|
|
13
|
+
}
|
|
14
|
+
& Sentdm::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class WebhookUpdateParams < Sentdm::Internal::Type::BaseModel
|
|
17
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_accessor id: String
|
|
21
|
+
|
|
22
|
+
attr_reader display_name: String?
|
|
23
|
+
|
|
24
|
+
def display_name=: (String) -> String
|
|
25
|
+
|
|
26
|
+
attr_reader endpoint_url: String?
|
|
27
|
+
|
|
28
|
+
def endpoint_url=: (String) -> String
|
|
29
|
+
|
|
30
|
+
attr_reader event_types: ::Array[String]?
|
|
31
|
+
|
|
32
|
+
def event_types=: (::Array[String]) -> ::Array[String]
|
|
33
|
+
|
|
34
|
+
attr_reader retry_count: Integer?
|
|
35
|
+
|
|
36
|
+
def retry_count=: (Integer) -> Integer
|
|
37
|
+
|
|
38
|
+
attr_reader test_mode: bool?
|
|
39
|
+
|
|
40
|
+
def test_mode=: (bool) -> bool
|
|
41
|
+
|
|
42
|
+
attr_reader timeout_seconds: Integer?
|
|
43
|
+
|
|
44
|
+
def timeout_seconds=: (Integer) -> Integer
|
|
45
|
+
|
|
46
|
+
attr_reader idempotency_key: String?
|
|
47
|
+
|
|
48
|
+
def idempotency_key=: (String) -> String
|
|
49
|
+
|
|
50
|
+
def initialize: (
|
|
51
|
+
id: String,
|
|
52
|
+
?display_name: String,
|
|
53
|
+
?endpoint_url: String,
|
|
54
|
+
?event_types: ::Array[String],
|
|
55
|
+
?retry_count: Integer,
|
|
56
|
+
?test_mode: bool,
|
|
57
|
+
?timeout_seconds: Integer,
|
|
58
|
+
?idempotency_key: String,
|
|
59
|
+
?request_options: Sentdm::request_opts
|
|
60
|
+
) -> void
|
|
61
|
+
|
|
62
|
+
def to_hash: -> {
|
|
63
|
+
id: String,
|
|
64
|
+
display_name: String,
|
|
65
|
+
endpoint_url: String,
|
|
66
|
+
event_types: ::Array[String],
|
|
67
|
+
retry_count: Integer,
|
|
68
|
+
test_mode: bool,
|
|
69
|
+
timeout_seconds: Integer,
|
|
70
|
+
idempotency_key: String,
|
|
71
|
+
request_options: Sentdm::RequestOptions
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
data/sig/sentdm/models.rbs
CHANGED
|
@@ -1,21 +1,95 @@
|
|
|
1
1
|
module Sentdm
|
|
2
|
-
class
|
|
2
|
+
class APIError = Sentdm::Models::APIError
|
|
3
|
+
|
|
4
|
+
class APIMeta = Sentdm::Models::APIMeta
|
|
5
|
+
|
|
6
|
+
class APIResponseBrandWithKYC = Sentdm::Models::APIResponseBrandWithKYC
|
|
7
|
+
|
|
8
|
+
class APIResponseContact = Sentdm::Models::APIResponseContact
|
|
9
|
+
|
|
10
|
+
class APIResponseOfProfileDetail = Sentdm::Models::APIResponseOfProfileDetail
|
|
11
|
+
|
|
12
|
+
class APIResponseOfUser = Sentdm::Models::APIResponseOfUser
|
|
13
|
+
|
|
14
|
+
class APIResponseTemplate = Sentdm::Models::APIResponseTemplate
|
|
15
|
+
|
|
16
|
+
class APIResponseWebhook = Sentdm::Models::APIResponseWebhook
|
|
17
|
+
|
|
18
|
+
class BrandCreateParams = Sentdm::Models::BrandCreateParams
|
|
19
|
+
|
|
20
|
+
class BrandData = Sentdm::Models::BrandData
|
|
21
|
+
|
|
22
|
+
class BrandDeleteParams = Sentdm::Models::BrandDeleteParams
|
|
23
|
+
|
|
24
|
+
class BrandListParams = Sentdm::Models::BrandListParams
|
|
25
|
+
|
|
26
|
+
module Brands = Sentdm::Models::Brands
|
|
27
|
+
|
|
28
|
+
class BrandUpdateParams = Sentdm::Models::BrandUpdateParams
|
|
29
|
+
|
|
30
|
+
class BrandWithKYC = Sentdm::Models::BrandWithKYC
|
|
31
|
+
|
|
32
|
+
class Contact = Sentdm::Models::Contact
|
|
33
|
+
|
|
34
|
+
class ContactCreateParams = Sentdm::Models::ContactCreateParams
|
|
35
|
+
|
|
36
|
+
class ContactDeleteParams = Sentdm::Models::ContactDeleteParams
|
|
3
37
|
|
|
4
38
|
class ContactListParams = Sentdm::Models::ContactListParams
|
|
5
39
|
|
|
6
|
-
class
|
|
40
|
+
class ContactRetrieveParams = Sentdm::Models::ContactRetrieveParams
|
|
41
|
+
|
|
42
|
+
class ContactUpdateParams = Sentdm::Models::ContactUpdateParams
|
|
43
|
+
|
|
44
|
+
class DestinationCountry = Sentdm::Models::DestinationCountry
|
|
45
|
+
|
|
46
|
+
class LookupRetrievePhoneInfoParams = Sentdm::Models::LookupRetrievePhoneInfoParams
|
|
47
|
+
|
|
48
|
+
class MeRetrieveParams = Sentdm::Models::MeRetrieveParams
|
|
49
|
+
|
|
50
|
+
class MessageRetrieveActivitiesParams = Sentdm::Models::MessageRetrieveActivitiesParams
|
|
51
|
+
|
|
52
|
+
class MessageRetrieveStatusParams = Sentdm::Models::MessageRetrieveStatusParams
|
|
53
|
+
|
|
54
|
+
class MessageSendParams = Sentdm::Models::MessageSendParams
|
|
55
|
+
|
|
56
|
+
class MutationRequest = Sentdm::Models::MutationRequest
|
|
57
|
+
|
|
58
|
+
class PaginationMeta = Sentdm::Models::PaginationMeta
|
|
59
|
+
|
|
60
|
+
class ProfileCompleteParams = Sentdm::Models::ProfileCompleteParams
|
|
61
|
+
|
|
62
|
+
class ProfileCreateParams = Sentdm::Models::ProfileCreateParams
|
|
7
63
|
|
|
8
|
-
class
|
|
64
|
+
class ProfileDeleteParams = Sentdm::Models::ProfileDeleteParams
|
|
9
65
|
|
|
10
|
-
class
|
|
66
|
+
class ProfileDetail = Sentdm::Models::ProfileDetail
|
|
11
67
|
|
|
12
|
-
class
|
|
68
|
+
class ProfileListParams = Sentdm::Models::ProfileListParams
|
|
13
69
|
|
|
14
|
-
class
|
|
70
|
+
class ProfileRetrieveParams = Sentdm::Models::ProfileRetrieveParams
|
|
15
71
|
|
|
16
|
-
class
|
|
72
|
+
class ProfileSettings = Sentdm::Models::ProfileSettings
|
|
17
73
|
|
|
18
|
-
class
|
|
74
|
+
class ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
|
|
75
|
+
|
|
76
|
+
class SentDmServicesCommonContractsPocOsAuthenticationConfig = Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig
|
|
77
|
+
|
|
78
|
+
class SentDmServicesCommonContractsPocOsTemplateBody = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody
|
|
79
|
+
|
|
80
|
+
class SentDmServicesCommonContractsPocOsTemplateButton = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton
|
|
81
|
+
|
|
82
|
+
class SentDmServicesCommonContractsPocOsTemplateButtonProps = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps
|
|
83
|
+
|
|
84
|
+
class SentDmServicesCommonContractsPocOsTemplateFooter = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter
|
|
85
|
+
|
|
86
|
+
class SentDmServicesCommonContractsPocOsTemplateHeader = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
|
|
87
|
+
|
|
88
|
+
module TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
|
|
89
|
+
|
|
90
|
+
module TcrVertical = Sentdm::Models::TcrVertical
|
|
91
|
+
|
|
92
|
+
class Template = Sentdm::Models::Template
|
|
19
93
|
|
|
20
94
|
class TemplateBodyContent = Sentdm::Models::TemplateBodyContent
|
|
21
95
|
|
|
@@ -27,9 +101,43 @@ module Sentdm
|
|
|
27
101
|
|
|
28
102
|
class TemplateListParams = Sentdm::Models::TemplateListParams
|
|
29
103
|
|
|
30
|
-
class TemplateResponseV2 = Sentdm::Models::TemplateResponseV2
|
|
31
|
-
|
|
32
104
|
class TemplateRetrieveParams = Sentdm::Models::TemplateRetrieveParams
|
|
33
105
|
|
|
106
|
+
class TemplateUpdateParams = Sentdm::Models::TemplateUpdateParams
|
|
107
|
+
|
|
34
108
|
class TemplateVariable = Sentdm::Models::TemplateVariable
|
|
109
|
+
|
|
110
|
+
class UserInviteParams = Sentdm::Models::UserInviteParams
|
|
111
|
+
|
|
112
|
+
class UserListParams = Sentdm::Models::UserListParams
|
|
113
|
+
|
|
114
|
+
class UserRemoveParams = Sentdm::Models::UserRemoveParams
|
|
115
|
+
|
|
116
|
+
class UserResponse = Sentdm::Models::UserResponse
|
|
117
|
+
|
|
118
|
+
class UserRetrieveParams = Sentdm::Models::UserRetrieveParams
|
|
119
|
+
|
|
120
|
+
class UserUpdateRoleParams = Sentdm::Models::UserUpdateRoleParams
|
|
121
|
+
|
|
122
|
+
class WebhookCreateParams = Sentdm::Models::WebhookCreateParams
|
|
123
|
+
|
|
124
|
+
class WebhookDeleteParams = Sentdm::Models::WebhookDeleteParams
|
|
125
|
+
|
|
126
|
+
class WebhookListEventsParams = Sentdm::Models::WebhookListEventsParams
|
|
127
|
+
|
|
128
|
+
class WebhookListEventTypesParams = Sentdm::Models::WebhookListEventTypesParams
|
|
129
|
+
|
|
130
|
+
class WebhookListParams = Sentdm::Models::WebhookListParams
|
|
131
|
+
|
|
132
|
+
class WebhookResponse = Sentdm::Models::WebhookResponse
|
|
133
|
+
|
|
134
|
+
class WebhookRetrieveParams = Sentdm::Models::WebhookRetrieveParams
|
|
135
|
+
|
|
136
|
+
class WebhookRotateSecretParams = Sentdm::Models::WebhookRotateSecretParams
|
|
137
|
+
|
|
138
|
+
class WebhookTestParams = Sentdm::Models::WebhookTestParams
|
|
139
|
+
|
|
140
|
+
class WebhookToggleStatusParams = Sentdm::Models::WebhookToggleStatusParams
|
|
141
|
+
|
|
142
|
+
class WebhookUpdateParams = Sentdm::Models::WebhookUpdateParams
|
|
35
143
|
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Resources
|
|
3
|
+
class Brands
|
|
4
|
+
class Campaigns
|
|
5
|
+
def create: (
|
|
6
|
+
String brand_id,
|
|
7
|
+
campaign: Sentdm::Brands::CampaignData,
|
|
8
|
+
?test_mode: bool,
|
|
9
|
+
?idempotency_key: String,
|
|
10
|
+
?request_options: Sentdm::request_opts
|
|
11
|
+
) -> Sentdm::Brands::APIResponseTcrCampaignWithUseCases
|
|
12
|
+
|
|
13
|
+
def update: (
|
|
14
|
+
String campaign_id,
|
|
15
|
+
brand_id: String,
|
|
16
|
+
campaign: Sentdm::Brands::CampaignData,
|
|
17
|
+
?test_mode: bool,
|
|
18
|
+
?idempotency_key: String,
|
|
19
|
+
?request_options: Sentdm::request_opts
|
|
20
|
+
) -> Sentdm::Brands::APIResponseTcrCampaignWithUseCases
|
|
21
|
+
|
|
22
|
+
def list: (
|
|
23
|
+
String brand_id,
|
|
24
|
+
?request_options: Sentdm::request_opts
|
|
25
|
+
) -> Sentdm::Models::Brands::CampaignListResponse
|
|
26
|
+
|
|
27
|
+
def delete: (
|
|
28
|
+
String campaign_id,
|
|
29
|
+
brand_id: String,
|
|
30
|
+
body: Sentdm::Brands::CampaignDeleteParams::Body,
|
|
31
|
+
?request_options: Sentdm::request_opts
|
|
32
|
+
) -> nil
|
|
33
|
+
|
|
34
|
+
def initialize: (client: Sentdm::Client) -> void
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Resources
|
|
3
|
+
class Brands
|
|
4
|
+
attr_reader campaigns: Sentdm::Resources::Brands::Campaigns
|
|
5
|
+
|
|
6
|
+
def create: (
|
|
7
|
+
brand: Sentdm::BrandData,
|
|
8
|
+
?test_mode: bool,
|
|
9
|
+
?idempotency_key: String,
|
|
10
|
+
?request_options: Sentdm::request_opts
|
|
11
|
+
) -> Sentdm::APIResponseBrandWithKYC
|
|
12
|
+
|
|
13
|
+
def update: (
|
|
14
|
+
String brand_id,
|
|
15
|
+
brand: Sentdm::BrandData,
|
|
16
|
+
?test_mode: bool,
|
|
17
|
+
?idempotency_key: String,
|
|
18
|
+
?request_options: Sentdm::request_opts
|
|
19
|
+
) -> Sentdm::APIResponseBrandWithKYC
|
|
20
|
+
|
|
21
|
+
def list: (
|
|
22
|
+
?request_options: Sentdm::request_opts
|
|
23
|
+
) -> Sentdm::Models::BrandListResponse
|
|
24
|
+
|
|
25
|
+
def delete: (
|
|
26
|
+
String brand_id,
|
|
27
|
+
body: Sentdm::BrandDeleteParams::Body,
|
|
28
|
+
?request_options: Sentdm::request_opts
|
|
29
|
+
) -> nil
|
|
30
|
+
|
|
31
|
+
def initialize: (client: Sentdm::Client) -> void
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Resources
|
|
3
3
|
class Contacts
|
|
4
|
+
def create: (
|
|
5
|
+
?phone_number: String,
|
|
6
|
+
?test_mode: bool,
|
|
7
|
+
?idempotency_key: String,
|
|
8
|
+
?request_options: Sentdm::request_opts
|
|
9
|
+
) -> Sentdm::APIResponseContact
|
|
10
|
+
|
|
11
|
+
def retrieve: (
|
|
12
|
+
String id,
|
|
13
|
+
?request_options: Sentdm::request_opts
|
|
14
|
+
) -> Sentdm::APIResponseContact
|
|
15
|
+
|
|
16
|
+
def update: (
|
|
17
|
+
String id,
|
|
18
|
+
?default_channel: String?,
|
|
19
|
+
?opt_out: bool?,
|
|
20
|
+
?test_mode: bool,
|
|
21
|
+
?idempotency_key: String,
|
|
22
|
+
?request_options: Sentdm::request_opts
|
|
23
|
+
) -> Sentdm::APIResponseContact
|
|
24
|
+
|
|
4
25
|
def list: (
|
|
5
26
|
page: Integer,
|
|
6
27
|
page_size: Integer,
|
|
28
|
+
?channel: String?,
|
|
29
|
+
?phone: String?,
|
|
30
|
+
?search: String?,
|
|
7
31
|
?request_options: Sentdm::request_opts
|
|
8
32
|
) -> Sentdm::Models::ContactListResponse
|
|
9
33
|
|
|
10
|
-
def
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
) -> Sentdm::ContactListItem
|
|
14
|
-
|
|
15
|
-
def retrieve_id: (
|
|
16
|
-
id: String,
|
|
34
|
+
def delete: (
|
|
35
|
+
String id,
|
|
36
|
+
body: Sentdm::ContactDeleteParams::Body,
|
|
17
37
|
?request_options: Sentdm::request_opts
|
|
18
|
-
) ->
|
|
38
|
+
) -> nil
|
|
19
39
|
|
|
20
40
|
def initialize: (client: Sentdm::Client) -> void
|
|
21
41
|
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Resources
|
|
3
|
+
class Lookup
|
|
4
|
+
def retrieve_phone_info: (
|
|
5
|
+
String phone_number,
|
|
6
|
+
?request_options: Sentdm::request_opts
|
|
7
|
+
) -> Sentdm::Models::LookupRetrievePhoneInfoResponse
|
|
8
|
+
|
|
9
|
+
def initialize: (client: Sentdm::Client) -> void
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Resources
|
|
3
|
-
class
|
|
3
|
+
class Me
|
|
4
4
|
def retrieve: (
|
|
5
|
-
phone_number: String,
|
|
6
5
|
?request_options: Sentdm::request_opts
|
|
7
|
-
) -> Sentdm::Models::
|
|
6
|
+
) -> Sentdm::Models::MeRetrieveResponse
|
|
8
7
|
|
|
9
8
|
def initialize: (client: Sentdm::Client) -> void
|
|
10
9
|
end
|
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Resources
|
|
3
3
|
class Messages
|
|
4
|
-
def
|
|
4
|
+
def retrieve_activities: (
|
|
5
5
|
String id,
|
|
6
6
|
?request_options: Sentdm::request_opts
|
|
7
|
-
) -> Sentdm::Models::
|
|
7
|
+
) -> Sentdm::Models::MessageRetrieveActivitiesResponse
|
|
8
8
|
|
|
9
|
-
def
|
|
10
|
-
|
|
11
|
-
phone_number: String,
|
|
12
|
-
?request_options: Sentdm::request_opts
|
|
13
|
-
) -> nil
|
|
14
|
-
|
|
15
|
-
def send_to_contact: (
|
|
16
|
-
contact_id: String,
|
|
17
|
-
template_id: String,
|
|
18
|
-
?template_variables: ::Hash[Symbol, String]?,
|
|
9
|
+
def retrieve_status: (
|
|
10
|
+
String id,
|
|
19
11
|
?request_options: Sentdm::request_opts
|
|
20
|
-
) ->
|
|
12
|
+
) -> Sentdm::Models::MessageRetrieveStatusResponse
|
|
21
13
|
|
|
22
|
-
def
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
?
|
|
14
|
+
def send_: (
|
|
15
|
+
?channel: ::Array[String]?,
|
|
16
|
+
?template: Sentdm::MessageSendParams::Template,
|
|
17
|
+
?test_mode: bool,
|
|
18
|
+
?to: ::Array[String],
|
|
19
|
+
?idempotency_key: String,
|
|
26
20
|
?request_options: Sentdm::request_opts
|
|
27
|
-
) ->
|
|
21
|
+
) -> Sentdm::Models::MessageSendResponse
|
|
28
22
|
|
|
29
23
|
def initialize: (client: Sentdm::Client) -> void
|
|
30
24
|
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Resources
|
|
3
|
+
class Profiles
|
|
4
|
+
def create: (
|
|
5
|
+
?allow_contact_sharing: bool,
|
|
6
|
+
?allow_template_sharing: bool,
|
|
7
|
+
?billing_model: String?,
|
|
8
|
+
?description: String?,
|
|
9
|
+
?icon: String?,
|
|
10
|
+
?inherit_contacts: bool?,
|
|
11
|
+
?inherit_tcr_brand: bool?,
|
|
12
|
+
?inherit_tcr_campaign: bool?,
|
|
13
|
+
?inherit_templates: bool?,
|
|
14
|
+
?name: String,
|
|
15
|
+
?short_name: String?,
|
|
16
|
+
?test_mode: bool,
|
|
17
|
+
?idempotency_key: String,
|
|
18
|
+
?request_options: Sentdm::request_opts
|
|
19
|
+
) -> Sentdm::APIResponseOfProfileDetail
|
|
20
|
+
|
|
21
|
+
def retrieve: (
|
|
22
|
+
String profile_id,
|
|
23
|
+
?request_options: Sentdm::request_opts
|
|
24
|
+
) -> Sentdm::APIResponseOfProfileDetail
|
|
25
|
+
|
|
26
|
+
def update: (
|
|
27
|
+
String path_profile_id,
|
|
28
|
+
?allow_contact_sharing: bool?,
|
|
29
|
+
?allow_number_change_during_onboarding: bool?,
|
|
30
|
+
?allow_template_sharing: bool?,
|
|
31
|
+
?billing_model: String?,
|
|
32
|
+
?description: String?,
|
|
33
|
+
?icon: String?,
|
|
34
|
+
?inherit_contacts: bool?,
|
|
35
|
+
?inherit_tcr_brand: bool?,
|
|
36
|
+
?inherit_tcr_campaign: bool?,
|
|
37
|
+
?inherit_templates: bool?,
|
|
38
|
+
?name: String?,
|
|
39
|
+
?body_profile_id: String,
|
|
40
|
+
?sending_phone_number: String?,
|
|
41
|
+
?sending_phone_number_profile_id: String?,
|
|
42
|
+
?sending_whatsapp_number_profile_id: String?,
|
|
43
|
+
?short_name: String?,
|
|
44
|
+
?test_mode: bool,
|
|
45
|
+
?whatsapp_phone_number: String?,
|
|
46
|
+
?idempotency_key: String,
|
|
47
|
+
?request_options: Sentdm::request_opts
|
|
48
|
+
) -> Sentdm::APIResponseOfProfileDetail
|
|
49
|
+
|
|
50
|
+
def list: (
|
|
51
|
+
?request_options: Sentdm::request_opts
|
|
52
|
+
) -> Sentdm::Models::ProfileListResponse
|
|
53
|
+
|
|
54
|
+
def delete: (
|
|
55
|
+
String path_profile_id,
|
|
56
|
+
?body_profile_id: String,
|
|
57
|
+
?test_mode: bool,
|
|
58
|
+
?request_options: Sentdm::request_opts
|
|
59
|
+
) -> nil
|
|
60
|
+
|
|
61
|
+
def complete: (
|
|
62
|
+
String profile_id,
|
|
63
|
+
web_hook_url: String,
|
|
64
|
+
?test_mode: bool,
|
|
65
|
+
?idempotency_key: String,
|
|
66
|
+
?request_options: Sentdm::request_opts
|
|
67
|
+
) -> top
|
|
68
|
+
|
|
69
|
+
def initialize: (client: Sentdm::Client) -> void
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -2,17 +2,32 @@ module Sentdm
|
|
|
2
2
|
module Resources
|
|
3
3
|
class Templates
|
|
4
4
|
def create: (
|
|
5
|
-
definition: Sentdm::TemplateDefinition,
|
|
6
5
|
?category: String?,
|
|
6
|
+
?creation_source: String?,
|
|
7
|
+
?definition: Sentdm::TemplateDefinition,
|
|
7
8
|
?language: String?,
|
|
8
9
|
?submit_for_review: bool,
|
|
10
|
+
?test_mode: bool,
|
|
11
|
+
?idempotency_key: String,
|
|
9
12
|
?request_options: Sentdm::request_opts
|
|
10
|
-
) -> Sentdm::
|
|
13
|
+
) -> Sentdm::APIResponseTemplate
|
|
11
14
|
|
|
12
15
|
def retrieve: (
|
|
13
16
|
String id,
|
|
14
17
|
?request_options: Sentdm::request_opts
|
|
15
|
-
) -> Sentdm::
|
|
18
|
+
) -> Sentdm::APIResponseTemplate
|
|
19
|
+
|
|
20
|
+
def update: (
|
|
21
|
+
String id,
|
|
22
|
+
?category: String?,
|
|
23
|
+
?definition: Sentdm::TemplateDefinition?,
|
|
24
|
+
?language: String?,
|
|
25
|
+
?name: String?,
|
|
26
|
+
?submit_for_review: bool,
|
|
27
|
+
?test_mode: bool,
|
|
28
|
+
?idempotency_key: String,
|
|
29
|
+
?request_options: Sentdm::request_opts
|
|
30
|
+
) -> Sentdm::APIResponseTemplate
|
|
16
31
|
|
|
17
32
|
def list: (
|
|
18
33
|
page: Integer,
|
|
@@ -23,7 +38,12 @@ module Sentdm
|
|
|
23
38
|
?request_options: Sentdm::request_opts
|
|
24
39
|
) -> Sentdm::Models::TemplateListResponse
|
|
25
40
|
|
|
26
|
-
def delete: (
|
|
41
|
+
def delete: (
|
|
42
|
+
String id,
|
|
43
|
+
?delete_from_meta: bool?,
|
|
44
|
+
?test_mode: bool,
|
|
45
|
+
?request_options: Sentdm::request_opts
|
|
46
|
+
) -> nil
|
|
27
47
|
|
|
28
48
|
def initialize: (client: Sentdm::Client) -> void
|
|
29
49
|
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Resources
|
|
3
|
+
class Users
|
|
4
|
+
def retrieve: (
|
|
5
|
+
String user_id,
|
|
6
|
+
?request_options: Sentdm::request_opts
|
|
7
|
+
) -> Sentdm::APIResponseOfUser
|
|
8
|
+
|
|
9
|
+
def list: (
|
|
10
|
+
?request_options: Sentdm::request_opts
|
|
11
|
+
) -> Sentdm::Models::UserListResponse
|
|
12
|
+
|
|
13
|
+
def invite: (
|
|
14
|
+
?email: String,
|
|
15
|
+
?name: String,
|
|
16
|
+
?role: String,
|
|
17
|
+
?test_mode: bool,
|
|
18
|
+
?idempotency_key: String,
|
|
19
|
+
?request_options: Sentdm::request_opts
|
|
20
|
+
) -> Sentdm::APIResponseOfUser
|
|
21
|
+
|
|
22
|
+
def remove: (
|
|
23
|
+
String path_user_id,
|
|
24
|
+
?test_mode: bool,
|
|
25
|
+
?body_user_id: String,
|
|
26
|
+
?request_options: Sentdm::request_opts
|
|
27
|
+
) -> nil
|
|
28
|
+
|
|
29
|
+
def update_role: (
|
|
30
|
+
String path_user_id,
|
|
31
|
+
?role: String,
|
|
32
|
+
?test_mode: bool,
|
|
33
|
+
?body_user_id: String,
|
|
34
|
+
?idempotency_key: String,
|
|
35
|
+
?request_options: Sentdm::request_opts
|
|
36
|
+
) -> Sentdm::APIResponseOfUser
|
|
37
|
+
|
|
38
|
+
def initialize: (client: Sentdm::Client) -> void
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|