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
@@ -15,14 +15,14 @@ module Sentdm
15
15
  # @!attribute error
16
16
  # Error information
17
17
  #
18
- # @return [Sentdm::Models::MeRetrieveResponse::Error, nil]
19
- optional :error, -> { Sentdm::Models::MeRetrieveResponse::Error }, nil?: true
18
+ # @return [Sentdm::Models::ErrorDetail, nil]
19
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
20
20
 
21
21
  # @!attribute meta
22
22
  # Request and response metadata
23
23
  #
24
- # @return [Sentdm::Models::MeRetrieveResponse::Meta, nil]
25
- optional :meta, -> { Sentdm::Models::MeRetrieveResponse::Meta }
24
+ # @return [Sentdm::Models::APIMeta, nil]
25
+ optional :meta, -> { Sentdm::APIMeta }
26
26
 
27
27
  # @!attribute success
28
28
  # Indicates whether the request was successful
@@ -38,9 +38,9 @@ module Sentdm
38
38
  #
39
39
  # @param data [Sentdm::Models::MeRetrieveResponse::Data, nil] Account response for GET /v3/me endpoint.
40
40
  #
41
- # @param error [Sentdm::Models::MeRetrieveResponse::Error, nil] Error information
41
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
42
42
  #
43
- # @param meta [Sentdm::Models::MeRetrieveResponse::Meta] Request and response metadata
43
+ # @param meta [Sentdm::Models::APIMeta] Request and response metadata
44
44
  #
45
45
  # @param success [Boolean] Indicates whether the request was successful
46
46
 
@@ -106,8 +106,8 @@ module Sentdm
106
106
  # @!attribute settings
107
107
  # Profile configuration settings
108
108
  #
109
- # @return [Sentdm::Models::MeRetrieveResponse::Data::Settings, nil]
110
- optional :settings, -> { Sentdm::Models::MeRetrieveResponse::Data::Settings }, nil?: true
109
+ # @return [Sentdm::Models::ProfileSettings, nil]
110
+ optional :settings, -> { Sentdm::ProfileSettings }, nil?: true
111
111
 
112
112
  # @!attribute short_name
113
113
  # Short name / abbreviation (only for profile type)
@@ -155,7 +155,7 @@ module Sentdm
155
155
  #
156
156
  # @param profiles [Array<Sentdm::Models::MeRetrieveResponse::Data::Profile>] List of profiles (populated for organization type, empty for user and profile ty
157
157
  #
158
- # @param settings [Sentdm::Models::MeRetrieveResponse::Data::Settings, nil] Profile configuration settings
158
+ # @param settings [Sentdm::Models::ProfileSettings, nil] Profile configuration settings
159
159
  #
160
160
  # @param short_name [String, nil] Short name / abbreviation (only for profile type)
161
161
  #
@@ -314,8 +314,8 @@ module Sentdm
314
314
  # @!attribute settings
315
315
  # Profile configuration settings
316
316
  #
317
- # @return [Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings, nil]
318
- optional :settings, -> { Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings }
317
+ # @return [Sentdm::Models::ProfileSettings, nil]
318
+ optional :settings, -> { Sentdm::ProfileSettings }
319
319
 
320
320
  # @!attribute short_name
321
321
  # Profile short name (abbreviation)
@@ -347,205 +347,13 @@ module Sentdm
347
347
  #
348
348
  # @param role [String, nil] User's role in this profile: admin, billing, developer (inherited from organizat
349
349
  #
350
- # @param settings [Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings] Profile configuration settings
350
+ # @param settings [Sentdm::Models::ProfileSettings] Profile configuration settings
351
351
  #
352
352
  # @param short_name [String, nil] Profile short name (abbreviation)
353
353
  #
354
354
  # @param status [String, nil] Profile setup status: incomplete, pending_review, approved, rejected
355
-
356
- # @see Sentdm::Models::MeRetrieveResponse::Data::Profile#settings
357
- class Settings < Sentdm::Internal::Type::BaseModel
358
- # @!attribute allow_contact_sharing
359
- # Whether contacts are shared across profiles in the organization
360
- #
361
- # @return [Boolean, nil]
362
- optional :allow_contact_sharing, Sentdm::Internal::Type::Boolean, nil?: true
363
-
364
- # @!attribute allow_template_sharing
365
- # Whether templates are shared across profiles in the organization
366
- #
367
- # @return [Boolean, nil]
368
- optional :allow_template_sharing, Sentdm::Internal::Type::Boolean, nil?: true
369
-
370
- # @!attribute billing_model
371
- # Billing model: profile, organization, or profile_and_organization
372
- #
373
- # @return [String, nil]
374
- optional :billing_model, String, nil?: true
375
-
376
- # @!attribute inherit_contacts
377
- # Whether this profile inherits contacts from the organization
378
- #
379
- # @return [Boolean, nil]
380
- optional :inherit_contacts, Sentdm::Internal::Type::Boolean, nil?: true
381
-
382
- # @!attribute inherit_tcr_brand
383
- # Whether this profile inherits TCR brand from the organization
384
- #
385
- # @return [Boolean, nil]
386
- optional :inherit_tcr_brand, Sentdm::Internal::Type::Boolean, nil?: true
387
-
388
- # @!attribute inherit_tcr_campaign
389
- # Whether this profile inherits TCR campaign from the organization
390
- #
391
- # @return [Boolean, nil]
392
- optional :inherit_tcr_campaign, Sentdm::Internal::Type::Boolean, nil?: true
393
-
394
- # @!attribute inherit_templates
395
- # Whether this profile inherits templates from the organization
396
- #
397
- # @return [Boolean, nil]
398
- optional :inherit_templates, Sentdm::Internal::Type::Boolean, nil?: true
399
-
400
- # @!method initialize(allow_contact_sharing: nil, allow_template_sharing: nil, billing_model: nil, inherit_contacts: nil, inherit_tcr_brand: nil, inherit_tcr_campaign: nil, inherit_templates: nil)
401
- # Profile configuration settings
402
- #
403
- # @param allow_contact_sharing [Boolean, nil] Whether contacts are shared across profiles in the organization
404
- #
405
- # @param allow_template_sharing [Boolean, nil] Whether templates are shared across profiles in the organization
406
- #
407
- # @param billing_model [String, nil] Billing model: profile, organization, or profile_and_organization
408
- #
409
- # @param inherit_contacts [Boolean, nil] Whether this profile inherits contacts from the organization
410
- #
411
- # @param inherit_tcr_brand [Boolean, nil] Whether this profile inherits TCR brand from the organization
412
- #
413
- # @param inherit_tcr_campaign [Boolean, nil] Whether this profile inherits TCR campaign from the organization
414
- #
415
- # @param inherit_templates [Boolean, nil] Whether this profile inherits templates from the organization
416
- end
417
- end
418
-
419
- # @see Sentdm::Models::MeRetrieveResponse::Data#settings
420
- class Settings < Sentdm::Internal::Type::BaseModel
421
- # @!attribute allow_contact_sharing
422
- # Whether contacts are shared across profiles in the organization
423
- #
424
- # @return [Boolean, nil]
425
- optional :allow_contact_sharing, Sentdm::Internal::Type::Boolean, nil?: true
426
-
427
- # @!attribute allow_template_sharing
428
- # Whether templates are shared across profiles in the organization
429
- #
430
- # @return [Boolean, nil]
431
- optional :allow_template_sharing, Sentdm::Internal::Type::Boolean, nil?: true
432
-
433
- # @!attribute billing_model
434
- # Billing model: profile, organization, or profile_and_organization
435
- #
436
- # @return [String, nil]
437
- optional :billing_model, String, nil?: true
438
-
439
- # @!attribute inherit_contacts
440
- # Whether this profile inherits contacts from the organization
441
- #
442
- # @return [Boolean, nil]
443
- optional :inherit_contacts, Sentdm::Internal::Type::Boolean, nil?: true
444
-
445
- # @!attribute inherit_tcr_brand
446
- # Whether this profile inherits TCR brand from the organization
447
- #
448
- # @return [Boolean, nil]
449
- optional :inherit_tcr_brand, Sentdm::Internal::Type::Boolean, nil?: true
450
-
451
- # @!attribute inherit_tcr_campaign
452
- # Whether this profile inherits TCR campaign from the organization
453
- #
454
- # @return [Boolean, nil]
455
- optional :inherit_tcr_campaign, Sentdm::Internal::Type::Boolean, nil?: true
456
-
457
- # @!attribute inherit_templates
458
- # Whether this profile inherits templates from the organization
459
- #
460
- # @return [Boolean, nil]
461
- optional :inherit_templates, Sentdm::Internal::Type::Boolean, nil?: true
462
-
463
- # @!method initialize(allow_contact_sharing: nil, allow_template_sharing: nil, billing_model: nil, inherit_contacts: nil, inherit_tcr_brand: nil, inherit_tcr_campaign: nil, inherit_templates: nil)
464
- # Profile configuration settings
465
- #
466
- # @param allow_contact_sharing [Boolean, nil] Whether contacts are shared across profiles in the organization
467
- #
468
- # @param allow_template_sharing [Boolean, nil] Whether templates are shared across profiles in the organization
469
- #
470
- # @param billing_model [String, nil] Billing model: profile, organization, or profile_and_organization
471
- #
472
- # @param inherit_contacts [Boolean, nil] Whether this profile inherits contacts from the organization
473
- #
474
- # @param inherit_tcr_brand [Boolean, nil] Whether this profile inherits TCR brand from the organization
475
- #
476
- # @param inherit_tcr_campaign [Boolean, nil] Whether this profile inherits TCR campaign from the organization
477
- #
478
- # @param inherit_templates [Boolean, nil] Whether this profile inherits templates from the organization
479
355
  end
480
356
  end
481
-
482
- # @see Sentdm::Models::MeRetrieveResponse#error
483
- class Error < Sentdm::Internal::Type::BaseModel
484
- # @!attribute code
485
- # Machine-readable error code (e.g., "RESOURCE_001")
486
- #
487
- # @return [String, nil]
488
- optional :code, String
489
-
490
- # @!attribute details
491
- # Additional validation error details (field-level errors)
492
- #
493
- # @return [Hash{Symbol=>Array<String>}, nil]
494
- optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
495
-
496
- # @!attribute doc_url
497
- # URL to documentation about this error
498
- #
499
- # @return [String, nil]
500
- optional :doc_url, String, nil?: true
501
-
502
- # @!attribute message
503
- # Human-readable error message
504
- #
505
- # @return [String, nil]
506
- optional :message, String
507
-
508
- # @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
509
- # Error information
510
- #
511
- # @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
512
- #
513
- # @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
514
- #
515
- # @param doc_url [String, nil] URL to documentation about this error
516
- #
517
- # @param message [String] Human-readable error message
518
- end
519
-
520
- # @see Sentdm::Models::MeRetrieveResponse#meta
521
- class Meta < Sentdm::Internal::Type::BaseModel
522
- # @!attribute request_id
523
- # Unique identifier for this request (for tracing and support)
524
- #
525
- # @return [String, nil]
526
- optional :request_id, String
527
-
528
- # @!attribute timestamp
529
- # Server timestamp when the response was generated
530
- #
531
- # @return [Time, nil]
532
- optional :timestamp, Time
533
-
534
- # @!attribute version
535
- # API version used for this request
536
- #
537
- # @return [String, nil]
538
- optional :version, String
539
-
540
- # @!method initialize(request_id: nil, timestamp: nil, version: nil)
541
- # Request and response metadata
542
- #
543
- # @param request_id [String] Unique identifier for this request (for tracing and support)
544
- #
545
- # @param timestamp [Time] Server timestamp when the response was generated
546
- #
547
- # @param version [String] API version used for this request
548
- end
549
357
  end
550
358
  end
551
359
  end
@@ -13,14 +13,14 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::MessageRetrieveActivitiesResponse::Error, nil]
17
- optional :error, -> { Sentdm::Models::MessageRetrieveActivitiesResponse::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::MessageRetrieveActivitiesResponse::Meta, nil]
23
- optional :meta, -> { Sentdm::Models::MessageRetrieveActivitiesResponse::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::MessageRetrieveActivitiesResponse::Data, nil] Response for GET /messages/{id}/activities
35
35
  #
36
- # @param error [Sentdm::Models::MessageRetrieveActivitiesResponse::Error, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
- # @param meta [Sentdm::Models::MessageRetrieveActivitiesResponse::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
 
@@ -122,74 +122,6 @@ module Sentdm
122
122
  # @param timestamp [Time] When this activity occurred
123
123
  end
124
124
  end
125
-
126
- # @see Sentdm::Models::MessageRetrieveActivitiesResponse#error
127
- class Error < Sentdm::Internal::Type::BaseModel
128
- # @!attribute code
129
- # Machine-readable error code (e.g., "RESOURCE_001")
130
- #
131
- # @return [String, nil]
132
- optional :code, String
133
-
134
- # @!attribute details
135
- # Additional validation error details (field-level errors)
136
- #
137
- # @return [Hash{Symbol=>Array<String>}, nil]
138
- optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
139
-
140
- # @!attribute doc_url
141
- # URL to documentation about this error
142
- #
143
- # @return [String, nil]
144
- optional :doc_url, String, nil?: true
145
-
146
- # @!attribute message
147
- # Human-readable error message
148
- #
149
- # @return [String, nil]
150
- optional :message, String
151
-
152
- # @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
153
- # Error information
154
- #
155
- # @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
156
- #
157
- # @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
158
- #
159
- # @param doc_url [String, nil] URL to documentation about this error
160
- #
161
- # @param message [String] Human-readable error message
162
- end
163
-
164
- # @see Sentdm::Models::MessageRetrieveActivitiesResponse#meta
165
- class Meta < Sentdm::Internal::Type::BaseModel
166
- # @!attribute request_id
167
- # Unique identifier for this request (for tracing and support)
168
- #
169
- # @return [String, nil]
170
- optional :request_id, String
171
-
172
- # @!attribute timestamp
173
- # Server timestamp when the response was generated
174
- #
175
- # @return [Time, nil]
176
- optional :timestamp, Time
177
-
178
- # @!attribute version
179
- # API version used for this request
180
- #
181
- # @return [String, nil]
182
- optional :version, String
183
-
184
- # @!method initialize(request_id: nil, timestamp: nil, version: nil)
185
- # Request and response metadata
186
- #
187
- # @param request_id [String] Unique identifier for this request (for tracing and support)
188
- #
189
- # @param timestamp [Time] Server timestamp when the response was generated
190
- #
191
- # @param version [String] API version used for this request
192
- end
193
125
  end
194
126
  end
195
127
  end
@@ -13,14 +13,14 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::MessageRetrieveStatusResponse::Error, nil]
17
- optional :error, -> { Sentdm::Models::MessageRetrieveStatusResponse::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::MessageRetrieveStatusResponse::Meta, nil]
23
- optional :meta, -> { Sentdm::Models::MessageRetrieveStatusResponse::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::MessageRetrieveStatusResponse::Data, nil] Message response for v3 API — same shape as v2 with snake_case JSON conventions
35
35
  #
36
- # @param error [Sentdm::Models::MessageRetrieveStatusResponse::Error, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
- # @param meta [Sentdm::Models::MessageRetrieveStatusResponse::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
 
@@ -258,74 +258,6 @@ module Sentdm
258
258
  end
259
259
  end
260
260
  end
261
-
262
- # @see Sentdm::Models::MessageRetrieveStatusResponse#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::MessageRetrieveStatusResponse#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
328
- end
329
261
  end
330
262
  end
331
263
  end
@@ -13,14 +13,14 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::MessageSendResponse::Error, nil]
17
- optional :error, -> { Sentdm::Models::MessageSendResponse::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::MessageSendResponse::Meta, nil]
23
- optional :meta, -> { Sentdm::Models::MessageSendResponse::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::MessageSendResponse::Data, nil] Response for the multi-recipient send message endpoint
35
35
  #
36
- # @param error [Sentdm::Models::MessageSendResponse::Error, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
- # @param meta [Sentdm::Models::MessageSendResponse::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
 
@@ -123,74 +123,6 @@ module Sentdm
123
123
  # @param to [String] Phone number in E.164 format
124
124
  end
125
125
  end
126
-
127
- # @see Sentdm::Models::MessageSendResponse#error
128
- class Error < Sentdm::Internal::Type::BaseModel
129
- # @!attribute code
130
- # Machine-readable error code (e.g., "RESOURCE_001")
131
- #
132
- # @return [String, nil]
133
- optional :code, String
134
-
135
- # @!attribute details
136
- # Additional validation error details (field-level errors)
137
- #
138
- # @return [Hash{Symbol=>Array<String>}, nil]
139
- optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
140
-
141
- # @!attribute doc_url
142
- # URL to documentation about this error
143
- #
144
- # @return [String, nil]
145
- optional :doc_url, String, nil?: true
146
-
147
- # @!attribute message
148
- # Human-readable error message
149
- #
150
- # @return [String, nil]
151
- optional :message, String
152
-
153
- # @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
154
- # Error information
155
- #
156
- # @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
157
- #
158
- # @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
159
- #
160
- # @param doc_url [String, nil] URL to documentation about this error
161
- #
162
- # @param message [String] Human-readable error message
163
- end
164
-
165
- # @see Sentdm::Models::MessageSendResponse#meta
166
- class Meta < Sentdm::Internal::Type::BaseModel
167
- # @!attribute request_id
168
- # Unique identifier for this request (for tracing and support)
169
- #
170
- # @return [String, nil]
171
- optional :request_id, String
172
-
173
- # @!attribute timestamp
174
- # Server timestamp when the response was generated
175
- #
176
- # @return [Time, nil]
177
- optional :timestamp, Time
178
-
179
- # @!attribute version
180
- # API version used for this request
181
- #
182
- # @return [String, nil]
183
- optional :version, String
184
-
185
- # @!method initialize(request_id: nil, timestamp: nil, version: nil)
186
- # Request and response metadata
187
- #
188
- # @param request_id [String] Unique identifier for this request (for tracing and support)
189
- #
190
- # @param timestamp [Time] Server timestamp when the response was generated
191
- #
192
- # @param version [String] API version used for this request
193
- end
194
126
  end
195
127
  end
196
128
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ class MutationRequest < Sentdm::Internal::Type::BaseModel
6
+ # @!attribute sandbox
7
+ # Sandbox flag - when true, the operation is simulated without side effects Useful
8
+ # for testing integrations without actual execution
9
+ #
10
+ # @return [Boolean, nil]
11
+ optional :sandbox, Sentdm::Internal::Type::Boolean
12
+
13
+ # @!method initialize(sandbox: nil)
14
+ # Some parameter documentations has been truncated, see
15
+ # {Sentdm::Models::MutationRequest} for more details.
16
+ #
17
+ # @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
18
+ end
19
+ end
20
+ end