sentdm 0.18.0 → 0.19.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 +13 -0
- data/README.md +1 -31
- data/lib/sentdm/internal/transport/base_client.rb +2 -0
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +0 -25
- data/lib/sentdm/models/contact_create_response.rb +236 -0
- data/lib/sentdm/models/contact_delete_params.rb +16 -2
- data/lib/sentdm/models/contact_list_response.rb +278 -12
- data/lib/sentdm/models/contact_retrieve_response.rb +236 -0
- data/lib/sentdm/models/contact_update_params.rb +4 -16
- data/lib/sentdm/models/contact_update_response.rb +236 -0
- data/lib/sentdm/models/me_retrieve_response.rb +204 -12
- data/lib/sentdm/models/message_retrieve_activities_response.rb +74 -6
- data/lib/sentdm/models/message_retrieve_status_response.rb +87 -7
- data/lib/sentdm/models/message_send_params.rb +2 -2
- data/lib/sentdm/models/message_send_response.rb +74 -6
- data/lib/sentdm/models/number_lookup_response.rb +74 -6
- data/lib/sentdm/models/profile_complete_response.rb +74 -6
- data/lib/sentdm/models/profile_create_params.rb +423 -9
- data/lib/sentdm/models/profile_create_response.rb +781 -0
- data/lib/sentdm/models/profile_delete_params.rb +16 -2
- data/lib/sentdm/models/profile_list_response.rb +753 -9
- data/lib/sentdm/models/profile_retrieve_response.rb +783 -0
- data/lib/sentdm/models/profile_update_params.rb +423 -9
- data/lib/sentdm/models/profile_update_response.rb +781 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +165 -3
- data/lib/sentdm/models/profiles/campaign_create_response.rb +459 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +17 -2
- data/lib/sentdm/models/profiles/campaign_list_response.rb +420 -9
- data/lib/sentdm/models/profiles/campaign_update_params.rb +165 -3
- data/lib/sentdm/models/profiles/campaign_update_response.rb +459 -0
- data/lib/sentdm/models/template_create_params.rb +889 -3
- data/lib/sentdm/models/template_create_response.rb +197 -0
- data/lib/sentdm/models/template_list_response.rb +242 -12
- data/lib/sentdm/models/template_retrieve_response.rb +197 -0
- data/lib/sentdm/models/template_update_params.rb +889 -3
- data/lib/sentdm/models/template_update_response.rb +197 -0
- data/lib/sentdm/models/user_invite_response.rb +189 -0
- data/lib/sentdm/models/user_list_response.rb +154 -9
- data/lib/sentdm/models/user_remove_params.rb +16 -2
- data/lib/sentdm/models/user_retrieve_response.rb +189 -0
- data/lib/sentdm/models/user_update_role_response.rb +189 -0
- data/lib/sentdm/models/webhook_create_response.rb +204 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +118 -9
- data/lib/sentdm/models/webhook_list_events_response.rb +153 -9
- data/lib/sentdm/models/webhook_list_response.rb +247 -12
- data/lib/sentdm/models/webhook_retrieve_response.rb +204 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +17 -2
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +74 -6
- data/lib/sentdm/models/webhook_test_response.rb +74 -6
- data/lib/sentdm/models/webhook_toggle_status_response.rb +204 -0
- data/lib/sentdm/models/webhook_update_response.rb +204 -0
- data/lib/sentdm/models.rb +0 -77
- data/lib/sentdm/resources/contacts.rb +8 -10
- data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +8 -8
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +8 -8
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +18 -40
- data/rbi/sentdm/models/contact_create_response.rbi +390 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +19 -2
- data/rbi/sentdm/models/contact_list_response.rbi +505 -16
- data/rbi/sentdm/models/contact_retrieve_response.rbi +392 -0
- data/rbi/sentdm/models/contact_update_params.rbi +4 -20
- data/rbi/sentdm/models/contact_update_response.rbi +390 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +335 -16
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +154 -8
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +171 -11
- data/rbi/sentdm/models/message_send_params.rbi +4 -4
- data/rbi/sentdm/models/message_send_response.rbi +135 -8
- data/rbi/sentdm/models/number_lookup_response.rbi +135 -8
- data/rbi/sentdm/models/profile_complete_response.rbi +137 -8
- data/rbi/sentdm/models/profile_create_params.rbi +810 -12
- data/rbi/sentdm/models/profile_create_response.rbi +1439 -0
- data/rbi/sentdm/models/profile_delete_params.rbi +19 -2
- data/rbi/sentdm/models/profile_list_response.rbi +1400 -14
- data/rbi/sentdm/models/profile_retrieve_response.rbi +1443 -0
- data/rbi/sentdm/models/profile_update_params.rbi +810 -12
- data/rbi/sentdm/models/profile_update_response.rbi +1439 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +289 -4
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +814 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +14 -1
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +733 -11
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +289 -4
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +814 -0
- data/rbi/sentdm/models/template_create_params.rbi +1701 -4
- data/rbi/sentdm/models/template_create_response.rbi +339 -0
- data/rbi/sentdm/models/template_list_response.rbi +454 -16
- data/rbi/sentdm/models/template_retrieve_response.rbi +345 -0
- data/rbi/sentdm/models/template_update_params.rbi +1701 -4
- data/rbi/sentdm/models/template_update_response.rbi +339 -0
- data/rbi/sentdm/models/user_invite_response.rbi +323 -0
- data/rbi/sentdm/models/user_list_response.rbi +271 -14
- data/rbi/sentdm/models/user_remove_params.rbi +19 -2
- data/rbi/sentdm/models/user_retrieve_response.rbi +323 -0
- data/rbi/sentdm/models/user_update_role_response.rbi +328 -0
- data/rbi/sentdm/models/webhook_create_response.rbi +348 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +247 -12
- data/rbi/sentdm/models/webhook_list_events_response.rbi +314 -12
- data/rbi/sentdm/models/webhook_list_response.rbi +462 -16
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +350 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +14 -1
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +148 -8
- data/rbi/sentdm/models/webhook_test_response.rbi +135 -8
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +366 -0
- data/rbi/sentdm/models/webhook_update_response.rbi +348 -0
- data/rbi/sentdm/models.rbi +0 -77
- data/rbi/sentdm/resources/contacts.rbi +5 -12
- data/rbi/sentdm/resources/messages.rbi +2 -2
- data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
- data/rbi/sentdm/resources/profiles.rbi +13 -9
- data/rbi/sentdm/resources/templates.rbi +6 -5
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/contact_create_response.rbs +209 -0
- data/sig/sentdm/models/contact_delete_params.rbs +10 -6
- data/sig/sentdm/models/contact_list_response.rbs +256 -20
- data/sig/sentdm/models/contact_retrieve_response.rbs +209 -0
- data/sig/sentdm/models/contact_update_params.rbs +0 -5
- data/sig/sentdm/models/contact_update_response.rbs +209 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +176 -18
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +71 -9
- data/sig/sentdm/models/message_retrieve_status_response.rbs +95 -13
- data/sig/sentdm/models/message_send_response.rbs +71 -9
- data/sig/sentdm/models/number_lookup_response.rbs +71 -9
- data/sig/sentdm/models/profile_complete_response.rbs +71 -9
- data/sig/sentdm/models/profile_create_params.rbs +363 -12
- data/sig/sentdm/models/profile_create_response.rbs +662 -0
- data/sig/sentdm/models/profile_delete_params.rbs +10 -6
- data/sig/sentdm/models/profile_list_response.rbs +645 -15
- data/sig/sentdm/models/profile_retrieve_response.rbs +662 -0
- data/sig/sentdm/models/profile_update_params.rbs +363 -12
- data/sig/sentdm/models/profile_update_response.rbs +662 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +138 -4
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +424 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +15 -8
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +396 -13
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +138 -4
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +424 -0
- data/sig/sentdm/models/template_create_params.rbs +853 -6
- data/sig/sentdm/models/template_create_response.rbs +177 -0
- data/sig/sentdm/models/template_list_response.rbs +225 -19
- data/sig/sentdm/models/template_retrieve_response.rbs +177 -0
- data/sig/sentdm/models/template_update_params.rbs +851 -4
- data/sig/sentdm/models/template_update_response.rbs +177 -0
- data/sig/sentdm/models/user_invite_response.rbs +170 -0
- data/sig/sentdm/models/user_list_response.rbs +151 -15
- data/sig/sentdm/models/user_remove_params.rbs +10 -6
- data/sig/sentdm/models/user_retrieve_response.rbs +170 -0
- data/sig/sentdm/models/user_update_role_response.rbs +170 -0
- data/sig/sentdm/models/webhook_create_response.rbs +201 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +130 -15
- data/sig/sentdm/models/webhook_list_events_response.rbs +142 -14
- data/sig/sentdm/models/webhook_list_response.rbs +248 -20
- data/sig/sentdm/models/webhook_retrieve_response.rbs +201 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +17 -8
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +71 -9
- data/sig/sentdm/models/webhook_test_response.rbs +71 -9
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +201 -0
- data/sig/sentdm/models/webhook_update_response.rbs +201 -0
- data/sig/sentdm/models.rbs +0 -68
- data/sig/sentdm/resources/contacts.rbs +3 -4
- data/sig/sentdm/resources/profiles/campaigns.rbs +4 -4
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +5 -5
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +56 -122
- data/lib/sentdm/models/api_meta.rb +0 -34
- data/lib/sentdm/models/api_response_of_contact.rb +0 -46
- data/lib/sentdm/models/api_response_of_profile_detail.rb +0 -43
- data/lib/sentdm/models/api_response_of_user.rb +0 -43
- data/lib/sentdm/models/api_response_template.rb +0 -43
- data/lib/sentdm/models/api_response_webhook.rb +0 -43
- data/lib/sentdm/models/billing_contact_info.rb +0 -47
- data/lib/sentdm/models/brands_brand_data.rb +0 -38
- data/lib/sentdm/models/contact_response.rb +0 -136
- data/lib/sentdm/models/destination_country.rb +0 -21
- data/lib/sentdm/models/error_detail.rb +0 -42
- data/lib/sentdm/models/mutation_request.rb +0 -20
- data/lib/sentdm/models/pagination_meta.rb +0 -80
- data/lib/sentdm/models/payment_details.rb +0 -44
- data/lib/sentdm/models/profile_detail.rb +0 -605
- data/lib/sentdm/models/profile_settings.rb +0 -66
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +0 -45
- data/lib/sentdm/models/profiles/base_dto.rb +0 -32
- data/lib/sentdm/models/profiles/campaign_data.rb +0 -123
- data/lib/sentdm/models/profiles/messaging_use_case_us.rb +0 -28
- data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -29
- data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +0 -236
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +0 -116
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +0 -75
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +0 -58
- data/lib/sentdm/models/tcr_brand_relationship.rb +0 -18
- data/lib/sentdm/models/tcr_vertical.rb +0 -36
- data/lib/sentdm/models/template.rb +0 -90
- data/lib/sentdm/models/template_body_content.rb +0 -27
- data/lib/sentdm/models/template_definition.rb +0 -66
- data/lib/sentdm/models/template_variable.rb +0 -80
- data/lib/sentdm/models/user_response.rb +0 -82
- data/lib/sentdm/models/webhook_event_type.rb +0 -45
- data/lib/sentdm/models/webhook_response.rb +0 -95
- data/rbi/sentdm/models/api_meta.rbi +0 -55
- data/rbi/sentdm/models/api_response_of_contact.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_user.rbi +0 -74
- data/rbi/sentdm/models/api_response_template.rbi +0 -74
- data/rbi/sentdm/models/api_response_webhook.rbi +0 -74
- data/rbi/sentdm/models/billing_contact_info.rbi +0 -65
- data/rbi/sentdm/models/brands_brand_data.rbi +0 -104
- data/rbi/sentdm/models/contact_response.rbi +0 -195
- data/rbi/sentdm/models/destination_country.rbi +0 -32
- data/rbi/sentdm/models/error_detail.rbi +0 -66
- data/rbi/sentdm/models/mutation_request.rbi +0 -32
- data/rbi/sentdm/models/pagination_meta.rbi +0 -135
- data/rbi/sentdm/models/payment_details.rbi +0 -59
- data/rbi/sentdm/models/profile_detail.rbi +0 -874
- data/rbi/sentdm/models/profile_settings.rbi +0 -86
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +0 -83
- data/rbi/sentdm/models/profiles/base_dto.rbi +0 -53
- data/rbi/sentdm/models/profiles/campaign_data.rbi +0 -148
- data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +0 -73
- data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -51
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +0 -410
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -72
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -57
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -59
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +0 -180
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +0 -95
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +0 -81
- data/rbi/sentdm/models/tcr_brand_relationship.rbi +0 -30
- data/rbi/sentdm/models/tcr_vertical.rbi +0 -41
- data/rbi/sentdm/models/template.rbi +0 -129
- data/rbi/sentdm/models/template_body_content.rbi +0 -43
- data/rbi/sentdm/models/template_definition.rbi +0 -164
- data/rbi/sentdm/models/template_variable.rbi +0 -120
- data/rbi/sentdm/models/user_response.rbi +0 -118
- data/rbi/sentdm/models/webhook_event_type.rbi +0 -74
- data/rbi/sentdm/models/webhook_response.rbi +0 -140
- data/sig/sentdm/models/api_meta.rbs +0 -27
- data/sig/sentdm/models/api_response_of_contact.rbs +0 -39
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +0 -39
- data/sig/sentdm/models/api_response_of_user.rbs +0 -39
- data/sig/sentdm/models/api_response_template.rbs +0 -39
- data/sig/sentdm/models/api_response_webhook.rbs +0 -39
- data/sig/sentdm/models/billing_contact_info.rbs +0 -30
- data/sig/sentdm/models/brands_brand_data.rbs +0 -30
- data/sig/sentdm/models/contact_response.rbs +0 -116
- data/sig/sentdm/models/destination_country.rbs +0 -19
- data/sig/sentdm/models/error_detail.rbs +0 -39
- data/sig/sentdm/models/mutation_request.rbs +0 -15
- data/sig/sentdm/models/pagination_meta.rbs +0 -67
- data/sig/sentdm/models/payment_details.rbs +0 -30
- data/sig/sentdm/models/profile_detail.rbs +0 -474
- data/sig/sentdm/models/profile_settings.rbs +0 -50
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +0 -41
- data/sig/sentdm/models/profiles/base_dto.rbs +0 -27
- data/sig/sentdm/models/profiles/campaign_data.rbs +0 -82
- data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +0 -40
- data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +0 -285
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -32
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +0 -89
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +0 -55
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +0 -45
- data/sig/sentdm/models/tcr_brand_relationship.rbs +0 -22
- data/sig/sentdm/models/tcr_vertical.rbs +0 -58
- data/sig/sentdm/models/template.rbs +0 -79
- data/sig/sentdm/models/template_body_content.rbs +0 -30
- data/sig/sentdm/models/template_definition.rbs +0 -45
- data/sig/sentdm/models/template_variable.rbs +0 -84
- data/sig/sentdm/models/user_response.rbs +0 -72
- data/sig/sentdm/models/webhook_event_type.rbs +0 -51
- data/sig/sentdm/models/webhook_response.rbs +0 -103
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class WebhookUpdateResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Sentdm::Models::WebhookUpdateResponse,
|
|
10
|
+
Sentdm::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The response data (null if error)
|
|
15
|
+
sig { returns(T.nilable(Sentdm::Models::WebhookUpdateResponse::Data)) }
|
|
16
|
+
attr_reader :data
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
data: T.nilable(Sentdm::Models::WebhookUpdateResponse::Data::OrHash)
|
|
21
|
+
).void
|
|
22
|
+
end
|
|
23
|
+
attr_writer :data
|
|
24
|
+
|
|
25
|
+
# Error information
|
|
26
|
+
sig { returns(T.nilable(Sentdm::Models::WebhookUpdateResponse::Error)) }
|
|
27
|
+
attr_reader :error
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
error: T.nilable(Sentdm::Models::WebhookUpdateResponse::Error::OrHash)
|
|
32
|
+
).void
|
|
33
|
+
end
|
|
34
|
+
attr_writer :error
|
|
35
|
+
|
|
36
|
+
# Request and response metadata
|
|
37
|
+
sig { returns(T.nilable(Sentdm::Models::WebhookUpdateResponse::Meta)) }
|
|
38
|
+
attr_reader :meta
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(meta: Sentdm::Models::WebhookUpdateResponse::Meta::OrHash).void
|
|
42
|
+
end
|
|
43
|
+
attr_writer :meta
|
|
44
|
+
|
|
45
|
+
# Indicates whether the request was successful
|
|
46
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
47
|
+
attr_reader :success
|
|
48
|
+
|
|
49
|
+
sig { params(success: T::Boolean).void }
|
|
50
|
+
attr_writer :success
|
|
51
|
+
|
|
52
|
+
# Standard API response envelope for all v3 endpoints
|
|
53
|
+
sig do
|
|
54
|
+
params(
|
|
55
|
+
data: T.nilable(Sentdm::Models::WebhookUpdateResponse::Data::OrHash),
|
|
56
|
+
error:
|
|
57
|
+
T.nilable(Sentdm::Models::WebhookUpdateResponse::Error::OrHash),
|
|
58
|
+
meta: Sentdm::Models::WebhookUpdateResponse::Meta::OrHash,
|
|
59
|
+
success: T::Boolean
|
|
60
|
+
).returns(T.attached_class)
|
|
61
|
+
end
|
|
62
|
+
def self.new(
|
|
63
|
+
# The response data (null if error)
|
|
64
|
+
data: nil,
|
|
65
|
+
# Error information
|
|
66
|
+
error: nil,
|
|
67
|
+
# Request and response metadata
|
|
68
|
+
meta: nil,
|
|
69
|
+
# Indicates whether the request was successful
|
|
70
|
+
success: nil
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
override.returns(
|
|
76
|
+
{
|
|
77
|
+
data: T.nilable(Sentdm::Models::WebhookUpdateResponse::Data),
|
|
78
|
+
error: T.nilable(Sentdm::Models::WebhookUpdateResponse::Error),
|
|
79
|
+
meta: Sentdm::Models::WebhookUpdateResponse::Meta,
|
|
80
|
+
success: T::Boolean
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
|
+
def to_hash
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
class Data < Sentdm::Internal::Type::BaseModel
|
|
88
|
+
OrHash =
|
|
89
|
+
T.type_alias do
|
|
90
|
+
T.any(
|
|
91
|
+
Sentdm::Models::WebhookUpdateResponse::Data,
|
|
92
|
+
Sentdm::Internal::AnyHash
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
sig { returns(T.nilable(String)) }
|
|
97
|
+
attr_reader :id
|
|
98
|
+
|
|
99
|
+
sig { params(id: String).void }
|
|
100
|
+
attr_writer :id
|
|
101
|
+
|
|
102
|
+
sig { returns(T.nilable(Integer)) }
|
|
103
|
+
attr_reader :consecutive_failures
|
|
104
|
+
|
|
105
|
+
sig { params(consecutive_failures: Integer).void }
|
|
106
|
+
attr_writer :consecutive_failures
|
|
107
|
+
|
|
108
|
+
sig { returns(T.nilable(Time)) }
|
|
109
|
+
attr_reader :created_at
|
|
110
|
+
|
|
111
|
+
sig { params(created_at: Time).void }
|
|
112
|
+
attr_writer :created_at
|
|
113
|
+
|
|
114
|
+
sig { returns(T.nilable(String)) }
|
|
115
|
+
attr_reader :display_name
|
|
116
|
+
|
|
117
|
+
sig { params(display_name: String).void }
|
|
118
|
+
attr_writer :display_name
|
|
119
|
+
|
|
120
|
+
sig { returns(T.nilable(String)) }
|
|
121
|
+
attr_reader :endpoint_url
|
|
122
|
+
|
|
123
|
+
sig { params(endpoint_url: String).void }
|
|
124
|
+
attr_writer :endpoint_url
|
|
125
|
+
|
|
126
|
+
sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
|
|
127
|
+
attr_accessor :event_filters
|
|
128
|
+
|
|
129
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
130
|
+
attr_reader :event_types
|
|
131
|
+
|
|
132
|
+
sig { params(event_types: T::Array[String]).void }
|
|
133
|
+
attr_writer :event_types
|
|
134
|
+
|
|
135
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
136
|
+
attr_reader :is_active
|
|
137
|
+
|
|
138
|
+
sig { params(is_active: T::Boolean).void }
|
|
139
|
+
attr_writer :is_active
|
|
140
|
+
|
|
141
|
+
sig { returns(T.nilable(Time)) }
|
|
142
|
+
attr_accessor :last_delivery_attempt_at
|
|
143
|
+
|
|
144
|
+
sig { returns(T.nilable(Time)) }
|
|
145
|
+
attr_accessor :last_successful_delivery_at
|
|
146
|
+
|
|
147
|
+
sig { returns(T.nilable(Integer)) }
|
|
148
|
+
attr_reader :retry_count
|
|
149
|
+
|
|
150
|
+
sig { params(retry_count: Integer).void }
|
|
151
|
+
attr_writer :retry_count
|
|
152
|
+
|
|
153
|
+
sig { returns(T.nilable(String)) }
|
|
154
|
+
attr_accessor :signing_secret
|
|
155
|
+
|
|
156
|
+
sig { returns(T.nilable(Integer)) }
|
|
157
|
+
attr_reader :timeout_seconds
|
|
158
|
+
|
|
159
|
+
sig { params(timeout_seconds: Integer).void }
|
|
160
|
+
attr_writer :timeout_seconds
|
|
161
|
+
|
|
162
|
+
sig { returns(T.nilable(Time)) }
|
|
163
|
+
attr_accessor :updated_at
|
|
164
|
+
|
|
165
|
+
# The response data (null if error)
|
|
166
|
+
sig do
|
|
167
|
+
params(
|
|
168
|
+
id: String,
|
|
169
|
+
consecutive_failures: Integer,
|
|
170
|
+
created_at: Time,
|
|
171
|
+
display_name: String,
|
|
172
|
+
endpoint_url: String,
|
|
173
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
174
|
+
event_types: T::Array[String],
|
|
175
|
+
is_active: T::Boolean,
|
|
176
|
+
last_delivery_attempt_at: T.nilable(Time),
|
|
177
|
+
last_successful_delivery_at: T.nilable(Time),
|
|
178
|
+
retry_count: Integer,
|
|
179
|
+
signing_secret: T.nilable(String),
|
|
180
|
+
timeout_seconds: Integer,
|
|
181
|
+
updated_at: T.nilable(Time)
|
|
182
|
+
).returns(T.attached_class)
|
|
183
|
+
end
|
|
184
|
+
def self.new(
|
|
185
|
+
id: nil,
|
|
186
|
+
consecutive_failures: nil,
|
|
187
|
+
created_at: nil,
|
|
188
|
+
display_name: nil,
|
|
189
|
+
endpoint_url: nil,
|
|
190
|
+
event_filters: nil,
|
|
191
|
+
event_types: nil,
|
|
192
|
+
is_active: nil,
|
|
193
|
+
last_delivery_attempt_at: nil,
|
|
194
|
+
last_successful_delivery_at: nil,
|
|
195
|
+
retry_count: nil,
|
|
196
|
+
signing_secret: nil,
|
|
197
|
+
timeout_seconds: nil,
|
|
198
|
+
updated_at: nil
|
|
199
|
+
)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
sig do
|
|
203
|
+
override.returns(
|
|
204
|
+
{
|
|
205
|
+
id: String,
|
|
206
|
+
consecutive_failures: Integer,
|
|
207
|
+
created_at: Time,
|
|
208
|
+
display_name: String,
|
|
209
|
+
endpoint_url: String,
|
|
210
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
211
|
+
event_types: T::Array[String],
|
|
212
|
+
is_active: T::Boolean,
|
|
213
|
+
last_delivery_attempt_at: T.nilable(Time),
|
|
214
|
+
last_successful_delivery_at: T.nilable(Time),
|
|
215
|
+
retry_count: Integer,
|
|
216
|
+
signing_secret: T.nilable(String),
|
|
217
|
+
timeout_seconds: Integer,
|
|
218
|
+
updated_at: T.nilable(Time)
|
|
219
|
+
}
|
|
220
|
+
)
|
|
221
|
+
end
|
|
222
|
+
def to_hash
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
class Error < Sentdm::Internal::Type::BaseModel
|
|
227
|
+
OrHash =
|
|
228
|
+
T.type_alias do
|
|
229
|
+
T.any(
|
|
230
|
+
Sentdm::Models::WebhookUpdateResponse::Error,
|
|
231
|
+
Sentdm::Internal::AnyHash
|
|
232
|
+
)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
236
|
+
sig { returns(T.nilable(String)) }
|
|
237
|
+
attr_reader :code
|
|
238
|
+
|
|
239
|
+
sig { params(code: String).void }
|
|
240
|
+
attr_writer :code
|
|
241
|
+
|
|
242
|
+
# Additional validation error details (field-level errors)
|
|
243
|
+
sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
|
|
244
|
+
attr_accessor :details
|
|
245
|
+
|
|
246
|
+
# URL to documentation about this error
|
|
247
|
+
sig { returns(T.nilable(String)) }
|
|
248
|
+
attr_accessor :doc_url
|
|
249
|
+
|
|
250
|
+
# Human-readable error message
|
|
251
|
+
sig { returns(T.nilable(String)) }
|
|
252
|
+
attr_reader :message
|
|
253
|
+
|
|
254
|
+
sig { params(message: String).void }
|
|
255
|
+
attr_writer :message
|
|
256
|
+
|
|
257
|
+
# Error information
|
|
258
|
+
sig do
|
|
259
|
+
params(
|
|
260
|
+
code: String,
|
|
261
|
+
details: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
262
|
+
doc_url: T.nilable(String),
|
|
263
|
+
message: String
|
|
264
|
+
).returns(T.attached_class)
|
|
265
|
+
end
|
|
266
|
+
def self.new(
|
|
267
|
+
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
268
|
+
code: nil,
|
|
269
|
+
# Additional validation error details (field-level errors)
|
|
270
|
+
details: nil,
|
|
271
|
+
# URL to documentation about this error
|
|
272
|
+
doc_url: nil,
|
|
273
|
+
# Human-readable error message
|
|
274
|
+
message: nil
|
|
275
|
+
)
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
sig do
|
|
279
|
+
override.returns(
|
|
280
|
+
{
|
|
281
|
+
code: String,
|
|
282
|
+
details: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
283
|
+
doc_url: T.nilable(String),
|
|
284
|
+
message: String
|
|
285
|
+
}
|
|
286
|
+
)
|
|
287
|
+
end
|
|
288
|
+
def to_hash
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
class Meta < Sentdm::Internal::Type::BaseModel
|
|
293
|
+
OrHash =
|
|
294
|
+
T.type_alias do
|
|
295
|
+
T.any(
|
|
296
|
+
Sentdm::Models::WebhookUpdateResponse::Meta,
|
|
297
|
+
Sentdm::Internal::AnyHash
|
|
298
|
+
)
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# Unique identifier for this request (for tracing and support)
|
|
302
|
+
sig { returns(T.nilable(String)) }
|
|
303
|
+
attr_reader :request_id
|
|
304
|
+
|
|
305
|
+
sig { params(request_id: String).void }
|
|
306
|
+
attr_writer :request_id
|
|
307
|
+
|
|
308
|
+
# Server timestamp when the response was generated
|
|
309
|
+
sig { returns(T.nilable(Time)) }
|
|
310
|
+
attr_reader :timestamp
|
|
311
|
+
|
|
312
|
+
sig { params(timestamp: Time).void }
|
|
313
|
+
attr_writer :timestamp
|
|
314
|
+
|
|
315
|
+
# API version used for this request
|
|
316
|
+
sig { returns(T.nilable(String)) }
|
|
317
|
+
attr_reader :version
|
|
318
|
+
|
|
319
|
+
sig { params(version: String).void }
|
|
320
|
+
attr_writer :version
|
|
321
|
+
|
|
322
|
+
# Request and response metadata
|
|
323
|
+
sig do
|
|
324
|
+
params(request_id: String, timestamp: Time, version: String).returns(
|
|
325
|
+
T.attached_class
|
|
326
|
+
)
|
|
327
|
+
end
|
|
328
|
+
def self.new(
|
|
329
|
+
# Unique identifier for this request (for tracing and support)
|
|
330
|
+
request_id: nil,
|
|
331
|
+
# Server timestamp when the response was generated
|
|
332
|
+
timestamp: nil,
|
|
333
|
+
# API version used for this request
|
|
334
|
+
version: nil
|
|
335
|
+
)
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
sig do
|
|
339
|
+
override.returns(
|
|
340
|
+
{ request_id: String, timestamp: Time, version: String }
|
|
341
|
+
)
|
|
342
|
+
end
|
|
343
|
+
def to_hash
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
end
|
data/rbi/sentdm/models.rbi
CHANGED
|
@@ -1,38 +1,16 @@
|
|
|
1
1
|
# typed: strong
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
|
-
APIMeta = Sentdm::Models::APIMeta
|
|
5
|
-
|
|
6
|
-
APIResponseOfContact = Sentdm::Models::APIResponseOfContact
|
|
7
|
-
|
|
8
|
-
APIResponseOfProfileDetail = Sentdm::Models::APIResponseOfProfileDetail
|
|
9
|
-
|
|
10
|
-
APIResponseOfUser = Sentdm::Models::APIResponseOfUser
|
|
11
|
-
|
|
12
|
-
APIResponseTemplate = Sentdm::Models::APIResponseTemplate
|
|
13
|
-
|
|
14
|
-
APIResponseWebhook = Sentdm::Models::APIResponseWebhook
|
|
15
|
-
|
|
16
|
-
BillingContactInfo = Sentdm::Models::BillingContactInfo
|
|
17
|
-
|
|
18
|
-
BrandsBrandData = Sentdm::Models::BrandsBrandData
|
|
19
|
-
|
|
20
4
|
ContactCreateParams = Sentdm::Models::ContactCreateParams
|
|
21
5
|
|
|
22
6
|
ContactDeleteParams = Sentdm::Models::ContactDeleteParams
|
|
23
7
|
|
|
24
8
|
ContactListParams = Sentdm::Models::ContactListParams
|
|
25
9
|
|
|
26
|
-
ContactResponse = Sentdm::Models::ContactResponse
|
|
27
|
-
|
|
28
10
|
ContactRetrieveParams = Sentdm::Models::ContactRetrieveParams
|
|
29
11
|
|
|
30
12
|
ContactUpdateParams = Sentdm::Models::ContactUpdateParams
|
|
31
13
|
|
|
32
|
-
DestinationCountry = Sentdm::Models::DestinationCountry
|
|
33
|
-
|
|
34
|
-
ErrorDetail = Sentdm::Models::ErrorDetail
|
|
35
|
-
|
|
36
14
|
MeRetrieveParams = Sentdm::Models::MeRetrieveParams
|
|
37
15
|
|
|
38
16
|
MessageRetrieveActivitiesParams =
|
|
@@ -42,71 +20,24 @@ module Sentdm
|
|
|
42
20
|
|
|
43
21
|
MessageSendParams = Sentdm::Models::MessageSendParams
|
|
44
22
|
|
|
45
|
-
MutationRequest = Sentdm::Models::MutationRequest
|
|
46
|
-
|
|
47
23
|
NumberLookupParams = Sentdm::Models::NumberLookupParams
|
|
48
24
|
|
|
49
|
-
PaginationMeta = Sentdm::Models::PaginationMeta
|
|
50
|
-
|
|
51
|
-
PaymentDetails = Sentdm::Models::PaymentDetails
|
|
52
|
-
|
|
53
25
|
ProfileCompleteParams = Sentdm::Models::ProfileCompleteParams
|
|
54
26
|
|
|
55
27
|
ProfileCreateParams = Sentdm::Models::ProfileCreateParams
|
|
56
28
|
|
|
57
29
|
ProfileDeleteParams = Sentdm::Models::ProfileDeleteParams
|
|
58
30
|
|
|
59
|
-
ProfileDetail = Sentdm::Models::ProfileDetail
|
|
60
|
-
|
|
61
31
|
ProfileListParams = Sentdm::Models::ProfileListParams
|
|
62
32
|
|
|
63
33
|
ProfileRetrieveParams = Sentdm::Models::ProfileRetrieveParams
|
|
64
34
|
|
|
65
35
|
Profiles = Sentdm::Models::Profiles
|
|
66
36
|
|
|
67
|
-
ProfileSettings = Sentdm::Models::ProfileSettings
|
|
68
|
-
|
|
69
37
|
ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
|
|
70
38
|
|
|
71
|
-
SentDmServicesCommonContractsPocOsAuthenticationConfig =
|
|
72
|
-
Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig
|
|
73
|
-
|
|
74
|
-
SentDmServicesCommonContractsPocOsTemplateBody =
|
|
75
|
-
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody
|
|
76
|
-
|
|
77
|
-
SentDmServicesCommonContractsPocOsTemplateButton =
|
|
78
|
-
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton
|
|
79
|
-
|
|
80
|
-
SentDmServicesCommonContractsPocOsTemplateButtonProps =
|
|
81
|
-
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps
|
|
82
|
-
|
|
83
|
-
SentDmServicesCommonContractsPocOsTemplateFooter =
|
|
84
|
-
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter
|
|
85
|
-
|
|
86
|
-
SentDmServicesCommonContractsPocOsTemplateHeader =
|
|
87
|
-
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
|
|
88
|
-
|
|
89
|
-
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo =
|
|
90
|
-
Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
|
|
91
|
-
|
|
92
|
-
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo =
|
|
93
|
-
Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
|
|
94
|
-
|
|
95
|
-
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo =
|
|
96
|
-
Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
|
|
97
|
-
|
|
98
|
-
TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
|
|
99
|
-
|
|
100
|
-
TcrVertical = Sentdm::Models::TcrVertical
|
|
101
|
-
|
|
102
|
-
Template = Sentdm::Models::Template
|
|
103
|
-
|
|
104
|
-
TemplateBodyContent = Sentdm::Models::TemplateBodyContent
|
|
105
|
-
|
|
106
39
|
TemplateCreateParams = Sentdm::Models::TemplateCreateParams
|
|
107
40
|
|
|
108
|
-
TemplateDefinition = Sentdm::Models::TemplateDefinition
|
|
109
|
-
|
|
110
41
|
TemplateDeleteParams = Sentdm::Models::TemplateDeleteParams
|
|
111
42
|
|
|
112
43
|
TemplateListParams = Sentdm::Models::TemplateListParams
|
|
@@ -115,16 +46,12 @@ module Sentdm
|
|
|
115
46
|
|
|
116
47
|
TemplateUpdateParams = Sentdm::Models::TemplateUpdateParams
|
|
117
48
|
|
|
118
|
-
TemplateVariable = Sentdm::Models::TemplateVariable
|
|
119
|
-
|
|
120
49
|
UserInviteParams = Sentdm::Models::UserInviteParams
|
|
121
50
|
|
|
122
51
|
UserListParams = Sentdm::Models::UserListParams
|
|
123
52
|
|
|
124
53
|
UserRemoveParams = Sentdm::Models::UserRemoveParams
|
|
125
54
|
|
|
126
|
-
UserResponse = Sentdm::Models::UserResponse
|
|
127
|
-
|
|
128
55
|
UserRetrieveParams = Sentdm::Models::UserRetrieveParams
|
|
129
56
|
|
|
130
57
|
UserUpdateRoleParams = Sentdm::Models::UserUpdateRoleParams
|
|
@@ -133,16 +60,12 @@ module Sentdm
|
|
|
133
60
|
|
|
134
61
|
WebhookDeleteParams = Sentdm::Models::WebhookDeleteParams
|
|
135
62
|
|
|
136
|
-
WebhookEventType = Sentdm::Models::WebhookEventType
|
|
137
|
-
|
|
138
63
|
WebhookListEventsParams = Sentdm::Models::WebhookListEventsParams
|
|
139
64
|
|
|
140
65
|
WebhookListEventTypesParams = Sentdm::Models::WebhookListEventTypesParams
|
|
141
66
|
|
|
142
67
|
WebhookListParams = Sentdm::Models::WebhookListParams
|
|
143
68
|
|
|
144
|
-
WebhookResponse = Sentdm::Models::WebhookResponse
|
|
145
|
-
|
|
146
69
|
WebhookRetrieveParams = Sentdm::Models::WebhookRetrieveParams
|
|
147
70
|
|
|
148
71
|
WebhookRotateSecretParams = Sentdm::Models::WebhookRotateSecretParams
|
|
@@ -13,7 +13,7 @@ module Sentdm
|
|
|
13
13
|
idempotency_key: String,
|
|
14
14
|
x_profile_id: String,
|
|
15
15
|
request_options: Sentdm::RequestOptions::OrHash
|
|
16
|
-
).returns(Sentdm::
|
|
16
|
+
).returns(Sentdm::Models::ContactCreateResponse)
|
|
17
17
|
end
|
|
18
18
|
def create(
|
|
19
19
|
# Body param: Phone number of the contact to create
|
|
@@ -41,7 +41,7 @@ module Sentdm
|
|
|
41
41
|
id: String,
|
|
42
42
|
x_profile_id: String,
|
|
43
43
|
request_options: Sentdm::RequestOptions::OrHash
|
|
44
|
-
).returns(Sentdm::
|
|
44
|
+
).returns(Sentdm::Models::ContactRetrieveResponse)
|
|
45
45
|
end
|
|
46
46
|
def retrieve(
|
|
47
47
|
# Contact ID from route parameter
|
|
@@ -58,28 +58,21 @@ module Sentdm
|
|
|
58
58
|
sig do
|
|
59
59
|
params(
|
|
60
60
|
id: String,
|
|
61
|
-
channel_consent: T.nilable(T::Hash[Symbol, String]),
|
|
62
61
|
default_channel: T.nilable(String),
|
|
63
62
|
opt_out: T.nilable(T::Boolean),
|
|
64
63
|
sandbox: T::Boolean,
|
|
65
64
|
idempotency_key: String,
|
|
66
65
|
x_profile_id: String,
|
|
67
66
|
request_options: Sentdm::RequestOptions::OrHash
|
|
68
|
-
).returns(Sentdm::
|
|
67
|
+
).returns(Sentdm::Models::ContactUpdateResponse)
|
|
69
68
|
end
|
|
70
69
|
def update(
|
|
71
70
|
# Path param: Contact ID from route parameter
|
|
72
71
|
id,
|
|
73
|
-
# Body param: Consent status by channel. Keys: "sms", "whatsapp". Values:
|
|
74
|
-
# "opted_in", "opted_out". All entries must have the same status — mixed values
|
|
75
|
-
# (e.g., sms: opted_out + whatsapp: opted_in) are rejected with 400. The provided
|
|
76
|
-
# status is applied to ALL channels regardless of which keys are specified,
|
|
77
|
-
# because consent is global across channels. When provided, takes precedence over
|
|
78
|
-
# the opt_out field.
|
|
79
|
-
channel_consent: nil,
|
|
80
72
|
# Body param: Default messaging channel: "sms" or "whatsapp"
|
|
81
73
|
default_channel: nil,
|
|
82
|
-
# Body param: Whether the contact has opted out of messaging
|
|
74
|
+
# Body param: Whether the contact has opted out of messaging. Single source of
|
|
75
|
+
# truth — opt-out is per-contact, not per-channel.
|
|
83
76
|
opt_out: nil,
|
|
84
77
|
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
85
78
|
# effects Useful for testing integrations without actual execution
|
|
@@ -60,8 +60,8 @@ module Sentdm
|
|
|
60
60
|
end
|
|
61
61
|
def send_(
|
|
62
62
|
# Body param: Channels to broadcast on, e.g. ["whatsapp", "sms"]. Each channel
|
|
63
|
-
# produces a separate message per recipient. "sent" = auto-detect
|
|
64
|
-
#
|
|
63
|
+
# produces a separate message per recipient. "sent" = auto-detect. Defaults to
|
|
64
|
+
# ["sent"] (auto-detect) if omitted.
|
|
65
65
|
channel: nil,
|
|
66
66
|
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
67
67
|
# effects Useful for testing integrations without actual execution
|
|
@@ -10,12 +10,12 @@ module Sentdm
|
|
|
10
10
|
sig do
|
|
11
11
|
params(
|
|
12
12
|
profile_id: String,
|
|
13
|
-
campaign: Sentdm::Profiles::
|
|
13
|
+
campaign: Sentdm::Profiles::CampaignCreateParams::Campaign::OrHash,
|
|
14
14
|
sandbox: T::Boolean,
|
|
15
15
|
idempotency_key: String,
|
|
16
16
|
x_profile_id: String,
|
|
17
17
|
request_options: Sentdm::RequestOptions::OrHash
|
|
18
|
-
).returns(Sentdm::Profiles::
|
|
18
|
+
).returns(Sentdm::Models::Profiles::CampaignCreateResponse)
|
|
19
19
|
end
|
|
20
20
|
def create(
|
|
21
21
|
# Path param: Profile ID from route
|
|
@@ -43,12 +43,12 @@ module Sentdm
|
|
|
43
43
|
params(
|
|
44
44
|
campaign_id: String,
|
|
45
45
|
profile_id: String,
|
|
46
|
-
campaign: Sentdm::Profiles::
|
|
46
|
+
campaign: Sentdm::Profiles::CampaignUpdateParams::Campaign::OrHash,
|
|
47
47
|
sandbox: T::Boolean,
|
|
48
48
|
idempotency_key: String,
|
|
49
49
|
x_profile_id: String,
|
|
50
50
|
request_options: Sentdm::RequestOptions::OrHash
|
|
51
|
-
).returns(Sentdm::Profiles::
|
|
51
|
+
).returns(Sentdm::Models::Profiles::CampaignUpdateResponse)
|
|
52
52
|
end
|
|
53
53
|
def update(
|
|
54
54
|
# Path param: Campaign ID from route
|
|
@@ -48,9 +48,10 @@ module Sentdm
|
|
|
48
48
|
params(
|
|
49
49
|
allow_contact_sharing: T::Boolean,
|
|
50
50
|
allow_template_sharing: T::Boolean,
|
|
51
|
-
billing_contact:
|
|
51
|
+
billing_contact:
|
|
52
|
+
T.nilable(Sentdm::ProfileCreateParams::BillingContact::OrHash),
|
|
52
53
|
billing_model: T.nilable(String),
|
|
53
|
-
brand: T.nilable(Sentdm::
|
|
54
|
+
brand: T.nilable(Sentdm::ProfileCreateParams::Brand::OrHash),
|
|
54
55
|
description: T.nilable(String),
|
|
55
56
|
icon: T.nilable(String),
|
|
56
57
|
inherit_contacts: T.nilable(T::Boolean),
|
|
@@ -58,7 +59,8 @@ module Sentdm
|
|
|
58
59
|
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
59
60
|
inherit_templates: T.nilable(T::Boolean),
|
|
60
61
|
name: String,
|
|
61
|
-
payment_details:
|
|
62
|
+
payment_details:
|
|
63
|
+
T.nilable(Sentdm::ProfileCreateParams::PaymentDetails::OrHash),
|
|
62
64
|
sandbox: T::Boolean,
|
|
63
65
|
short_name: T.nilable(String),
|
|
64
66
|
whatsapp_business_account:
|
|
@@ -68,7 +70,7 @@ module Sentdm
|
|
|
68
70
|
idempotency_key: String,
|
|
69
71
|
x_profile_id: String,
|
|
70
72
|
request_options: Sentdm::RequestOptions::OrHash
|
|
71
|
-
).returns(Sentdm::
|
|
73
|
+
).returns(Sentdm::Models::ProfileCreateResponse)
|
|
72
74
|
end
|
|
73
75
|
def create(
|
|
74
76
|
# Body param: Whether contacts are shared across profiles (default: false)
|
|
@@ -145,7 +147,7 @@ module Sentdm
|
|
|
145
147
|
profile_id: String,
|
|
146
148
|
x_profile_id: String,
|
|
147
149
|
request_options: Sentdm::RequestOptions::OrHash
|
|
148
|
-
).returns(Sentdm::
|
|
150
|
+
).returns(Sentdm::Models::ProfileRetrieveResponse)
|
|
149
151
|
end
|
|
150
152
|
def retrieve(
|
|
151
153
|
profile_id,
|
|
@@ -180,9 +182,10 @@ module Sentdm
|
|
|
180
182
|
allow_contact_sharing: T.nilable(T::Boolean),
|
|
181
183
|
allow_number_change_during_onboarding: T.nilable(T::Boolean),
|
|
182
184
|
allow_template_sharing: T.nilable(T::Boolean),
|
|
183
|
-
billing_contact:
|
|
185
|
+
billing_contact:
|
|
186
|
+
T.nilable(Sentdm::ProfileUpdateParams::BillingContact::OrHash),
|
|
184
187
|
billing_model: T.nilable(String),
|
|
185
|
-
brand: T.nilable(Sentdm::
|
|
188
|
+
brand: T.nilable(Sentdm::ProfileUpdateParams::Brand::OrHash),
|
|
186
189
|
description: T.nilable(String),
|
|
187
190
|
icon: T.nilable(String),
|
|
188
191
|
inherit_contacts: T.nilable(T::Boolean),
|
|
@@ -190,7 +193,8 @@ module Sentdm
|
|
|
190
193
|
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
191
194
|
inherit_templates: T.nilable(T::Boolean),
|
|
192
195
|
name: T.nilable(String),
|
|
193
|
-
payment_details:
|
|
196
|
+
payment_details:
|
|
197
|
+
T.nilable(Sentdm::ProfileUpdateParams::PaymentDetails::OrHash),
|
|
194
198
|
sandbox: T::Boolean,
|
|
195
199
|
sending_phone_number: T.nilable(String),
|
|
196
200
|
sending_phone_number_profile_id: T.nilable(String),
|
|
@@ -200,7 +204,7 @@ module Sentdm
|
|
|
200
204
|
idempotency_key: String,
|
|
201
205
|
x_profile_id: String,
|
|
202
206
|
request_options: Sentdm::RequestOptions::OrHash
|
|
203
|
-
).returns(Sentdm::
|
|
207
|
+
).returns(Sentdm::Models::ProfileUpdateResponse)
|
|
204
208
|
end
|
|
205
209
|
def update(
|
|
206
210
|
# Path param
|
|
@@ -11,14 +11,14 @@ module Sentdm
|
|
|
11
11
|
params(
|
|
12
12
|
category: T.nilable(String),
|
|
13
13
|
creation_source: T.nilable(String),
|
|
14
|
-
definition: Sentdm::
|
|
14
|
+
definition: Sentdm::TemplateCreateParams::Definition::OrHash,
|
|
15
15
|
language: T.nilable(String),
|
|
16
16
|
sandbox: T::Boolean,
|
|
17
17
|
submit_for_review: T::Boolean,
|
|
18
18
|
idempotency_key: String,
|
|
19
19
|
x_profile_id: String,
|
|
20
20
|
request_options: Sentdm::RequestOptions::OrHash
|
|
21
|
-
).returns(Sentdm::
|
|
21
|
+
).returns(Sentdm::Models::TemplateCreateResponse)
|
|
22
22
|
end
|
|
23
23
|
def create(
|
|
24
24
|
# Body param: Template category: MARKETING, UTILITY, AUTHENTICATION (optional,
|
|
@@ -57,7 +57,7 @@ module Sentdm
|
|
|
57
57
|
id: String,
|
|
58
58
|
x_profile_id: String,
|
|
59
59
|
request_options: Sentdm::RequestOptions::OrHash
|
|
60
|
-
).returns(Sentdm::
|
|
60
|
+
).returns(Sentdm::Models::TemplateRetrieveResponse)
|
|
61
61
|
end
|
|
62
62
|
def retrieve(
|
|
63
63
|
# Template ID from route parameter
|
|
@@ -75,7 +75,8 @@ module Sentdm
|
|
|
75
75
|
params(
|
|
76
76
|
id: String,
|
|
77
77
|
category: T.nilable(String),
|
|
78
|
-
definition:
|
|
78
|
+
definition:
|
|
79
|
+
T.nilable(Sentdm::TemplateUpdateParams::Definition::OrHash),
|
|
79
80
|
language: T.nilable(String),
|
|
80
81
|
name: T.nilable(String),
|
|
81
82
|
sandbox: T::Boolean,
|
|
@@ -83,7 +84,7 @@ module Sentdm
|
|
|
83
84
|
idempotency_key: String,
|
|
84
85
|
x_profile_id: String,
|
|
85
86
|
request_options: Sentdm::RequestOptions::OrHash
|
|
86
|
-
).returns(Sentdm::
|
|
87
|
+
).returns(Sentdm::Models::TemplateUpdateResponse)
|
|
87
88
|
end
|
|
88
89
|
def update(
|
|
89
90
|
# Path param: Template ID from route parameter
|