sentdm 0.19.0 → 0.20.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 +8 -0
- data/README.md +31 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +25 -0
- data/lib/sentdm/models/api_meta.rb +34 -0
- data/lib/sentdm/models/api_response_of_contact.rb +46 -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/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brands_brand_data.rb +38 -0
- data/lib/sentdm/models/contact_delete_params.rb +2 -16
- data/lib/sentdm/models/contact_list_response.rb +12 -278
- data/lib/sentdm/models/contact_response.rb +126 -0
- data/lib/sentdm/models/destination_country.rb +21 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/me_retrieve_response.rb +12 -204
- data/lib/sentdm/models/message_retrieve_activities_response.rb +6 -74
- data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
- data/lib/sentdm/models/message_send_response.rb +6 -74
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/number_lookup_response.rb +6 -74
- data/lib/sentdm/models/pagination_meta.rb +80 -0
- data/lib/sentdm/models/payment_details.rb +44 -0
- data/lib/sentdm/models/profile_complete_response.rb +6 -74
- data/lib/sentdm/models/profile_create_params.rb +9 -423
- data/lib/sentdm/models/profile_delete_params.rb +2 -16
- data/lib/sentdm/models/profile_detail.rb +605 -0
- data/lib/sentdm/models/profile_list_response.rb +9 -753
- data/lib/sentdm/models/profile_settings.rb +66 -0
- data/lib/sentdm/models/profile_update_params.rb +9 -423
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +45 -0
- data/lib/sentdm/models/profiles/base_dto.rb +32 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -165
- data/lib/sentdm/models/profiles/campaign_data.rb +123 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_list_response.rb +9 -420
- data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -165
- data/lib/sentdm/models/profiles/messaging_use_case_us.rb +28 -0
- data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +29 -0
- data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +248 -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 +48 -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/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +116 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +75 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +58 -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_body_content.rb +27 -0
- data/lib/sentdm/models/template_create_params.rb +3 -889
- data/lib/sentdm/models/template_definition.rb +66 -0
- data/lib/sentdm/models/template_list_response.rb +12 -242
- data/lib/sentdm/models/template_update_params.rb +3 -889
- data/lib/sentdm/models/template_variable.rb +80 -0
- data/lib/sentdm/models/user_list_response.rb +9 -154
- data/lib/sentdm/models/user_remove_params.rb +2 -16
- data/lib/sentdm/models/user_response.rb +82 -0
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +9 -118
- data/lib/sentdm/models/webhook_list_events_response.rb +9 -153
- data/lib/sentdm/models/webhook_list_response.rb +12 -247
- data/lib/sentdm/models/webhook_response.rb +95 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
- data/lib/sentdm/models/webhook_test_response.rb +6 -74
- data/lib/sentdm/models.rb +77 -0
- data/lib/sentdm/resources/contacts.rb +6 -6
- 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 +40 -18
- data/rbi/sentdm/models/api_meta.rbi +55 -0
- data/rbi/sentdm/models/api_response_of_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/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +104 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
- data/rbi/sentdm/models/contact_list_response.rbi +16 -505
- data/rbi/sentdm/models/contact_response.rbi +183 -0
- data/rbi/sentdm/models/destination_country.rbi +32 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +16 -335
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +8 -154
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
- data/rbi/sentdm/models/message_send_response.rbi +8 -135
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/payment_details.rbi +59 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
- data/rbi/sentdm/models/profile_create_params.rbi +12 -810
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
- data/rbi/sentdm/models/profile_detail.rbi +874 -0
- data/rbi/sentdm/models/profile_list_response.rbi +14 -1400
- data/rbi/sentdm/models/profile_settings.rbi +86 -0
- data/rbi/sentdm/models/profile_update_params.rbi +12 -810
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +83 -0
- data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -289
- data/rbi/sentdm/models/profiles/campaign_data.rbi +148 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +11 -733
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -289
- data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +73 -0
- data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +51 -0
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +425 -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 +87 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +72 -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 +57 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +59 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +180 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +95 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +81 -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_body_content.rbi +43 -0
- data/rbi/sentdm/models/template_create_params.rbi +4 -1701
- data/rbi/sentdm/models/template_definition.rbi +164 -0
- data/rbi/sentdm/models/template_list_response.rbi +16 -454
- data/rbi/sentdm/models/template_update_params.rbi +4 -1701
- data/rbi/sentdm/models/template_variable.rbi +120 -0
- data/rbi/sentdm/models/user_list_response.rbi +14 -271
- data/rbi/sentdm/models/user_remove_params.rbi +2 -19
- data/rbi/sentdm/models/user_response.rbi +118 -0
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +12 -247
- data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
- data/rbi/sentdm/models/webhook_list_response.rbi +16 -462
- data/rbi/sentdm/models/webhook_response.rbi +140 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
- data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
- data/rbi/sentdm/models.rbi +77 -0
- data/rbi/sentdm/resources/contacts.rbi +3 -3
- data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +5 -6
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/api_meta.rbs +27 -0
- data/sig/sentdm/models/api_response_of_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/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brands_brand_data.rbs +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +6 -10
- data/sig/sentdm/models/contact_list_response.rbs +20 -256
- data/sig/sentdm/models/contact_response.rbs +111 -0
- data/sig/sentdm/models/destination_country.rbs +19 -0
- data/sig/sentdm/models/error_detail.rbs +39 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -71
- data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
- data/sig/sentdm/models/message_send_response.rbs +9 -71
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/number_lookup_response.rbs +9 -71
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/profile_complete_response.rbs +9 -71
- data/sig/sentdm/models/profile_create_params.rbs +12 -363
- data/sig/sentdm/models/profile_delete_params.rbs +6 -10
- data/sig/sentdm/models/profile_detail.rbs +474 -0
- data/sig/sentdm/models/profile_list_response.rbs +15 -645
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +12 -363
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +41 -0
- data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -138
- data/sig/sentdm/models/profiles/campaign_data.rbs +82 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +13 -396
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -138
- data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +40 -0
- data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +299 -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 +35 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +32 -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 +30 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +30 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +89 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +55 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +45 -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.rbs +79 -0
- data/sig/sentdm/models/template_body_content.rbs +30 -0
- data/sig/sentdm/models/template_create_params.rbs +6 -853
- data/sig/sentdm/models/template_definition.rbs +45 -0
- data/sig/sentdm/models/template_list_response.rbs +19 -225
- data/sig/sentdm/models/template_update_params.rbs +4 -851
- data/sig/sentdm/models/template_variable.rbs +84 -0
- data/sig/sentdm/models/user_list_response.rbs +15 -151
- data/sig/sentdm/models/user_remove_params.rbs +6 -10
- data/sig/sentdm/models/user_response.rbs +72 -0
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +15 -130
- data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
- data/sig/sentdm/models/webhook_list_response.rbs +20 -248
- data/sig/sentdm/models/webhook_response.rbs +103 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
- data/sig/sentdm/models/webhook_test_response.rbs +9 -71
- data/sig/sentdm/models.rbs +68 -0
- data/sig/sentdm/resources/contacts.rbs +3 -3
- 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 +121 -55
- data/lib/sentdm/models/contact_create_response.rb +0 -236
- data/lib/sentdm/models/contact_retrieve_response.rb +0 -236
- data/lib/sentdm/models/contact_update_response.rb +0 -236
- data/lib/sentdm/models/profile_create_response.rb +0 -781
- data/lib/sentdm/models/profile_retrieve_response.rb +0 -783
- data/lib/sentdm/models/profile_update_response.rb +0 -781
- data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -459
- data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -459
- data/lib/sentdm/models/template_create_response.rb +0 -197
- data/lib/sentdm/models/template_retrieve_response.rb +0 -197
- data/lib/sentdm/models/template_update_response.rb +0 -197
- data/lib/sentdm/models/user_invite_response.rb +0 -189
- data/lib/sentdm/models/user_retrieve_response.rb +0 -189
- data/lib/sentdm/models/user_update_role_response.rb +0 -189
- data/lib/sentdm/models/webhook_create_response.rb +0 -204
- data/lib/sentdm/models/webhook_retrieve_response.rb +0 -204
- data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -204
- data/lib/sentdm/models/webhook_update_response.rb +0 -204
- data/rbi/sentdm/models/contact_create_response.rbi +0 -390
- data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -392
- data/rbi/sentdm/models/contact_update_response.rbi +0 -390
- data/rbi/sentdm/models/profile_create_response.rbi +0 -1439
- data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1443
- data/rbi/sentdm/models/profile_update_response.rbi +0 -1439
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -814
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -814
- data/rbi/sentdm/models/template_create_response.rbi +0 -339
- data/rbi/sentdm/models/template_retrieve_response.rbi +0 -345
- data/rbi/sentdm/models/template_update_response.rbi +0 -339
- data/rbi/sentdm/models/user_invite_response.rbi +0 -323
- data/rbi/sentdm/models/user_retrieve_response.rbi +0 -323
- data/rbi/sentdm/models/user_update_role_response.rbi +0 -328
- data/rbi/sentdm/models/webhook_create_response.rbi +0 -348
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -350
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -366
- data/rbi/sentdm/models/webhook_update_response.rbi +0 -348
- data/sig/sentdm/models/contact_create_response.rbs +0 -209
- data/sig/sentdm/models/contact_retrieve_response.rbs +0 -209
- data/sig/sentdm/models/contact_update_response.rbs +0 -209
- data/sig/sentdm/models/profile_create_response.rbs +0 -662
- data/sig/sentdm/models/profile_retrieve_response.rbs +0 -662
- data/sig/sentdm/models/profile_update_response.rbs +0 -662
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -424
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -424
- data/sig/sentdm/models/template_create_response.rbs +0 -177
- data/sig/sentdm/models/template_retrieve_response.rbs +0 -177
- data/sig/sentdm/models/template_update_response.rbs +0 -177
- data/sig/sentdm/models/user_invite_response.rbs +0 -170
- data/sig/sentdm/models/user_retrieve_response.rbs +0 -170
- data/sig/sentdm/models/user_update_role_response.rbs +0 -170
- data/sig/sentdm/models/webhook_create_response.rbs +0 -201
- data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -201
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -201
- data/sig/sentdm/models/webhook_update_response.rbs +0 -201
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class TemplateDefinition < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute body
|
|
7
|
+
# Body section of a message template with channel-specific content
|
|
8
|
+
#
|
|
9
|
+
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody]
|
|
10
|
+
required :body, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateBody }
|
|
11
|
+
|
|
12
|
+
# @!attribute authentication_config
|
|
13
|
+
# Configuration for AUTHENTICATION category templates
|
|
14
|
+
#
|
|
15
|
+
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig, nil]
|
|
16
|
+
optional :authentication_config,
|
|
17
|
+
-> { Sentdm::SentDmServicesCommonContractsPocOsAuthenticationConfig },
|
|
18
|
+
api_name: :authenticationConfig,
|
|
19
|
+
nil?: true
|
|
20
|
+
|
|
21
|
+
# @!attribute buttons
|
|
22
|
+
# Optional list of interactive buttons (e.g., quick replies, URLs, phone numbers)
|
|
23
|
+
#
|
|
24
|
+
# @return [Array<Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton>, nil]
|
|
25
|
+
optional :buttons,
|
|
26
|
+
-> {
|
|
27
|
+
Sentdm::Internal::Type::ArrayOf[Sentdm::SentDmServicesCommonContractsPocOsTemplateButton]
|
|
28
|
+
},
|
|
29
|
+
nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute definition_version
|
|
32
|
+
# The version of the template definition format
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
optional :definition_version, String, api_name: :definitionVersion, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute footer
|
|
38
|
+
# Footer section of a message template
|
|
39
|
+
#
|
|
40
|
+
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter, nil]
|
|
41
|
+
optional :footer, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateFooter }, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute header
|
|
44
|
+
# Header section of a message template
|
|
45
|
+
#
|
|
46
|
+
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader, nil]
|
|
47
|
+
optional :header, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateHeader }, nil?: true
|
|
48
|
+
|
|
49
|
+
# @!method initialize(body:, authentication_config: nil, buttons: nil, definition_version: nil, footer: nil, header: nil)
|
|
50
|
+
# Complete definition of a message template including header, body, footer, and
|
|
51
|
+
# buttons
|
|
52
|
+
#
|
|
53
|
+
# @param body [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody] Body section of a message template with channel-specific content
|
|
54
|
+
#
|
|
55
|
+
# @param authentication_config [Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig, nil] Configuration for AUTHENTICATION category templates
|
|
56
|
+
#
|
|
57
|
+
# @param buttons [Array<Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton>, nil] Optional list of interactive buttons (e.g., quick replies, URLs, phone numbers)
|
|
58
|
+
#
|
|
59
|
+
# @param definition_version [String, nil] The version of the template definition format
|
|
60
|
+
#
|
|
61
|
+
# @param footer [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter, nil] Footer section of a message template
|
|
62
|
+
#
|
|
63
|
+
# @param header [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader, nil] Header section of a message template
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -13,14 +13,14 @@ module Sentdm
|
|
|
13
13
|
# @!attribute error
|
|
14
14
|
# Error information
|
|
15
15
|
#
|
|
16
|
-
# @return [Sentdm::Models::
|
|
17
|
-
optional :error, -> { Sentdm::
|
|
16
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
17
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
18
18
|
|
|
19
19
|
# @!attribute meta
|
|
20
20
|
# Request and response metadata
|
|
21
21
|
#
|
|
22
|
-
# @return [Sentdm::Models::
|
|
23
|
-
optional :meta, -> { Sentdm::
|
|
22
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
23
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
24
24
|
|
|
25
25
|
# @!attribute success
|
|
26
26
|
# Indicates whether the request was successful
|
|
@@ -33,9 +33,9 @@ module Sentdm
|
|
|
33
33
|
#
|
|
34
34
|
# @param data [Sentdm::Models::TemplateListResponse::Data, nil] Paginated list of templates
|
|
35
35
|
#
|
|
36
|
-
# @param error [Sentdm::Models::
|
|
36
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
37
37
|
#
|
|
38
|
-
# @param meta [Sentdm::Models::
|
|
38
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
39
39
|
#
|
|
40
40
|
# @param success [Boolean] Indicates whether the request was successful
|
|
41
41
|
|
|
@@ -44,251 +44,21 @@ module Sentdm
|
|
|
44
44
|
# @!attribute pagination
|
|
45
45
|
# Pagination metadata for list responses
|
|
46
46
|
#
|
|
47
|
-
# @return [Sentdm::Models::
|
|
48
|
-
optional :pagination, -> { Sentdm::
|
|
47
|
+
# @return [Sentdm::Models::PaginationMeta, nil]
|
|
48
|
+
optional :pagination, -> { Sentdm::PaginationMeta }
|
|
49
49
|
|
|
50
50
|
# @!attribute templates
|
|
51
51
|
# List of templates
|
|
52
52
|
#
|
|
53
|
-
# @return [Array<Sentdm::Models::
|
|
54
|
-
optional :templates,
|
|
55
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Models::TemplateListResponse::Data::Template] }
|
|
53
|
+
# @return [Array<Sentdm::Models::Template>, nil]
|
|
54
|
+
optional :templates, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Template] }
|
|
56
55
|
|
|
57
56
|
# @!method initialize(pagination: nil, templates: nil)
|
|
58
57
|
# Paginated list of templates
|
|
59
58
|
#
|
|
60
|
-
# @param pagination [Sentdm::Models::
|
|
59
|
+
# @param pagination [Sentdm::Models::PaginationMeta] Pagination metadata for list responses
|
|
61
60
|
#
|
|
62
|
-
# @param templates [Array<Sentdm::Models::
|
|
63
|
-
|
|
64
|
-
# @see Sentdm::Models::TemplateListResponse::Data#pagination
|
|
65
|
-
class Pagination < Sentdm::Internal::Type::BaseModel
|
|
66
|
-
# @!attribute cursors
|
|
67
|
-
# Cursor-based pagination pointers
|
|
68
|
-
#
|
|
69
|
-
# @return [Sentdm::Models::TemplateListResponse::Data::Pagination::Cursors, nil]
|
|
70
|
-
optional :cursors, -> { Sentdm::Models::TemplateListResponse::Data::Pagination::Cursors }, nil?: true
|
|
71
|
-
|
|
72
|
-
# @!attribute has_more
|
|
73
|
-
# Whether there are more pages after this one
|
|
74
|
-
#
|
|
75
|
-
# @return [Boolean, nil]
|
|
76
|
-
optional :has_more, Sentdm::Internal::Type::Boolean
|
|
77
|
-
|
|
78
|
-
# @!attribute page
|
|
79
|
-
# Current page number (1-indexed)
|
|
80
|
-
#
|
|
81
|
-
# @return [Integer, nil]
|
|
82
|
-
optional :page, Integer
|
|
83
|
-
|
|
84
|
-
# @!attribute page_size
|
|
85
|
-
# Number of items per page
|
|
86
|
-
#
|
|
87
|
-
# @return [Integer, nil]
|
|
88
|
-
optional :page_size, Integer
|
|
89
|
-
|
|
90
|
-
# @!attribute total_count
|
|
91
|
-
# Total number of items across all pages
|
|
92
|
-
#
|
|
93
|
-
# @return [Integer, nil]
|
|
94
|
-
optional :total_count, Integer
|
|
95
|
-
|
|
96
|
-
# @!attribute total_pages
|
|
97
|
-
# Total number of pages
|
|
98
|
-
#
|
|
99
|
-
# @return [Integer, nil]
|
|
100
|
-
optional :total_pages, Integer
|
|
101
|
-
|
|
102
|
-
# @!method initialize(cursors: nil, has_more: nil, page: nil, page_size: nil, total_count: nil, total_pages: nil)
|
|
103
|
-
# Pagination metadata for list responses
|
|
104
|
-
#
|
|
105
|
-
# @param cursors [Sentdm::Models::TemplateListResponse::Data::Pagination::Cursors, nil] Cursor-based pagination pointers
|
|
106
|
-
#
|
|
107
|
-
# @param has_more [Boolean] Whether there are more pages after this one
|
|
108
|
-
#
|
|
109
|
-
# @param page [Integer] Current page number (1-indexed)
|
|
110
|
-
#
|
|
111
|
-
# @param page_size [Integer] Number of items per page
|
|
112
|
-
#
|
|
113
|
-
# @param total_count [Integer] Total number of items across all pages
|
|
114
|
-
#
|
|
115
|
-
# @param total_pages [Integer] Total number of pages
|
|
116
|
-
|
|
117
|
-
# @see Sentdm::Models::TemplateListResponse::Data::Pagination#cursors
|
|
118
|
-
class Cursors < Sentdm::Internal::Type::BaseModel
|
|
119
|
-
# @!attribute after
|
|
120
|
-
# Cursor to fetch the next page
|
|
121
|
-
#
|
|
122
|
-
# @return [String, nil]
|
|
123
|
-
optional :after, String, nil?: true
|
|
124
|
-
|
|
125
|
-
# @!attribute before
|
|
126
|
-
# Cursor to fetch the previous page
|
|
127
|
-
#
|
|
128
|
-
# @return [String, nil]
|
|
129
|
-
optional :before, String, nil?: true
|
|
130
|
-
|
|
131
|
-
# @!method initialize(after: nil, before: nil)
|
|
132
|
-
# Cursor-based pagination pointers
|
|
133
|
-
#
|
|
134
|
-
# @param after [String, nil] Cursor to fetch the next page
|
|
135
|
-
#
|
|
136
|
-
# @param before [String, nil] Cursor to fetch the previous page
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
class Template < Sentdm::Internal::Type::BaseModel
|
|
141
|
-
# @!attribute id
|
|
142
|
-
# Unique template identifier
|
|
143
|
-
#
|
|
144
|
-
# @return [String, nil]
|
|
145
|
-
optional :id, String
|
|
146
|
-
|
|
147
|
-
# @!attribute category
|
|
148
|
-
# Template category: MARKETING, UTILITY, AUTHENTICATION
|
|
149
|
-
#
|
|
150
|
-
# @return [String, nil]
|
|
151
|
-
optional :category, String
|
|
152
|
-
|
|
153
|
-
# @!attribute channels
|
|
154
|
-
# Supported channels: sms, whatsapp
|
|
155
|
-
#
|
|
156
|
-
# @return [Array<String>, nil]
|
|
157
|
-
optional :channels, Sentdm::Internal::Type::ArrayOf[String], nil?: true
|
|
158
|
-
|
|
159
|
-
# @!attribute created_at
|
|
160
|
-
# When the template was created
|
|
161
|
-
#
|
|
162
|
-
# @return [Time, nil]
|
|
163
|
-
optional :created_at, Time
|
|
164
|
-
|
|
165
|
-
# @!attribute is_published
|
|
166
|
-
# Whether the template is published and active
|
|
167
|
-
#
|
|
168
|
-
# @return [Boolean, nil]
|
|
169
|
-
optional :is_published, Sentdm::Internal::Type::Boolean
|
|
170
|
-
|
|
171
|
-
# @!attribute language
|
|
172
|
-
# Template language code (e.g., en_US)
|
|
173
|
-
#
|
|
174
|
-
# @return [String, nil]
|
|
175
|
-
optional :language, String
|
|
176
|
-
|
|
177
|
-
# @!attribute name
|
|
178
|
-
# Template display name
|
|
179
|
-
#
|
|
180
|
-
# @return [String, nil]
|
|
181
|
-
optional :name, String
|
|
182
|
-
|
|
183
|
-
# @!attribute status
|
|
184
|
-
# Template status: APPROVED, PENDING, REJECTED
|
|
185
|
-
#
|
|
186
|
-
# @return [String, nil]
|
|
187
|
-
optional :status, String
|
|
188
|
-
|
|
189
|
-
# @!attribute updated_at
|
|
190
|
-
# When the template was last updated
|
|
191
|
-
#
|
|
192
|
-
# @return [Time, nil]
|
|
193
|
-
optional :updated_at, Time, nil?: true
|
|
194
|
-
|
|
195
|
-
# @!attribute variables
|
|
196
|
-
# Template variables for personalization
|
|
197
|
-
#
|
|
198
|
-
# @return [Array<String>, nil]
|
|
199
|
-
optional :variables, Sentdm::Internal::Type::ArrayOf[String], nil?: true
|
|
200
|
-
|
|
201
|
-
# @!method initialize(id: nil, category: nil, channels: nil, created_at: nil, is_published: nil, language: nil, name: nil, status: nil, updated_at: nil, variables: nil)
|
|
202
|
-
# Template response for v3 API
|
|
203
|
-
#
|
|
204
|
-
# @param id [String] Unique template identifier
|
|
205
|
-
#
|
|
206
|
-
# @param category [String] Template category: MARKETING, UTILITY, AUTHENTICATION
|
|
207
|
-
#
|
|
208
|
-
# @param channels [Array<String>, nil] Supported channels: sms, whatsapp
|
|
209
|
-
#
|
|
210
|
-
# @param created_at [Time] When the template was created
|
|
211
|
-
#
|
|
212
|
-
# @param is_published [Boolean] Whether the template is published and active
|
|
213
|
-
#
|
|
214
|
-
# @param language [String] Template language code (e.g., en_US)
|
|
215
|
-
#
|
|
216
|
-
# @param name [String] Template display name
|
|
217
|
-
#
|
|
218
|
-
# @param status [String] Template status: APPROVED, PENDING, REJECTED
|
|
219
|
-
#
|
|
220
|
-
# @param updated_at [Time, nil] When the template was last updated
|
|
221
|
-
#
|
|
222
|
-
# @param variables [Array<String>, nil] Template variables for personalization
|
|
223
|
-
end
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
# @see Sentdm::Models::TemplateListResponse#error
|
|
227
|
-
class Error < Sentdm::Internal::Type::BaseModel
|
|
228
|
-
# @!attribute code
|
|
229
|
-
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
230
|
-
#
|
|
231
|
-
# @return [String, nil]
|
|
232
|
-
optional :code, String
|
|
233
|
-
|
|
234
|
-
# @!attribute details
|
|
235
|
-
# Additional validation error details (field-level errors)
|
|
236
|
-
#
|
|
237
|
-
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
238
|
-
optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
|
|
239
|
-
|
|
240
|
-
# @!attribute doc_url
|
|
241
|
-
# URL to documentation about this error
|
|
242
|
-
#
|
|
243
|
-
# @return [String, nil]
|
|
244
|
-
optional :doc_url, String, nil?: true
|
|
245
|
-
|
|
246
|
-
# @!attribute message
|
|
247
|
-
# Human-readable error message
|
|
248
|
-
#
|
|
249
|
-
# @return [String, nil]
|
|
250
|
-
optional :message, String
|
|
251
|
-
|
|
252
|
-
# @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
|
|
253
|
-
# Error information
|
|
254
|
-
#
|
|
255
|
-
# @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
|
|
256
|
-
#
|
|
257
|
-
# @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
|
|
258
|
-
#
|
|
259
|
-
# @param doc_url [String, nil] URL to documentation about this error
|
|
260
|
-
#
|
|
261
|
-
# @param message [String] Human-readable error message
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
# @see Sentdm::Models::TemplateListResponse#meta
|
|
265
|
-
class Meta < Sentdm::Internal::Type::BaseModel
|
|
266
|
-
# @!attribute request_id
|
|
267
|
-
# Unique identifier for this request (for tracing and support)
|
|
268
|
-
#
|
|
269
|
-
# @return [String, nil]
|
|
270
|
-
optional :request_id, String
|
|
271
|
-
|
|
272
|
-
# @!attribute timestamp
|
|
273
|
-
# Server timestamp when the response was generated
|
|
274
|
-
#
|
|
275
|
-
# @return [Time, nil]
|
|
276
|
-
optional :timestamp, Time
|
|
277
|
-
|
|
278
|
-
# @!attribute version
|
|
279
|
-
# API version used for this request
|
|
280
|
-
#
|
|
281
|
-
# @return [String, nil]
|
|
282
|
-
optional :version, String
|
|
283
|
-
|
|
284
|
-
# @!method initialize(request_id: nil, timestamp: nil, version: nil)
|
|
285
|
-
# Request and response metadata
|
|
286
|
-
#
|
|
287
|
-
# @param request_id [String] Unique identifier for this request (for tracing and support)
|
|
288
|
-
#
|
|
289
|
-
# @param timestamp [Time] Server timestamp when the response was generated
|
|
290
|
-
#
|
|
291
|
-
# @param version [String] API version used for this request
|
|
61
|
+
# @param templates [Array<Sentdm::Models::Template>] List of templates
|
|
292
62
|
end
|
|
293
63
|
end
|
|
294
64
|
end
|