sentdm 0.2.0 → 0.3.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 (355) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/README.md +96 -39
  4. data/lib/sentdm/client.rb +28 -36
  5. data/lib/sentdm/internal/type/base_model.rb +5 -5
  6. data/lib/sentdm/internal/type/enum.rb +25 -0
  7. data/lib/sentdm/models/api_error.rb +42 -0
  8. data/lib/sentdm/models/api_meta.rb +42 -0
  9. data/lib/sentdm/models/api_response_brand_with_kyc.rb +43 -0
  10. data/lib/sentdm/models/api_response_contact.rb +43 -0
  11. data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
  12. data/lib/sentdm/models/api_response_of_user.rb +43 -0
  13. data/lib/sentdm/models/api_response_template.rb +43 -0
  14. data/lib/sentdm/models/api_response_webhook.rb +43 -0
  15. data/lib/sentdm/models/brand_create_params.rb +41 -0
  16. data/lib/sentdm/models/brand_data.rb +237 -0
  17. data/lib/sentdm/models/brand_delete_params.rb +27 -0
  18. data/lib/sentdm/models/brand_list_params.rb +14 -0
  19. data/lib/sentdm/models/brand_list_response.rb +43 -0
  20. data/lib/sentdm/models/brand_update_params.rb +41 -0
  21. data/lib/sentdm/models/brand_with_kyc.rb +335 -0
  22. data/lib/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rb +45 -0
  23. data/lib/sentdm/models/brands/base_dto.rb +32 -0
  24. data/lib/sentdm/models/brands/campaign_create_params.rb +43 -0
  25. data/lib/sentdm/models/brands/campaign_data.rb +123 -0
  26. data/lib/sentdm/models/brands/campaign_delete_params.rb +36 -0
  27. data/lib/sentdm/models/brands/campaign_list_params.rb +16 -0
  28. data/lib/sentdm/models/brands/campaign_list_response.rb +47 -0
  29. data/lib/sentdm/models/brands/campaign_update_params.rb +50 -0
  30. data/lib/sentdm/models/brands/messaging_use_case_us.rb +28 -0
  31. data/lib/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +30 -0
  32. data/lib/sentdm/models/brands/tcr_campaign_with_use_cases.rb +236 -0
  33. data/lib/sentdm/models/contact.rb +122 -0
  34. data/lib/sentdm/models/contact_create_params.rb +41 -0
  35. data/lib/sentdm/models/contact_delete_params.rb +27 -0
  36. data/lib/sentdm/models/contact_list_params.rb +28 -5
  37. data/lib/sentdm/models/contact_list_response.rb +46 -21
  38. data/lib/sentdm/models/{message_retrieve_params.rb → contact_retrieve_params.rb} +2 -2
  39. data/lib/sentdm/models/contact_update_params.rb +49 -0
  40. data/lib/sentdm/models/destination_country.rb +21 -0
  41. data/lib/sentdm/models/lookup_retrieve_phone_info_params.rb +14 -0
  42. data/lib/sentdm/models/lookup_retrieve_phone_info_response.rb +104 -0
  43. data/lib/sentdm/models/me_retrieve_params.rb +14 -0
  44. data/lib/sentdm/models/me_retrieve_response.rb +200 -0
  45. data/lib/sentdm/models/message_retrieve_activities_params.rb +14 -0
  46. data/lib/sentdm/models/message_retrieve_activities_response.rb +103 -0
  47. data/lib/sentdm/models/message_retrieve_status_params.rb +14 -0
  48. data/lib/sentdm/models/message_retrieve_status_response.rb +237 -0
  49. data/lib/sentdm/models/message_send_params.rb +88 -0
  50. data/lib/sentdm/models/message_send_response.rb +123 -0
  51. data/lib/sentdm/models/mutation_request.rb +20 -0
  52. data/lib/sentdm/models/pagination_meta.rb +80 -0
  53. data/lib/sentdm/models/profile_complete_params.rb +41 -0
  54. data/lib/sentdm/models/profile_complete_response.rb +8 -0
  55. data/lib/sentdm/models/profile_create_params.rb +122 -0
  56. data/lib/sentdm/models/profile_delete_params.rb +34 -0
  57. data/lib/sentdm/models/profile_detail.rb +200 -0
  58. data/lib/sentdm/models/profile_list_params.rb +14 -0
  59. data/lib/sentdm/models/profile_list_response.rb +57 -0
  60. data/lib/sentdm/models/profile_retrieve_params.rb +14 -0
  61. data/lib/sentdm/models/profile_settings.rb +66 -0
  62. data/lib/sentdm/models/profile_update_params.rb +169 -0
  63. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +34 -0
  64. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +40 -0
  65. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +38 -0
  66. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +81 -0
  67. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +34 -0
  68. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +39 -0
  69. data/lib/sentdm/models/tcr_brand_relationship.rb +18 -0
  70. data/lib/sentdm/models/tcr_vertical.rb +36 -0
  71. data/lib/sentdm/models/template.rb +90 -0
  72. data/lib/sentdm/models/template_create_params.rb +40 -19
  73. data/lib/sentdm/models/template_definition.rb +15 -255
  74. data/lib/sentdm/models/template_delete_params.rb +22 -1
  75. data/lib/sentdm/models/template_list_params.rb +9 -10
  76. data/lib/sentdm/models/template_list_response.rb +46 -21
  77. data/lib/sentdm/models/template_update_params.rb +73 -0
  78. data/lib/sentdm/models/user_invite_params.rb +57 -0
  79. data/lib/sentdm/models/user_list_params.rb +14 -0
  80. data/lib/sentdm/models/user_list_response.rb +57 -0
  81. data/lib/sentdm/models/user_remove_params.rb +34 -0
  82. data/lib/sentdm/models/user_response.rb +82 -0
  83. data/lib/sentdm/models/user_retrieve_params.rb +14 -0
  84. data/lib/sentdm/models/user_update_role_params.rb +49 -0
  85. data/lib/sentdm/models/webhook_create_params.rb +68 -0
  86. data/lib/sentdm/models/webhook_delete_params.rb +14 -0
  87. data/lib/sentdm/models/webhook_list_event_types_params.rb +14 -0
  88. data/lib/sentdm/models/webhook_list_event_types_response.rb +85 -0
  89. data/lib/sentdm/models/webhook_list_events_params.rb +32 -0
  90. data/lib/sentdm/models/webhook_list_events_response.rb +135 -0
  91. data/lib/sentdm/models/webhook_list_params.rb +38 -0
  92. data/lib/sentdm/models/webhook_list_response.rb +64 -0
  93. data/lib/sentdm/models/webhook_response.rb +87 -0
  94. data/lib/sentdm/models/webhook_retrieve_params.rb +14 -0
  95. data/lib/sentdm/models/webhook_rotate_secret_params.rb +30 -0
  96. data/lib/sentdm/models/webhook_rotate_secret_response.rb +56 -0
  97. data/lib/sentdm/models/webhook_test_params.rb +40 -0
  98. data/lib/sentdm/models/webhook_test_response.rb +62 -0
  99. data/lib/sentdm/models/webhook_toggle_status_params.rb +40 -0
  100. data/lib/sentdm/models/webhook_update_params.rb +68 -0
  101. data/lib/sentdm/models.rb +124 -10
  102. data/lib/sentdm/resources/brands/campaigns.rb +144 -0
  103. data/lib/sentdm/resources/brands.rb +128 -0
  104. data/lib/sentdm/resources/contacts.rb +111 -38
  105. data/lib/sentdm/resources/lookup.rb +35 -0
  106. data/lib/sentdm/resources/me.rb +34 -0
  107. data/lib/sentdm/resources/messages.rb +42 -77
  108. data/lib/sentdm/resources/profiles.rb +254 -0
  109. data/lib/sentdm/resources/templates.rb +94 -45
  110. data/lib/sentdm/resources/users.rb +158 -0
  111. data/lib/sentdm/resources/webhooks.rb +295 -0
  112. data/lib/sentdm/version.rb +1 -1
  113. data/lib/sentdm.rb +94 -12
  114. data/rbi/sentdm/client.rbi +20 -25
  115. data/rbi/sentdm/models/api_error.rbi +66 -0
  116. data/rbi/sentdm/models/api_meta.rbi +69 -0
  117. data/rbi/sentdm/models/api_response_brand_with_kyc.rbi +74 -0
  118. data/rbi/sentdm/models/api_response_contact.rbi +74 -0
  119. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
  120. data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
  121. data/rbi/sentdm/models/api_response_template.rbi +74 -0
  122. data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
  123. data/rbi/sentdm/models/brand_create_params.rbi +68 -0
  124. data/rbi/sentdm/models/brand_data.rbi +266 -0
  125. data/rbi/sentdm/models/brand_delete_params.rbi +62 -0
  126. data/rbi/sentdm/models/brand_list_params.rbi +27 -0
  127. data/rbi/sentdm/models/brand_list_response.rbi +71 -0
  128. data/rbi/sentdm/models/brand_update_params.rbi +68 -0
  129. data/rbi/sentdm/models/brand_with_kyc.rbi +398 -0
  130. data/rbi/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rbi +83 -0
  131. data/rbi/sentdm/models/brands/base_dto.rbi +53 -0
  132. data/rbi/sentdm/models/brands/campaign_create_params.rbi +73 -0
  133. data/rbi/sentdm/models/brands/campaign_data.rbi +148 -0
  134. data/rbi/sentdm/models/brands/campaign_delete_params.rbi +78 -0
  135. data/rbi/sentdm/models/brands/campaign_list_params.rbi +29 -0
  136. data/rbi/sentdm/models/brands/campaign_list_response.rbi +82 -0
  137. data/rbi/sentdm/models/brands/campaign_update_params.rbi +79 -0
  138. data/rbi/sentdm/models/brands/messaging_use_case_us.rbi +69 -0
  139. data/rbi/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +52 -0
  140. data/rbi/sentdm/models/brands/tcr_campaign_with_use_cases.rbi +404 -0
  141. data/rbi/sentdm/models/contact.rbi +179 -0
  142. data/rbi/sentdm/models/contact_create_params.rbi +68 -0
  143. data/rbi/sentdm/models/contact_delete_params.rbi +62 -0
  144. data/rbi/sentdm/models/contact_list_params.rbi +26 -4
  145. data/rbi/sentdm/models/contact_list_response.rbi +91 -37
  146. data/rbi/sentdm/models/{message_retrieve_params.rbi → contact_retrieve_params.rbi} +2 -2
  147. data/rbi/sentdm/models/contact_update_params.rbi +73 -0
  148. data/rbi/sentdm/models/destination_country.rbi +32 -0
  149. data/rbi/sentdm/models/lookup_retrieve_phone_info_params.rbi +30 -0
  150. data/rbi/sentdm/models/lookup_retrieve_phone_info_response.rbi +183 -0
  151. data/rbi/sentdm/models/me_retrieve_params.rbi +27 -0
  152. data/rbi/sentdm/models/me_retrieve_response.rbi +314 -0
  153. data/rbi/sentdm/models/message_retrieve_activities_params.rbi +30 -0
  154. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +234 -0
  155. data/rbi/sentdm/models/message_retrieve_status_params.rbi +27 -0
  156. data/rbi/sentdm/models/message_retrieve_status_response.rbi +434 -0
  157. data/rbi/sentdm/models/message_send_params.rbi +143 -0
  158. data/rbi/sentdm/models/message_send_response.rbi +231 -0
  159. data/rbi/sentdm/models/mutation_request.rbi +32 -0
  160. data/rbi/sentdm/models/pagination_meta.rbi +135 -0
  161. data/rbi/sentdm/models/profile_complete_params.rbi +65 -0
  162. data/rbi/sentdm/models/profile_complete_response.rbi +8 -0
  163. data/rbi/sentdm/models/profile_create_params.rbi +156 -0
  164. data/rbi/sentdm/models/profile_delete_params.rbi +59 -0
  165. data/rbi/sentdm/models/profile_detail.rbi +273 -0
  166. data/rbi/sentdm/models/profile_list_params.rbi +27 -0
  167. data/rbi/sentdm/models/profile_list_response.rbi +111 -0
  168. data/rbi/sentdm/models/profile_retrieve_params.rbi +27 -0
  169. data/rbi/sentdm/models/profile_settings.rbi +86 -0
  170. data/rbi/sentdm/models/profile_update_params.rbi +196 -0
  171. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +56 -0
  172. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +76 -0
  173. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +79 -0
  174. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +104 -0
  175. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +60 -0
  176. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +62 -0
  177. data/rbi/sentdm/models/tcr_brand_relationship.rbi +30 -0
  178. data/rbi/sentdm/models/tcr_vertical.rbi +41 -0
  179. data/rbi/sentdm/models/template.rbi +129 -0
  180. data/rbi/sentdm/models/template_create_params.rbi +47 -23
  181. data/rbi/sentdm/models/template_definition.rbi +74 -405
  182. data/rbi/sentdm/models/template_delete_params.rbi +36 -5
  183. data/rbi/sentdm/models/template_list_params.rbi +8 -10
  184. data/rbi/sentdm/models/template_list_response.rbi +91 -37
  185. data/rbi/sentdm/models/template_update_params.rbi +105 -0
  186. data/rbi/sentdm/models/user_invite_params.rbi +90 -0
  187. data/rbi/sentdm/models/user_list_params.rbi +27 -0
  188. data/rbi/sentdm/models/user_list_response.rbi +111 -0
  189. data/rbi/sentdm/models/user_remove_params.rbi +59 -0
  190. data/rbi/sentdm/models/user_response.rbi +118 -0
  191. data/rbi/sentdm/models/user_retrieve_params.rbi +27 -0
  192. data/rbi/sentdm/models/user_update_role_params.rbi +79 -0
  193. data/rbi/sentdm/models/webhook_create_params.rbi +102 -0
  194. data/rbi/sentdm/models/webhook_delete_params.rbi +27 -0
  195. data/rbi/sentdm/models/webhook_list_event_types_params.rbi +27 -0
  196. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +206 -0
  197. data/rbi/sentdm/models/webhook_list_events_params.rbi +48 -0
  198. data/rbi/sentdm/models/webhook_list_events_response.rbi +263 -0
  199. data/rbi/sentdm/models/webhook_list_params.rbi +59 -0
  200. data/rbi/sentdm/models/webhook_list_response.rbi +126 -0
  201. data/rbi/sentdm/models/webhook_response.rbi +134 -0
  202. data/rbi/sentdm/models/webhook_retrieve_params.rbi +27 -0
  203. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +67 -0
  204. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +112 -0
  205. data/rbi/sentdm/models/webhook_test_params.rbi +66 -0
  206. data/rbi/sentdm/models/webhook_test_response.rbi +111 -0
  207. data/rbi/sentdm/models/webhook_toggle_status_params.rbi +66 -0
  208. data/rbi/sentdm/models/webhook_update_params.rbi +102 -0
  209. data/rbi/sentdm/models.rbi +125 -10
  210. data/rbi/sentdm/resources/brands/campaigns.rbi +108 -0
  211. data/rbi/sentdm/resources/brands.rbi +93 -0
  212. data/rbi/sentdm/resources/contacts.rbi +89 -26
  213. data/rbi/sentdm/resources/lookup.rbi +24 -0
  214. data/rbi/sentdm/resources/me.rbi +23 -0
  215. data/rbi/sentdm/resources/messages.rbi +41 -60
  216. data/rbi/sentdm/resources/profiles.rbi +238 -0
  217. data/rbi/sentdm/resources/templates.rbi +94 -41
  218. data/rbi/sentdm/resources/users.rbi +116 -0
  219. data/rbi/sentdm/resources/webhooks.rbi +218 -0
  220. data/sig/sentdm/client.rbs +11 -8
  221. data/sig/sentdm/models/api_error.rbs +39 -0
  222. data/sig/sentdm/models/api_meta.rbs +41 -0
  223. data/sig/sentdm/models/api_response_brand_with_kyc.rbs +39 -0
  224. data/sig/sentdm/models/api_response_contact.rbs +39 -0
  225. data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
  226. data/sig/sentdm/models/api_response_of_user.rbs +39 -0
  227. data/sig/sentdm/models/api_response_template.rbs +39 -0
  228. data/sig/sentdm/models/api_response_webhook.rbs +39 -0
  229. data/sig/sentdm/models/brand_create_params.rbs +36 -0
  230. data/sig/sentdm/models/brand_data.rbs +164 -0
  231. data/sig/sentdm/models/brand_delete_params.rbs +32 -0
  232. data/sig/sentdm/models/brand_list_params.rbs +14 -0
  233. data/sig/sentdm/models/brand_list_response.rbs +39 -0
  234. data/sig/sentdm/models/brand_update_params.rbs +36 -0
  235. data/sig/sentdm/models/brand_with_kyc.rbs +237 -0
  236. data/sig/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rbs +41 -0
  237. data/sig/sentdm/models/brands/base_dto.rbs +27 -0
  238. data/sig/sentdm/models/brands/campaign_create_params.rbs +42 -0
  239. data/sig/sentdm/models/brands/campaign_data.rbs +82 -0
  240. data/sig/sentdm/models/brands/campaign_delete_params.rbs +38 -0
  241. data/sig/sentdm/models/brands/campaign_list_params.rbs +17 -0
  242. data/sig/sentdm/models/brands/campaign_list_response.rbs +41 -0
  243. data/sig/sentdm/models/brands/campaign_update_params.rbs +47 -0
  244. data/sig/sentdm/models/brands/messaging_use_case_us.rbs +40 -0
  245. data/sig/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
  246. data/sig/sentdm/models/brands/tcr_campaign_with_use_cases.rbs +285 -0
  247. data/sig/sentdm/models/{contact_list_item.rbs → contact.rbs} +31 -5
  248. data/sig/sentdm/models/contact_create_params.rbs +38 -0
  249. data/sig/sentdm/models/contact_delete_params.rbs +32 -0
  250. data/sig/sentdm/models/contact_list_params.rbs +19 -1
  251. data/sig/sentdm/models/contact_list_response.rbs +44 -31
  252. data/sig/sentdm/models/{message_retrieve_params.rbs → contact_retrieve_params.rbs} +2 -2
  253. data/sig/sentdm/models/contact_update_params.rbs +45 -0
  254. data/sig/sentdm/models/destination_country.rbs +19 -0
  255. data/sig/sentdm/models/lookup_retrieve_phone_info_params.rbs +15 -0
  256. data/sig/sentdm/models/lookup_retrieve_phone_info_response.rbs +102 -0
  257. data/sig/sentdm/models/me_retrieve_params.rbs +14 -0
  258. data/sig/sentdm/models/me_retrieve_response.rbs +162 -0
  259. data/sig/sentdm/models/message_retrieve_activities_params.rbs +15 -0
  260. data/sig/sentdm/models/message_retrieve_activities_response.rbs +105 -0
  261. data/sig/sentdm/models/message_retrieve_status_params.rbs +15 -0
  262. data/sig/sentdm/models/message_retrieve_status_response.rbs +224 -0
  263. data/sig/sentdm/models/message_send_params.rbs +79 -0
  264. data/sig/sentdm/models/message_send_response.rbs +108 -0
  265. data/sig/sentdm/models/mutation_request.rbs +15 -0
  266. data/sig/sentdm/models/pagination_meta.rbs +67 -0
  267. data/sig/sentdm/models/profile_complete_params.rbs +36 -0
  268. data/sig/sentdm/models/profile_complete_response.rbs +5 -0
  269. data/sig/sentdm/models/profile_create_params.rbs +96 -0
  270. data/sig/sentdm/models/profile_delete_params.rbs +32 -0
  271. data/sig/sentdm/models/profile_detail.rbs +168 -0
  272. data/sig/sentdm/models/profile_list_params.rbs +14 -0
  273. data/sig/sentdm/models/profile_list_response.rbs +53 -0
  274. data/sig/sentdm/models/profile_retrieve_params.rbs +15 -0
  275. data/sig/sentdm/models/profile_settings.rbs +50 -0
  276. data/sig/sentdm/models/profile_update_params.rbs +122 -0
  277. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +24 -0
  278. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +30 -0
  279. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +38 -0
  280. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +75 -0
  281. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +32 -0
  282. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +32 -0
  283. data/sig/sentdm/models/tcr_brand_relationship.rbs +22 -0
  284. data/sig/sentdm/models/tcr_vertical.rbs +58 -0
  285. data/sig/sentdm/models/{template_response_v2.rbs → template.rbs} +18 -31
  286. data/sig/sentdm/models/template_create_params.rbs +29 -6
  287. data/sig/sentdm/models/template_definition.rbs +20 -233
  288. data/sig/sentdm/models/template_delete_params.rbs +18 -3
  289. data/sig/sentdm/models/template_list_response.rbs +44 -31
  290. data/sig/sentdm/models/template_update_params.rbs +62 -0
  291. data/sig/sentdm/models/user_invite_params.rbs +56 -0
  292. data/sig/sentdm/models/user_list_params.rbs +14 -0
  293. data/sig/sentdm/models/user_list_response.rbs +53 -0
  294. data/sig/sentdm/models/user_remove_params.rbs +32 -0
  295. data/sig/sentdm/models/user_response.rbs +72 -0
  296. data/sig/sentdm/models/user_retrieve_params.rbs +15 -0
  297. data/sig/sentdm/models/user_update_role_params.rbs +49 -0
  298. data/sig/sentdm/models/webhook_create_params.rbs +70 -0
  299. data/sig/sentdm/models/webhook_delete_params.rbs +15 -0
  300. data/sig/sentdm/models/webhook_list_event_types_params.rbs +15 -0
  301. data/sig/sentdm/models/webhook_list_event_types_response.rbs +98 -0
  302. data/sig/sentdm/models/webhook_list_events_params.rbs +32 -0
  303. data/sig/sentdm/models/webhook_list_events_response.rbs +146 -0
  304. data/sig/sentdm/models/webhook_list_params.rbs +36 -0
  305. data/sig/sentdm/models/webhook_list_response.rbs +67 -0
  306. data/sig/sentdm/models/webhook_response.rbs +98 -0
  307. data/sig/sentdm/models/webhook_retrieve_params.rbs +15 -0
  308. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +38 -0
  309. data/sig/sentdm/models/webhook_rotate_secret_response.rbs +51 -0
  310. data/sig/sentdm/models/webhook_test_params.rbs +38 -0
  311. data/sig/sentdm/models/webhook_test_response.rbs +55 -0
  312. data/sig/sentdm/models/webhook_toggle_status_params.rbs +38 -0
  313. data/sig/sentdm/models/webhook_update_params.rbs +70 -0
  314. data/sig/sentdm/models.rbs +118 -10
  315. data/sig/sentdm/resources/brands/campaigns.rbs +38 -0
  316. data/sig/sentdm/resources/brands.rbs +34 -0
  317. data/sig/sentdm/resources/contacts.rbs +28 -8
  318. data/sig/sentdm/resources/lookup.rbs +12 -0
  319. data/sig/sentdm/resources/{number_lookup.rbs → me.rbs} +2 -3
  320. data/sig/sentdm/resources/messages.rbs +12 -18
  321. data/sig/sentdm/resources/profiles.rbs +72 -0
  322. data/sig/sentdm/resources/templates.rbs +24 -4
  323. data/sig/sentdm/resources/users.rbs +41 -0
  324. data/sig/sentdm/resources/webhooks.rbs +80 -0
  325. metadata +284 -38
  326. data/lib/sentdm/models/contact_list_item.rb +0 -96
  327. data/lib/sentdm/models/contact_retrieve_by_phone_params.rb +0 -22
  328. data/lib/sentdm/models/contact_retrieve_id_params.rb +0 -22
  329. data/lib/sentdm/models/message_retrieve_response.rb +0 -227
  330. data/lib/sentdm/models/message_send_quick_message_params.rb +0 -34
  331. data/lib/sentdm/models/message_send_to_contact_params.rb +0 -46
  332. data/lib/sentdm/models/message_send_to_phone_params.rb +0 -47
  333. data/lib/sentdm/models/number_lookup_retrieve_params.rb +0 -20
  334. data/lib/sentdm/models/number_lookup_retrieve_response.rb +0 -83
  335. data/lib/sentdm/models/template_response_v2.rb +0 -100
  336. data/lib/sentdm/resources/number_lookup.rb +0 -37
  337. data/rbi/sentdm/models/contact_list_item.rbi +0 -144
  338. data/rbi/sentdm/models/contact_retrieve_by_phone_params.rbi +0 -40
  339. data/rbi/sentdm/models/contact_retrieve_id_params.rbi +0 -40
  340. data/rbi/sentdm/models/message_retrieve_response.rbi +0 -376
  341. data/rbi/sentdm/models/message_send_quick_message_params.rbi +0 -56
  342. data/rbi/sentdm/models/message_send_to_contact_params.rbi +0 -63
  343. data/rbi/sentdm/models/message_send_to_phone_params.rbi +0 -65
  344. data/rbi/sentdm/models/number_lookup_retrieve_params.rbi +0 -35
  345. data/rbi/sentdm/models/number_lookup_retrieve_response.rbi +0 -132
  346. data/rbi/sentdm/models/template_response_v2.rbi +0 -149
  347. data/rbi/sentdm/resources/number_lookup.rbi +0 -24
  348. data/sig/sentdm/models/contact_retrieve_by_phone_params.rbs +0 -23
  349. data/sig/sentdm/models/contact_retrieve_id_params.rbs +0 -20
  350. data/sig/sentdm/models/message_retrieve_response.rbs +0 -188
  351. data/sig/sentdm/models/message_send_quick_message_params.rbs +0 -28
  352. data/sig/sentdm/models/message_send_to_contact_params.rbs +0 -36
  353. data/sig/sentdm/models/message_send_to_phone_params.rbs +0 -36
  354. data/sig/sentdm/models/number_lookup_retrieve_params.rbs +0 -23
  355. data/sig/sentdm/models/number_lookup_retrieve_response.rbs +0 -78
@@ -0,0 +1,164 @@
1
+ module Sentdm
2
+ module Models
3
+ type brand_data =
4
+ {
5
+ brand_relationship: Sentdm::Models::tcr_brand_relationship,
6
+ contact_name: String,
7
+ vertical: Sentdm::Models::tcr_vertical,
8
+ brand_name: String?,
9
+ business_legal_name: String?,
10
+ business_name: String?,
11
+ business_role: String?,
12
+ business_url: String?,
13
+ city: String?,
14
+ contact_email: String?,
15
+ contact_phone: String?,
16
+ contact_phone_country_code: String?,
17
+ country: String?,
18
+ country_of_registration: String?,
19
+ destination_countries: ::Array[Sentdm::DestinationCountry]?,
20
+ entity_type: Sentdm::Models::BrandData::entity_type?,
21
+ expected_messaging_volume: String?,
22
+ is_tcr_application: bool?,
23
+ notes: String?,
24
+ phone_number_prefix: String?,
25
+ postal_code: String?,
26
+ primary_use_case: String?,
27
+ state: String?,
28
+ street: String?,
29
+ tax_id: String?,
30
+ tax_id_type: String?
31
+ }
32
+
33
+ class BrandData < Sentdm::Internal::Type::BaseModel
34
+ attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
35
+
36
+ attr_accessor contact_name: String
37
+
38
+ attr_accessor vertical: Sentdm::Models::tcr_vertical
39
+
40
+ attr_accessor brand_name: String?
41
+
42
+ attr_accessor business_legal_name: String?
43
+
44
+ attr_accessor business_name: String?
45
+
46
+ attr_accessor business_role: String?
47
+
48
+ attr_accessor business_url: String?
49
+
50
+ attr_accessor city: String?
51
+
52
+ attr_accessor contact_email: String?
53
+
54
+ attr_accessor contact_phone: String?
55
+
56
+ attr_accessor contact_phone_country_code: String?
57
+
58
+ attr_accessor country: String?
59
+
60
+ attr_accessor country_of_registration: String?
61
+
62
+ attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
63
+
64
+ attr_accessor entity_type: Sentdm::Models::BrandData::entity_type?
65
+
66
+ attr_accessor expected_messaging_volume: String?
67
+
68
+ attr_accessor is_tcr_application: bool?
69
+
70
+ attr_accessor notes: String?
71
+
72
+ attr_accessor phone_number_prefix: String?
73
+
74
+ attr_accessor postal_code: String?
75
+
76
+ attr_accessor primary_use_case: String?
77
+
78
+ attr_accessor state: String?
79
+
80
+ attr_accessor street: String?
81
+
82
+ attr_accessor tax_id: String?
83
+
84
+ attr_accessor tax_id_type: String?
85
+
86
+ def initialize: (
87
+ brand_relationship: Sentdm::Models::tcr_brand_relationship,
88
+ contact_name: String,
89
+ vertical: Sentdm::Models::tcr_vertical,
90
+ ?brand_name: String?,
91
+ ?business_legal_name: String?,
92
+ ?business_name: String?,
93
+ ?business_role: String?,
94
+ ?business_url: String?,
95
+ ?city: String?,
96
+ ?contact_email: String?,
97
+ ?contact_phone: String?,
98
+ ?contact_phone_country_code: String?,
99
+ ?country: String?,
100
+ ?country_of_registration: String?,
101
+ ?destination_countries: ::Array[Sentdm::DestinationCountry]?,
102
+ ?entity_type: Sentdm::Models::BrandData::entity_type?,
103
+ ?expected_messaging_volume: String?,
104
+ ?is_tcr_application: bool?,
105
+ ?notes: String?,
106
+ ?phone_number_prefix: String?,
107
+ ?postal_code: String?,
108
+ ?primary_use_case: String?,
109
+ ?state: String?,
110
+ ?street: String?,
111
+ ?tax_id: String?,
112
+ ?tax_id_type: String?
113
+ ) -> void
114
+
115
+ def to_hash: -> {
116
+ brand_relationship: Sentdm::Models::tcr_brand_relationship,
117
+ contact_name: String,
118
+ vertical: Sentdm::Models::tcr_vertical,
119
+ brand_name: String?,
120
+ business_legal_name: String?,
121
+ business_name: String?,
122
+ business_role: String?,
123
+ business_url: String?,
124
+ city: String?,
125
+ contact_email: String?,
126
+ contact_phone: String?,
127
+ contact_phone_country_code: String?,
128
+ country: String?,
129
+ country_of_registration: String?,
130
+ destination_countries: ::Array[Sentdm::DestinationCountry]?,
131
+ entity_type: Sentdm::Models::BrandData::entity_type?,
132
+ expected_messaging_volume: String?,
133
+ is_tcr_application: bool?,
134
+ notes: String?,
135
+ phone_number_prefix: String?,
136
+ postal_code: String?,
137
+ primary_use_case: String?,
138
+ state: String?,
139
+ street: String?,
140
+ tax_id: String?,
141
+ tax_id_type: String?
142
+ }
143
+
144
+ type entity_type =
145
+ :PRIVATE_PROFIT
146
+ | :PUBLIC_PROFIT
147
+ | :NON_PROFIT
148
+ | :SOLE_PROPRIETOR
149
+ | :GOVERNMENT
150
+
151
+ module EntityType
152
+ extend Sentdm::Internal::Type::Enum
153
+
154
+ PRIVATE_PROFIT: :PRIVATE_PROFIT
155
+ PUBLIC_PROFIT: :PUBLIC_PROFIT
156
+ NON_PROFIT: :NON_PROFIT
157
+ SOLE_PROPRIETOR: :SOLE_PROPRIETOR
158
+ GOVERNMENT: :GOVERNMENT
159
+
160
+ def self?.values: -> ::Array[Sentdm::Models::BrandData::entity_type]
161
+ end
162
+ end
163
+ end
164
+ end
@@ -0,0 +1,32 @@
1
+ module Sentdm
2
+ module Models
3
+ type brand_delete_params =
4
+ { body: Sentdm::BrandDeleteParams::Body }
5
+ & Sentdm::Internal::Type::request_parameters
6
+
7
+ class BrandDeleteParams < Sentdm::Internal::Type::BaseModel
8
+ extend Sentdm::Internal::Type::RequestParameters::Converter
9
+ include Sentdm::Internal::Type::RequestParameters
10
+
11
+ attr_accessor body: Sentdm::BrandDeleteParams::Body
12
+
13
+ def initialize: (
14
+ body: Sentdm::BrandDeleteParams::Body,
15
+ ?request_options: Sentdm::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ body: Sentdm::BrandDeleteParams::Body,
20
+ request_options: Sentdm::RequestOptions
21
+ }
22
+
23
+ type body = { }
24
+
25
+ class Body < Sentdm::Models::MutationRequest
26
+ def initialize: -> void
27
+
28
+ def to_hash: -> { }
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,14 @@
1
+ module Sentdm
2
+ module Models
3
+ type brand_list_params = { } & Sentdm::Internal::Type::request_parameters
4
+
5
+ class BrandListParams < Sentdm::Internal::Type::BaseModel
6
+ extend Sentdm::Internal::Type::RequestParameters::Converter
7
+ include Sentdm::Internal::Type::RequestParameters
8
+
9
+ def initialize: (?request_options: Sentdm::request_opts) -> void
10
+
11
+ def to_hash: -> { request_options: Sentdm::RequestOptions }
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,39 @@
1
+ module Sentdm
2
+ module Models
3
+ type brand_list_response =
4
+ {
5
+ data: ::Array[Sentdm::BrandWithKYC]?,
6
+ error: Sentdm::APIError?,
7
+ meta: Sentdm::APIMeta,
8
+ success: bool
9
+ }
10
+
11
+ class BrandListResponse < Sentdm::Internal::Type::BaseModel
12
+ attr_accessor data: ::Array[Sentdm::BrandWithKYC]?
13
+
14
+ attr_accessor error: Sentdm::APIError?
15
+
16
+ attr_reader meta: Sentdm::APIMeta?
17
+
18
+ def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
19
+
20
+ attr_reader success: bool?
21
+
22
+ def success=: (bool) -> bool
23
+
24
+ def initialize: (
25
+ ?data: ::Array[Sentdm::BrandWithKYC]?,
26
+ ?error: Sentdm::APIError?,
27
+ ?meta: Sentdm::APIMeta,
28
+ ?success: bool
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ data: ::Array[Sentdm::BrandWithKYC]?,
33
+ error: Sentdm::APIError?,
34
+ meta: Sentdm::APIMeta,
35
+ success: bool
36
+ }
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,36 @@
1
+ module Sentdm
2
+ module Models
3
+ type brand_update_params =
4
+ { brand: Sentdm::BrandData, test_mode: bool, idempotency_key: String }
5
+ & Sentdm::Internal::Type::request_parameters
6
+
7
+ class BrandUpdateParams < Sentdm::Internal::Type::BaseModel
8
+ extend Sentdm::Internal::Type::RequestParameters::Converter
9
+ include Sentdm::Internal::Type::RequestParameters
10
+
11
+ attr_accessor brand: Sentdm::BrandData
12
+
13
+ attr_reader test_mode: bool?
14
+
15
+ def test_mode=: (bool) -> bool
16
+
17
+ attr_reader idempotency_key: String?
18
+
19
+ def idempotency_key=: (String) -> String
20
+
21
+ def initialize: (
22
+ brand: Sentdm::BrandData,
23
+ ?test_mode: bool,
24
+ ?idempotency_key: String,
25
+ ?request_options: Sentdm::request_opts
26
+ ) -> void
27
+
28
+ def to_hash: -> {
29
+ brand: Sentdm::BrandData,
30
+ test_mode: bool,
31
+ idempotency_key: String,
32
+ request_options: Sentdm::RequestOptions
33
+ }
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,237 @@
1
+ module Sentdm
2
+ module Models
3
+ type brand_with_kyc =
4
+ {
5
+ id: String,
6
+ brand_relationship: Sentdm::Models::tcr_brand_relationship?,
7
+ business_legal_name: String?,
8
+ business_name: String?,
9
+ business_role: String?,
10
+ business_url: String?,
11
+ city: String?,
12
+ contact_email: String?,
13
+ contact_name: String,
14
+ contact_phone: String?,
15
+ contact_phone_country_code: String?,
16
+ country: String?,
17
+ country_of_registration: String?,
18
+ created_at: Time,
19
+ csp_id: String?,
20
+ destination_countries: ::Array[Sentdm::DestinationCountry],
21
+ entity_type: String?,
22
+ expected_messaging_volume: String?,
23
+ identity_status: Sentdm::Models::BrandWithKYC::identity_status?,
24
+ is_inherited: bool,
25
+ is_tcr_application: bool,
26
+ notes: String?,
27
+ phone_number_prefix: String?,
28
+ postal_code: String?,
29
+ primary_use_case: String?,
30
+ state: String?,
31
+ status: Sentdm::Models::BrandWithKYC::status?,
32
+ street: String?,
33
+ submitted_at: Time?,
34
+ submitted_to_tcr: bool,
35
+ tax_id: String?,
36
+ tax_id_type: String?,
37
+ tcr_brand_id: String?,
38
+ universal_ein: String?,
39
+ updated_at: Time?,
40
+ vertical: Sentdm::Models::tcr_vertical?
41
+ }
42
+
43
+ class BrandWithKYC < Sentdm::Internal::Type::BaseModel
44
+ attr_reader id: String?
45
+
46
+ def id=: (String) -> String
47
+
48
+ attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship?
49
+
50
+ attr_accessor business_legal_name: String?
51
+
52
+ attr_accessor business_name: String?
53
+
54
+ attr_accessor business_role: String?
55
+
56
+ attr_accessor business_url: String?
57
+
58
+ attr_accessor city: String?
59
+
60
+ attr_accessor contact_email: String?
61
+
62
+ attr_reader contact_name: String?
63
+
64
+ def contact_name=: (String) -> String
65
+
66
+ attr_accessor contact_phone: String?
67
+
68
+ attr_accessor contact_phone_country_code: String?
69
+
70
+ attr_accessor country: String?
71
+
72
+ attr_accessor country_of_registration: String?
73
+
74
+ attr_reader created_at: Time?
75
+
76
+ def created_at=: (Time) -> Time
77
+
78
+ attr_accessor csp_id: String?
79
+
80
+ attr_reader destination_countries: ::Array[Sentdm::DestinationCountry]?
81
+
82
+ def destination_countries=: (
83
+ ::Array[Sentdm::DestinationCountry]
84
+ ) -> ::Array[Sentdm::DestinationCountry]
85
+
86
+ attr_accessor entity_type: String?
87
+
88
+ attr_accessor expected_messaging_volume: String?
89
+
90
+ attr_accessor identity_status: Sentdm::Models::BrandWithKYC::identity_status?
91
+
92
+ attr_reader is_inherited: bool?
93
+
94
+ def is_inherited=: (bool) -> bool
95
+
96
+ attr_reader is_tcr_application: bool?
97
+
98
+ def is_tcr_application=: (bool) -> bool
99
+
100
+ attr_accessor notes: String?
101
+
102
+ attr_accessor phone_number_prefix: String?
103
+
104
+ attr_accessor postal_code: String?
105
+
106
+ attr_accessor primary_use_case: String?
107
+
108
+ attr_accessor state: String?
109
+
110
+ attr_accessor status: Sentdm::Models::BrandWithKYC::status?
111
+
112
+ attr_accessor street: String?
113
+
114
+ attr_accessor submitted_at: Time?
115
+
116
+ attr_reader submitted_to_tcr: bool?
117
+
118
+ def submitted_to_tcr=: (bool) -> bool
119
+
120
+ attr_accessor tax_id: String?
121
+
122
+ attr_accessor tax_id_type: String?
123
+
124
+ attr_accessor tcr_brand_id: String?
125
+
126
+ attr_accessor universal_ein: String?
127
+
128
+ attr_accessor updated_at: Time?
129
+
130
+ attr_accessor vertical: Sentdm::Models::tcr_vertical?
131
+
132
+ def initialize: (
133
+ ?id: String,
134
+ ?brand_relationship: Sentdm::Models::tcr_brand_relationship?,
135
+ ?business_legal_name: String?,
136
+ ?business_name: String?,
137
+ ?business_role: String?,
138
+ ?business_url: String?,
139
+ ?city: String?,
140
+ ?contact_email: String?,
141
+ ?contact_name: String,
142
+ ?contact_phone: String?,
143
+ ?contact_phone_country_code: String?,
144
+ ?country: String?,
145
+ ?country_of_registration: String?,
146
+ ?created_at: Time,
147
+ ?csp_id: String?,
148
+ ?destination_countries: ::Array[Sentdm::DestinationCountry],
149
+ ?entity_type: String?,
150
+ ?expected_messaging_volume: String?,
151
+ ?identity_status: Sentdm::Models::BrandWithKYC::identity_status?,
152
+ ?is_inherited: bool,
153
+ ?is_tcr_application: bool,
154
+ ?notes: String?,
155
+ ?phone_number_prefix: String?,
156
+ ?postal_code: String?,
157
+ ?primary_use_case: String?,
158
+ ?state: String?,
159
+ ?status: Sentdm::Models::BrandWithKYC::status?,
160
+ ?street: String?,
161
+ ?submitted_at: Time?,
162
+ ?submitted_to_tcr: bool,
163
+ ?tax_id: String?,
164
+ ?tax_id_type: String?,
165
+ ?tcr_brand_id: String?,
166
+ ?universal_ein: String?,
167
+ ?updated_at: Time?,
168
+ ?vertical: Sentdm::Models::tcr_vertical?
169
+ ) -> void
170
+
171
+ def to_hash: -> {
172
+ id: String,
173
+ brand_relationship: Sentdm::Models::tcr_brand_relationship?,
174
+ business_legal_name: String?,
175
+ business_name: String?,
176
+ business_role: String?,
177
+ business_url: String?,
178
+ city: String?,
179
+ contact_email: String?,
180
+ contact_name: String,
181
+ contact_phone: String?,
182
+ contact_phone_country_code: String?,
183
+ country: String?,
184
+ country_of_registration: String?,
185
+ created_at: Time,
186
+ csp_id: String?,
187
+ destination_countries: ::Array[Sentdm::DestinationCountry],
188
+ entity_type: String?,
189
+ expected_messaging_volume: String?,
190
+ identity_status: Sentdm::Models::BrandWithKYC::identity_status?,
191
+ is_inherited: bool,
192
+ is_tcr_application: bool,
193
+ notes: String?,
194
+ phone_number_prefix: String?,
195
+ postal_code: String?,
196
+ primary_use_case: String?,
197
+ state: String?,
198
+ status: Sentdm::Models::BrandWithKYC::status?,
199
+ street: String?,
200
+ submitted_at: Time?,
201
+ submitted_to_tcr: bool,
202
+ tax_id: String?,
203
+ tax_id_type: String?,
204
+ tcr_brand_id: String?,
205
+ universal_ein: String?,
206
+ updated_at: Time?,
207
+ vertical: Sentdm::Models::tcr_vertical?
208
+ }
209
+
210
+ type identity_status =
211
+ :SELF_DECLARED | :UNVERIFIED | :VERIFIED | :VETTED_VERIFIED
212
+
213
+ module IdentityStatus
214
+ extend Sentdm::Internal::Type::Enum
215
+
216
+ SELF_DECLARED: :SELF_DECLARED
217
+ UNVERIFIED: :UNVERIFIED
218
+ VERIFIED: :VERIFIED
219
+ VETTED_VERIFIED: :VETTED_VERIFIED
220
+
221
+ def self?.values: -> ::Array[Sentdm::Models::BrandWithKYC::identity_status]
222
+ end
223
+
224
+ type status = :ACTIVE | :INACTIVE | :SUSPENDED
225
+
226
+ module Status
227
+ extend Sentdm::Internal::Type::Enum
228
+
229
+ ACTIVE: :ACTIVE
230
+ INACTIVE: :INACTIVE
231
+ SUSPENDED: :SUSPENDED
232
+
233
+ def self?.values: -> ::Array[Sentdm::Models::BrandWithKYC::status]
234
+ end
235
+ end
236
+ end
237
+ end
@@ -0,0 +1,41 @@
1
+ module Sentdm
2
+ module Models
3
+ module Brands
4
+ type api_response_tcr_campaign_with_use_cases =
5
+ {
6
+ data: Sentdm::Brands::TcrCampaignWithUseCases?,
7
+ error: Sentdm::APIError?,
8
+ meta: Sentdm::APIMeta,
9
+ success: bool
10
+ }
11
+
12
+ class APIResponseTcrCampaignWithUseCases < Sentdm::Internal::Type::BaseModel
13
+ attr_accessor data: Sentdm::Brands::TcrCampaignWithUseCases?
14
+
15
+ attr_accessor error: Sentdm::APIError?
16
+
17
+ attr_reader meta: Sentdm::APIMeta?
18
+
19
+ def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
20
+
21
+ attr_reader success: bool?
22
+
23
+ def success=: (bool) -> bool
24
+
25
+ def initialize: (
26
+ ?data: Sentdm::Brands::TcrCampaignWithUseCases?,
27
+ ?error: Sentdm::APIError?,
28
+ ?meta: Sentdm::APIMeta,
29
+ ?success: bool
30
+ ) -> void
31
+
32
+ def to_hash: -> {
33
+ data: Sentdm::Brands::TcrCampaignWithUseCases?,
34
+ error: Sentdm::APIError?,
35
+ meta: Sentdm::APIMeta,
36
+ success: bool
37
+ }
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,27 @@
1
+ module Sentdm
2
+ module Models
3
+ module Brands
4
+ type base_dto = { id: String, created_at: Time, updated_at: Time? }
5
+
6
+ class BaseDto < Sentdm::Internal::Type::BaseModel
7
+ attr_reader id: String?
8
+
9
+ def id=: (String) -> String
10
+
11
+ attr_reader created_at: Time?
12
+
13
+ def created_at=: (Time) -> Time
14
+
15
+ attr_accessor updated_at: Time?
16
+
17
+ def initialize: (
18
+ ?id: String,
19
+ ?created_at: Time,
20
+ ?updated_at: Time?
21
+ ) -> void
22
+
23
+ def to_hash: -> { id: String, created_at: Time, updated_at: Time? }
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,42 @@
1
+ module Sentdm
2
+ module Models
3
+ module Brands
4
+ type campaign_create_params =
5
+ {
6
+ campaign: Sentdm::Brands::CampaignData,
7
+ test_mode: bool,
8
+ idempotency_key: String
9
+ }
10
+ & Sentdm::Internal::Type::request_parameters
11
+
12
+ class CampaignCreateParams < Sentdm::Internal::Type::BaseModel
13
+ extend Sentdm::Internal::Type::RequestParameters::Converter
14
+ include Sentdm::Internal::Type::RequestParameters
15
+
16
+ attr_accessor campaign: Sentdm::Brands::CampaignData
17
+
18
+ attr_reader test_mode: bool?
19
+
20
+ def test_mode=: (bool) -> bool
21
+
22
+ attr_reader idempotency_key: String?
23
+
24
+ def idempotency_key=: (String) -> String
25
+
26
+ def initialize: (
27
+ campaign: Sentdm::Brands::CampaignData,
28
+ ?test_mode: bool,
29
+ ?idempotency_key: String,
30
+ ?request_options: Sentdm::request_opts
31
+ ) -> void
32
+
33
+ def to_hash: -> {
34
+ campaign: Sentdm::Brands::CampaignData,
35
+ test_mode: bool,
36
+ idempotency_key: String,
37
+ request_options: Sentdm::RequestOptions
38
+ }
39
+ end
40
+ end
41
+ end
42
+ end