sentdm 0.5.0 → 0.8.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.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -0
  3. data/README.md +31 -1
  4. data/lib/sentdm/internal/type/base_model.rb +5 -5
  5. data/lib/sentdm/models/api_response_of_contact.rb +9 -6
  6. data/lib/sentdm/models/api_response_of_profile_detail.rb +6 -6
  7. data/lib/sentdm/models/api_response_of_user.rb +6 -6
  8. data/lib/sentdm/models/api_response_template.rb +6 -6
  9. data/lib/sentdm/models/api_response_webhook.rb +4 -4
  10. data/lib/sentdm/models/brands_brand_data.rb +16 -252
  11. data/lib/sentdm/models/contact_delete_params.rb +1 -1
  12. data/lib/sentdm/models/contact_list_response.rb +9 -9
  13. data/lib/sentdm/models/me_retrieve_response.rb +35 -21
  14. data/lib/sentdm/models/message_retrieve_activities_response.rb +7 -7
  15. data/lib/sentdm/models/message_retrieve_status_response.rb +7 -7
  16. data/lib/sentdm/models/message_send_params.rb +5 -3
  17. data/lib/sentdm/models/message_send_response.rb +7 -7
  18. data/lib/sentdm/models/{mutation_request_base.rb → mutation_request.rb} +2 -2
  19. data/lib/sentdm/models/number_lookup_response.rb +4 -4
  20. data/lib/sentdm/models/pagination_meta.rb +3 -3
  21. data/lib/sentdm/models/{profile_complete_setup_params.rb → profile_complete_params.rb} +3 -3
  22. data/lib/sentdm/models/{profile_complete_setup_response.rb → profile_complete_response.rb} +1 -1
  23. data/lib/sentdm/models/profile_create_params.rb +20 -23
  24. data/lib/sentdm/models/profile_delete_params.rb +1 -1
  25. data/lib/sentdm/models/profile_detail.rb +12 -22
  26. data/lib/sentdm/models/profile_list_response.rb +7 -7
  27. data/lib/sentdm/models/profile_update_params.rb +9 -13
  28. data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +4 -4
  29. data/lib/sentdm/models/profiles/base_dto.rb +32 -0
  30. data/lib/sentdm/models/profiles/campaign_create_params.rb +2 -2
  31. data/lib/sentdm/models/profiles/campaign_data.rb +5 -26
  32. data/lib/sentdm/models/profiles/campaign_delete_params.rb +1 -1
  33. data/lib/sentdm/models/profiles/campaign_list_response.rb +4 -4
  34. data/lib/sentdm/models/profiles/campaign_update_params.rb +2 -2
  35. data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +29 -0
  36. data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +2 -2
  37. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +34 -0
  38. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +40 -0
  39. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +38 -0
  40. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +81 -0
  41. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +34 -0
  42. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +39 -0
  43. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +116 -0
  44. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +75 -0
  45. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +58 -0
  46. data/lib/sentdm/models/template_create_params.rb +3 -2
  47. data/lib/sentdm/models/template_definition.rb +19 -263
  48. data/lib/sentdm/models/template_list_response.rb +9 -9
  49. data/lib/sentdm/models/template_update_params.rb +3 -2
  50. data/lib/sentdm/models/user_list_response.rb +7 -7
  51. data/lib/sentdm/models/user_remove_params.rb +1 -1
  52. data/lib/sentdm/models/webhook_list_event_types_response.rb +4 -4
  53. data/lib/sentdm/models/webhook_list_events_response.rb +4 -4
  54. data/lib/sentdm/models/webhook_list_response.rb +4 -4
  55. data/lib/sentdm/models/webhook_rotate_secret_params.rb +1 -1
  56. data/lib/sentdm/models/webhook_rotate_secret_response.rb +4 -4
  57. data/lib/sentdm/models/webhook_test_response.rb +4 -4
  58. data/lib/sentdm/models.rb +29 -4
  59. data/lib/sentdm/resources/messages.rb +1 -1
  60. data/lib/sentdm/resources/profiles/campaigns.rb +2 -2
  61. data/lib/sentdm/resources/profiles.rb +12 -12
  62. data/lib/sentdm/resources/templates.rb +2 -2
  63. data/lib/sentdm/version.rb +1 -1
  64. data/lib/sentdm.rb +14 -4
  65. data/rbi/sentdm/models/api_response_of_contact.rbi +6 -6
  66. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +6 -6
  67. data/rbi/sentdm/models/api_response_of_user.rbi +6 -6
  68. data/rbi/sentdm/models/api_response_template.rbi +6 -6
  69. data/rbi/sentdm/models/api_response_webhook.rbi +4 -4
  70. data/rbi/sentdm/models/brands_brand_data.rbi +53 -355
  71. data/rbi/sentdm/models/contact_delete_params.rbi +1 -1
  72. data/rbi/sentdm/models/contact_list_response.rbi +9 -9
  73. data/rbi/sentdm/models/me_retrieve_response.rbi +33 -21
  74. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +7 -7
  75. data/rbi/sentdm/models/message_retrieve_status_response.rbi +7 -7
  76. data/rbi/sentdm/models/message_send_params.rbi +6 -3
  77. data/rbi/sentdm/models/message_send_response.rbi +7 -7
  78. data/rbi/sentdm/models/{mutation_request_base.rbi → mutation_request.rbi} +2 -2
  79. data/rbi/sentdm/models/number_lookup_response.rbi +4 -4
  80. data/rbi/sentdm/models/pagination_meta.rbi +3 -3
  81. data/rbi/sentdm/models/{profile_complete_setup_params.rbi → profile_complete_params.rbi} +2 -2
  82. data/rbi/sentdm/models/{profile_complete_setup_response.rbi → profile_complete_response.rbi} +1 -1
  83. data/rbi/sentdm/models/profile_create_params.rbi +27 -33
  84. data/rbi/sentdm/models/profile_delete_params.rbi +1 -1
  85. data/rbi/sentdm/models/profile_detail.rbi +9 -22
  86. data/rbi/sentdm/models/profile_list_response.rbi +7 -7
  87. data/rbi/sentdm/models/profile_update_params.rbi +12 -20
  88. data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +4 -4
  89. data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
  90. data/rbi/sentdm/models/profiles/campaign_create_params.rbi +2 -2
  91. data/rbi/sentdm/models/profiles/campaign_data.rbi +14 -49
  92. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -1
  93. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +4 -4
  94. data/rbi/sentdm/models/profiles/campaign_update_params.rbi +2 -2
  95. data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +51 -0
  96. data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +2 -2
  97. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +56 -0
  98. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +76 -0
  99. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +79 -0
  100. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +104 -0
  101. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +60 -0
  102. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +62 -0
  103. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +180 -0
  104. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +95 -0
  105. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +81 -0
  106. data/rbi/sentdm/models/template_create_params.rbi +4 -2
  107. data/rbi/sentdm/models/template_definition.rbi +82 -415
  108. data/rbi/sentdm/models/template_list_response.rbi +9 -9
  109. data/rbi/sentdm/models/template_update_params.rbi +4 -2
  110. data/rbi/sentdm/models/user_list_response.rbi +7 -7
  111. data/rbi/sentdm/models/user_remove_params.rbi +1 -1
  112. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +4 -4
  113. data/rbi/sentdm/models/webhook_list_events_response.rbi +4 -4
  114. data/rbi/sentdm/models/webhook_list_response.rbi +4 -4
  115. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -1
  116. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +4 -4
  117. data/rbi/sentdm/models/webhook_test_response.rbi +4 -4
  118. data/rbi/sentdm/models.rbi +29 -4
  119. data/rbi/sentdm/resources/messages.rbi +2 -1
  120. data/rbi/sentdm/resources/profiles/campaigns.rbi +2 -2
  121. data/rbi/sentdm/resources/profiles.rbi +20 -26
  122. data/rbi/sentdm/resources/templates.rbi +4 -2
  123. data/sig/sentdm/models/brands_brand_data.rbs +12 -192
  124. data/sig/sentdm/models/contact_delete_params.rbs +1 -1
  125. data/sig/sentdm/models/{mutation_request_base.rbs → mutation_request.rbs} +2 -2
  126. data/sig/sentdm/models/{profile_complete_setup_params.rbs → profile_complete_params.rbs} +2 -2
  127. data/sig/sentdm/models/profile_complete_response.rbs +5 -0
  128. data/sig/sentdm/models/profile_delete_params.rbs +1 -1
  129. data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
  130. data/sig/sentdm/models/profiles/campaign_data.rbs +4 -26
  131. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +1 -1
  132. data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
  133. data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +2 -2
  134. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +24 -0
  135. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +30 -0
  136. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +38 -0
  137. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +75 -0
  138. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +32 -0
  139. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +32 -0
  140. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +89 -0
  141. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +55 -0
  142. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +45 -0
  143. data/sig/sentdm/models/template_definition.rbs +20 -233
  144. data/sig/sentdm/models/user_remove_params.rbs +1 -1
  145. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +1 -1
  146. data/sig/sentdm/models.rbs +20 -4
  147. data/sig/sentdm/resources/profiles.rbs +1 -1
  148. metadata +44 -14
  149. data/lib/sentdm/models/base_dto.rb +0 -30
  150. data/rbi/sentdm/models/base_dto.rbi +0 -49
  151. data/sig/sentdm/models/base_dto.rbs +0 -25
  152. data/sig/sentdm/models/profile_complete_setup_response.rbs +0 -5
data/lib/sentdm/models.rb CHANGED
@@ -53,8 +53,6 @@ module Sentdm
53
53
 
54
54
  APIResponseWebhook = Sentdm::Models::APIResponseWebhook
55
55
 
56
- BaseDto = Sentdm::Models::BaseDto
57
-
58
56
  BillingContactInfo = Sentdm::Models::BillingContactInfo
59
57
 
60
58
  BrandsBrandData = Sentdm::Models::BrandsBrandData
@@ -81,7 +79,7 @@ module Sentdm
81
79
 
82
80
  MessageSendParams = Sentdm::Models::MessageSendParams
83
81
 
84
- MutationRequestBase = Sentdm::Models::MutationRequestBase
82
+ MutationRequest = Sentdm::Models::MutationRequest
85
83
 
86
84
  NumberLookupParams = Sentdm::Models::NumberLookupParams
87
85
 
@@ -89,7 +87,7 @@ module Sentdm
89
87
 
90
88
  PaymentDetails = Sentdm::Models::PaymentDetails
91
89
 
92
- ProfileCompleteSetupParams = Sentdm::Models::ProfileCompleteSetupParams
90
+ ProfileCompleteParams = Sentdm::Models::ProfileCompleteParams
93
91
 
94
92
  ProfileCreateParams = Sentdm::Models::ProfileCreateParams
95
93
 
@@ -107,6 +105,33 @@ module Sentdm
107
105
 
108
106
  ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
109
107
 
108
+ SentDmServicesCommonContractsPocOsAuthenticationConfig =
109
+ Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig
110
+
111
+ SentDmServicesCommonContractsPocOsTemplateBody =
112
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody
113
+
114
+ SentDmServicesCommonContractsPocOsTemplateButton =
115
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton
116
+
117
+ SentDmServicesCommonContractsPocOsTemplateButtonProps =
118
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps
119
+
120
+ SentDmServicesCommonContractsPocOsTemplateFooter =
121
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter
122
+
123
+ SentDmServicesCommonContractsPocOsTemplateHeader =
124
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
125
+
126
+ SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo =
127
+ Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
128
+
129
+ SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo =
130
+ Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
131
+
132
+ SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo =
133
+ Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
134
+
110
135
  TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
111
136
 
112
137
  TcrVertical = Sentdm::Models::TcrVertical
@@ -75,7 +75,7 @@ module Sentdm
75
75
  #
76
76
  # @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
77
77
  #
78
- # @param template [Sentdm::Models::MessageSendParams::Template] Body param: Template reference (by id or name, with optional parameters)
78
+ # @param template [Sentdm::Models::MessageSendParams::Template] Body param: SDK-style template reference: resolve by ID or by name, with optiona
79
79
  #
80
80
  # @param to [Array<String>] Body param: List of recipient phone numbers in E.164 format (multi-recipient fan
81
81
  #
@@ -15,7 +15,7 @@ module Sentdm
15
15
  #
16
16
  # @param profile_id [String] Path param: Profile ID from route
17
17
  #
18
- # @param campaign [Sentdm::Models::Profiles::CampaignData] Body param: Campaign data
18
+ # @param campaign [Sentdm::Models::Profiles::CampaignData] Body param: Campaign data for create or update operation
19
19
  #
20
20
  # @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
21
21
  #
@@ -53,7 +53,7 @@ module Sentdm
53
53
  #
54
54
  # @param profile_id [String] Path param: Profile ID from route
55
55
  #
56
- # @param campaign [Sentdm::Models::Profiles::CampaignData] Body param: Campaign data
56
+ # @param campaign [Sentdm::Models::Profiles::CampaignData] Body param: Campaign data for create or update operation
57
57
  #
58
58
  # @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
59
59
  #
@@ -54,11 +54,11 @@ module Sentdm
54
54
  #
55
55
  # @param allow_template_sharing [Boolean] Body param: Whether templates are shared across profiles (default: false)
56
56
  #
57
- # @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact for this profile. Required when billing_model is "pr
57
+ # @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
58
58
  #
59
59
  # @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (d
60
60
  #
61
- # @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC information for this profile (optional).
61
+ # @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
62
62
  #
63
63
  # @param description [String, nil] Body param: Profile description (optional)
64
64
  #
@@ -74,13 +74,13 @@ module Sentdm
74
74
  #
75
75
  # @param name [String] Body param: Profile name (required)
76
76
  #
77
- # @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for this profile (optional).
77
+ # @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for a profile.
78
78
  #
79
79
  # @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
80
80
  #
81
81
  # @param short_name [String, nil] Body param: Profile short name/abbreviation (optional). Must be 3–11 characters,
82
82
  #
83
- # @param whatsapp_business_account [Sentdm::Models::ProfileCreateParams::WhatsappBusinessAccount, nil] Body param: Direct WhatsApp Business Account credentials for this profile.
83
+ # @param whatsapp_business_account [Sentdm::Models::ProfileCreateParams::WhatsappBusinessAccount, nil] Body param: Direct WhatsApp Business Account credentials for a profile.
84
84
  #
85
85
  # @param idempotency_key [String] Header param: Unique key to ensure idempotent request processing. Must be 1-255
86
86
  #
@@ -165,11 +165,11 @@ module Sentdm
165
165
  #
166
166
  # @param allow_template_sharing [Boolean, nil] Body param: Whether templates are shared across profiles (optional)
167
167
  #
168
- # @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact for this profile. Required when billing_model is "pr
168
+ # @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
169
169
  #
170
170
  # @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (o
171
171
  #
172
- # @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC information for this profile (optional).
172
+ # @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
173
173
  #
174
174
  # @param description [String, nil] Body param: Profile description (optional)
175
175
  #
@@ -185,7 +185,7 @@ module Sentdm
185
185
  #
186
186
  # @param name [String, nil] Body param: Profile name (optional)
187
187
  #
188
- # @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for this profile (optional).
188
+ # @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for a profile.
189
189
  #
190
190
  # @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
191
191
  #
@@ -281,7 +281,7 @@ module Sentdm
281
281
  end
282
282
 
283
283
  # Some parameter documentations has been truncated, see
284
- # {Sentdm::Models::ProfileCompleteSetupParams} for more details.
284
+ # {Sentdm::Models::ProfileCompleteParams} for more details.
285
285
  #
286
286
  # Final step in profile compliance workflow. Validates all prerequisites (general
287
287
  # data, brand, campaigns), connects profile to Telnyx/WhatsApp, and sets status
@@ -302,7 +302,7 @@ module Sentdm
302
302
  # - If non-TCR with destination country (IsMain=true) → SUBMITTED
303
303
  # - Otherwise → COMPLETED
304
304
  #
305
- # @overload complete_setup(profile_id, web_hook_url:, sandbox: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
305
+ # @overload complete(profile_id, web_hook_url:, sandbox: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
306
306
  #
307
307
  # @param profile_id [String] Path param: Profile ID from route
308
308
  #
@@ -318,9 +318,9 @@ module Sentdm
318
318
  #
319
319
  # @return [Object]
320
320
  #
321
- # @see Sentdm::Models::ProfileCompleteSetupParams
322
- def complete_setup(profile_id, params)
323
- parsed, options = Sentdm::ProfileCompleteSetupParams.dump_request(params)
321
+ # @see Sentdm::Models::ProfileCompleteParams
322
+ def complete(profile_id, params)
323
+ parsed, options = Sentdm::ProfileCompleteParams.dump_request(params)
324
324
  header_params = {idempotency_key: "idempotency-key", x_profile_id: "x-profile-id"}
325
325
  @client.request(
326
326
  method: :post,
@@ -17,7 +17,7 @@ module Sentdm
17
17
  #
18
18
  # @param creation_source [String, nil] Body param: Source of template creation (default: from-api)
19
19
  #
20
- # @param definition [Sentdm::Models::TemplateDefinition] Body param: Template definition including header, body, footer, and buttons
20
+ # @param definition [Sentdm::Models::TemplateDefinition] Body param: Complete definition of a message template including header, body, fo
21
21
  #
22
22
  # @param language [String, nil] Body param: Template language code (e.g., en_US) (optional, auto-detected if not
23
23
  #
@@ -87,7 +87,7 @@ module Sentdm
87
87
  #
88
88
  # @param category [String, nil] Body param: Template category: MARKETING, UTILITY, AUTHENTICATION
89
89
  #
90
- # @param definition [Sentdm::Models::TemplateDefinition, nil] Body param: Template definition including header, body, footer, and buttons
90
+ # @param definition [Sentdm::Models::TemplateDefinition, nil] Body param: Complete definition of a message template including header, body, fo
91
91
  #
92
92
  # @param language [String, nil] Body param: Template language code (e.g., en_US)
93
93
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentdm
4
- VERSION = "0.5.0"
4
+ VERSION = "0.8.0"
5
5
  end
data/lib/sentdm.rb CHANGED
@@ -52,8 +52,8 @@ require_relative "sentdm/errors"
52
52
  require_relative "sentdm/internal/transport/base_client"
53
53
  require_relative "sentdm/internal/transport/pooled_net_requester"
54
54
  require_relative "sentdm/client"
55
- require_relative "sentdm/models/mutation_request_base"
56
- require_relative "sentdm/models/base_dto"
55
+ require_relative "sentdm/models/mutation_request"
56
+ require_relative "sentdm/models/profiles/base_dto"
57
57
  require_relative "sentdm/models/api_error"
58
58
  require_relative "sentdm/models/api_meta"
59
59
  require_relative "sentdm/models/api_response_of_contact"
@@ -83,8 +83,8 @@ require_relative "sentdm/models/number_lookup_params"
83
83
  require_relative "sentdm/models/number_lookup_response"
84
84
  require_relative "sentdm/models/pagination_meta"
85
85
  require_relative "sentdm/models/payment_details"
86
- require_relative "sentdm/models/profile_complete_setup_params"
87
- require_relative "sentdm/models/profile_complete_setup_response"
86
+ require_relative "sentdm/models/profile_complete_params"
87
+ require_relative "sentdm/models/profile_complete_response"
88
88
  require_relative "sentdm/models/profile_create_params"
89
89
  require_relative "sentdm/models/profile_delete_params"
90
90
  require_relative "sentdm/models/profile_detail"
@@ -99,9 +99,19 @@ require_relative "sentdm/models/profiles/campaign_list_params"
99
99
  require_relative "sentdm/models/profiles/campaign_list_response"
100
100
  require_relative "sentdm/models/profiles/campaign_update_params"
101
101
  require_relative "sentdm/models/profiles/messaging_use_case_us"
102
+ require_relative "sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data"
102
103
  require_relative "sentdm/models/profiles/tcr_campaign_with_use_cases"
103
104
  require_relative "sentdm/models/profile_settings"
104
105
  require_relative "sentdm/models/profile_update_params"
106
+ require_relative "sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config"
107
+ require_relative "sentdm/models/sent_dm_services_common_contracts_poc_os_template_body"
108
+ require_relative "sentdm/models/sent_dm_services_common_contracts_poc_os_template_button"
109
+ require_relative "sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props"
110
+ require_relative "sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer"
111
+ require_relative "sentdm/models/sent_dm_services_common_contracts_poc_os_template_header"
112
+ require_relative "sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info"
113
+ require_relative "sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info"
114
+ require_relative "sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info"
105
115
  require_relative "sentdm/models/tcr_brand_relationship"
106
116
  require_relative "sentdm/models/tcr_vertical"
107
117
  require_relative "sentdm/models/template"
@@ -8,21 +8,21 @@ module Sentdm
8
8
  T.any(Sentdm::APIResponseOfContact, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # Contact response for v3 API Uses snake_case for JSON property names
12
12
  sig { returns(T.nilable(Sentdm::ContactResponse)) }
13
13
  attr_reader :data
14
14
 
15
15
  sig { params(data: T.nilable(Sentdm::ContactResponse::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
18
+ # Error information
19
19
  sig { returns(T.nilable(Sentdm::APIError)) }
20
20
  attr_reader :error
21
21
 
22
22
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -46,11 +46,11 @@ module Sentdm
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The response data (null if error)
49
+ # Contact response for v3 API Uses snake_case for JSON property names
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil
@@ -8,21 +8,21 @@ module Sentdm
8
8
  T.any(Sentdm::APIResponseOfProfileDetail, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # Detailed profile response for v3 API
12
12
  sig { returns(T.nilable(Sentdm::ProfileDetail)) }
13
13
  attr_reader :data
14
14
 
15
15
  sig { params(data: T.nilable(Sentdm::ProfileDetail::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
18
+ # Error information
19
19
  sig { returns(T.nilable(Sentdm::APIError)) }
20
20
  attr_reader :error
21
21
 
22
22
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -46,11 +46,11 @@ module Sentdm
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The response data (null if error)
49
+ # Detailed profile response for v3 API
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil
@@ -8,21 +8,21 @@ module Sentdm
8
8
  T.any(Sentdm::APIResponseOfUser, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # User response for v3 API
12
12
  sig { returns(T.nilable(Sentdm::UserResponse)) }
13
13
  attr_reader :data
14
14
 
15
15
  sig { params(data: T.nilable(Sentdm::UserResponse::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
18
+ # Error information
19
19
  sig { returns(T.nilable(Sentdm::APIError)) }
20
20
  attr_reader :error
21
21
 
22
22
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -46,11 +46,11 @@ module Sentdm
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The response data (null if error)
49
+ # User response for v3 API
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil
@@ -8,21 +8,21 @@ module Sentdm
8
8
  T.any(Sentdm::APIResponseTemplate, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # Template response for v3 API
12
12
  sig { returns(T.nilable(Sentdm::Template)) }
13
13
  attr_reader :data
14
14
 
15
15
  sig { params(data: T.nilable(Sentdm::Template::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
18
+ # Error information
19
19
  sig { returns(T.nilable(Sentdm::APIError)) }
20
20
  attr_reader :error
21
21
 
22
22
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -46,11 +46,11 @@ module Sentdm
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The response data (null if error)
49
+ # Template response for v3 API
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil
@@ -15,14 +15,14 @@ module Sentdm
15
15
  sig { params(data: T.nilable(Sentdm::WebhookResponse::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
18
+ # Error information
19
19
  sig { returns(T.nilable(Sentdm::APIError)) }
20
20
  attr_reader :error
21
21
 
22
22
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -48,9 +48,9 @@ module Sentdm
48
48
  def self.new(
49
49
  # The response data (null if error)
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil