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
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class ProfileSettings < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::ProfileSettings, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Whether contacts are shared across profiles in the organization
|
|
12
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
13
|
-
attr_accessor :allow_contact_sharing
|
|
14
|
-
|
|
15
|
-
# Whether templates are shared across profiles in the organization
|
|
16
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
17
|
-
attr_accessor :allow_template_sharing
|
|
18
|
-
|
|
19
|
-
# Billing model: profile, organization, or profile_and_organization
|
|
20
|
-
sig { returns(T.nilable(String)) }
|
|
21
|
-
attr_accessor :billing_model
|
|
22
|
-
|
|
23
|
-
# Whether this profile inherits contacts from the organization
|
|
24
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
25
|
-
attr_accessor :inherit_contacts
|
|
26
|
-
|
|
27
|
-
# Whether this profile inherits TCR brand from the organization
|
|
28
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
29
|
-
attr_accessor :inherit_tcr_brand
|
|
30
|
-
|
|
31
|
-
# Whether this profile inherits TCR campaign from the organization
|
|
32
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
33
|
-
attr_accessor :inherit_tcr_campaign
|
|
34
|
-
|
|
35
|
-
# Whether this profile inherits templates from the organization
|
|
36
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
37
|
-
attr_accessor :inherit_templates
|
|
38
|
-
|
|
39
|
-
# Profile configuration settings
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
allow_contact_sharing: T.nilable(T::Boolean),
|
|
43
|
-
allow_template_sharing: T.nilable(T::Boolean),
|
|
44
|
-
billing_model: T.nilable(String),
|
|
45
|
-
inherit_contacts: T.nilable(T::Boolean),
|
|
46
|
-
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
47
|
-
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
48
|
-
inherit_templates: T.nilable(T::Boolean)
|
|
49
|
-
).returns(T.attached_class)
|
|
50
|
-
end
|
|
51
|
-
def self.new(
|
|
52
|
-
# Whether contacts are shared across profiles in the organization
|
|
53
|
-
allow_contact_sharing: nil,
|
|
54
|
-
# Whether templates are shared across profiles in the organization
|
|
55
|
-
allow_template_sharing: nil,
|
|
56
|
-
# Billing model: profile, organization, or profile_and_organization
|
|
57
|
-
billing_model: nil,
|
|
58
|
-
# Whether this profile inherits contacts from the organization
|
|
59
|
-
inherit_contacts: nil,
|
|
60
|
-
# Whether this profile inherits TCR brand from the organization
|
|
61
|
-
inherit_tcr_brand: nil,
|
|
62
|
-
# Whether this profile inherits TCR campaign from the organization
|
|
63
|
-
inherit_tcr_campaign: nil,
|
|
64
|
-
# Whether this profile inherits templates from the organization
|
|
65
|
-
inherit_templates: nil
|
|
66
|
-
)
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
sig do
|
|
70
|
-
override.returns(
|
|
71
|
-
{
|
|
72
|
-
allow_contact_sharing: T.nilable(T::Boolean),
|
|
73
|
-
allow_template_sharing: T.nilable(T::Boolean),
|
|
74
|
-
billing_model: T.nilable(String),
|
|
75
|
-
inherit_contacts: T.nilable(T::Boolean),
|
|
76
|
-
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
77
|
-
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
78
|
-
inherit_templates: T.nilable(T::Boolean)
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
end
|
|
82
|
-
def to_hash
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
end
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
class APIResponseOfTcrCampaignWithUseCases < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Sentdm::Profiles::APIResponseOfTcrCampaignWithUseCases,
|
|
11
|
-
Sentdm::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# The response data (null if error)
|
|
16
|
-
sig { returns(T.nilable(Sentdm::Profiles::TcrCampaignWithUseCases)) }
|
|
17
|
-
attr_reader :data
|
|
18
|
-
|
|
19
|
-
sig do
|
|
20
|
-
params(
|
|
21
|
-
data: T.nilable(Sentdm::Profiles::TcrCampaignWithUseCases::OrHash)
|
|
22
|
-
).void
|
|
23
|
-
end
|
|
24
|
-
attr_writer :data
|
|
25
|
-
|
|
26
|
-
# Error information
|
|
27
|
-
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
28
|
-
attr_reader :error
|
|
29
|
-
|
|
30
|
-
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
31
|
-
attr_writer :error
|
|
32
|
-
|
|
33
|
-
# Request and response metadata
|
|
34
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
35
|
-
attr_reader :meta
|
|
36
|
-
|
|
37
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
38
|
-
attr_writer :meta
|
|
39
|
-
|
|
40
|
-
# Indicates whether the request was successful
|
|
41
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
42
|
-
attr_reader :success
|
|
43
|
-
|
|
44
|
-
sig { params(success: T::Boolean).void }
|
|
45
|
-
attr_writer :success
|
|
46
|
-
|
|
47
|
-
# Standard API response envelope for all v3 endpoints
|
|
48
|
-
sig do
|
|
49
|
-
params(
|
|
50
|
-
data: T.nilable(Sentdm::Profiles::TcrCampaignWithUseCases::OrHash),
|
|
51
|
-
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
52
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
53
|
-
success: T::Boolean
|
|
54
|
-
).returns(T.attached_class)
|
|
55
|
-
end
|
|
56
|
-
def self.new(
|
|
57
|
-
# The response data (null if error)
|
|
58
|
-
data: nil,
|
|
59
|
-
# Error information
|
|
60
|
-
error: nil,
|
|
61
|
-
# Request and response metadata
|
|
62
|
-
meta: nil,
|
|
63
|
-
# Indicates whether the request was successful
|
|
64
|
-
success: nil
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
sig do
|
|
69
|
-
override.returns(
|
|
70
|
-
{
|
|
71
|
-
data: T.nilable(Sentdm::Profiles::TcrCampaignWithUseCases),
|
|
72
|
-
error: T.nilable(Sentdm::ErrorDetail),
|
|
73
|
-
meta: Sentdm::APIMeta,
|
|
74
|
-
success: T::Boolean
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
end
|
|
78
|
-
def to_hash
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
end
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
class BaseDto < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(Sentdm::Profiles::BaseDto, Sentdm::Internal::AnyHash)
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# Unique identifier
|
|
13
|
-
sig { returns(T.nilable(String)) }
|
|
14
|
-
attr_reader :id
|
|
15
|
-
|
|
16
|
-
sig { params(id: String).void }
|
|
17
|
-
attr_writer :id
|
|
18
|
-
|
|
19
|
-
sig { returns(T.nilable(Time)) }
|
|
20
|
-
attr_reader :created_at
|
|
21
|
-
|
|
22
|
-
sig { params(created_at: Time).void }
|
|
23
|
-
attr_writer :created_at
|
|
24
|
-
|
|
25
|
-
sig { returns(T.nilable(Time)) }
|
|
26
|
-
attr_accessor :updated_at
|
|
27
|
-
|
|
28
|
-
sig do
|
|
29
|
-
params(
|
|
30
|
-
id: String,
|
|
31
|
-
created_at: Time,
|
|
32
|
-
updated_at: T.nilable(Time)
|
|
33
|
-
).returns(T.attached_class)
|
|
34
|
-
end
|
|
35
|
-
def self.new(
|
|
36
|
-
# Unique identifier
|
|
37
|
-
id: nil,
|
|
38
|
-
created_at: nil,
|
|
39
|
-
updated_at: nil
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
sig do
|
|
44
|
-
override.returns(
|
|
45
|
-
{ id: String, created_at: Time, updated_at: T.nilable(Time) }
|
|
46
|
-
)
|
|
47
|
-
end
|
|
48
|
-
def to_hash
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
class CampaignData < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(Sentdm::Profiles::CampaignData, Sentdm::Internal::AnyHash)
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# Campaign description
|
|
13
|
-
sig { returns(String) }
|
|
14
|
-
attr_accessor :description
|
|
15
|
-
|
|
16
|
-
# Campaign name
|
|
17
|
-
sig { returns(String) }
|
|
18
|
-
attr_accessor :name
|
|
19
|
-
|
|
20
|
-
# Campaign type (e.g., "KYC", "App")
|
|
21
|
-
sig { returns(String) }
|
|
22
|
-
attr_accessor :type
|
|
23
|
-
|
|
24
|
-
# List of use cases with sample messages
|
|
25
|
-
sig do
|
|
26
|
-
returns(
|
|
27
|
-
T::Array[
|
|
28
|
-
Sentdm::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData
|
|
29
|
-
]
|
|
30
|
-
)
|
|
31
|
-
end
|
|
32
|
-
attr_accessor :use_cases
|
|
33
|
-
|
|
34
|
-
# Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
35
|
-
sig { returns(T.nilable(String)) }
|
|
36
|
-
attr_accessor :help_keywords
|
|
37
|
-
|
|
38
|
-
# Message sent when user requests help
|
|
39
|
-
sig { returns(T.nilable(String)) }
|
|
40
|
-
attr_accessor :help_message
|
|
41
|
-
|
|
42
|
-
# Description of how messages flow in the campaign
|
|
43
|
-
sig { returns(T.nilable(String)) }
|
|
44
|
-
attr_accessor :message_flow
|
|
45
|
-
|
|
46
|
-
# Comma-separated keywords that trigger opt-in (e.g., "YES, START, SUBSCRIBE")
|
|
47
|
-
sig { returns(T.nilable(String)) }
|
|
48
|
-
attr_accessor :optin_keywords
|
|
49
|
-
|
|
50
|
-
# Message sent when user opts in
|
|
51
|
-
sig { returns(T.nilable(String)) }
|
|
52
|
-
attr_accessor :optin_message
|
|
53
|
-
|
|
54
|
-
# Comma-separated keywords that trigger opt-out (e.g., "STOP, UNSUBSCRIBE, END")
|
|
55
|
-
sig { returns(T.nilable(String)) }
|
|
56
|
-
attr_accessor :optout_keywords
|
|
57
|
-
|
|
58
|
-
# Message sent when user opts out
|
|
59
|
-
sig { returns(T.nilable(String)) }
|
|
60
|
-
attr_accessor :optout_message
|
|
61
|
-
|
|
62
|
-
# URL to privacy policy
|
|
63
|
-
sig { returns(T.nilable(String)) }
|
|
64
|
-
attr_accessor :privacy_policy_link
|
|
65
|
-
|
|
66
|
-
# URL to terms and conditions
|
|
67
|
-
sig { returns(T.nilable(String)) }
|
|
68
|
-
attr_accessor :terms_and_conditions_link
|
|
69
|
-
|
|
70
|
-
# Campaign data for create or update operation
|
|
71
|
-
sig do
|
|
72
|
-
params(
|
|
73
|
-
description: String,
|
|
74
|
-
name: String,
|
|
75
|
-
type: String,
|
|
76
|
-
use_cases:
|
|
77
|
-
T::Array[
|
|
78
|
-
Sentdm::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData::OrHash
|
|
79
|
-
],
|
|
80
|
-
help_keywords: T.nilable(String),
|
|
81
|
-
help_message: T.nilable(String),
|
|
82
|
-
message_flow: T.nilable(String),
|
|
83
|
-
optin_keywords: T.nilable(String),
|
|
84
|
-
optin_message: T.nilable(String),
|
|
85
|
-
optout_keywords: T.nilable(String),
|
|
86
|
-
optout_message: T.nilable(String),
|
|
87
|
-
privacy_policy_link: T.nilable(String),
|
|
88
|
-
terms_and_conditions_link: T.nilable(String)
|
|
89
|
-
).returns(T.attached_class)
|
|
90
|
-
end
|
|
91
|
-
def self.new(
|
|
92
|
-
# Campaign description
|
|
93
|
-
description:,
|
|
94
|
-
# Campaign name
|
|
95
|
-
name:,
|
|
96
|
-
# Campaign type (e.g., "KYC", "App")
|
|
97
|
-
type:,
|
|
98
|
-
# List of use cases with sample messages
|
|
99
|
-
use_cases:,
|
|
100
|
-
# Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
101
|
-
help_keywords: nil,
|
|
102
|
-
# Message sent when user requests help
|
|
103
|
-
help_message: nil,
|
|
104
|
-
# Description of how messages flow in the campaign
|
|
105
|
-
message_flow: nil,
|
|
106
|
-
# Comma-separated keywords that trigger opt-in (e.g., "YES, START, SUBSCRIBE")
|
|
107
|
-
optin_keywords: nil,
|
|
108
|
-
# Message sent when user opts in
|
|
109
|
-
optin_message: nil,
|
|
110
|
-
# Comma-separated keywords that trigger opt-out (e.g., "STOP, UNSUBSCRIBE, END")
|
|
111
|
-
optout_keywords: nil,
|
|
112
|
-
# Message sent when user opts out
|
|
113
|
-
optout_message: nil,
|
|
114
|
-
# URL to privacy policy
|
|
115
|
-
privacy_policy_link: nil,
|
|
116
|
-
# URL to terms and conditions
|
|
117
|
-
terms_and_conditions_link: nil
|
|
118
|
-
)
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
sig do
|
|
122
|
-
override.returns(
|
|
123
|
-
{
|
|
124
|
-
description: String,
|
|
125
|
-
name: String,
|
|
126
|
-
type: String,
|
|
127
|
-
use_cases:
|
|
128
|
-
T::Array[
|
|
129
|
-
Sentdm::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData
|
|
130
|
-
],
|
|
131
|
-
help_keywords: T.nilable(String),
|
|
132
|
-
help_message: T.nilable(String),
|
|
133
|
-
message_flow: T.nilable(String),
|
|
134
|
-
optin_keywords: T.nilable(String),
|
|
135
|
-
optin_message: T.nilable(String),
|
|
136
|
-
optout_keywords: T.nilable(String),
|
|
137
|
-
optout_message: T.nilable(String),
|
|
138
|
-
privacy_policy_link: T.nilable(String),
|
|
139
|
-
terms_and_conditions_link: T.nilable(String)
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
end
|
|
143
|
-
def to_hash
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
end
|
|
147
|
-
end
|
|
148
|
-
end
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
module MessagingUseCaseUs
|
|
7
|
-
extend Sentdm::Internal::Type::Enum
|
|
8
|
-
|
|
9
|
-
TaggedSymbol =
|
|
10
|
-
T.type_alias { T.all(Symbol, Sentdm::Profiles::MessagingUseCaseUs) }
|
|
11
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
12
|
-
|
|
13
|
-
MARKETING =
|
|
14
|
-
T.let(:MARKETING, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
15
|
-
ACCOUNT_NOTIFICATION =
|
|
16
|
-
T.let(
|
|
17
|
-
:ACCOUNT_NOTIFICATION,
|
|
18
|
-
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
19
|
-
)
|
|
20
|
-
CUSTOMER_CARE =
|
|
21
|
-
T.let(
|
|
22
|
-
:CUSTOMER_CARE,
|
|
23
|
-
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
24
|
-
)
|
|
25
|
-
FRAUD_ALERT =
|
|
26
|
-
T.let(
|
|
27
|
-
:FRAUD_ALERT,
|
|
28
|
-
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
29
|
-
)
|
|
30
|
-
TWO_FA =
|
|
31
|
-
T.let(:TWO_FA, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
32
|
-
DELIVERY_NOTIFICATION =
|
|
33
|
-
T.let(
|
|
34
|
-
:DELIVERY_NOTIFICATION,
|
|
35
|
-
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
36
|
-
)
|
|
37
|
-
SECURITY_ALERT =
|
|
38
|
-
T.let(
|
|
39
|
-
:SECURITY_ALERT,
|
|
40
|
-
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
41
|
-
)
|
|
42
|
-
M2_M = T.let(:M2M, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
43
|
-
MIXED =
|
|
44
|
-
T.let(:MIXED, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
45
|
-
HIGHER_EDUCATION =
|
|
46
|
-
T.let(
|
|
47
|
-
:HIGHER_EDUCATION,
|
|
48
|
-
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
49
|
-
)
|
|
50
|
-
POLLING_VOTING =
|
|
51
|
-
T.let(
|
|
52
|
-
:POLLING_VOTING,
|
|
53
|
-
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
54
|
-
)
|
|
55
|
-
PUBLIC_SERVICE_ANNOUNCEMENT =
|
|
56
|
-
T.let(
|
|
57
|
-
:PUBLIC_SERVICE_ANNOUNCEMENT,
|
|
58
|
-
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
59
|
-
)
|
|
60
|
-
LOW_VOLUME =
|
|
61
|
-
T.let(:LOW_VOLUME, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
62
|
-
|
|
63
|
-
sig do
|
|
64
|
-
override.returns(
|
|
65
|
-
T::Array[Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol]
|
|
66
|
-
)
|
|
67
|
-
end
|
|
68
|
-
def self.values
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Sentdm::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData,
|
|
11
|
-
Sentdm::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
sig { returns(Sentdm::Profiles::MessagingUseCaseUs::OrSymbol) }
|
|
16
|
-
attr_accessor :messaging_use_case_us
|
|
17
|
-
|
|
18
|
-
# Sample messages for this use case (1-5 messages, max 1024 characters each)
|
|
19
|
-
sig { returns(T::Array[String]) }
|
|
20
|
-
attr_accessor :sample_messages
|
|
21
|
-
|
|
22
|
-
# Campaign use case with sample messages
|
|
23
|
-
sig do
|
|
24
|
-
params(
|
|
25
|
-
messaging_use_case_us:
|
|
26
|
-
Sentdm::Profiles::MessagingUseCaseUs::OrSymbol,
|
|
27
|
-
sample_messages: T::Array[String]
|
|
28
|
-
).returns(T.attached_class)
|
|
29
|
-
end
|
|
30
|
-
def self.new(
|
|
31
|
-
messaging_use_case_us:,
|
|
32
|
-
# Sample messages for this use case (1-5 messages, max 1024 characters each)
|
|
33
|
-
sample_messages:
|
|
34
|
-
)
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
sig do
|
|
38
|
-
override.returns(
|
|
39
|
-
{
|
|
40
|
-
messaging_use_case_us:
|
|
41
|
-
Sentdm::Profiles::MessagingUseCaseUs::OrSymbol,
|
|
42
|
-
sample_messages: T::Array[String]
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
end
|
|
46
|
-
def to_hash
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|