sentdm 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -31
  4. data/lib/sentdm/internal/transport/base_client.rb +2 -0
  5. data/lib/sentdm/internal/type/base_model.rb +5 -5
  6. data/lib/sentdm/internal/type/enum.rb +0 -25
  7. data/lib/sentdm/models/contact_create_response.rb +236 -0
  8. data/lib/sentdm/models/contact_delete_params.rb +16 -2
  9. data/lib/sentdm/models/contact_list_response.rb +278 -12
  10. data/lib/sentdm/models/contact_retrieve_response.rb +236 -0
  11. data/lib/sentdm/models/contact_update_params.rb +4 -16
  12. data/lib/sentdm/models/contact_update_response.rb +236 -0
  13. data/lib/sentdm/models/me_retrieve_response.rb +204 -12
  14. data/lib/sentdm/models/message_retrieve_activities_response.rb +74 -6
  15. data/lib/sentdm/models/message_retrieve_status_response.rb +87 -7
  16. data/lib/sentdm/models/message_send_params.rb +2 -2
  17. data/lib/sentdm/models/message_send_response.rb +74 -6
  18. data/lib/sentdm/models/number_lookup_response.rb +74 -6
  19. data/lib/sentdm/models/profile_complete_response.rb +74 -6
  20. data/lib/sentdm/models/profile_create_params.rb +423 -9
  21. data/lib/sentdm/models/profile_create_response.rb +781 -0
  22. data/lib/sentdm/models/profile_delete_params.rb +16 -2
  23. data/lib/sentdm/models/profile_list_response.rb +753 -9
  24. data/lib/sentdm/models/profile_retrieve_response.rb +783 -0
  25. data/lib/sentdm/models/profile_update_params.rb +423 -9
  26. data/lib/sentdm/models/profile_update_response.rb +781 -0
  27. data/lib/sentdm/models/profiles/campaign_create_params.rb +165 -3
  28. data/lib/sentdm/models/profiles/campaign_create_response.rb +459 -0
  29. data/lib/sentdm/models/profiles/campaign_delete_params.rb +17 -2
  30. data/lib/sentdm/models/profiles/campaign_list_response.rb +420 -9
  31. data/lib/sentdm/models/profiles/campaign_update_params.rb +165 -3
  32. data/lib/sentdm/models/profiles/campaign_update_response.rb +459 -0
  33. data/lib/sentdm/models/template_create_params.rb +889 -3
  34. data/lib/sentdm/models/template_create_response.rb +197 -0
  35. data/lib/sentdm/models/template_list_response.rb +242 -12
  36. data/lib/sentdm/models/template_retrieve_response.rb +197 -0
  37. data/lib/sentdm/models/template_update_params.rb +889 -3
  38. data/lib/sentdm/models/template_update_response.rb +197 -0
  39. data/lib/sentdm/models/user_invite_response.rb +189 -0
  40. data/lib/sentdm/models/user_list_response.rb +154 -9
  41. data/lib/sentdm/models/user_remove_params.rb +16 -2
  42. data/lib/sentdm/models/user_retrieve_response.rb +189 -0
  43. data/lib/sentdm/models/user_update_role_response.rb +189 -0
  44. data/lib/sentdm/models/webhook_create_response.rb +204 -0
  45. data/lib/sentdm/models/webhook_list_event_types_response.rb +118 -9
  46. data/lib/sentdm/models/webhook_list_events_response.rb +153 -9
  47. data/lib/sentdm/models/webhook_list_response.rb +247 -12
  48. data/lib/sentdm/models/webhook_retrieve_response.rb +204 -0
  49. data/lib/sentdm/models/webhook_rotate_secret_params.rb +17 -2
  50. data/lib/sentdm/models/webhook_rotate_secret_response.rb +74 -6
  51. data/lib/sentdm/models/webhook_test_response.rb +74 -6
  52. data/lib/sentdm/models/webhook_toggle_status_response.rb +204 -0
  53. data/lib/sentdm/models/webhook_update_response.rb +204 -0
  54. data/lib/sentdm/models.rb +0 -77
  55. data/lib/sentdm/resources/contacts.rb +8 -10
  56. data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
  57. data/lib/sentdm/resources/profiles.rb +12 -12
  58. data/lib/sentdm/resources/templates.rb +8 -8
  59. data/lib/sentdm/resources/users.rb +6 -6
  60. data/lib/sentdm/resources/webhooks.rb +8 -8
  61. data/lib/sentdm/version.rb +1 -1
  62. data/lib/sentdm.rb +18 -40
  63. data/rbi/sentdm/models/contact_create_response.rbi +390 -0
  64. data/rbi/sentdm/models/contact_delete_params.rbi +19 -2
  65. data/rbi/sentdm/models/contact_list_response.rbi +505 -16
  66. data/rbi/sentdm/models/contact_retrieve_response.rbi +392 -0
  67. data/rbi/sentdm/models/contact_update_params.rbi +4 -20
  68. data/rbi/sentdm/models/contact_update_response.rbi +390 -0
  69. data/rbi/sentdm/models/me_retrieve_response.rbi +335 -16
  70. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +154 -8
  71. data/rbi/sentdm/models/message_retrieve_status_response.rbi +171 -11
  72. data/rbi/sentdm/models/message_send_params.rbi +4 -4
  73. data/rbi/sentdm/models/message_send_response.rbi +135 -8
  74. data/rbi/sentdm/models/number_lookup_response.rbi +135 -8
  75. data/rbi/sentdm/models/profile_complete_response.rbi +137 -8
  76. data/rbi/sentdm/models/profile_create_params.rbi +810 -12
  77. data/rbi/sentdm/models/profile_create_response.rbi +1439 -0
  78. data/rbi/sentdm/models/profile_delete_params.rbi +19 -2
  79. data/rbi/sentdm/models/profile_list_response.rbi +1400 -14
  80. data/rbi/sentdm/models/profile_retrieve_response.rbi +1443 -0
  81. data/rbi/sentdm/models/profile_update_params.rbi +810 -12
  82. data/rbi/sentdm/models/profile_update_response.rbi +1439 -0
  83. data/rbi/sentdm/models/profiles/campaign_create_params.rbi +289 -4
  84. data/rbi/sentdm/models/profiles/campaign_create_response.rbi +814 -0
  85. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +14 -1
  86. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +733 -11
  87. data/rbi/sentdm/models/profiles/campaign_update_params.rbi +289 -4
  88. data/rbi/sentdm/models/profiles/campaign_update_response.rbi +814 -0
  89. data/rbi/sentdm/models/template_create_params.rbi +1701 -4
  90. data/rbi/sentdm/models/template_create_response.rbi +339 -0
  91. data/rbi/sentdm/models/template_list_response.rbi +454 -16
  92. data/rbi/sentdm/models/template_retrieve_response.rbi +345 -0
  93. data/rbi/sentdm/models/template_update_params.rbi +1701 -4
  94. data/rbi/sentdm/models/template_update_response.rbi +339 -0
  95. data/rbi/sentdm/models/user_invite_response.rbi +323 -0
  96. data/rbi/sentdm/models/user_list_response.rbi +271 -14
  97. data/rbi/sentdm/models/user_remove_params.rbi +19 -2
  98. data/rbi/sentdm/models/user_retrieve_response.rbi +323 -0
  99. data/rbi/sentdm/models/user_update_role_response.rbi +328 -0
  100. data/rbi/sentdm/models/webhook_create_response.rbi +348 -0
  101. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +247 -12
  102. data/rbi/sentdm/models/webhook_list_events_response.rbi +314 -12
  103. data/rbi/sentdm/models/webhook_list_response.rbi +462 -16
  104. data/rbi/sentdm/models/webhook_retrieve_response.rbi +350 -0
  105. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +14 -1
  106. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +148 -8
  107. data/rbi/sentdm/models/webhook_test_response.rbi +135 -8
  108. data/rbi/sentdm/models/webhook_toggle_status_response.rbi +366 -0
  109. data/rbi/sentdm/models/webhook_update_response.rbi +348 -0
  110. data/rbi/sentdm/models.rbi +0 -77
  111. data/rbi/sentdm/resources/contacts.rbi +5 -12
  112. data/rbi/sentdm/resources/messages.rbi +2 -2
  113. data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
  114. data/rbi/sentdm/resources/profiles.rbi +13 -9
  115. data/rbi/sentdm/resources/templates.rbi +6 -5
  116. data/rbi/sentdm/resources/users.rbi +3 -3
  117. data/rbi/sentdm/resources/webhooks.rbi +4 -4
  118. data/sig/sentdm/models/contact_create_response.rbs +209 -0
  119. data/sig/sentdm/models/contact_delete_params.rbs +10 -6
  120. data/sig/sentdm/models/contact_list_response.rbs +256 -20
  121. data/sig/sentdm/models/contact_retrieve_response.rbs +209 -0
  122. data/sig/sentdm/models/contact_update_params.rbs +0 -5
  123. data/sig/sentdm/models/contact_update_response.rbs +209 -0
  124. data/sig/sentdm/models/me_retrieve_response.rbs +176 -18
  125. data/sig/sentdm/models/message_retrieve_activities_response.rbs +71 -9
  126. data/sig/sentdm/models/message_retrieve_status_response.rbs +95 -13
  127. data/sig/sentdm/models/message_send_response.rbs +71 -9
  128. data/sig/sentdm/models/number_lookup_response.rbs +71 -9
  129. data/sig/sentdm/models/profile_complete_response.rbs +71 -9
  130. data/sig/sentdm/models/profile_create_params.rbs +363 -12
  131. data/sig/sentdm/models/profile_create_response.rbs +662 -0
  132. data/sig/sentdm/models/profile_delete_params.rbs +10 -6
  133. data/sig/sentdm/models/profile_list_response.rbs +645 -15
  134. data/sig/sentdm/models/profile_retrieve_response.rbs +662 -0
  135. data/sig/sentdm/models/profile_update_params.rbs +363 -12
  136. data/sig/sentdm/models/profile_update_response.rbs +662 -0
  137. data/sig/sentdm/models/profiles/campaign_create_params.rbs +138 -4
  138. data/sig/sentdm/models/profiles/campaign_create_response.rbs +424 -0
  139. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +15 -8
  140. data/sig/sentdm/models/profiles/campaign_list_response.rbs +396 -13
  141. data/sig/sentdm/models/profiles/campaign_update_params.rbs +138 -4
  142. data/sig/sentdm/models/profiles/campaign_update_response.rbs +424 -0
  143. data/sig/sentdm/models/template_create_params.rbs +853 -6
  144. data/sig/sentdm/models/template_create_response.rbs +177 -0
  145. data/sig/sentdm/models/template_list_response.rbs +225 -19
  146. data/sig/sentdm/models/template_retrieve_response.rbs +177 -0
  147. data/sig/sentdm/models/template_update_params.rbs +851 -4
  148. data/sig/sentdm/models/template_update_response.rbs +177 -0
  149. data/sig/sentdm/models/user_invite_response.rbs +170 -0
  150. data/sig/sentdm/models/user_list_response.rbs +151 -15
  151. data/sig/sentdm/models/user_remove_params.rbs +10 -6
  152. data/sig/sentdm/models/user_retrieve_response.rbs +170 -0
  153. data/sig/sentdm/models/user_update_role_response.rbs +170 -0
  154. data/sig/sentdm/models/webhook_create_response.rbs +201 -0
  155. data/sig/sentdm/models/webhook_list_event_types_response.rbs +130 -15
  156. data/sig/sentdm/models/webhook_list_events_response.rbs +142 -14
  157. data/sig/sentdm/models/webhook_list_response.rbs +248 -20
  158. data/sig/sentdm/models/webhook_retrieve_response.rbs +201 -0
  159. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +17 -8
  160. data/sig/sentdm/models/webhook_rotate_secret_response.rbs +71 -9
  161. data/sig/sentdm/models/webhook_test_response.rbs +71 -9
  162. data/sig/sentdm/models/webhook_toggle_status_response.rbs +201 -0
  163. data/sig/sentdm/models/webhook_update_response.rbs +201 -0
  164. data/sig/sentdm/models.rbs +0 -68
  165. data/sig/sentdm/resources/contacts.rbs +3 -4
  166. data/sig/sentdm/resources/profiles/campaigns.rbs +4 -4
  167. data/sig/sentdm/resources/profiles.rbs +9 -9
  168. data/sig/sentdm/resources/templates.rbs +5 -5
  169. data/sig/sentdm/resources/users.rbs +3 -3
  170. data/sig/sentdm/resources/webhooks.rbs +4 -4
  171. metadata +56 -122
  172. data/lib/sentdm/models/api_meta.rb +0 -34
  173. data/lib/sentdm/models/api_response_of_contact.rb +0 -46
  174. data/lib/sentdm/models/api_response_of_profile_detail.rb +0 -43
  175. data/lib/sentdm/models/api_response_of_user.rb +0 -43
  176. data/lib/sentdm/models/api_response_template.rb +0 -43
  177. data/lib/sentdm/models/api_response_webhook.rb +0 -43
  178. data/lib/sentdm/models/billing_contact_info.rb +0 -47
  179. data/lib/sentdm/models/brands_brand_data.rb +0 -38
  180. data/lib/sentdm/models/contact_response.rb +0 -136
  181. data/lib/sentdm/models/destination_country.rb +0 -21
  182. data/lib/sentdm/models/error_detail.rb +0 -42
  183. data/lib/sentdm/models/mutation_request.rb +0 -20
  184. data/lib/sentdm/models/pagination_meta.rb +0 -80
  185. data/lib/sentdm/models/payment_details.rb +0 -44
  186. data/lib/sentdm/models/profile_detail.rb +0 -605
  187. data/lib/sentdm/models/profile_settings.rb +0 -66
  188. data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +0 -45
  189. data/lib/sentdm/models/profiles/base_dto.rb +0 -32
  190. data/lib/sentdm/models/profiles/campaign_data.rb +0 -123
  191. data/lib/sentdm/models/profiles/messaging_use_case_us.rb +0 -28
  192. data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -29
  193. data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +0 -236
  194. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
  195. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
  196. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
  197. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
  198. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
  199. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
  200. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +0 -116
  201. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +0 -75
  202. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +0 -58
  203. data/lib/sentdm/models/tcr_brand_relationship.rb +0 -18
  204. data/lib/sentdm/models/tcr_vertical.rb +0 -36
  205. data/lib/sentdm/models/template.rb +0 -90
  206. data/lib/sentdm/models/template_body_content.rb +0 -27
  207. data/lib/sentdm/models/template_definition.rb +0 -66
  208. data/lib/sentdm/models/template_variable.rb +0 -80
  209. data/lib/sentdm/models/user_response.rb +0 -82
  210. data/lib/sentdm/models/webhook_event_type.rb +0 -45
  211. data/lib/sentdm/models/webhook_response.rb +0 -95
  212. data/rbi/sentdm/models/api_meta.rbi +0 -55
  213. data/rbi/sentdm/models/api_response_of_contact.rbi +0 -74
  214. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +0 -74
  215. data/rbi/sentdm/models/api_response_of_user.rbi +0 -74
  216. data/rbi/sentdm/models/api_response_template.rbi +0 -74
  217. data/rbi/sentdm/models/api_response_webhook.rbi +0 -74
  218. data/rbi/sentdm/models/billing_contact_info.rbi +0 -65
  219. data/rbi/sentdm/models/brands_brand_data.rbi +0 -104
  220. data/rbi/sentdm/models/contact_response.rbi +0 -195
  221. data/rbi/sentdm/models/destination_country.rbi +0 -32
  222. data/rbi/sentdm/models/error_detail.rbi +0 -66
  223. data/rbi/sentdm/models/mutation_request.rbi +0 -32
  224. data/rbi/sentdm/models/pagination_meta.rbi +0 -135
  225. data/rbi/sentdm/models/payment_details.rbi +0 -59
  226. data/rbi/sentdm/models/profile_detail.rbi +0 -874
  227. data/rbi/sentdm/models/profile_settings.rbi +0 -86
  228. data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +0 -83
  229. data/rbi/sentdm/models/profiles/base_dto.rbi +0 -53
  230. data/rbi/sentdm/models/profiles/campaign_data.rbi +0 -148
  231. data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +0 -73
  232. data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -51
  233. data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +0 -410
  234. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
  235. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
  236. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -72
  237. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
  238. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -57
  239. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -59
  240. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +0 -180
  241. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +0 -95
  242. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +0 -81
  243. data/rbi/sentdm/models/tcr_brand_relationship.rbi +0 -30
  244. data/rbi/sentdm/models/tcr_vertical.rbi +0 -41
  245. data/rbi/sentdm/models/template.rbi +0 -129
  246. data/rbi/sentdm/models/template_body_content.rbi +0 -43
  247. data/rbi/sentdm/models/template_definition.rbi +0 -164
  248. data/rbi/sentdm/models/template_variable.rbi +0 -120
  249. data/rbi/sentdm/models/user_response.rbi +0 -118
  250. data/rbi/sentdm/models/webhook_event_type.rbi +0 -74
  251. data/rbi/sentdm/models/webhook_response.rbi +0 -140
  252. data/sig/sentdm/models/api_meta.rbs +0 -27
  253. data/sig/sentdm/models/api_response_of_contact.rbs +0 -39
  254. data/sig/sentdm/models/api_response_of_profile_detail.rbs +0 -39
  255. data/sig/sentdm/models/api_response_of_user.rbs +0 -39
  256. data/sig/sentdm/models/api_response_template.rbs +0 -39
  257. data/sig/sentdm/models/api_response_webhook.rbs +0 -39
  258. data/sig/sentdm/models/billing_contact_info.rbs +0 -30
  259. data/sig/sentdm/models/brands_brand_data.rbs +0 -30
  260. data/sig/sentdm/models/contact_response.rbs +0 -116
  261. data/sig/sentdm/models/destination_country.rbs +0 -19
  262. data/sig/sentdm/models/error_detail.rbs +0 -39
  263. data/sig/sentdm/models/mutation_request.rbs +0 -15
  264. data/sig/sentdm/models/pagination_meta.rbs +0 -67
  265. data/sig/sentdm/models/payment_details.rbs +0 -30
  266. data/sig/sentdm/models/profile_detail.rbs +0 -474
  267. data/sig/sentdm/models/profile_settings.rbs +0 -50
  268. data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +0 -41
  269. data/sig/sentdm/models/profiles/base_dto.rbs +0 -27
  270. data/sig/sentdm/models/profiles/campaign_data.rbs +0 -82
  271. data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +0 -40
  272. data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
  273. data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +0 -285
  274. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
  275. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
  276. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -32
  277. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
  278. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -30
  279. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -30
  280. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +0 -89
  281. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +0 -55
  282. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +0 -45
  283. data/sig/sentdm/models/tcr_brand_relationship.rbs +0 -22
  284. data/sig/sentdm/models/tcr_vertical.rbs +0 -58
  285. data/sig/sentdm/models/template.rbs +0 -79
  286. data/sig/sentdm/models/template_body_content.rbs +0 -30
  287. data/sig/sentdm/models/template_definition.rbs +0 -45
  288. data/sig/sentdm/models/template_variable.rbs +0 -84
  289. data/sig/sentdm/models/user_response.rbs +0 -72
  290. data/sig/sentdm/models/webhook_event_type.rbs +0 -51
  291. data/sig/sentdm/models/webhook_response.rbs +0 -103
@@ -3,38 +3,421 @@ module Sentdm
3
3
  module Profiles
4
4
  type campaign_list_response =
5
5
  {
6
- data: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases]?,
7
- error: Sentdm::ErrorDetail?,
8
- meta: Sentdm::APIMeta,
6
+ data: ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data]?,
7
+ error: Sentdm::Models::Profiles::CampaignListResponse::Error?,
8
+ meta: Sentdm::Models::Profiles::CampaignListResponse::Meta,
9
9
  success: bool
10
10
  }
11
11
 
12
12
  class CampaignListResponse < Sentdm::Internal::Type::BaseModel
13
- attr_accessor data: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases]?
13
+ attr_accessor data: ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data]?
14
14
 
15
- attr_accessor error: Sentdm::ErrorDetail?
15
+ attr_accessor error: Sentdm::Models::Profiles::CampaignListResponse::Error?
16
16
 
17
- attr_reader meta: Sentdm::APIMeta?
17
+ attr_reader meta: Sentdm::Models::Profiles::CampaignListResponse::Meta?
18
18
 
19
- def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
19
+ def meta=: (
20
+ Sentdm::Models::Profiles::CampaignListResponse::Meta
21
+ ) -> Sentdm::Models::Profiles::CampaignListResponse::Meta
20
22
 
21
23
  attr_reader success: bool?
22
24
 
23
25
  def success=: (bool) -> bool
24
26
 
25
27
  def initialize: (
26
- ?data: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases]?,
27
- ?error: Sentdm::ErrorDetail?,
28
- ?meta: Sentdm::APIMeta,
28
+ ?data: ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data]?,
29
+ ?error: Sentdm::Models::Profiles::CampaignListResponse::Error?,
30
+ ?meta: Sentdm::Models::Profiles::CampaignListResponse::Meta,
29
31
  ?success: bool
30
32
  ) -> void
31
33
 
32
34
  def to_hash: -> {
33
- data: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases]?,
34
- error: Sentdm::ErrorDetail?,
35
- meta: Sentdm::APIMeta,
35
+ data: ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data]?,
36
+ error: Sentdm::Models::Profiles::CampaignListResponse::Error?,
37
+ meta: Sentdm::Models::Profiles::CampaignListResponse::Meta,
36
38
  success: bool
37
39
  }
40
+
41
+ type data =
42
+ {
43
+ id: String,
44
+ billed_date: Time?,
45
+ brand_id: String?,
46
+ cost: Float?,
47
+ created_at: Time,
48
+ csp_id: String?,
49
+ customer_id: String,
50
+ dca_elections_complete: bool,
51
+ dca_elections_completed_at: Time?,
52
+ description: String,
53
+ help_keywords: String?,
54
+ help_message: String?,
55
+ kyc_submission_form_id: String?,
56
+ message_flow: String?,
57
+ name: String,
58
+ optin_keywords: String?,
59
+ optin_message: String?,
60
+ optout_keywords: String?,
61
+ optout_message: String?,
62
+ privacy_policy_link: String?,
63
+ reseller_id: String?,
64
+ sharing_status: Sentdm::Models::Profiles::CampaignListResponse::Data::sharing_status?,
65
+ status: Sentdm::Models::Profiles::CampaignListResponse::Data::status?,
66
+ submitted_at: Time?,
67
+ submitted_to_tcr: bool,
68
+ tcr_campaign_id: String?,
69
+ tcr_sync_error: String?,
70
+ telnyx_campaign_id: String?,
71
+ terms_and_conditions_link: String?,
72
+ type: String,
73
+ updated_at: Time?,
74
+ upstream_cnp_id: String?,
75
+ use_cases: ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase]
76
+ }
77
+
78
+ class Data < Sentdm::Internal::Type::BaseModel
79
+ attr_reader id: String?
80
+
81
+ def id=: (String) -> String
82
+
83
+ attr_accessor billed_date: Time?
84
+
85
+ attr_accessor brand_id: String?
86
+
87
+ attr_accessor cost: Float?
88
+
89
+ attr_reader created_at: Time?
90
+
91
+ def created_at=: (Time) -> Time
92
+
93
+ attr_accessor csp_id: String?
94
+
95
+ attr_reader customer_id: String?
96
+
97
+ def customer_id=: (String) -> String
98
+
99
+ attr_reader dca_elections_complete: bool?
100
+
101
+ def dca_elections_complete=: (bool) -> bool
102
+
103
+ attr_accessor dca_elections_completed_at: Time?
104
+
105
+ attr_reader description: String?
106
+
107
+ def description=: (String) -> String
108
+
109
+ attr_accessor help_keywords: String?
110
+
111
+ attr_accessor help_message: String?
112
+
113
+ attr_accessor kyc_submission_form_id: String?
114
+
115
+ attr_accessor message_flow: String?
116
+
117
+ attr_reader name: String?
118
+
119
+ def name=: (String) -> String
120
+
121
+ attr_accessor optin_keywords: String?
122
+
123
+ attr_accessor optin_message: String?
124
+
125
+ attr_accessor optout_keywords: String?
126
+
127
+ attr_accessor optout_message: String?
128
+
129
+ attr_accessor privacy_policy_link: String?
130
+
131
+ attr_accessor reseller_id: String?
132
+
133
+ attr_accessor sharing_status: Sentdm::Models::Profiles::CampaignListResponse::Data::sharing_status?
134
+
135
+ attr_accessor status: Sentdm::Models::Profiles::CampaignListResponse::Data::status?
136
+
137
+ attr_accessor submitted_at: Time?
138
+
139
+ attr_reader submitted_to_tcr: bool?
140
+
141
+ def submitted_to_tcr=: (bool) -> bool
142
+
143
+ attr_accessor tcr_campaign_id: String?
144
+
145
+ attr_accessor tcr_sync_error: String?
146
+
147
+ attr_accessor telnyx_campaign_id: String?
148
+
149
+ attr_accessor terms_and_conditions_link: String?
150
+
151
+ attr_reader type: String?
152
+
153
+ def type=: (String) -> String
154
+
155
+ attr_accessor updated_at: Time?
156
+
157
+ attr_accessor upstream_cnp_id: String?
158
+
159
+ attr_reader use_cases: ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase]?
160
+
161
+ def use_cases=: (
162
+ ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase]
163
+ ) -> ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase]
164
+
165
+ def initialize: (
166
+ ?id: String,
167
+ ?billed_date: Time?,
168
+ ?brand_id: String?,
169
+ ?cost: Float?,
170
+ ?created_at: Time,
171
+ ?csp_id: String?,
172
+ ?customer_id: String,
173
+ ?dca_elections_complete: bool,
174
+ ?dca_elections_completed_at: Time?,
175
+ ?description: String,
176
+ ?help_keywords: String?,
177
+ ?help_message: String?,
178
+ ?kyc_submission_form_id: String?,
179
+ ?message_flow: String?,
180
+ ?name: String,
181
+ ?optin_keywords: String?,
182
+ ?optin_message: String?,
183
+ ?optout_keywords: String?,
184
+ ?optout_message: String?,
185
+ ?privacy_policy_link: String?,
186
+ ?reseller_id: String?,
187
+ ?sharing_status: Sentdm::Models::Profiles::CampaignListResponse::Data::sharing_status?,
188
+ ?status: Sentdm::Models::Profiles::CampaignListResponse::Data::status?,
189
+ ?submitted_at: Time?,
190
+ ?submitted_to_tcr: bool,
191
+ ?tcr_campaign_id: String?,
192
+ ?tcr_sync_error: String?,
193
+ ?telnyx_campaign_id: String?,
194
+ ?terms_and_conditions_link: String?,
195
+ ?type: String,
196
+ ?updated_at: Time?,
197
+ ?upstream_cnp_id: String?,
198
+ ?use_cases: ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase]
199
+ ) -> void
200
+
201
+ def to_hash: -> {
202
+ id: String,
203
+ billed_date: Time?,
204
+ brand_id: String?,
205
+ cost: Float?,
206
+ created_at: Time,
207
+ csp_id: String?,
208
+ customer_id: String,
209
+ dca_elections_complete: bool,
210
+ dca_elections_completed_at: Time?,
211
+ description: String,
212
+ help_keywords: String?,
213
+ help_message: String?,
214
+ kyc_submission_form_id: String?,
215
+ message_flow: String?,
216
+ name: String,
217
+ optin_keywords: String?,
218
+ optin_message: String?,
219
+ optout_keywords: String?,
220
+ optout_message: String?,
221
+ privacy_policy_link: String?,
222
+ reseller_id: String?,
223
+ sharing_status: Sentdm::Models::Profiles::CampaignListResponse::Data::sharing_status?,
224
+ status: Sentdm::Models::Profiles::CampaignListResponse::Data::status?,
225
+ submitted_at: Time?,
226
+ submitted_to_tcr: bool,
227
+ tcr_campaign_id: String?,
228
+ tcr_sync_error: String?,
229
+ telnyx_campaign_id: String?,
230
+ terms_and_conditions_link: String?,
231
+ type: String,
232
+ updated_at: Time?,
233
+ upstream_cnp_id: String?,
234
+ use_cases: ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase]
235
+ }
236
+
237
+ type sharing_status = :PENDING | :ACCEPTED | :DECLINED
238
+
239
+ module SharingStatus
240
+ extend Sentdm::Internal::Type::Enum
241
+
242
+ PENDING: :PENDING
243
+ ACCEPTED: :ACCEPTED
244
+ DECLINED: :DECLINED
245
+
246
+ def self?.values: -> ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data::sharing_status]
247
+ end
248
+
249
+ type status = :SENT_CREATED | :ACTIVE | :EXPIRED
250
+
251
+ module Status
252
+ extend Sentdm::Internal::Type::Enum
253
+
254
+ SENT_CREATED: :SENT_CREATED
255
+ ACTIVE: :ACTIVE
256
+ EXPIRED: :EXPIRED
257
+
258
+ def self?.values: -> ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data::status]
259
+ end
260
+
261
+ type use_case =
262
+ {
263
+ id: String,
264
+ campaign_id: String,
265
+ created_at: Time,
266
+ customer_id: String,
267
+ messaging_use_case_us: Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase::messaging_use_case_us,
268
+ sample_messages: ::Array[String],
269
+ updated_at: Time?
270
+ }
271
+
272
+ class UseCase < Sentdm::Internal::Type::BaseModel
273
+ attr_reader id: String?
274
+
275
+ def id=: (String) -> String
276
+
277
+ attr_reader campaign_id: String?
278
+
279
+ def campaign_id=: (String) -> String
280
+
281
+ attr_reader created_at: Time?
282
+
283
+ def created_at=: (Time) -> Time
284
+
285
+ attr_reader customer_id: String?
286
+
287
+ def customer_id=: (String) -> String
288
+
289
+ attr_reader messaging_use_case_us: Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase::messaging_use_case_us?
290
+
291
+ def messaging_use_case_us=: (
292
+ Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase::messaging_use_case_us
293
+ ) -> Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase::messaging_use_case_us
294
+
295
+ attr_reader sample_messages: ::Array[String]?
296
+
297
+ def sample_messages=: (::Array[String]) -> ::Array[String]
298
+
299
+ attr_accessor updated_at: Time?
300
+
301
+ def initialize: (
302
+ ?id: String,
303
+ ?campaign_id: String,
304
+ ?created_at: Time,
305
+ ?customer_id: String,
306
+ ?messaging_use_case_us: Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase::messaging_use_case_us,
307
+ ?sample_messages: ::Array[String],
308
+ ?updated_at: Time?
309
+ ) -> void
310
+
311
+ def to_hash: -> {
312
+ id: String,
313
+ campaign_id: String,
314
+ created_at: Time,
315
+ customer_id: String,
316
+ messaging_use_case_us: Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase::messaging_use_case_us,
317
+ sample_messages: ::Array[String],
318
+ updated_at: Time?
319
+ }
320
+
321
+ type messaging_use_case_us =
322
+ :MARKETING
323
+ | :ACCOUNT_NOTIFICATION
324
+ | :CUSTOMER_CARE
325
+ | :FRAUD_ALERT
326
+ | :TWO_FA
327
+ | :DELIVERY_NOTIFICATION
328
+ | :SECURITY_ALERT
329
+ | :M2M
330
+ | :MIXED
331
+ | :HIGHER_EDUCATION
332
+ | :POLLING_VOTING
333
+ | :PUBLIC_SERVICE_ANNOUNCEMENT
334
+ | :LOW_VOLUME
335
+
336
+ module MessagingUseCaseUs
337
+ extend Sentdm::Internal::Type::Enum
338
+
339
+ MARKETING: :MARKETING
340
+ ACCOUNT_NOTIFICATION: :ACCOUNT_NOTIFICATION
341
+ CUSTOMER_CARE: :CUSTOMER_CARE
342
+ FRAUD_ALERT: :FRAUD_ALERT
343
+ TWO_FA: :TWO_FA
344
+ DELIVERY_NOTIFICATION: :DELIVERY_NOTIFICATION
345
+ SECURITY_ALERT: :SECURITY_ALERT
346
+ M2_M: :M2M
347
+ MIXED: :MIXED
348
+ HIGHER_EDUCATION: :HIGHER_EDUCATION
349
+ POLLING_VOTING: :POLLING_VOTING
350
+ PUBLIC_SERVICE_ANNOUNCEMENT: :PUBLIC_SERVICE_ANNOUNCEMENT
351
+ LOW_VOLUME: :LOW_VOLUME
352
+
353
+ def self?.values: -> ::Array[Sentdm::Models::Profiles::CampaignListResponse::Data::UseCase::messaging_use_case_us]
354
+ end
355
+ end
356
+ end
357
+
358
+ type error =
359
+ {
360
+ code: String,
361
+ details: ::Hash[Symbol, ::Array[String]]?,
362
+ doc_url: String?,
363
+ message: String
364
+ }
365
+
366
+ class Error < Sentdm::Internal::Type::BaseModel
367
+ attr_reader code: String?
368
+
369
+ def code=: (String) -> String
370
+
371
+ attr_accessor details: ::Hash[Symbol, ::Array[String]]?
372
+
373
+ attr_accessor doc_url: String?
374
+
375
+ attr_reader message: String?
376
+
377
+ def message=: (String) -> String
378
+
379
+ def initialize: (
380
+ ?code: String,
381
+ ?details: ::Hash[Symbol, ::Array[String]]?,
382
+ ?doc_url: String?,
383
+ ?message: String
384
+ ) -> void
385
+
386
+ def to_hash: -> {
387
+ code: String,
388
+ details: ::Hash[Symbol, ::Array[String]]?,
389
+ doc_url: String?,
390
+ message: String
391
+ }
392
+ end
393
+
394
+ type meta = { request_id: String, timestamp: Time, version: String }
395
+
396
+ class Meta < Sentdm::Internal::Type::BaseModel
397
+ attr_reader request_id: String?
398
+
399
+ def request_id=: (String) -> String
400
+
401
+ attr_reader timestamp: Time?
402
+
403
+ def timestamp=: (Time) -> Time
404
+
405
+ attr_reader version: String?
406
+
407
+ def version=: (String) -> String
408
+
409
+ def initialize: (
410
+ ?request_id: String,
411
+ ?timestamp: Time,
412
+ ?version: String
413
+ ) -> void
414
+
415
+ def to_hash: -> {
416
+ request_id: String,
417
+ timestamp: Time,
418
+ version: String
419
+ }
420
+ end
38
421
  end
39
422
  end
40
423
  end
@@ -5,7 +5,7 @@ module Sentdm
5
5
  {
6
6
  profile_id: String,
7
7
  campaign_id: String,
8
- campaign: Sentdm::Profiles::CampaignData,
8
+ campaign: Sentdm::Profiles::CampaignUpdateParams::Campaign,
9
9
  sandbox: bool,
10
10
  idempotency_key: String,
11
11
  x_profile_id: String
@@ -20,7 +20,7 @@ module Sentdm
20
20
 
21
21
  attr_accessor campaign_id: String
22
22
 
23
- attr_accessor campaign: Sentdm::Profiles::CampaignData
23
+ attr_accessor campaign: Sentdm::Profiles::CampaignUpdateParams::Campaign
24
24
 
25
25
  attr_reader sandbox: bool?
26
26
 
@@ -37,7 +37,7 @@ module Sentdm
37
37
  def initialize: (
38
38
  profile_id: String,
39
39
  campaign_id: String,
40
- campaign: Sentdm::Profiles::CampaignData,
40
+ campaign: Sentdm::Profiles::CampaignUpdateParams::Campaign,
41
41
  ?sandbox: bool,
42
42
  ?idempotency_key: String,
43
43
  ?x_profile_id: String,
@@ -47,12 +47,146 @@ module Sentdm
47
47
  def to_hash: -> {
48
48
  profile_id: String,
49
49
  campaign_id: String,
50
- campaign: Sentdm::Profiles::CampaignData,
50
+ campaign: Sentdm::Profiles::CampaignUpdateParams::Campaign,
51
51
  sandbox: bool,
52
52
  idempotency_key: String,
53
53
  x_profile_id: String,
54
54
  request_options: Sentdm::RequestOptions
55
55
  }
56
+
57
+ type campaign =
58
+ {
59
+ description: String,
60
+ name: String,
61
+ type: String,
62
+ use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase],
63
+ help_keywords: String?,
64
+ help_message: String?,
65
+ message_flow: String?,
66
+ optin_keywords: String?,
67
+ optin_message: String?,
68
+ optout_keywords: String?,
69
+ optout_message: String?,
70
+ privacy_policy_link: String?,
71
+ terms_and_conditions_link: String?
72
+ }
73
+
74
+ class Campaign < Sentdm::Internal::Type::BaseModel
75
+ attr_accessor description: String
76
+
77
+ attr_accessor name: String
78
+
79
+ attr_accessor type: String
80
+
81
+ attr_accessor use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase]
82
+
83
+ attr_accessor help_keywords: String?
84
+
85
+ attr_accessor help_message: String?
86
+
87
+ attr_accessor message_flow: String?
88
+
89
+ attr_accessor optin_keywords: String?
90
+
91
+ attr_accessor optin_message: String?
92
+
93
+ attr_accessor optout_keywords: String?
94
+
95
+ attr_accessor optout_message: String?
96
+
97
+ attr_accessor privacy_policy_link: String?
98
+
99
+ attr_accessor terms_and_conditions_link: String?
100
+
101
+ def initialize: (
102
+ description: String,
103
+ name: String,
104
+ type: String,
105
+ use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase],
106
+ ?help_keywords: String?,
107
+ ?help_message: String?,
108
+ ?message_flow: String?,
109
+ ?optin_keywords: String?,
110
+ ?optin_message: String?,
111
+ ?optout_keywords: String?,
112
+ ?optout_message: String?,
113
+ ?privacy_policy_link: String?,
114
+ ?terms_and_conditions_link: String?
115
+ ) -> void
116
+
117
+ def to_hash: -> {
118
+ description: String,
119
+ name: String,
120
+ type: String,
121
+ use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase],
122
+ help_keywords: String?,
123
+ help_message: String?,
124
+ message_flow: String?,
125
+ optin_keywords: String?,
126
+ optin_message: String?,
127
+ optout_keywords: String?,
128
+ optout_message: String?,
129
+ privacy_policy_link: String?,
130
+ terms_and_conditions_link: String?
131
+ }
132
+
133
+ type use_case =
134
+ {
135
+ messaging_use_case_us: Sentdm::Models::Profiles::CampaignUpdateParams::Campaign::UseCase::messaging_use_case_us,
136
+ sample_messages: ::Array[String]
137
+ }
138
+
139
+ class UseCase < Sentdm::Internal::Type::BaseModel
140
+ attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::CampaignUpdateParams::Campaign::UseCase::messaging_use_case_us
141
+
142
+ attr_accessor sample_messages: ::Array[String]
143
+
144
+ def initialize: (
145
+ messaging_use_case_us: Sentdm::Models::Profiles::CampaignUpdateParams::Campaign::UseCase::messaging_use_case_us,
146
+ sample_messages: ::Array[String]
147
+ ) -> void
148
+
149
+ def to_hash: -> {
150
+ messaging_use_case_us: Sentdm::Models::Profiles::CampaignUpdateParams::Campaign::UseCase::messaging_use_case_us,
151
+ sample_messages: ::Array[String]
152
+ }
153
+
154
+ type messaging_use_case_us =
155
+ :MARKETING
156
+ | :ACCOUNT_NOTIFICATION
157
+ | :CUSTOMER_CARE
158
+ | :FRAUD_ALERT
159
+ | :TWO_FA
160
+ | :DELIVERY_NOTIFICATION
161
+ | :SECURITY_ALERT
162
+ | :M2M
163
+ | :MIXED
164
+ | :HIGHER_EDUCATION
165
+ | :POLLING_VOTING
166
+ | :PUBLIC_SERVICE_ANNOUNCEMENT
167
+ | :LOW_VOLUME
168
+
169
+ module MessagingUseCaseUs
170
+ extend Sentdm::Internal::Type::Enum
171
+
172
+ MARKETING: :MARKETING
173
+ ACCOUNT_NOTIFICATION: :ACCOUNT_NOTIFICATION
174
+ CUSTOMER_CARE: :CUSTOMER_CARE
175
+ FRAUD_ALERT: :FRAUD_ALERT
176
+ TWO_FA: :TWO_FA
177
+ DELIVERY_NOTIFICATION: :DELIVERY_NOTIFICATION
178
+ SECURITY_ALERT: :SECURITY_ALERT
179
+ M2_M: :M2M
180
+ MIXED: :MIXED
181
+ HIGHER_EDUCATION: :HIGHER_EDUCATION
182
+ POLLING_VOTING: :POLLING_VOTING
183
+ PUBLIC_SERVICE_ANNOUNCEMENT: :PUBLIC_SERVICE_ANNOUNCEMENT
184
+ LOW_VOLUME: :LOW_VOLUME
185
+
186
+ def self?.values: -> ::Array[Sentdm::Models::Profiles::CampaignUpdateParams::Campaign::UseCase::messaging_use_case_us]
187
+ end
188
+ end
189
+ end
56
190
  end
57
191
  end
58
192
  end