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.
Files changed (284) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +31 -1
  4. data/lib/sentdm/internal/type/base_model.rb +5 -5
  5. data/lib/sentdm/internal/type/enum.rb +25 -0
  6. data/lib/sentdm/models/api_meta.rb +34 -0
  7. data/lib/sentdm/models/api_response_of_contact.rb +46 -0
  8. data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
  9. data/lib/sentdm/models/api_response_of_user.rb +43 -0
  10. data/lib/sentdm/models/api_response_template.rb +43 -0
  11. data/lib/sentdm/models/api_response_webhook.rb +43 -0
  12. data/lib/sentdm/models/billing_contact_info.rb +47 -0
  13. data/lib/sentdm/models/brands_brand_data.rb +38 -0
  14. data/lib/sentdm/models/contact_delete_params.rb +2 -16
  15. data/lib/sentdm/models/contact_list_response.rb +12 -278
  16. data/lib/sentdm/models/contact_response.rb +126 -0
  17. data/lib/sentdm/models/destination_country.rb +21 -0
  18. data/lib/sentdm/models/error_detail.rb +42 -0
  19. data/lib/sentdm/models/me_retrieve_response.rb +12 -204
  20. data/lib/sentdm/models/message_retrieve_activities_response.rb +6 -74
  21. data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
  22. data/lib/sentdm/models/message_send_response.rb +6 -74
  23. data/lib/sentdm/models/mutation_request.rb +20 -0
  24. data/lib/sentdm/models/number_lookup_response.rb +6 -74
  25. data/lib/sentdm/models/pagination_meta.rb +80 -0
  26. data/lib/sentdm/models/payment_details.rb +44 -0
  27. data/lib/sentdm/models/profile_complete_response.rb +6 -74
  28. data/lib/sentdm/models/profile_create_params.rb +9 -423
  29. data/lib/sentdm/models/profile_delete_params.rb +2 -16
  30. data/lib/sentdm/models/profile_detail.rb +605 -0
  31. data/lib/sentdm/models/profile_list_response.rb +9 -753
  32. data/lib/sentdm/models/profile_settings.rb +66 -0
  33. data/lib/sentdm/models/profile_update_params.rb +9 -423
  34. data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +45 -0
  35. data/lib/sentdm/models/profiles/base_dto.rb +32 -0
  36. data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -165
  37. data/lib/sentdm/models/profiles/campaign_data.rb +123 -0
  38. data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
  39. data/lib/sentdm/models/profiles/campaign_list_response.rb +9 -420
  40. data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -165
  41. data/lib/sentdm/models/profiles/messaging_use_case_us.rb +28 -0
  42. data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +29 -0
  43. data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +248 -0
  44. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +34 -0
  45. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +48 -0
  46. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +38 -0
  47. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +81 -0
  48. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +34 -0
  49. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +39 -0
  50. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +116 -0
  51. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +75 -0
  52. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +58 -0
  53. data/lib/sentdm/models/tcr_brand_relationship.rb +18 -0
  54. data/lib/sentdm/models/tcr_vertical.rb +36 -0
  55. data/lib/sentdm/models/template.rb +90 -0
  56. data/lib/sentdm/models/template_body_content.rb +27 -0
  57. data/lib/sentdm/models/template_create_params.rb +3 -889
  58. data/lib/sentdm/models/template_definition.rb +66 -0
  59. data/lib/sentdm/models/template_list_response.rb +12 -242
  60. data/lib/sentdm/models/template_update_params.rb +3 -889
  61. data/lib/sentdm/models/template_variable.rb +80 -0
  62. data/lib/sentdm/models/user_list_response.rb +9 -154
  63. data/lib/sentdm/models/user_remove_params.rb +2 -16
  64. data/lib/sentdm/models/user_response.rb +82 -0
  65. data/lib/sentdm/models/webhook_event_type.rb +45 -0
  66. data/lib/sentdm/models/webhook_list_event_types_response.rb +9 -118
  67. data/lib/sentdm/models/webhook_list_events_response.rb +9 -153
  68. data/lib/sentdm/models/webhook_list_response.rb +12 -247
  69. data/lib/sentdm/models/webhook_response.rb +95 -0
  70. data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
  71. data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
  72. data/lib/sentdm/models/webhook_test_response.rb +6 -74
  73. data/lib/sentdm/models.rb +77 -0
  74. data/lib/sentdm/resources/contacts.rb +6 -6
  75. data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
  76. data/lib/sentdm/resources/profiles.rb +12 -12
  77. data/lib/sentdm/resources/templates.rb +8 -8
  78. data/lib/sentdm/resources/users.rb +6 -6
  79. data/lib/sentdm/resources/webhooks.rb +8 -8
  80. data/lib/sentdm/version.rb +1 -1
  81. data/lib/sentdm.rb +40 -18
  82. data/rbi/sentdm/models/api_meta.rbi +55 -0
  83. data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
  84. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
  85. data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
  86. data/rbi/sentdm/models/api_response_template.rbi +74 -0
  87. data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
  88. data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
  89. data/rbi/sentdm/models/brands_brand_data.rbi +104 -0
  90. data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
  91. data/rbi/sentdm/models/contact_list_response.rbi +16 -505
  92. data/rbi/sentdm/models/contact_response.rbi +183 -0
  93. data/rbi/sentdm/models/destination_country.rbi +32 -0
  94. data/rbi/sentdm/models/error_detail.rbi +66 -0
  95. data/rbi/sentdm/models/me_retrieve_response.rbi +16 -335
  96. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +8 -154
  97. data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
  98. data/rbi/sentdm/models/message_send_response.rbi +8 -135
  99. data/rbi/sentdm/models/mutation_request.rbi +32 -0
  100. data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
  101. data/rbi/sentdm/models/pagination_meta.rbi +135 -0
  102. data/rbi/sentdm/models/payment_details.rbi +59 -0
  103. data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
  104. data/rbi/sentdm/models/profile_create_params.rbi +12 -810
  105. data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
  106. data/rbi/sentdm/models/profile_detail.rbi +874 -0
  107. data/rbi/sentdm/models/profile_list_response.rbi +14 -1400
  108. data/rbi/sentdm/models/profile_settings.rbi +86 -0
  109. data/rbi/sentdm/models/profile_update_params.rbi +12 -810
  110. data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +83 -0
  111. data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
  112. data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -289
  113. data/rbi/sentdm/models/profiles/campaign_data.rbi +148 -0
  114. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
  115. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +11 -733
  116. data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -289
  117. data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +73 -0
  118. data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +51 -0
  119. data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +425 -0
  120. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +56 -0
  121. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +87 -0
  122. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +72 -0
  123. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +104 -0
  124. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +57 -0
  125. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +59 -0
  126. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +180 -0
  127. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +95 -0
  128. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +81 -0
  129. data/rbi/sentdm/models/tcr_brand_relationship.rbi +30 -0
  130. data/rbi/sentdm/models/tcr_vertical.rbi +41 -0
  131. data/rbi/sentdm/models/template.rbi +129 -0
  132. data/rbi/sentdm/models/template_body_content.rbi +43 -0
  133. data/rbi/sentdm/models/template_create_params.rbi +4 -1701
  134. data/rbi/sentdm/models/template_definition.rbi +164 -0
  135. data/rbi/sentdm/models/template_list_response.rbi +16 -454
  136. data/rbi/sentdm/models/template_update_params.rbi +4 -1701
  137. data/rbi/sentdm/models/template_variable.rbi +120 -0
  138. data/rbi/sentdm/models/user_list_response.rbi +14 -271
  139. data/rbi/sentdm/models/user_remove_params.rbi +2 -19
  140. data/rbi/sentdm/models/user_response.rbi +118 -0
  141. data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
  142. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +12 -247
  143. data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
  144. data/rbi/sentdm/models/webhook_list_response.rbi +16 -462
  145. data/rbi/sentdm/models/webhook_response.rbi +140 -0
  146. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
  147. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
  148. data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
  149. data/rbi/sentdm/models.rbi +77 -0
  150. data/rbi/sentdm/resources/contacts.rbi +3 -3
  151. data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
  152. data/rbi/sentdm/resources/profiles.rbi +9 -13
  153. data/rbi/sentdm/resources/templates.rbi +5 -6
  154. data/rbi/sentdm/resources/users.rbi +3 -3
  155. data/rbi/sentdm/resources/webhooks.rbi +4 -4
  156. data/sig/sentdm/models/api_meta.rbs +27 -0
  157. data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
  158. data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
  159. data/sig/sentdm/models/api_response_of_user.rbs +39 -0
  160. data/sig/sentdm/models/api_response_template.rbs +39 -0
  161. data/sig/sentdm/models/api_response_webhook.rbs +39 -0
  162. data/sig/sentdm/models/billing_contact_info.rbs +30 -0
  163. data/sig/sentdm/models/brands_brand_data.rbs +30 -0
  164. data/sig/sentdm/models/contact_delete_params.rbs +6 -10
  165. data/sig/sentdm/models/contact_list_response.rbs +20 -256
  166. data/sig/sentdm/models/contact_response.rbs +111 -0
  167. data/sig/sentdm/models/destination_country.rbs +19 -0
  168. data/sig/sentdm/models/error_detail.rbs +39 -0
  169. data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
  170. data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -71
  171. data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
  172. data/sig/sentdm/models/message_send_response.rbs +9 -71
  173. data/sig/sentdm/models/mutation_request.rbs +15 -0
  174. data/sig/sentdm/models/number_lookup_response.rbs +9 -71
  175. data/sig/sentdm/models/pagination_meta.rbs +67 -0
  176. data/sig/sentdm/models/payment_details.rbs +30 -0
  177. data/sig/sentdm/models/profile_complete_response.rbs +9 -71
  178. data/sig/sentdm/models/profile_create_params.rbs +12 -363
  179. data/sig/sentdm/models/profile_delete_params.rbs +6 -10
  180. data/sig/sentdm/models/profile_detail.rbs +474 -0
  181. data/sig/sentdm/models/profile_list_response.rbs +15 -645
  182. data/sig/sentdm/models/profile_settings.rbs +50 -0
  183. data/sig/sentdm/models/profile_update_params.rbs +12 -363
  184. data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +41 -0
  185. data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
  186. data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -138
  187. data/sig/sentdm/models/profiles/campaign_data.rbs +82 -0
  188. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
  189. data/sig/sentdm/models/profiles/campaign_list_response.rbs +13 -396
  190. data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -138
  191. data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +40 -0
  192. data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
  193. data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +299 -0
  194. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +24 -0
  195. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +35 -0
  196. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +32 -0
  197. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +75 -0
  198. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +30 -0
  199. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +30 -0
  200. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +89 -0
  201. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +55 -0
  202. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +45 -0
  203. data/sig/sentdm/models/tcr_brand_relationship.rbs +22 -0
  204. data/sig/sentdm/models/tcr_vertical.rbs +58 -0
  205. data/sig/sentdm/models/template.rbs +79 -0
  206. data/sig/sentdm/models/template_body_content.rbs +30 -0
  207. data/sig/sentdm/models/template_create_params.rbs +6 -853
  208. data/sig/sentdm/models/template_definition.rbs +45 -0
  209. data/sig/sentdm/models/template_list_response.rbs +19 -225
  210. data/sig/sentdm/models/template_update_params.rbs +4 -851
  211. data/sig/sentdm/models/template_variable.rbs +84 -0
  212. data/sig/sentdm/models/user_list_response.rbs +15 -151
  213. data/sig/sentdm/models/user_remove_params.rbs +6 -10
  214. data/sig/sentdm/models/user_response.rbs +72 -0
  215. data/sig/sentdm/models/webhook_event_type.rbs +51 -0
  216. data/sig/sentdm/models/webhook_list_event_types_response.rbs +15 -130
  217. data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
  218. data/sig/sentdm/models/webhook_list_response.rbs +20 -248
  219. data/sig/sentdm/models/webhook_response.rbs +103 -0
  220. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
  221. data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
  222. data/sig/sentdm/models/webhook_test_response.rbs +9 -71
  223. data/sig/sentdm/models.rbs +68 -0
  224. data/sig/sentdm/resources/contacts.rbs +3 -3
  225. data/sig/sentdm/resources/profiles/campaigns.rbs +4 -4
  226. data/sig/sentdm/resources/profiles.rbs +9 -9
  227. data/sig/sentdm/resources/templates.rbs +5 -5
  228. data/sig/sentdm/resources/users.rbs +3 -3
  229. data/sig/sentdm/resources/webhooks.rbs +4 -4
  230. metadata +121 -55
  231. data/lib/sentdm/models/contact_create_response.rb +0 -236
  232. data/lib/sentdm/models/contact_retrieve_response.rb +0 -236
  233. data/lib/sentdm/models/contact_update_response.rb +0 -236
  234. data/lib/sentdm/models/profile_create_response.rb +0 -781
  235. data/lib/sentdm/models/profile_retrieve_response.rb +0 -783
  236. data/lib/sentdm/models/profile_update_response.rb +0 -781
  237. data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -459
  238. data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -459
  239. data/lib/sentdm/models/template_create_response.rb +0 -197
  240. data/lib/sentdm/models/template_retrieve_response.rb +0 -197
  241. data/lib/sentdm/models/template_update_response.rb +0 -197
  242. data/lib/sentdm/models/user_invite_response.rb +0 -189
  243. data/lib/sentdm/models/user_retrieve_response.rb +0 -189
  244. data/lib/sentdm/models/user_update_role_response.rb +0 -189
  245. data/lib/sentdm/models/webhook_create_response.rb +0 -204
  246. data/lib/sentdm/models/webhook_retrieve_response.rb +0 -204
  247. data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -204
  248. data/lib/sentdm/models/webhook_update_response.rb +0 -204
  249. data/rbi/sentdm/models/contact_create_response.rbi +0 -390
  250. data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -392
  251. data/rbi/sentdm/models/contact_update_response.rbi +0 -390
  252. data/rbi/sentdm/models/profile_create_response.rbi +0 -1439
  253. data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1443
  254. data/rbi/sentdm/models/profile_update_response.rbi +0 -1439
  255. data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -814
  256. data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -814
  257. data/rbi/sentdm/models/template_create_response.rbi +0 -339
  258. data/rbi/sentdm/models/template_retrieve_response.rbi +0 -345
  259. data/rbi/sentdm/models/template_update_response.rbi +0 -339
  260. data/rbi/sentdm/models/user_invite_response.rbi +0 -323
  261. data/rbi/sentdm/models/user_retrieve_response.rbi +0 -323
  262. data/rbi/sentdm/models/user_update_role_response.rbi +0 -328
  263. data/rbi/sentdm/models/webhook_create_response.rbi +0 -348
  264. data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -350
  265. data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -366
  266. data/rbi/sentdm/models/webhook_update_response.rbi +0 -348
  267. data/sig/sentdm/models/contact_create_response.rbs +0 -209
  268. data/sig/sentdm/models/contact_retrieve_response.rbs +0 -209
  269. data/sig/sentdm/models/contact_update_response.rbs +0 -209
  270. data/sig/sentdm/models/profile_create_response.rbs +0 -662
  271. data/sig/sentdm/models/profile_retrieve_response.rbs +0 -662
  272. data/sig/sentdm/models/profile_update_response.rbs +0 -662
  273. data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -424
  274. data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -424
  275. data/sig/sentdm/models/template_create_response.rbs +0 -177
  276. data/sig/sentdm/models/template_retrieve_response.rbs +0 -177
  277. data/sig/sentdm/models/template_update_response.rbs +0 -177
  278. data/sig/sentdm/models/user_invite_response.rbs +0 -170
  279. data/sig/sentdm/models/user_retrieve_response.rbs +0 -170
  280. data/sig/sentdm/models/user_update_role_response.rbs +0 -170
  281. data/sig/sentdm/models/webhook_create_response.rbs +0 -201
  282. data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -201
  283. data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -201
  284. data/sig/sentdm/models/webhook_update_response.rbs +0 -201
@@ -13,14 +13,14 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::ContactListResponse::Error, nil]
17
- optional :error, -> { Sentdm::Models::ContactListResponse::Error }, nil?: true
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::ContactListResponse::Meta, nil]
23
- optional :meta, -> { Sentdm::Models::ContactListResponse::Meta }
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::ContactListResponse::Data, nil] Paginated list of contacts response
35
35
  #
36
- # @param error [Sentdm::Models::ContactListResponse::Error, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
- # @param meta [Sentdm::Models::ContactListResponse::Meta] Request and response metadata
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,287 +44,21 @@ module Sentdm
44
44
  # @!attribute contacts
45
45
  # List of contacts
46
46
  #
47
- # @return [Array<Sentdm::Models::ContactListResponse::Data::Contact>, nil]
48
- optional :contacts,
49
- -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Models::ContactListResponse::Data::Contact] }
47
+ # @return [Array<Sentdm::Models::ContactResponse>, nil]
48
+ optional :contacts, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::ContactResponse] }
50
49
 
51
50
  # @!attribute pagination
52
51
  # Pagination metadata for list responses
53
52
  #
54
- # @return [Sentdm::Models::ContactListResponse::Data::Pagination, nil]
55
- optional :pagination, -> { Sentdm::Models::ContactListResponse::Data::Pagination }
53
+ # @return [Sentdm::Models::PaginationMeta, nil]
54
+ optional :pagination, -> { Sentdm::PaginationMeta }
56
55
 
57
56
  # @!method initialize(contacts: nil, pagination: nil)
58
57
  # Paginated list of contacts response
59
58
  #
60
- # @param contacts [Array<Sentdm::Models::ContactListResponse::Data::Contact>] List of contacts
59
+ # @param contacts [Array<Sentdm::Models::ContactResponse>] List of contacts
61
60
  #
62
- # @param pagination [Sentdm::Models::ContactListResponse::Data::Pagination] Pagination metadata for list responses
63
-
64
- class Contact < Sentdm::Internal::Type::BaseModel
65
- # @!attribute id
66
- # Unique identifier for the contact
67
- #
68
- # @return [String, nil]
69
- optional :id, String
70
-
71
- # @!attribute available_channels
72
- # Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
73
- #
74
- # @return [String, nil]
75
- optional :available_channels, String
76
-
77
- # @!attribute country_code
78
- # Country calling code (e.g., 1 for US/Canada)
79
- #
80
- # @return [String, nil]
81
- optional :country_code, String
82
-
83
- # @!attribute created_at
84
- # When the contact was created
85
- #
86
- # @return [Time, nil]
87
- optional :created_at, Time
88
-
89
- # @!attribute default_channel
90
- # Default messaging channel to use (e.g., "sms" or "whatsapp")
91
- #
92
- # @return [String, nil]
93
- optional :default_channel, String
94
-
95
- # @!attribute format_e164
96
- # Phone number in E.164 format (e.g., +1234567890)
97
- #
98
- # @return [String, nil]
99
- optional :format_e164, String
100
-
101
- # @!attribute format_international
102
- # Phone number in international format (e.g., +1 234-567-890)
103
- #
104
- # @return [String, nil]
105
- optional :format_international, String
106
-
107
- # @!attribute format_national
108
- # Phone number in national format (e.g., (234) 567-890)
109
- #
110
- # @return [String, nil]
111
- optional :format_national, String
112
-
113
- # @!attribute format_rfc
114
- # Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
115
- #
116
- # @return [String, nil]
117
- optional :format_rfc, String
118
-
119
- # @!attribute is_inherited
120
- # Whether this is an inherited contact (read-only)
121
- #
122
- # @return [Boolean, nil]
123
- optional :is_inherited, Sentdm::Internal::Type::Boolean
124
-
125
- # @!attribute opt_out
126
- # Whether the contact has opted out of messaging. Single source of truth — opt-out
127
- # is per-contact, not per-channel.
128
- #
129
- # @return [Boolean, nil]
130
- optional :opt_out, Sentdm::Internal::Type::Boolean
131
-
132
- # @!attribute phone_number
133
- # Phone number in original format
134
- #
135
- # @return [String, nil]
136
- optional :phone_number, String
137
-
138
- # @!attribute region_code
139
- # ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
140
- #
141
- # @return [String, nil]
142
- optional :region_code, String
143
-
144
- # @!attribute updated_at
145
- # When the contact was last updated
146
- #
147
- # @return [Time, nil]
148
- optional :updated_at, Time, nil?: true
149
-
150
- # @!method initialize(id: nil, available_channels: nil, country_code: nil, created_at: nil, default_channel: nil, format_e164: nil, format_international: nil, format_national: nil, format_rfc: nil, is_inherited: nil, opt_out: nil, phone_number: nil, region_code: nil, updated_at: nil)
151
- # Some parameter documentations has been truncated, see
152
- # {Sentdm::Models::ContactListResponse::Data::Contact} for more details.
153
- #
154
- # Contact response for v3 API Uses snake_case for JSON property names
155
- #
156
- # @param id [String] Unique identifier for the contact
157
- #
158
- # @param available_channels [String] Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
159
- #
160
- # @param country_code [String] Country calling code (e.g., 1 for US/Canada)
161
- #
162
- # @param created_at [Time] When the contact was created
163
- #
164
- # @param default_channel [String] Default messaging channel to use (e.g., "sms" or "whatsapp")
165
- #
166
- # @param format_e164 [String] Phone number in E.164 format (e.g., +1234567890)
167
- #
168
- # @param format_international [String] Phone number in international format (e.g., +1 234-567-890)
169
- #
170
- # @param format_national [String] Phone number in national format (e.g., (234) 567-890)
171
- #
172
- # @param format_rfc [String] Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
173
- #
174
- # @param is_inherited [Boolean] Whether this is an inherited contact (read-only)
175
- #
176
- # @param opt_out [Boolean] Whether the contact has opted out of messaging. Single source of truth — opt-out
177
- #
178
- # @param phone_number [String] Phone number in original format
179
- #
180
- # @param region_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
181
- #
182
- # @param updated_at [Time, nil] When the contact was last updated
183
- end
184
-
185
- # @see Sentdm::Models::ContactListResponse::Data#pagination
186
- class Pagination < Sentdm::Internal::Type::BaseModel
187
- # @!attribute cursors
188
- # Cursor-based pagination pointers
189
- #
190
- # @return [Sentdm::Models::ContactListResponse::Data::Pagination::Cursors, nil]
191
- optional :cursors, -> { Sentdm::Models::ContactListResponse::Data::Pagination::Cursors }, nil?: true
192
-
193
- # @!attribute has_more
194
- # Whether there are more pages after this one
195
- #
196
- # @return [Boolean, nil]
197
- optional :has_more, Sentdm::Internal::Type::Boolean
198
-
199
- # @!attribute page
200
- # Current page number (1-indexed)
201
- #
202
- # @return [Integer, nil]
203
- optional :page, Integer
204
-
205
- # @!attribute page_size
206
- # Number of items per page
207
- #
208
- # @return [Integer, nil]
209
- optional :page_size, Integer
210
-
211
- # @!attribute total_count
212
- # Total number of items across all pages
213
- #
214
- # @return [Integer, nil]
215
- optional :total_count, Integer
216
-
217
- # @!attribute total_pages
218
- # Total number of pages
219
- #
220
- # @return [Integer, nil]
221
- optional :total_pages, Integer
222
-
223
- # @!method initialize(cursors: nil, has_more: nil, page: nil, page_size: nil, total_count: nil, total_pages: nil)
224
- # Pagination metadata for list responses
225
- #
226
- # @param cursors [Sentdm::Models::ContactListResponse::Data::Pagination::Cursors, nil] Cursor-based pagination pointers
227
- #
228
- # @param has_more [Boolean] Whether there are more pages after this one
229
- #
230
- # @param page [Integer] Current page number (1-indexed)
231
- #
232
- # @param page_size [Integer] Number of items per page
233
- #
234
- # @param total_count [Integer] Total number of items across all pages
235
- #
236
- # @param total_pages [Integer] Total number of pages
237
-
238
- # @see Sentdm::Models::ContactListResponse::Data::Pagination#cursors
239
- class Cursors < Sentdm::Internal::Type::BaseModel
240
- # @!attribute after
241
- # Cursor to fetch the next page
242
- #
243
- # @return [String, nil]
244
- optional :after, String, nil?: true
245
-
246
- # @!attribute before
247
- # Cursor to fetch the previous page
248
- #
249
- # @return [String, nil]
250
- optional :before, String, nil?: true
251
-
252
- # @!method initialize(after: nil, before: nil)
253
- # Cursor-based pagination pointers
254
- #
255
- # @param after [String, nil] Cursor to fetch the next page
256
- #
257
- # @param before [String, nil] Cursor to fetch the previous page
258
- end
259
- end
260
- end
261
-
262
- # @see Sentdm::Models::ContactListResponse#error
263
- class Error < Sentdm::Internal::Type::BaseModel
264
- # @!attribute code
265
- # Machine-readable error code (e.g., "RESOURCE_001")
266
- #
267
- # @return [String, nil]
268
- optional :code, String
269
-
270
- # @!attribute details
271
- # Additional validation error details (field-level errors)
272
- #
273
- # @return [Hash{Symbol=>Array<String>}, nil]
274
- optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
275
-
276
- # @!attribute doc_url
277
- # URL to documentation about this error
278
- #
279
- # @return [String, nil]
280
- optional :doc_url, String, nil?: true
281
-
282
- # @!attribute message
283
- # Human-readable error message
284
- #
285
- # @return [String, nil]
286
- optional :message, String
287
-
288
- # @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
289
- # Error information
290
- #
291
- # @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
292
- #
293
- # @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
294
- #
295
- # @param doc_url [String, nil] URL to documentation about this error
296
- #
297
- # @param message [String] Human-readable error message
298
- end
299
-
300
- # @see Sentdm::Models::ContactListResponse#meta
301
- class Meta < Sentdm::Internal::Type::BaseModel
302
- # @!attribute request_id
303
- # Unique identifier for this request (for tracing and support)
304
- #
305
- # @return [String, nil]
306
- optional :request_id, String
307
-
308
- # @!attribute timestamp
309
- # Server timestamp when the response was generated
310
- #
311
- # @return [Time, nil]
312
- optional :timestamp, Time
313
-
314
- # @!attribute version
315
- # API version used for this request
316
- #
317
- # @return [String, nil]
318
- optional :version, String
319
-
320
- # @!method initialize(request_id: nil, timestamp: nil, version: nil)
321
- # Request and response metadata
322
- #
323
- # @param request_id [String] Unique identifier for this request (for tracing and support)
324
- #
325
- # @param timestamp [Time] Server timestamp when the response was generated
326
- #
327
- # @param version [String] API version used for this request
61
+ # @param pagination [Sentdm::Models::PaginationMeta] Pagination metadata for list responses
328
62
  end
329
63
  end
330
64
  end
@@ -0,0 +1,126 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ class ContactResponse < Sentdm::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # Unique identifier for the contact
8
+ #
9
+ # @return [String, nil]
10
+ optional :id, String
11
+
12
+ # @!attribute available_channels
13
+ # Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
14
+ #
15
+ # @return [String, nil]
16
+ optional :available_channels, String
17
+
18
+ # @!attribute country_code
19
+ # Country calling code (e.g., 1 for US/Canada)
20
+ #
21
+ # @return [String, nil]
22
+ optional :country_code, String
23
+
24
+ # @!attribute created_at
25
+ # When the contact was created
26
+ #
27
+ # @return [Time, nil]
28
+ optional :created_at, Time
29
+
30
+ # @!attribute default_channel
31
+ # Default messaging channel to use (e.g., "sms" or "whatsapp")
32
+ #
33
+ # @return [String, nil]
34
+ optional :default_channel, String
35
+
36
+ # @!attribute format_e164
37
+ # Phone number in E.164 format (e.g., +1234567890)
38
+ #
39
+ # @return [String, nil]
40
+ optional :format_e164, String
41
+
42
+ # @!attribute format_international
43
+ # Phone number in international format (e.g., +1 234-567-890)
44
+ #
45
+ # @return [String, nil]
46
+ optional :format_international, String
47
+
48
+ # @!attribute format_national
49
+ # Phone number in national format (e.g., (234) 567-890)
50
+ #
51
+ # @return [String, nil]
52
+ optional :format_national, String
53
+
54
+ # @!attribute format_rfc
55
+ # Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
56
+ #
57
+ # @return [String, nil]
58
+ optional :format_rfc, String
59
+
60
+ # @!attribute is_inherited
61
+ # Whether this is an inherited contact (read-only)
62
+ #
63
+ # @return [Boolean, nil]
64
+ optional :is_inherited, Sentdm::Internal::Type::Boolean
65
+
66
+ # @!attribute opt_out
67
+ # Whether the contact has opted out of messaging. Single source of truth — opt-out
68
+ # is per-contact, not per-channel.
69
+ #
70
+ # @return [Boolean, nil]
71
+ optional :opt_out, Sentdm::Internal::Type::Boolean
72
+
73
+ # @!attribute phone_number
74
+ # Phone number in original format
75
+ #
76
+ # @return [String, nil]
77
+ optional :phone_number, String
78
+
79
+ # @!attribute region_code
80
+ # ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
81
+ #
82
+ # @return [String, nil]
83
+ optional :region_code, String
84
+
85
+ # @!attribute updated_at
86
+ # When the contact was last updated
87
+ #
88
+ # @return [Time, nil]
89
+ optional :updated_at, Time, nil?: true
90
+
91
+ # @!method initialize(id: nil, available_channels: nil, country_code: nil, created_at: nil, default_channel: nil, format_e164: nil, format_international: nil, format_national: nil, format_rfc: nil, is_inherited: nil, opt_out: nil, phone_number: nil, region_code: nil, updated_at: nil)
92
+ # Some parameter documentations has been truncated, see
93
+ # {Sentdm::Models::ContactResponse} for more details.
94
+ #
95
+ # Contact response for v3 API Uses snake_case for JSON property names
96
+ #
97
+ # @param id [String] Unique identifier for the contact
98
+ #
99
+ # @param available_channels [String] Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
100
+ #
101
+ # @param country_code [String] Country calling code (e.g., 1 for US/Canada)
102
+ #
103
+ # @param created_at [Time] When the contact was created
104
+ #
105
+ # @param default_channel [String] Default messaging channel to use (e.g., "sms" or "whatsapp")
106
+ #
107
+ # @param format_e164 [String] Phone number in E.164 format (e.g., +1234567890)
108
+ #
109
+ # @param format_international [String] Phone number in international format (e.g., +1 234-567-890)
110
+ #
111
+ # @param format_national [String] Phone number in national format (e.g., (234) 567-890)
112
+ #
113
+ # @param format_rfc [String] Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
114
+ #
115
+ # @param is_inherited [Boolean] Whether this is an inherited contact (read-only)
116
+ #
117
+ # @param opt_out [Boolean] Whether the contact has opted out of messaging. Single source of truth — opt-out
118
+ #
119
+ # @param phone_number [String] Phone number in original format
120
+ #
121
+ # @param region_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
122
+ #
123
+ # @param updated_at [Time, nil] When the contact was last updated
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ class DestinationCountry < Sentdm::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ #
8
+ # @return [String, nil]
9
+ optional :id, String
10
+
11
+ # @!attribute is_main
12
+ #
13
+ # @return [Boolean, nil]
14
+ optional :is_main, Sentdm::Internal::Type::Boolean, api_name: :isMain
15
+
16
+ # @!method initialize(id: nil, is_main: nil)
17
+ # @param id [String]
18
+ # @param is_main [Boolean]
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ class ErrorDetail < Sentdm::Internal::Type::BaseModel
6
+ # @!attribute code
7
+ # Machine-readable error code (e.g., "RESOURCE_001")
8
+ #
9
+ # @return [String, nil]
10
+ optional :code, String
11
+
12
+ # @!attribute details
13
+ # Additional validation error details (field-level errors)
14
+ #
15
+ # @return [Hash{Symbol=>Array<String>}, nil]
16
+ optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
17
+
18
+ # @!attribute doc_url
19
+ # URL to documentation about this error
20
+ #
21
+ # @return [String, nil]
22
+ optional :doc_url, String, nil?: true
23
+
24
+ # @!attribute message
25
+ # Human-readable error message
26
+ #
27
+ # @return [String, nil]
28
+ optional :message, String
29
+
30
+ # @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
31
+ # Error information
32
+ #
33
+ # @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
34
+ #
35
+ # @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
36
+ #
37
+ # @param doc_url [String, nil] URL to documentation about this error
38
+ #
39
+ # @param message [String] Human-readable error message
40
+ end
41
+ end
42
+ end