sentdm 0.3.1 → 0.5.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 (292) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -27
  4. data/lib/sentdm/client.rb +5 -9
  5. data/lib/sentdm/internal/type/base_model.rb +5 -5
  6. data/lib/sentdm/models/api_meta.rb +1 -9
  7. data/lib/sentdm/models/{api_response_contact.rb → api_response_of_contact.rb} +4 -4
  8. data/lib/sentdm/models/base_dto.rb +30 -0
  9. data/lib/sentdm/models/billing_contact_info.rb +47 -0
  10. data/lib/sentdm/models/brands_brand_data.rb +274 -0
  11. data/lib/sentdm/models/contact_create_params.rb +13 -6
  12. data/lib/sentdm/models/contact_delete_params.rb +9 -2
  13. data/lib/sentdm/models/contact_list_params.rb +10 -2
  14. data/lib/sentdm/models/contact_list_response.rb +3 -3
  15. data/lib/sentdm/models/{contact.rb → contact_response.rb} +1 -1
  16. data/lib/sentdm/models/contact_retrieve_params.rb +7 -1
  17. data/lib/sentdm/models/contact_update_params.rb +13 -6
  18. data/lib/sentdm/models/me_retrieve_params.rb +7 -1
  19. data/lib/sentdm/models/me_retrieve_response.rb +152 -7
  20. data/lib/sentdm/models/message_retrieve_activities_params.rb +7 -1
  21. data/lib/sentdm/models/message_retrieve_activities_response.rb +19 -5
  22. data/lib/sentdm/models/message_retrieve_status_params.rb +7 -1
  23. data/lib/sentdm/models/message_retrieve_status_response.rb +8 -1
  24. data/lib/sentdm/models/message_send_params.rb +17 -10
  25. data/lib/sentdm/models/mutation_request_base.rb +20 -0
  26. data/lib/sentdm/models/{lookup_retrieve_phone_info_params.rb → number_lookup_params.rb} +9 -3
  27. data/lib/sentdm/models/{lookup_retrieve_phone_info_response.rb → number_lookup_response.rb} +21 -21
  28. data/lib/sentdm/models/payment_details.rb +44 -0
  29. data/lib/sentdm/models/{profile_complete_params.rb → profile_complete_setup_params.rb} +16 -9
  30. data/lib/sentdm/models/{profile_complete_response.rb → profile_complete_setup_response.rb} +1 -1
  31. data/lib/sentdm/models/profile_create_params.rb +111 -11
  32. data/lib/sentdm/models/profile_delete_params.rb +18 -18
  33. data/lib/sentdm/models/profile_detail.rb +483 -68
  34. data/lib/sentdm/models/profile_list_params.rb +7 -1
  35. data/lib/sentdm/models/profile_retrieve_params.rb +7 -1
  36. data/lib/sentdm/models/profile_update_params.rb +60 -22
  37. data/lib/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rb → profiles/api_response_of_tcr_campaign_with_use_cases.rb} +6 -6
  38. data/lib/sentdm/models/profiles/campaign_create_params.rb +57 -0
  39. data/lib/sentdm/models/{brands → profiles}/campaign_data.rb +28 -7
  40. data/lib/sentdm/models/profiles/campaign_delete_params.rb +50 -0
  41. data/lib/sentdm/models/profiles/campaign_list_params.rb +28 -0
  42. data/lib/sentdm/models/{brands → profiles}/campaign_list_response.rb +5 -5
  43. data/lib/sentdm/models/profiles/campaign_update_params.rb +64 -0
  44. data/lib/sentdm/models/{brands → profiles}/messaging_use_case_us.rb +1 -1
  45. data/lib/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rb +15 -15
  46. data/lib/sentdm/models/template_create_params.rb +17 -10
  47. data/lib/sentdm/models/template_definition.rb +255 -15
  48. data/lib/sentdm/models/template_delete_params.rb +13 -6
  49. data/lib/sentdm/models/template_list_params.rb +18 -2
  50. data/lib/sentdm/models/template_retrieve_params.rb +7 -1
  51. data/lib/sentdm/models/template_update_params.rb +17 -10
  52. data/lib/sentdm/models/template_variable.rb +7 -1
  53. data/lib/sentdm/models/user_invite_params.rb +13 -6
  54. data/lib/sentdm/models/user_list_params.rb +7 -1
  55. data/lib/sentdm/models/user_remove_params.rb +17 -17
  56. data/lib/sentdm/models/user_retrieve_params.rb +7 -1
  57. data/lib/sentdm/models/user_update_role_params.rb +15 -16
  58. data/lib/sentdm/models/webhook_create_params.rb +13 -6
  59. data/lib/sentdm/models/webhook_delete_params.rb +7 -1
  60. data/lib/sentdm/models/webhook_list_event_types_params.rb +7 -1
  61. data/lib/sentdm/models/webhook_list_events_params.rb +7 -1
  62. data/lib/sentdm/models/webhook_list_params.rb +7 -1
  63. data/lib/sentdm/models/webhook_retrieve_params.rb +7 -1
  64. data/lib/sentdm/models/webhook_rotate_secret_params.rb +8 -2
  65. data/lib/sentdm/models/webhook_test_params.rb +13 -6
  66. data/lib/sentdm/models/webhook_toggle_status_params.rb +13 -6
  67. data/lib/sentdm/models/webhook_update_params.rb +13 -6
  68. data/lib/sentdm/models.rb +14 -38
  69. data/lib/sentdm/resources/contacts.rb +49 -26
  70. data/lib/sentdm/resources/me.rb +24 -5
  71. data/lib/sentdm/resources/messages.rb +24 -8
  72. data/lib/sentdm/resources/numbers.rb +44 -0
  73. data/lib/sentdm/resources/profiles/campaigns.rb +160 -0
  74. data/lib/sentdm/resources/profiles.rb +125 -36
  75. data/lib/sentdm/resources/templates.rb +47 -24
  76. data/lib/sentdm/resources/users.rb +40 -23
  77. data/lib/sentdm/resources/webhooks.rb +92 -34
  78. data/lib/sentdm/version.rb +1 -1
  79. data/lib/sentdm.rb +22 -35
  80. data/rbi/sentdm/client.rbi +4 -7
  81. data/rbi/sentdm/models/api_meta.rbi +4 -18
  82. data/rbi/sentdm/models/{api_response_brand_with_kyc.rbi → api_response_of_contact.rbi} +6 -6
  83. data/rbi/sentdm/models/base_dto.rbi +49 -0
  84. data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
  85. data/rbi/sentdm/models/brands_brand_data.rbi +406 -0
  86. data/rbi/sentdm/models/contact_create_params.rbi +19 -10
  87. data/rbi/sentdm/models/contact_delete_params.rbi +10 -1
  88. data/rbi/sentdm/models/contact_list_params.rbi +11 -0
  89. data/rbi/sentdm/models/contact_list_response.rbi +4 -4
  90. data/rbi/sentdm/models/{contact.rbi → contact_response.rbi} +4 -2
  91. data/rbi/sentdm/models/contact_retrieve_params.rbi +13 -2
  92. data/rbi/sentdm/models/contact_update_params.rbi +19 -10
  93. data/rbi/sentdm/models/me_retrieve_params.rbi +16 -5
  94. data/rbi/sentdm/models/me_retrieve_response.rbi +316 -16
  95. data/rbi/sentdm/models/message_retrieve_activities_params.rbi +13 -2
  96. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +18 -6
  97. data/rbi/sentdm/models/message_retrieve_status_params.rbi +13 -2
  98. data/rbi/sentdm/models/message_retrieve_status_response.rbi +6 -0
  99. data/rbi/sentdm/models/message_send_params.rbi +22 -13
  100. data/rbi/sentdm/models/mutation_request_base.rbi +32 -0
  101. data/rbi/sentdm/models/{lookup_retrieve_phone_info_params.rbi → number_lookup_params.rbi} +15 -7
  102. data/rbi/sentdm/models/{lookup_retrieve_phone_info_response.rbi → number_lookup_response.rbi} +16 -33
  103. data/rbi/sentdm/models/payment_details.rbi +59 -0
  104. data/rbi/sentdm/models/{profile_complete_params.rbi → profile_complete_setup_params.rbi} +21 -12
  105. data/rbi/sentdm/models/{profile_complete_response.rbi → profile_complete_setup_response.rbi} +1 -1
  106. data/rbi/sentdm/models/profile_create_params.rbi +189 -15
  107. data/rbi/sentdm/models/profile_delete_params.rbi +36 -24
  108. data/rbi/sentdm/models/profile_detail.rbi +725 -111
  109. data/rbi/sentdm/models/profile_list_params.rbi +16 -5
  110. data/rbi/sentdm/models/profile_retrieve_params.rbi +13 -2
  111. data/rbi/sentdm/models/profile_update_params.rbi +97 -30
  112. data/rbi/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbi → profiles/api_response_of_tcr_campaign_with_use_cases.rbi} +7 -7
  113. data/rbi/sentdm/models/{brands → profiles}/campaign_create_params.rbi +29 -20
  114. data/rbi/sentdm/models/{brands → profiles}/campaign_data.rbi +51 -16
  115. data/rbi/sentdm/models/{brands → profiles}/campaign_delete_params.rbi +23 -12
  116. data/rbi/sentdm/models/profiles/campaign_list_params.rbi +51 -0
  117. data/rbi/sentdm/models/{brands → profiles}/campaign_list_response.rbi +7 -5
  118. data/rbi/sentdm/models/{brands → profiles}/campaign_update_params.rbi +29 -20
  119. data/rbi/sentdm/models/{brands → profiles}/messaging_use_case_us.rbi +20 -16
  120. data/rbi/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbi +35 -29
  121. data/rbi/sentdm/models/template_create_params.rbi +22 -13
  122. data/rbi/sentdm/models/template_definition.rbi +405 -74
  123. data/rbi/sentdm/models/template_delete_params.rbi +19 -10
  124. data/rbi/sentdm/models/template_list_params.rbi +19 -0
  125. data/rbi/sentdm/models/template_retrieve_params.rbi +13 -2
  126. data/rbi/sentdm/models/template_update_params.rbi +22 -13
  127. data/rbi/sentdm/models/template_variable.rbi +6 -0
  128. data/rbi/sentdm/models/user_invite_params.rbi +19 -10
  129. data/rbi/sentdm/models/user_list_params.rbi +16 -5
  130. data/rbi/sentdm/models/user_remove_params.rbi +35 -23
  131. data/rbi/sentdm/models/user_retrieve_params.rbi +13 -2
  132. data/rbi/sentdm/models/user_update_role_params.rbi +23 -25
  133. data/rbi/sentdm/models/webhook_create_params.rbi +19 -10
  134. data/rbi/sentdm/models/webhook_delete_params.rbi +13 -2
  135. data/rbi/sentdm/models/webhook_list_event_types_params.rbi +16 -5
  136. data/rbi/sentdm/models/webhook_list_events_params.rbi +16 -1
  137. data/rbi/sentdm/models/webhook_list_params.rbi +9 -0
  138. data/rbi/sentdm/models/webhook_retrieve_params.rbi +13 -2
  139. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +16 -2
  140. data/rbi/sentdm/models/webhook_test_params.rbi +19 -10
  141. data/rbi/sentdm/models/webhook_toggle_status_params.rbi +19 -10
  142. data/rbi/sentdm/models/webhook_update_params.rbi +19 -10
  143. data/rbi/sentdm/models.rbi +14 -38
  144. data/rbi/sentdm/resources/contacts.rbi +40 -15
  145. data/rbi/sentdm/resources/me.rbi +25 -7
  146. data/rbi/sentdm/resources/messages.rbi +17 -4
  147. data/rbi/sentdm/resources/numbers.rbi +32 -0
  148. data/rbi/sentdm/resources/profiles/campaigns.rbi +127 -0
  149. data/rbi/sentdm/resources/profiles.rbi +179 -39
  150. data/rbi/sentdm/resources/templates.rbi +47 -19
  151. data/rbi/sentdm/resources/users.rbi +47 -25
  152. data/rbi/sentdm/resources/webhooks.rbi +92 -20
  153. data/sig/sentdm/client.rbs +2 -4
  154. data/sig/sentdm/models/api_meta.rbs +2 -16
  155. data/sig/sentdm/models/{api_response_contact.rbs → api_response_of_contact.rbs} +6 -6
  156. data/sig/sentdm/models/base_dto.rbs +25 -0
  157. data/sig/sentdm/models/billing_contact_info.rbs +30 -0
  158. data/sig/sentdm/models/brands_brand_data.rbs +210 -0
  159. data/sig/sentdm/models/contact_create_params.rbs +16 -5
  160. data/sig/sentdm/models/contact_delete_params.rbs +12 -2
  161. data/sig/sentdm/models/contact_list_params.rbs +8 -1
  162. data/sig/sentdm/models/contact_list_response.rbs +7 -5
  163. data/sig/sentdm/models/{contact.rbs → contact_response.rbs} +2 -2
  164. data/sig/sentdm/models/contact_retrieve_params.rbs +12 -2
  165. data/sig/sentdm/models/contact_update_params.rbs +13 -6
  166. data/sig/sentdm/models/me_retrieve_params.rbs +14 -3
  167. data/sig/sentdm/models/me_retrieve_response.rbs +134 -7
  168. data/sig/sentdm/models/message_retrieve_activities_params.rbs +12 -2
  169. data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -4
  170. data/sig/sentdm/models/message_retrieve_status_params.rbs +12 -2
  171. data/sig/sentdm/models/message_retrieve_status_response.rbs +5 -0
  172. data/sig/sentdm/models/message_send_params.rbs +15 -8
  173. data/sig/sentdm/models/mutation_request_base.rbs +15 -0
  174. data/sig/sentdm/models/{lookup_retrieve_phone_info_params.rbs → number_lookup_params.rbs} +10 -3
  175. data/sig/sentdm/models/{lookup_retrieve_phone_info_response.rbs → number_lookup_response.rbs} +14 -16
  176. data/sig/sentdm/models/payment_details.rbs +30 -0
  177. data/sig/sentdm/models/{profile_complete_params.rbs → profile_complete_setup_params.rbs} +15 -8
  178. data/sig/sentdm/models/profile_complete_setup_response.rbs +5 -0
  179. data/sig/sentdm/models/profile_create_params.rbs +57 -7
  180. data/sig/sentdm/models/profile_delete_params.rbs +23 -13
  181. data/sig/sentdm/models/profile_detail.rbs +374 -68
  182. data/sig/sentdm/models/profile_list_params.rbs +14 -3
  183. data/sig/sentdm/models/profile_retrieve_params.rbs +8 -1
  184. data/sig/sentdm/models/profile_update_params.rbs +32 -17
  185. data/sig/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbs → profiles/api_response_of_tcr_campaign_with_use_cases.rbs} +7 -7
  186. data/sig/sentdm/models/profiles/campaign_create_params.rbs +54 -0
  187. data/sig/sentdm/models/{brands → profiles}/campaign_data.rbs +27 -5
  188. data/sig/sentdm/models/{brands → profiles}/campaign_delete_params.rbs +17 -10
  189. data/sig/sentdm/models/{brands → profiles}/campaign_list_params.rbs +12 -5
  190. data/sig/sentdm/models/{brands → profiles}/campaign_list_response.rbs +5 -5
  191. data/sig/sentdm/models/{brands → profiles}/campaign_update_params.rbs +22 -15
  192. data/sig/sentdm/models/{brands → profiles}/messaging_use_case_us.rbs +2 -2
  193. data/sig/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbs +29 -29
  194. data/sig/sentdm/models/template_create_params.rbs +15 -8
  195. data/sig/sentdm/models/template_definition.rbs +233 -20
  196. data/sig/sentdm/models/template_delete_params.rbs +16 -5
  197. data/sig/sentdm/models/template_list_params.rbs +13 -1
  198. data/sig/sentdm/models/template_retrieve_params.rbs +12 -2
  199. data/sig/sentdm/models/template_update_params.rbs +15 -8
  200. data/sig/sentdm/models/template_variable.rbs +5 -0
  201. data/sig/sentdm/models/user_invite_params.rbs +13 -6
  202. data/sig/sentdm/models/user_list_params.rbs +14 -3
  203. data/sig/sentdm/models/user_remove_params.rbs +23 -13
  204. data/sig/sentdm/models/user_retrieve_params.rbs +8 -1
  205. data/sig/sentdm/models/user_update_role_params.rbs +17 -17
  206. data/sig/sentdm/models/webhook_create_params.rbs +13 -6
  207. data/sig/sentdm/models/webhook_delete_params.rbs +12 -2
  208. data/sig/sentdm/models/webhook_list_event_types_params.rbs +13 -3
  209. data/sig/sentdm/models/webhook_list_events_params.rbs +13 -1
  210. data/sig/sentdm/models/webhook_list_params.rbs +13 -1
  211. data/sig/sentdm/models/webhook_retrieve_params.rbs +12 -2
  212. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +9 -2
  213. data/sig/sentdm/models/webhook_test_params.rbs +13 -6
  214. data/sig/sentdm/models/webhook_toggle_status_params.rbs +17 -5
  215. data/sig/sentdm/models/webhook_update_params.rbs +13 -6
  216. data/sig/sentdm/models.rbs +14 -32
  217. data/sig/sentdm/resources/contacts.rbs +10 -5
  218. data/sig/sentdm/resources/me.rbs +1 -0
  219. data/sig/sentdm/resources/messages.rbs +4 -1
  220. data/sig/sentdm/resources/{lookup.rbs → numbers.rbs} +4 -3
  221. data/sig/sentdm/resources/profiles/campaigns.rbs +42 -0
  222. data/sig/sentdm/resources/profiles.rbs +22 -9
  223. data/sig/sentdm/resources/templates.rbs +9 -3
  224. data/sig/sentdm/resources/users.rbs +10 -7
  225. data/sig/sentdm/resources/webhooks.rbs +18 -5
  226. metadata +67 -106
  227. data/lib/sentdm/models/api_response_brand_with_kyc.rb +0 -43
  228. data/lib/sentdm/models/brand_create_params.rb +0 -41
  229. data/lib/sentdm/models/brand_data.rb +0 -237
  230. data/lib/sentdm/models/brand_delete_params.rb +0 -34
  231. data/lib/sentdm/models/brand_list_params.rb +0 -14
  232. data/lib/sentdm/models/brand_list_response.rb +0 -43
  233. data/lib/sentdm/models/brand_update_params.rb +0 -48
  234. data/lib/sentdm/models/brand_with_kyc.rb +0 -335
  235. data/lib/sentdm/models/brands/base_dto.rb +0 -32
  236. data/lib/sentdm/models/brands/campaign_create_params.rb +0 -50
  237. data/lib/sentdm/models/brands/campaign_delete_params.rb +0 -43
  238. data/lib/sentdm/models/brands/campaign_list_params.rb +0 -22
  239. data/lib/sentdm/models/brands/campaign_update_params.rb +0 -57
  240. data/lib/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -30
  241. data/lib/sentdm/models/mutation_request.rb +0 -20
  242. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
  243. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
  244. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
  245. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
  246. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
  247. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
  248. data/lib/sentdm/resources/brands/campaigns.rb +0 -145
  249. data/lib/sentdm/resources/brands.rb +0 -130
  250. data/lib/sentdm/resources/lookup.rb +0 -35
  251. data/rbi/sentdm/models/api_response_contact.rbi +0 -74
  252. data/rbi/sentdm/models/brand_create_params.rbi +0 -68
  253. data/rbi/sentdm/models/brand_data.rbi +0 -266
  254. data/rbi/sentdm/models/brand_delete_params.rbi +0 -68
  255. data/rbi/sentdm/models/brand_list_params.rbi +0 -27
  256. data/rbi/sentdm/models/brand_list_response.rbi +0 -71
  257. data/rbi/sentdm/models/brand_update_params.rbi +0 -74
  258. data/rbi/sentdm/models/brand_with_kyc.rbi +0 -398
  259. data/rbi/sentdm/models/brands/base_dto.rbi +0 -53
  260. data/rbi/sentdm/models/brands/campaign_list_params.rbi +0 -37
  261. data/rbi/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -52
  262. data/rbi/sentdm/models/mutation_request.rbi +0 -32
  263. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
  264. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
  265. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -79
  266. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
  267. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -60
  268. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -62
  269. data/rbi/sentdm/resources/brands/campaigns.rbi +0 -109
  270. data/rbi/sentdm/resources/brands.rbi +0 -95
  271. data/rbi/sentdm/resources/lookup.rbi +0 -24
  272. data/sig/sentdm/models/api_response_brand_with_kyc.rbs +0 -39
  273. data/sig/sentdm/models/brand_create_params.rbs +0 -36
  274. data/sig/sentdm/models/brand_data.rbs +0 -164
  275. data/sig/sentdm/models/brand_delete_params.rbs +0 -36
  276. data/sig/sentdm/models/brand_list_params.rbs +0 -14
  277. data/sig/sentdm/models/brand_list_response.rbs +0 -39
  278. data/sig/sentdm/models/brand_update_params.rbs +0 -45
  279. data/sig/sentdm/models/brand_with_kyc.rbs +0 -237
  280. data/sig/sentdm/models/brands/base_dto.rbs +0 -27
  281. data/sig/sentdm/models/brands/campaign_create_params.rbs +0 -47
  282. data/sig/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
  283. data/sig/sentdm/models/mutation_request.rbs +0 -15
  284. data/sig/sentdm/models/profile_complete_response.rbs +0 -5
  285. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
  286. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
  287. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -38
  288. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
  289. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -32
  290. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -32
  291. data/sig/sentdm/resources/brands/campaigns.rbs +0 -38
  292. data/sig/sentdm/resources/brands.rbs +0 -34
@@ -26,15 +26,28 @@ module Sentdm
26
26
  sig { params(idempotency_key: String).void }
27
27
  attr_writer :idempotency_key
28
28
 
29
+ sig { returns(T.nilable(String)) }
30
+ attr_reader :x_profile_id
31
+
32
+ sig { params(x_profile_id: String).void }
33
+ attr_writer :x_profile_id
34
+
29
35
  sig do
30
36
  params(
31
37
  id: String,
32
38
  body: Sentdm::WebhookRotateSecretParams::Body::OrHash,
33
39
  idempotency_key: String,
40
+ x_profile_id: String,
34
41
  request_options: Sentdm::RequestOptions::OrHash
35
42
  ).returns(T.attached_class)
36
43
  end
37
- def self.new(id:, body:, idempotency_key: nil, request_options: {})
44
+ def self.new(
45
+ id:,
46
+ body:,
47
+ idempotency_key: nil,
48
+ x_profile_id: nil,
49
+ request_options: {}
50
+ )
38
51
  end
39
52
 
40
53
  sig do
@@ -43,6 +56,7 @@ module Sentdm
43
56
  id: String,
44
57
  body: Sentdm::WebhookRotateSecretParams::Body,
45
58
  idempotency_key: String,
59
+ x_profile_id: String,
46
60
  request_options: Sentdm::RequestOptions
47
61
  }
48
62
  )
@@ -50,7 +64,7 @@ module Sentdm
50
64
  def to_hash
51
65
  end
52
66
 
53
- class Body < Sentdm::Models::MutationRequest
67
+ class Body < Sentdm::Models::MutationRequestBase
54
68
  OrHash =
55
69
  T.type_alias do
56
70
  T.any(
@@ -20,13 +20,13 @@ module Sentdm
20
20
  sig { params(event_type: String).void }
21
21
  attr_writer :event_type
22
22
 
23
- # Test mode flag - when true, the operation is simulated without side effects
24
- # Useful for testing integrations without actual execution
23
+ # Sandbox flag - when true, the operation is simulated without side effects Useful
24
+ # for testing integrations without actual execution
25
25
  sig { returns(T.nilable(T::Boolean)) }
26
- attr_reader :test_mode
26
+ attr_reader :sandbox
27
27
 
28
- sig { params(test_mode: T::Boolean).void }
29
- attr_writer :test_mode
28
+ sig { params(sandbox: T::Boolean).void }
29
+ attr_writer :sandbox
30
30
 
31
31
  sig { returns(T.nilable(String)) }
32
32
  attr_reader :idempotency_key
@@ -34,22 +34,30 @@ module Sentdm
34
34
  sig { params(idempotency_key: String).void }
35
35
  attr_writer :idempotency_key
36
36
 
37
+ sig { returns(T.nilable(String)) }
38
+ attr_reader :x_profile_id
39
+
40
+ sig { params(x_profile_id: String).void }
41
+ attr_writer :x_profile_id
42
+
37
43
  sig do
38
44
  params(
39
45
  id: String,
40
46
  event_type: String,
41
- test_mode: T::Boolean,
47
+ sandbox: T::Boolean,
42
48
  idempotency_key: String,
49
+ x_profile_id: String,
43
50
  request_options: Sentdm::RequestOptions::OrHash
44
51
  ).returns(T.attached_class)
45
52
  end
46
53
  def self.new(
47
54
  id:,
48
55
  event_type: nil,
49
- # Test mode flag - when true, the operation is simulated without side effects
50
- # Useful for testing integrations without actual execution
51
- test_mode: nil,
56
+ # Sandbox flag - when true, the operation is simulated without side effects Useful
57
+ # for testing integrations without actual execution
58
+ sandbox: nil,
52
59
  idempotency_key: nil,
60
+ x_profile_id: nil,
53
61
  request_options: {}
54
62
  )
55
63
  end
@@ -59,8 +67,9 @@ module Sentdm
59
67
  {
60
68
  id: String,
61
69
  event_type: String,
62
- test_mode: T::Boolean,
70
+ sandbox: T::Boolean,
63
71
  idempotency_key: String,
72
+ x_profile_id: String,
64
73
  request_options: Sentdm::RequestOptions
65
74
  }
66
75
  )
@@ -20,13 +20,13 @@ module Sentdm
20
20
  sig { params(is_active: T::Boolean).void }
21
21
  attr_writer :is_active
22
22
 
23
- # Test mode flag - when true, the operation is simulated without side effects
24
- # Useful for testing integrations without actual execution
23
+ # Sandbox flag - when true, the operation is simulated without side effects Useful
24
+ # for testing integrations without actual execution
25
25
  sig { returns(T.nilable(T::Boolean)) }
26
- attr_reader :test_mode
26
+ attr_reader :sandbox
27
27
 
28
- sig { params(test_mode: T::Boolean).void }
29
- attr_writer :test_mode
28
+ sig { params(sandbox: T::Boolean).void }
29
+ attr_writer :sandbox
30
30
 
31
31
  sig { returns(T.nilable(String)) }
32
32
  attr_reader :idempotency_key
@@ -34,22 +34,30 @@ module Sentdm
34
34
  sig { params(idempotency_key: String).void }
35
35
  attr_writer :idempotency_key
36
36
 
37
+ sig { returns(T.nilable(String)) }
38
+ attr_reader :x_profile_id
39
+
40
+ sig { params(x_profile_id: String).void }
41
+ attr_writer :x_profile_id
42
+
37
43
  sig do
38
44
  params(
39
45
  id: String,
40
46
  is_active: T::Boolean,
41
- test_mode: T::Boolean,
47
+ sandbox: T::Boolean,
42
48
  idempotency_key: String,
49
+ x_profile_id: String,
43
50
  request_options: Sentdm::RequestOptions::OrHash
44
51
  ).returns(T.attached_class)
45
52
  end
46
53
  def self.new(
47
54
  id:,
48
55
  is_active: nil,
49
- # Test mode flag - when true, the operation is simulated without side effects
50
- # Useful for testing integrations without actual execution
51
- test_mode: nil,
56
+ # Sandbox flag - when true, the operation is simulated without side effects Useful
57
+ # for testing integrations without actual execution
58
+ sandbox: nil,
52
59
  idempotency_key: nil,
60
+ x_profile_id: nil,
53
61
  request_options: {}
54
62
  )
55
63
  end
@@ -59,8 +67,9 @@ module Sentdm
59
67
  {
60
68
  id: String,
61
69
  is_active: T::Boolean,
62
- test_mode: T::Boolean,
70
+ sandbox: T::Boolean,
63
71
  idempotency_key: String,
72
+ x_profile_id: String,
64
73
  request_options: Sentdm::RequestOptions
65
74
  }
66
75
  )
@@ -38,13 +38,13 @@ module Sentdm
38
38
  sig { params(retry_count: Integer).void }
39
39
  attr_writer :retry_count
40
40
 
41
- # Test mode flag - when true, the operation is simulated without side effects
42
- # Useful for testing integrations without actual execution
41
+ # Sandbox flag - when true, the operation is simulated without side effects Useful
42
+ # for testing integrations without actual execution
43
43
  sig { returns(T.nilable(T::Boolean)) }
44
- attr_reader :test_mode
44
+ attr_reader :sandbox
45
45
 
46
- sig { params(test_mode: T::Boolean).void }
47
- attr_writer :test_mode
46
+ sig { params(sandbox: T::Boolean).void }
47
+ attr_writer :sandbox
48
48
 
49
49
  sig { returns(T.nilable(Integer)) }
50
50
  attr_reader :timeout_seconds
@@ -58,6 +58,12 @@ module Sentdm
58
58
  sig { params(idempotency_key: String).void }
59
59
  attr_writer :idempotency_key
60
60
 
61
+ sig { returns(T.nilable(String)) }
62
+ attr_reader :x_profile_id
63
+
64
+ sig { params(x_profile_id: String).void }
65
+ attr_writer :x_profile_id
66
+
61
67
  sig do
62
68
  params(
63
69
  id: String,
@@ -65,9 +71,10 @@ module Sentdm
65
71
  endpoint_url: String,
66
72
  event_types: T::Array[String],
67
73
  retry_count: Integer,
68
- test_mode: T::Boolean,
74
+ sandbox: T::Boolean,
69
75
  timeout_seconds: Integer,
70
76
  idempotency_key: String,
77
+ x_profile_id: String,
71
78
  request_options: Sentdm::RequestOptions::OrHash
72
79
  ).returns(T.attached_class)
73
80
  end
@@ -77,11 +84,12 @@ module Sentdm
77
84
  endpoint_url: nil,
78
85
  event_types: nil,
79
86
  retry_count: nil,
80
- # Test mode flag - when true, the operation is simulated without side effects
81
- # Useful for testing integrations without actual execution
82
- test_mode: nil,
87
+ # Sandbox flag - when true, the operation is simulated without side effects Useful
88
+ # for testing integrations without actual execution
89
+ sandbox: nil,
83
90
  timeout_seconds: nil,
84
91
  idempotency_key: nil,
92
+ x_profile_id: nil,
85
93
  request_options: {}
86
94
  )
87
95
  end
@@ -94,9 +102,10 @@ module Sentdm
94
102
  endpoint_url: String,
95
103
  event_types: T::Array[String],
96
104
  retry_count: Integer,
97
- test_mode: T::Boolean,
105
+ sandbox: T::Boolean,
98
106
  timeout_seconds: Integer,
99
107
  idempotency_key: String,
108
+ x_profile_id: String,
100
109
  request_options: Sentdm::RequestOptions
101
110
  }
102
111
  )
@@ -5,9 +5,7 @@ module Sentdm
5
5
 
6
6
  APIMeta = Sentdm::Models::APIMeta
7
7
 
8
- APIResponseBrandWithKYC = Sentdm::Models::APIResponseBrandWithKYC
9
-
10
- APIResponseContact = Sentdm::Models::APIResponseContact
8
+ APIResponseOfContact = Sentdm::Models::APIResponseOfContact
11
9
 
12
10
  APIResponseOfProfileDetail = Sentdm::Models::APIResponseOfProfileDetail
13
11
 
@@ -17,21 +15,11 @@ module Sentdm
17
15
 
18
16
  APIResponseWebhook = Sentdm::Models::APIResponseWebhook
19
17
 
20
- BrandCreateParams = Sentdm::Models::BrandCreateParams
21
-
22
- BrandData = Sentdm::Models::BrandData
23
-
24
- BrandDeleteParams = Sentdm::Models::BrandDeleteParams
25
-
26
- BrandListParams = Sentdm::Models::BrandListParams
27
-
28
- Brands = Sentdm::Models::Brands
18
+ BaseDto = Sentdm::Models::BaseDto
29
19
 
30
- BrandUpdateParams = Sentdm::Models::BrandUpdateParams
20
+ BillingContactInfo = Sentdm::Models::BillingContactInfo
31
21
 
32
- BrandWithKYC = Sentdm::Models::BrandWithKYC
33
-
34
- Contact = Sentdm::Models::Contact
22
+ BrandsBrandData = Sentdm::Models::BrandsBrandData
35
23
 
36
24
  ContactCreateParams = Sentdm::Models::ContactCreateParams
37
25
 
@@ -39,14 +27,14 @@ module Sentdm
39
27
 
40
28
  ContactListParams = Sentdm::Models::ContactListParams
41
29
 
30
+ ContactResponse = Sentdm::Models::ContactResponse
31
+
42
32
  ContactRetrieveParams = Sentdm::Models::ContactRetrieveParams
43
33
 
44
34
  ContactUpdateParams = Sentdm::Models::ContactUpdateParams
45
35
 
46
36
  DestinationCountry = Sentdm::Models::DestinationCountry
47
37
 
48
- LookupRetrievePhoneInfoParams = Sentdm::Models::LookupRetrievePhoneInfoParams
49
-
50
38
  MeRetrieveParams = Sentdm::Models::MeRetrieveParams
51
39
 
52
40
  MessageRetrieveActivitiesParams =
@@ -56,11 +44,15 @@ module Sentdm
56
44
 
57
45
  MessageSendParams = Sentdm::Models::MessageSendParams
58
46
 
59
- MutationRequest = Sentdm::Models::MutationRequest
47
+ MutationRequestBase = Sentdm::Models::MutationRequestBase
48
+
49
+ NumberLookupParams = Sentdm::Models::NumberLookupParams
60
50
 
61
51
  PaginationMeta = Sentdm::Models::PaginationMeta
62
52
 
63
- ProfileCompleteParams = Sentdm::Models::ProfileCompleteParams
53
+ PaymentDetails = Sentdm::Models::PaymentDetails
54
+
55
+ ProfileCompleteSetupParams = Sentdm::Models::ProfileCompleteSetupParams
64
56
 
65
57
  ProfileCreateParams = Sentdm::Models::ProfileCreateParams
66
58
 
@@ -72,28 +64,12 @@ module Sentdm
72
64
 
73
65
  ProfileRetrieveParams = Sentdm::Models::ProfileRetrieveParams
74
66
 
67
+ Profiles = Sentdm::Models::Profiles
68
+
75
69
  ProfileSettings = Sentdm::Models::ProfileSettings
76
70
 
77
71
  ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
78
72
 
79
- SentDmServicesCommonContractsPocOsAuthenticationConfig =
80
- Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig
81
-
82
- SentDmServicesCommonContractsPocOsTemplateBody =
83
- Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody
84
-
85
- SentDmServicesCommonContractsPocOsTemplateButton =
86
- Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton
87
-
88
- SentDmServicesCommonContractsPocOsTemplateButtonProps =
89
- Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps
90
-
91
- SentDmServicesCommonContractsPocOsTemplateFooter =
92
- Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter
93
-
94
- SentDmServicesCommonContractsPocOsTemplateHeader =
95
- Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
96
-
97
73
  TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
98
74
 
99
75
  TcrVertical = Sentdm::Models::TcrVertical
@@ -9,21 +9,26 @@ module Sentdm
9
9
  sig do
10
10
  params(
11
11
  phone_number: String,
12
- test_mode: T::Boolean,
12
+ sandbox: T::Boolean,
13
13
  idempotency_key: String,
14
+ x_profile_id: String,
14
15
  request_options: Sentdm::RequestOptions::OrHash
15
- ).returns(Sentdm::APIResponseContact)
16
+ ).returns(Sentdm::APIResponseOfContact)
16
17
  end
17
18
  def create(
18
19
  # Body param: Phone number of the contact to create
19
20
  phone_number: nil,
20
- # Body param: Test mode flag - when true, the operation is simulated without side
21
+ # Body param: Sandbox flag - when true, the operation is simulated without side
21
22
  # effects Useful for testing integrations without actual execution
22
- test_mode: nil,
23
+ sandbox: nil,
23
24
  # Header param: Unique key to ensure idempotent request processing. Must be 1-255
24
25
  # alphanumeric characters, hyphens, or underscores. Responses are cached for 24
25
26
  # hours per key per customer.
26
27
  idempotency_key: nil,
28
+ # Header param: Profile UUID to scope the request to a child profile. Only
29
+ # organization API keys can use this header. The profile must belong to the
30
+ # calling organization.
31
+ x_profile_id: nil,
27
32
  request_options: {}
28
33
  )
29
34
  end
@@ -34,12 +39,16 @@ module Sentdm
34
39
  sig do
35
40
  params(
36
41
  id: String,
42
+ x_profile_id: String,
37
43
  request_options: Sentdm::RequestOptions::OrHash
38
- ).returns(Sentdm::APIResponseContact)
44
+ ).returns(Sentdm::APIResponseOfContact)
39
45
  end
40
46
  def retrieve(
41
47
  # Contact ID from route parameter
42
48
  id,
49
+ # Profile UUID to scope the request to a child profile. Only organization API keys
50
+ # can use this header. The profile must belong to the calling organization.
51
+ x_profile_id: nil,
43
52
  request_options: {}
44
53
  )
45
54
  end
@@ -51,10 +60,11 @@ module Sentdm
51
60
  id: String,
52
61
  default_channel: T.nilable(String),
53
62
  opt_out: T.nilable(T::Boolean),
54
- test_mode: T::Boolean,
63
+ sandbox: T::Boolean,
55
64
  idempotency_key: String,
65
+ x_profile_id: String,
56
66
  request_options: Sentdm::RequestOptions::OrHash
57
- ).returns(Sentdm::APIResponseContact)
67
+ ).returns(Sentdm::APIResponseOfContact)
58
68
  end
59
69
  def update(
60
70
  # Path param: Contact ID from route parameter
@@ -63,13 +73,17 @@ module Sentdm
63
73
  default_channel: nil,
64
74
  # Body param: Whether the contact has opted out of messaging
65
75
  opt_out: nil,
66
- # Body param: Test mode flag - when true, the operation is simulated without side
76
+ # Body param: Sandbox flag - when true, the operation is simulated without side
67
77
  # effects Useful for testing integrations without actual execution
68
- test_mode: nil,
78
+ sandbox: nil,
69
79
  # Header param: Unique key to ensure idempotent request processing. Must be 1-255
70
80
  # alphanumeric characters, hyphens, or underscores. Responses are cached for 24
71
81
  # hours per key per customer.
72
82
  idempotency_key: nil,
83
+ # Header param: Profile UUID to scope the request to a child profile. Only
84
+ # organization API keys can use this header. The profile must belong to the
85
+ # calling organization.
86
+ x_profile_id: nil,
73
87
  request_options: {}
74
88
  )
75
89
  end
@@ -83,19 +97,25 @@ module Sentdm
83
97
  channel: T.nilable(String),
84
98
  phone: T.nilable(String),
85
99
  search: T.nilable(String),
100
+ x_profile_id: String,
86
101
  request_options: Sentdm::RequestOptions::OrHash
87
102
  ).returns(Sentdm::Models::ContactListResponse)
88
103
  end
89
104
  def list(
90
- # Page number (1-indexed)
105
+ # Query param: Page number (1-indexed)
91
106
  page:,
107
+ # Query param: Number of items per page
92
108
  page_size:,
93
- # Optional channel filter (sms, whatsapp)
109
+ # Query param: Optional channel filter (sms, whatsapp)
94
110
  channel: nil,
95
- # Optional phone number filter (alternative to list view)
111
+ # Query param: Optional phone number filter (alternative to list view)
96
112
  phone: nil,
97
- # Optional search term for filtering contacts
113
+ # Query param: Optional search term for filtering contacts
98
114
  search: nil,
115
+ # Header param: Profile UUID to scope the request to a child profile. Only
116
+ # organization API keys can use this header. The profile must belong to the
117
+ # calling organization.
118
+ x_profile_id: nil,
99
119
  request_options: {}
100
120
  )
101
121
  end
@@ -106,14 +126,19 @@ module Sentdm
106
126
  params(
107
127
  id: String,
108
128
  body: Sentdm::ContactDeleteParams::Body::OrHash,
129
+ x_profile_id: String,
109
130
  request_options: Sentdm::RequestOptions::OrHash
110
131
  ).void
111
132
  end
112
133
  def delete(
113
- # Contact ID from route parameter
134
+ # Path param: Contact ID from route parameter
114
135
  id,
115
- # Request to delete/dissociate a contact
136
+ # Body param: Request to delete/dissociate a contact
116
137
  body:,
138
+ # Header param: Profile UUID to scope the request to a child profile. Only
139
+ # organization API keys can use this header. The profile must belong to the
140
+ # calling organization.
141
+ x_profile_id: nil,
117
142
  request_options: {}
118
143
  )
119
144
  end
@@ -4,15 +4,33 @@ module Sentdm
4
4
  module Resources
5
5
  # Retrieve account details
6
6
  class Me
7
- # Returns the account associated with the API key. For organization API keys,
8
- # returns the organization with its profiles. For profile API keys, returns the
9
- # profile with its settings.
7
+ # Returns the account associated with the provided API key. The response includes
8
+ # account identity, contact information, messaging channel configuration, and
9
+ # depending on the account type — either a list of child profiles or the profile's
10
+ # own settings.
11
+ #
12
+ # **Account types:**
13
+ #
14
+ # - `organization` — Has child profiles. The `profiles` array is populated.
15
+ # - `user` — Standalone account with no profiles.
16
+ # - `profile` — Child of an organization. Includes `organization_id`,
17
+ # `short_name`, `status`, and `settings`.
18
+ #
19
+ # **Channels:** The `channels` object always includes `sms`, `whatsapp`, and
20
+ # `rcs`. Each channel has a `configured` boolean. Configured channels expose
21
+ # additional details such as `phone_number`.
10
22
  sig do
11
- params(request_options: Sentdm::RequestOptions::OrHash).returns(
12
- Sentdm::Models::MeRetrieveResponse
13
- )
23
+ params(
24
+ x_profile_id: String,
25
+ request_options: Sentdm::RequestOptions::OrHash
26
+ ).returns(Sentdm::Models::MeRetrieveResponse)
14
27
  end
15
- def retrieve(request_options: {})
28
+ def retrieve(
29
+ # Profile UUID to scope the request to a child profile. Only organization API keys
30
+ # can use this header. The profile must belong to the calling organization.
31
+ x_profile_id: nil,
32
+ request_options: {}
33
+ )
16
34
  end
17
35
 
18
36
  # @api private
@@ -9,12 +9,16 @@ module Sentdm
9
9
  sig do
10
10
  params(
11
11
  id: String,
12
+ x_profile_id: String,
12
13
  request_options: Sentdm::RequestOptions::OrHash
13
14
  ).returns(Sentdm::Models::MessageRetrieveActivitiesResponse)
14
15
  end
15
16
  def retrieve_activities(
16
17
  # Message ID from route parameter
17
18
  id,
19
+ # Profile UUID to scope the request to a child profile. Only organization API keys
20
+ # can use this header. The profile must belong to the calling organization.
21
+ x_profile_id: nil,
18
22
  request_options: {}
19
23
  )
20
24
  end
@@ -24,12 +28,16 @@ module Sentdm
24
28
  sig do
25
29
  params(
26
30
  id: String,
31
+ x_profile_id: String,
27
32
  request_options: Sentdm::RequestOptions::OrHash
28
33
  ).returns(Sentdm::Models::MessageRetrieveStatusResponse)
29
34
  end
30
35
  def retrieve_status(
31
36
  # Message ID
32
37
  id,
38
+ # Profile UUID to scope the request to a child profile. Only organization API keys
39
+ # can use this header. The profile must belong to the calling organization.
40
+ x_profile_id: nil,
33
41
  request_options: {}
34
42
  )
35
43
  end
@@ -42,10 +50,11 @@ module Sentdm
42
50
  sig do
43
51
  params(
44
52
  channel: T.nilable(T::Array[String]),
53
+ sandbox: T::Boolean,
45
54
  template: Sentdm::MessageSendParams::Template::OrHash,
46
- test_mode: T::Boolean,
47
55
  to: T::Array[String],
48
56
  idempotency_key: String,
57
+ x_profile_id: String,
49
58
  request_options: Sentdm::RequestOptions::OrHash
50
59
  ).returns(Sentdm::Models::MessageSendResponse)
51
60
  end
@@ -54,11 +63,11 @@ module Sentdm
54
63
  # produces a separate message per recipient. "sent" = auto-detect, "rcs" =
55
64
  # reserved (skipped). Defaults to ["sent"] (auto-detect) if omitted.
56
65
  channel: nil,
66
+ # Body param: Sandbox flag - when true, the operation is simulated without side
67
+ # effects Useful for testing integrations without actual execution
68
+ sandbox: nil,
57
69
  # Body param: Template reference (by id or name, with optional parameters)
58
70
  template: nil,
59
- # Body param: Test mode flag - when true, the operation is simulated without side
60
- # effects Useful for testing integrations without actual execution
61
- test_mode: nil,
62
71
  # Body param: List of recipient phone numbers in E.164 format (multi-recipient
63
72
  # fan-out)
64
73
  to: nil,
@@ -66,6 +75,10 @@ module Sentdm
66
75
  # alphanumeric characters, hyphens, or underscores. Responses are cached for 24
67
76
  # hours per key per customer.
68
77
  idempotency_key: nil,
78
+ # Header param: Profile UUID to scope the request to a child profile. Only
79
+ # organization API keys can use this header. The profile must belong to the
80
+ # calling organization.
81
+ x_profile_id: nil,
69
82
  request_options: {}
70
83
  )
71
84
  end
@@ -0,0 +1,32 @@
1
+ # typed: strong
2
+
3
+ module Sentdm
4
+ module Resources
5
+ # Manage and lookup phone numbers
6
+ class Numbers
7
+ # Retrieves detailed information about a phone number including carrier, line
8
+ # type, porting status, and VoIP detection. Uses the customer's messaging provider
9
+ # for rich data, with fallback to the internal index.
10
+ sig do
11
+ params(
12
+ phone_number: String,
13
+ x_profile_id: String,
14
+ request_options: Sentdm::RequestOptions::OrHash
15
+ ).returns(Sentdm::Models::NumberLookupResponse)
16
+ end
17
+ def lookup(
18
+ phone_number,
19
+ # Profile UUID to scope the request to a child profile. Only organization API keys
20
+ # can use this header. The profile must belong to the calling organization.
21
+ x_profile_id: nil,
22
+ request_options: {}
23
+ )
24
+ end
25
+
26
+ # @api private
27
+ sig { params(client: Sentdm::Client).returns(T.attached_class) }
28
+ def self.new(client:)
29
+ end
30
+ end
31
+ end
32
+ end