sentdm 0.26.0 → 0.28.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 (293) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +1 -27
  4. data/lib/sentdm/client.rb +71 -8
  5. data/lib/sentdm/internal/type/base_model.rb +5 -5
  6. data/lib/sentdm/models/contact_create_response.rb +249 -0
  7. data/lib/sentdm/models/contact_delete_params.rb +16 -2
  8. data/lib/sentdm/models/contact_list_response.rb +299 -16
  9. data/lib/sentdm/models/contact_retrieve_message_summary_response.rb +186 -0
  10. data/lib/sentdm/models/contact_retrieve_response.rb +249 -0
  11. data/lib/sentdm/models/contact_update_response.rb +249 -0
  12. data/lib/sentdm/models/conversation_list_messages_response.rb +436 -0
  13. data/lib/sentdm/models/conversation_list_response.rb +433 -0
  14. data/lib/sentdm/models/inbound_message_event.rb +52 -0
  15. data/lib/sentdm/models/inbound_message_event_payload.rb +81 -0
  16. data/lib/sentdm/models/me_retrieve_response.rb +242 -12
  17. data/lib/sentdm/models/message_event.rb +53 -0
  18. data/lib/sentdm/models/message_event_payload.rb +92 -0
  19. data/lib/sentdm/models/message_retrieve_activities_response.rb +165 -7
  20. data/lib/sentdm/models/message_retrieve_status_response.rb +74 -6
  21. data/lib/sentdm/models/message_send_response.rb +113 -28
  22. data/lib/sentdm/models/number_lookup_response.rb +74 -6
  23. data/lib/sentdm/models/profile_complete_response.rb +74 -6
  24. data/lib/sentdm/models/profile_create_params.rb +378 -26
  25. data/lib/sentdm/models/profile_create_response.rb +760 -0
  26. data/lib/sentdm/models/profile_delete_params.rb +16 -2
  27. data/lib/sentdm/models/profile_list_response.rb +825 -14
  28. data/lib/sentdm/models/profile_retrieve_response.rb +762 -0
  29. data/lib/sentdm/models/profile_update_params.rb +391 -24
  30. data/lib/sentdm/models/profile_update_response.rb +760 -0
  31. data/lib/sentdm/models/profiles/campaign_create_params.rb +156 -3
  32. data/lib/sentdm/models/profiles/campaign_create_response.rb +420 -0
  33. data/lib/sentdm/models/profiles/campaign_delete_params.rb +17 -2
  34. data/lib/sentdm/models/profiles/campaign_list_response.rb +421 -0
  35. data/lib/sentdm/models/profiles/campaign_update_params.rb +156 -3
  36. data/lib/sentdm/models/profiles/campaign_update_response.rb +420 -0
  37. data/lib/sentdm/models/template_create_response.rb +209 -0
  38. data/lib/sentdm/models/template_event.rb +52 -0
  39. data/lib/sentdm/models/template_event_payload.rb +88 -0
  40. data/lib/sentdm/models/template_list_params.rb +9 -2
  41. data/lib/sentdm/models/template_list_response.rb +262 -16
  42. data/lib/sentdm/models/template_retrieve_response.rb +209 -0
  43. data/lib/sentdm/models/template_update_response.rb +209 -0
  44. data/lib/sentdm/models/user_invite_response.rb +201 -0
  45. data/lib/sentdm/models/user_list_response.rb +259 -14
  46. data/lib/sentdm/models/user_remove_params.rb +16 -2
  47. data/lib/sentdm/models/user_retrieve_response.rb +201 -0
  48. data/lib/sentdm/models/user_update_role_response.rb +201 -0
  49. data/lib/sentdm/models/webhook_create_response.rb +229 -0
  50. data/lib/sentdm/models/webhook_list_event_types_response.rb +213 -13
  51. data/lib/sentdm/models/webhook_list_events_response.rb +207 -16
  52. data/lib/sentdm/models/webhook_list_response.rb +280 -15
  53. data/lib/sentdm/models/webhook_retrieve_response.rb +229 -0
  54. data/lib/sentdm/models/webhook_rotate_secret_params.rb +17 -2
  55. data/lib/sentdm/models/webhook_rotate_secret_response.rb +74 -6
  56. data/lib/sentdm/models/webhook_test_response.rb +74 -6
  57. data/lib/sentdm/models/webhook_toggle_status_response.rb +229 -0
  58. data/lib/sentdm/models/webhook_update_response.rb +229 -0
  59. data/lib/sentdm/models.rb +11 -51
  60. data/lib/sentdm/resources/contacts.rb +30 -13
  61. data/lib/sentdm/resources/conversations.rb +12 -4
  62. data/lib/sentdm/resources/me.rb +6 -1
  63. data/lib/sentdm/resources/messages.rb +17 -5
  64. data/lib/sentdm/resources/numbers.rb +6 -1
  65. data/lib/sentdm/resources/profiles/campaigns.rb +47 -9
  66. data/lib/sentdm/resources/profiles.rb +137 -61
  67. data/lib/sentdm/resources/templates.rb +14 -8
  68. data/lib/sentdm/resources/users.rb +15 -10
  69. data/lib/sentdm/resources/webhooks.rb +19 -9
  70. data/lib/sentdm/version.rb +1 -1
  71. data/lib/sentdm.rb +28 -32
  72. data/rbi/sentdm/client.rbi +71 -8
  73. data/rbi/sentdm/models/contact_create_response.rbi +407 -0
  74. data/rbi/sentdm/models/contact_delete_params.rbi +19 -2
  75. data/rbi/sentdm/models/contact_list_response.rbi +527 -21
  76. data/rbi/sentdm/models/contact_retrieve_message_summary_response.rbi +397 -0
  77. data/rbi/sentdm/models/contact_retrieve_response.rbi +409 -0
  78. data/rbi/sentdm/models/contact_update_response.rbi +407 -0
  79. data/rbi/sentdm/models/conversation_list_messages_response.rbi +843 -0
  80. data/rbi/sentdm/models/conversation_list_response.rbi +819 -0
  81. data/rbi/sentdm/models/inbound_message_event.rbi +88 -0
  82. data/rbi/sentdm/models/inbound_message_event_payload.rbi +122 -0
  83. data/rbi/sentdm/models/me_retrieve_response.rbi +367 -16
  84. data/rbi/sentdm/models/message_event.rbi +86 -0
  85. data/rbi/sentdm/models/message_event_payload.rbi +132 -0
  86. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +335 -11
  87. data/rbi/sentdm/models/message_retrieve_status_response.rbi +148 -8
  88. data/rbi/sentdm/models/message_send_response.rbi +178 -32
  89. data/rbi/sentdm/models/number_lookup_response.rbi +135 -8
  90. data/rbi/sentdm/models/profile_complete_response.rbi +137 -8
  91. data/rbi/sentdm/models/profile_create_params.rbi +592 -42
  92. data/rbi/sentdm/models/profile_create_response.rbi +1226 -0
  93. data/rbi/sentdm/models/profile_delete_params.rbi +19 -2
  94. data/rbi/sentdm/models/profile_list_response.rbi +1366 -18
  95. data/rbi/sentdm/models/profile_retrieve_response.rbi +1230 -0
  96. data/rbi/sentdm/models/profile_update_params.rbi +610 -30
  97. data/rbi/sentdm/models/profile_update_response.rbi +1226 -0
  98. data/rbi/sentdm/models/profiles/campaign_create_params.rbi +218 -4
  99. data/rbi/sentdm/models/profiles/campaign_create_response.rbi +674 -0
  100. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +14 -1
  101. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +667 -0
  102. data/rbi/sentdm/models/profiles/campaign_update_params.rbi +218 -4
  103. data/rbi/sentdm/models/profiles/campaign_update_response.rbi +674 -0
  104. data/rbi/sentdm/models/template_create_response.rbi +349 -0
  105. data/rbi/sentdm/models/template_event.rbi +84 -0
  106. data/rbi/sentdm/models/template_event_payload.rbi +131 -0
  107. data/rbi/sentdm/models/template_list_params.rbi +10 -2
  108. data/rbi/sentdm/models/template_list_response.rbi +469 -21
  109. data/rbi/sentdm/models/template_retrieve_response.rbi +355 -0
  110. data/rbi/sentdm/models/template_update_response.rbi +349 -0
  111. data/rbi/sentdm/models/user_invite_response.rbi +336 -0
  112. data/rbi/sentdm/models/user_list_response.rbi +463 -18
  113. data/rbi/sentdm/models/user_remove_params.rbi +19 -2
  114. data/rbi/sentdm/models/user_retrieve_response.rbi +336 -0
  115. data/rbi/sentdm/models/user_update_role_response.rbi +341 -0
  116. data/rbi/sentdm/models/webhook_create_response.rbi +361 -0
  117. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +433 -16
  118. data/rbi/sentdm/models/webhook_list_events_response.rbi +379 -19
  119. data/rbi/sentdm/models/webhook_list_response.rbi +480 -19
  120. data/rbi/sentdm/models/webhook_retrieve_response.rbi +363 -0
  121. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +14 -1
  122. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +148 -8
  123. data/rbi/sentdm/models/webhook_test_response.rbi +135 -8
  124. data/rbi/sentdm/models/webhook_toggle_status_response.rbi +379 -0
  125. data/rbi/sentdm/models/webhook_update_response.rbi +361 -0
  126. data/rbi/sentdm/models.rbi +11 -53
  127. data/rbi/sentdm/resources/contacts.rbi +24 -9
  128. data/rbi/sentdm/resources/conversations.rbi +10 -2
  129. data/rbi/sentdm/resources/me.rbi +6 -1
  130. data/rbi/sentdm/resources/messages.rbi +17 -5
  131. data/rbi/sentdm/resources/numbers.rbi +6 -1
  132. data/rbi/sentdm/resources/profiles/campaigns.rbi +36 -6
  133. data/rbi/sentdm/resources/profiles.rbi +177 -68
  134. data/rbi/sentdm/resources/templates.rbi +15 -5
  135. data/rbi/sentdm/resources/users.rbi +12 -6
  136. data/rbi/sentdm/resources/webhooks.rbi +15 -5
  137. data/sig/sentdm/models/contact_create_response.rbs +216 -0
  138. data/sig/sentdm/models/contact_delete_params.rbs +10 -6
  139. data/sig/sentdm/models/contact_list_response.rbs +263 -20
  140. data/sig/sentdm/models/contact_retrieve_message_summary_response.rbs +182 -0
  141. data/sig/sentdm/models/contact_retrieve_response.rbs +216 -0
  142. data/sig/sentdm/models/contact_update_response.rbs +216 -0
  143. data/sig/sentdm/models/conversation_list_messages_response.rbs +404 -0
  144. data/sig/sentdm/models/conversation_list_response.rbs +404 -0
  145. data/sig/sentdm/models/inbound_message_event.rbs +39 -0
  146. data/sig/sentdm/models/inbound_message_event_payload.rbs +69 -0
  147. data/sig/sentdm/models/me_retrieve_response.rbs +176 -18
  148. data/sig/sentdm/models/message_event.rbs +39 -0
  149. data/sig/sentdm/models/message_event_payload.rbs +72 -0
  150. data/sig/sentdm/models/message_retrieve_activities_response.rbs +147 -12
  151. data/sig/sentdm/models/message_retrieve_status_response.rbs +71 -9
  152. data/sig/sentdm/models/message_send_response.rbs +71 -9
  153. data/sig/sentdm/models/number_lookup_response.rbs +71 -9
  154. data/sig/sentdm/models/profile_complete_response.rbs +71 -9
  155. data/sig/sentdm/models/profile_create_params.rbs +271 -24
  156. data/sig/sentdm/models/profile_create_response.rbs +559 -0
  157. data/sig/sentdm/models/profile_delete_params.rbs +10 -6
  158. data/sig/sentdm/models/profile_list_response.rbs +615 -15
  159. data/sig/sentdm/models/profile_retrieve_response.rbs +559 -0
  160. data/sig/sentdm/models/profile_update_params.rbs +263 -12
  161. data/sig/sentdm/models/profile_update_response.rbs +559 -0
  162. data/sig/sentdm/models/profiles/campaign_create_params.rbs +108 -4
  163. data/sig/sentdm/models/profiles/campaign_create_response.rbs +357 -0
  164. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +15 -8
  165. data/sig/sentdm/models/profiles/campaign_list_response.rbs +357 -0
  166. data/sig/sentdm/models/profiles/campaign_update_params.rbs +108 -4
  167. data/sig/sentdm/models/profiles/campaign_update_response.rbs +357 -0
  168. data/sig/sentdm/models/template_create_response.rbs +182 -0
  169. data/sig/sentdm/models/template_event.rbs +39 -0
  170. data/sig/sentdm/models/template_event_payload.rbs +76 -0
  171. data/sig/sentdm/models/template_list_response.rbs +230 -19
  172. data/sig/sentdm/models/template_retrieve_response.rbs +182 -0
  173. data/sig/sentdm/models/template_update_response.rbs +182 -0
  174. data/sig/sentdm/models/user_invite_response.rbs +177 -0
  175. data/sig/sentdm/models/user_list_response.rbs +233 -15
  176. data/sig/sentdm/models/user_remove_params.rbs +10 -6
  177. data/sig/sentdm/models/user_retrieve_response.rbs +177 -0
  178. data/sig/sentdm/models/user_update_role_response.rbs +177 -0
  179. data/sig/sentdm/models/webhook_create_response.rbs +208 -0
  180. data/sig/sentdm/models/webhook_list_event_types_response.rbs +203 -15
  181. data/sig/sentdm/models/webhook_list_events_response.rbs +160 -19
  182. data/sig/sentdm/models/webhook_list_response.rbs +255 -20
  183. data/sig/sentdm/models/webhook_retrieve_response.rbs +208 -0
  184. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +17 -8
  185. data/sig/sentdm/models/webhook_rotate_secret_response.rbs +71 -9
  186. data/sig/sentdm/models/webhook_test_response.rbs +71 -9
  187. data/sig/sentdm/models/webhook_toggle_status_response.rbs +208 -0
  188. data/sig/sentdm/models/webhook_update_response.rbs +208 -0
  189. data/sig/sentdm/models.rbs +11 -51
  190. data/sig/sentdm/resources/contacts.rbs +4 -4
  191. data/sig/sentdm/resources/conversations.rbs +2 -2
  192. data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
  193. data/sig/sentdm/resources/profiles.rbs +11 -11
  194. data/sig/sentdm/resources/templates.rbs +3 -3
  195. data/sig/sentdm/resources/users.rbs +3 -3
  196. data/sig/sentdm/resources/webhooks.rbs +4 -4
  197. metadata +86 -98
  198. data/lib/sentdm/models/api_meta.rb +0 -34
  199. data/lib/sentdm/models/api_response_of_contact.rb +0 -46
  200. data/lib/sentdm/models/api_response_of_contact_message_summary.rb +0 -43
  201. data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +0 -43
  202. data/lib/sentdm/models/api_response_of_profile_detail.rb +0 -43
  203. data/lib/sentdm/models/api_response_of_user.rb +0 -43
  204. data/lib/sentdm/models/api_response_template.rb +0 -43
  205. data/lib/sentdm/models/api_response_webhook.rb +0 -43
  206. data/lib/sentdm/models/billing_contact_info.rb +0 -47
  207. data/lib/sentdm/models/brand_business_info.rb +0 -114
  208. data/lib/sentdm/models/brand_compliance_info.rb +0 -67
  209. data/lib/sentdm/models/brand_contact_info.rb +0 -58
  210. data/lib/sentdm/models/brands_brand_data.rb +0 -34
  211. data/lib/sentdm/models/contact_message_summary.rb +0 -76
  212. data/lib/sentdm/models/contact_response.rb +0 -126
  213. data/lib/sentdm/models/conversation_messages_list.rb +0 -245
  214. data/lib/sentdm/models/error_detail.rb +0 -42
  215. data/lib/sentdm/models/mutation_request.rb +0 -20
  216. data/lib/sentdm/models/pagination_meta.rb +0 -80
  217. data/lib/sentdm/models/payment_details.rb +0 -44
  218. data/lib/sentdm/models/profile_detail.rb +0 -597
  219. data/lib/sentdm/models/profile_settings.rb +0 -66
  220. data/lib/sentdm/models/profiles/api_response_of_brand_campaign.rb +0 -45
  221. data/lib/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rb +0 -45
  222. data/lib/sentdm/models/profiles/brand_campaign.rb +0 -247
  223. data/lib/sentdm/models/profiles/campaign_data.rb +0 -130
  224. data/lib/sentdm/models/profiles/campaign_use_case.rb +0 -71
  225. data/lib/sentdm/models/profiles/campaign_use_case_data.rb +0 -29
  226. data/lib/sentdm/models/template.rb +0 -90
  227. data/lib/sentdm/models/user_response.rb +0 -82
  228. data/lib/sentdm/models/webhook_event_type.rb +0 -45
  229. data/lib/sentdm/models/webhook_response.rb +0 -95
  230. data/rbi/sentdm/models/api_meta.rbi +0 -55
  231. data/rbi/sentdm/models/api_response_of_contact.rbi +0 -74
  232. data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +0 -79
  233. data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +0 -79
  234. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +0 -74
  235. data/rbi/sentdm/models/api_response_of_user.rbi +0 -74
  236. data/rbi/sentdm/models/api_response_template.rbi +0 -74
  237. data/rbi/sentdm/models/api_response_webhook.rbi +0 -74
  238. data/rbi/sentdm/models/billing_contact_info.rbi +0 -65
  239. data/rbi/sentdm/models/brand_business_info.rbi +0 -162
  240. data/rbi/sentdm/models/brand_compliance_info.rbi +0 -84
  241. data/rbi/sentdm/models/brand_contact_info.rbi +0 -78
  242. data/rbi/sentdm/models/brands_brand_data.rbi +0 -65
  243. data/rbi/sentdm/models/contact_message_summary.rbi +0 -144
  244. data/rbi/sentdm/models/contact_response.rbi +0 -183
  245. data/rbi/sentdm/models/conversation_messages_list.rbi +0 -419
  246. data/rbi/sentdm/models/error_detail.rbi +0 -66
  247. data/rbi/sentdm/models/mutation_request.rbi +0 -32
  248. data/rbi/sentdm/models/pagination_meta.rbi +0 -135
  249. data/rbi/sentdm/models/payment_details.rbi +0 -59
  250. data/rbi/sentdm/models/profile_detail.rbi +0 -866
  251. data/rbi/sentdm/models/profile_settings.rbi +0 -86
  252. data/rbi/sentdm/models/profiles/api_response_of_brand_campaign.rbi +0 -81
  253. data/rbi/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbi +0 -76
  254. data/rbi/sentdm/models/profiles/brand_campaign.rbi +0 -299
  255. data/rbi/sentdm/models/profiles/campaign_data.rbi +0 -146
  256. data/rbi/sentdm/models/profiles/campaign_use_case.rbi +0 -110
  257. data/rbi/sentdm/models/profiles/campaign_use_case_data.rbi +0 -51
  258. data/rbi/sentdm/models/template.rbi +0 -129
  259. data/rbi/sentdm/models/user_response.rbi +0 -118
  260. data/rbi/sentdm/models/webhook_event_type.rbi +0 -74
  261. data/rbi/sentdm/models/webhook_response.rbi +0 -140
  262. data/sig/sentdm/models/api_meta.rbs +0 -27
  263. data/sig/sentdm/models/api_response_of_contact.rbs +0 -39
  264. data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +0 -39
  265. data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +0 -39
  266. data/sig/sentdm/models/api_response_of_profile_detail.rbs +0 -39
  267. data/sig/sentdm/models/api_response_of_user.rbs +0 -39
  268. data/sig/sentdm/models/api_response_template.rbs +0 -39
  269. data/sig/sentdm/models/api_response_webhook.rbs +0 -39
  270. data/sig/sentdm/models/billing_contact_info.rbs +0 -30
  271. data/sig/sentdm/models/brand_business_info.rbs +0 -89
  272. data/sig/sentdm/models/brand_compliance_info.rbs +0 -50
  273. data/sig/sentdm/models/brand_contact_info.rbs +0 -45
  274. data/sig/sentdm/models/brands_brand_data.rbs +0 -30
  275. data/sig/sentdm/models/contact_message_summary.rbs +0 -84
  276. data/sig/sentdm/models/contact_response.rbs +0 -111
  277. data/sig/sentdm/models/conversation_messages_list.rbs +0 -240
  278. data/sig/sentdm/models/error_detail.rbs +0 -39
  279. data/sig/sentdm/models/mutation_request.rbs +0 -15
  280. data/sig/sentdm/models/pagination_meta.rbs +0 -67
  281. data/sig/sentdm/models/payment_details.rbs +0 -30
  282. data/sig/sentdm/models/profile_detail.rbs +0 -469
  283. data/sig/sentdm/models/profile_settings.rbs +0 -50
  284. data/sig/sentdm/models/profiles/api_response_of_brand_campaign.rbs +0 -41
  285. data/sig/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbs +0 -41
  286. data/sig/sentdm/models/profiles/brand_campaign.rbs +0 -194
  287. data/sig/sentdm/models/profiles/campaign_data.rbs +0 -87
  288. data/sig/sentdm/models/profiles/campaign_use_case.rbs +0 -66
  289. data/sig/sentdm/models/profiles/campaign_use_case_data.rbs +0 -27
  290. data/sig/sentdm/models/template.rbs +0 -79
  291. data/sig/sentdm/models/user_response.rbs +0 -72
  292. data/sig/sentdm/models/webhook_event_type.rbs +0 -51
  293. data/sig/sentdm/models/webhook_response.rbs +0 -103
@@ -1,597 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- class ProfileDetail < Sentdm::Internal::Type::BaseModel
6
- # @!attribute id
7
- # Profile unique identifier
8
- #
9
- # @return [String, nil]
10
- optional :id, String
11
-
12
- # @!attribute allow_contact_sharing
13
- # Whether contacts are shared across profiles in the organization
14
- #
15
- # @return [Boolean, nil]
16
- optional :allow_contact_sharing, Sentdm::Internal::Type::Boolean
17
-
18
- # @!attribute allow_number_change_during_onboarding
19
- # Whether number changes are allowed during onboarding
20
- #
21
- # @return [Boolean, nil]
22
- optional :allow_number_change_during_onboarding, Sentdm::Internal::Type::Boolean, nil?: true
23
-
24
- # @!attribute allow_template_sharing
25
- # Whether templates are shared across profiles in the organization
26
- #
27
- # @return [Boolean, nil]
28
- optional :allow_template_sharing, Sentdm::Internal::Type::Boolean
29
-
30
- # @!attribute billing_contact
31
- # Billing contact info returned in profile responses
32
- #
33
- # @return [Sentdm::Models::ProfileDetail::BillingContact, nil]
34
- optional :billing_contact, -> { Sentdm::ProfileDetail::BillingContact }, nil?: true
35
-
36
- # @!attribute billing_model
37
- # Billing model: profile, organization, or profile_and_organization
38
- #
39
- # @return [String, nil]
40
- optional :billing_model, String
41
-
42
- # @!attribute brand
43
- # Brand response with nested contact, business, and compliance sections — mirrors
44
- # the request structure.
45
- #
46
- # @return [Sentdm::Models::ProfileDetail::Brand, nil]
47
- optional :brand, -> { Sentdm::ProfileDetail::Brand }, nil?: true
48
-
49
- # @!attribute created_at
50
- # When the profile was created
51
- #
52
- # @return [Time, nil]
53
- optional :created_at, Time
54
-
55
- # @!attribute description
56
- # Profile description
57
- #
58
- # @return [String, nil]
59
- optional :description, String, nil?: true
60
-
61
- # @!attribute email
62
- # Profile email (inherited from organization)
63
- #
64
- # @return [String, nil]
65
- optional :email, String, nil?: true
66
-
67
- # @!attribute icon
68
- # Profile icon URL
69
- #
70
- # @return [String, nil]
71
- optional :icon, String, nil?: true
72
-
73
- # @!attribute inherit_contacts
74
- # Whether this profile inherits contacts from the organization
75
- #
76
- # @return [Boolean, nil]
77
- optional :inherit_contacts, Sentdm::Internal::Type::Boolean
78
-
79
- # @!attribute inherit_tcr_brand
80
- # Whether this profile inherits TCR brand from the organization
81
- #
82
- # @return [Boolean, nil]
83
- optional :inherit_tcr_brand, Sentdm::Internal::Type::Boolean
84
-
85
- # @!attribute inherit_tcr_campaign
86
- # Whether this profile inherits TCR campaign from the organization
87
- #
88
- # @return [Boolean, nil]
89
- optional :inherit_tcr_campaign, Sentdm::Internal::Type::Boolean
90
-
91
- # @!attribute inherit_templates
92
- # Whether this profile inherits templates from the organization
93
- #
94
- # @return [Boolean, nil]
95
- optional :inherit_templates, Sentdm::Internal::Type::Boolean
96
-
97
- # @!attribute name
98
- # Profile name
99
- #
100
- # @return [String, nil]
101
- optional :name, String
102
-
103
- # @!attribute organization_id
104
- # Parent organization ID
105
- #
106
- # @return [String, nil]
107
- optional :organization_id, String, nil?: true
108
-
109
- # @!attribute sending_phone_number
110
- # Direct SMS phone number
111
- #
112
- # @return [String, nil]
113
- optional :sending_phone_number, String, nil?: true
114
-
115
- # @!attribute sending_phone_number_profile_id
116
- # Reference to another profile whose SMS configuration this profile uses
117
- #
118
- # @return [String, nil]
119
- optional :sending_phone_number_profile_id, String, nil?: true
120
-
121
- # @!attribute sending_whatsapp_number_profile_id
122
- # Reference to another profile for WhatsApp configuration
123
- #
124
- # @return [String, nil]
125
- optional :sending_whatsapp_number_profile_id, String, nil?: true
126
-
127
- # @!attribute short_name
128
- # Profile short name/abbreviation. 3–11 characters: letters, numbers, and spaces
129
- # only, with at least one letter.
130
- #
131
- # @return [String, nil]
132
- optional :short_name, String, nil?: true
133
-
134
- # @!attribute status
135
- # Profile setup status: incomplete, pending_review, approved, rejected
136
- #
137
- # @return [String, nil]
138
- optional :status, String
139
-
140
- # @!attribute updated_at
141
- # When the profile was last updated
142
- #
143
- # @return [Time, nil]
144
- optional :updated_at, Time, nil?: true
145
-
146
- # @!attribute waba_id
147
- # WhatsApp Business Account ID associated with this profile. Present whether the
148
- # WABA is inherited from the organization or configured directly.
149
- #
150
- # @return [String, nil]
151
- optional :waba_id, String, nil?: true
152
-
153
- # @!attribute whatsapp_phone_number
154
- # Direct WhatsApp phone number
155
- #
156
- # @return [String, nil]
157
- optional :whatsapp_phone_number, String, nil?: true
158
-
159
- # @!method initialize(id: nil, allow_contact_sharing: nil, allow_number_change_during_onboarding: nil, allow_template_sharing: nil, billing_contact: nil, billing_model: nil, brand: nil, created_at: nil, description: nil, email: nil, icon: nil, inherit_contacts: nil, inherit_tcr_brand: nil, inherit_tcr_campaign: nil, inherit_templates: nil, name: nil, organization_id: nil, sending_phone_number: nil, sending_phone_number_profile_id: nil, sending_whatsapp_number_profile_id: nil, short_name: nil, status: nil, updated_at: nil, waba_id: nil, whatsapp_phone_number: nil)
160
- # Some parameter documentations has been truncated, see
161
- # {Sentdm::Models::ProfileDetail} for more details.
162
- #
163
- # Detailed profile response for v3 API
164
- #
165
- # @param id [String] Profile unique identifier
166
- #
167
- # @param allow_contact_sharing [Boolean] Whether contacts are shared across profiles in the organization
168
- #
169
- # @param allow_number_change_during_onboarding [Boolean, nil] Whether number changes are allowed during onboarding
170
- #
171
- # @param allow_template_sharing [Boolean] Whether templates are shared across profiles in the organization
172
- #
173
- # @param billing_contact [Sentdm::Models::ProfileDetail::BillingContact, nil] Billing contact info returned in profile responses
174
- #
175
- # @param billing_model [String] Billing model: profile, organization, or profile_and_organization
176
- #
177
- # @param brand [Sentdm::Models::ProfileDetail::Brand, nil] Brand response with nested contact, business, and compliance sections — mirrors
178
- #
179
- # @param created_at [Time] When the profile was created
180
- #
181
- # @param description [String, nil] Profile description
182
- #
183
- # @param email [String, nil] Profile email (inherited from organization)
184
- #
185
- # @param icon [String, nil] Profile icon URL
186
- #
187
- # @param inherit_contacts [Boolean] Whether this profile inherits contacts from the organization
188
- #
189
- # @param inherit_tcr_brand [Boolean] Whether this profile inherits TCR brand from the organization
190
- #
191
- # @param inherit_tcr_campaign [Boolean] Whether this profile inherits TCR campaign from the organization
192
- #
193
- # @param inherit_templates [Boolean] Whether this profile inherits templates from the organization
194
- #
195
- # @param name [String] Profile name
196
- #
197
- # @param organization_id [String, nil] Parent organization ID
198
- #
199
- # @param sending_phone_number [String, nil] Direct SMS phone number
200
- #
201
- # @param sending_phone_number_profile_id [String, nil] Reference to another profile whose SMS configuration this profile uses
202
- #
203
- # @param sending_whatsapp_number_profile_id [String, nil] Reference to another profile for WhatsApp configuration
204
- #
205
- # @param short_name [String, nil] Profile short name/abbreviation. 3–11 characters: letters, numbers, and spaces o
206
- #
207
- # @param status [String] Profile setup status: incomplete, pending_review, approved, rejected
208
- #
209
- # @param updated_at [Time, nil] When the profile was last updated
210
- #
211
- # @param waba_id [String, nil] WhatsApp Business Account ID associated with this profile.
212
- #
213
- # @param whatsapp_phone_number [String, nil] Direct WhatsApp phone number
214
-
215
- # @see Sentdm::Models::ProfileDetail#billing_contact
216
- class BillingContact < Sentdm::Internal::Type::BaseModel
217
- # @!attribute address
218
- #
219
- # @return [String, nil]
220
- optional :address, String, nil?: true
221
-
222
- # @!attribute email
223
- #
224
- # @return [String, nil]
225
- optional :email, String, nil?: true
226
-
227
- # @!attribute name
228
- #
229
- # @return [String, nil]
230
- optional :name, String, nil?: true
231
-
232
- # @!attribute phone
233
- #
234
- # @return [String, nil]
235
- optional :phone, String, nil?: true
236
-
237
- # @!method initialize(address: nil, email: nil, name: nil, phone: nil)
238
- # Billing contact info returned in profile responses
239
- #
240
- # @param address [String, nil]
241
- # @param email [String, nil]
242
- # @param name [String, nil]
243
- # @param phone [String, nil]
244
- end
245
-
246
- # @see Sentdm::Models::ProfileDetail#brand
247
- class Brand < Sentdm::Internal::Type::BaseModel
248
- # @!attribute id
249
- # Unique identifier for the brand
250
- #
251
- # @return [String, nil]
252
- optional :id, String
253
-
254
- # @!attribute business
255
- # Business details and address information
256
- #
257
- # @return [Sentdm::Models::ProfileDetail::Brand::Business, nil]
258
- optional :business, -> { Sentdm::ProfileDetail::Brand::Business }, nil?: true
259
-
260
- # @!attribute compliance
261
- # Compliance and TCR-related information
262
- #
263
- # @return [Sentdm::Models::ProfileDetail::Brand::Compliance, nil]
264
- optional :compliance, -> { Sentdm::ProfileDetail::Brand::Compliance }, nil?: true
265
-
266
- # @!attribute contact
267
- # Contact information for the brand
268
- #
269
- # @return [Sentdm::Models::ProfileDetail::Brand::Contact, nil]
270
- optional :contact, -> { Sentdm::ProfileDetail::Brand::Contact }, nil?: true
271
-
272
- # @!attribute created_at
273
- # When the brand was created
274
- #
275
- # @return [Time, nil]
276
- optional :created_at, Time
277
-
278
- # @!attribute csp_id
279
- # CSP (Campaign Service Provider) ID
280
- #
281
- # @return [String, nil]
282
- optional :csp_id, String, nil?: true
283
-
284
- # @!attribute identity_status
285
- #
286
- # @return [Symbol, Sentdm::Models::ProfileDetail::Brand::IdentityStatus, nil]
287
- optional :identity_status, enum: -> { Sentdm::ProfileDetail::Brand::IdentityStatus }, nil?: true
288
-
289
- # @!attribute is_inherited
290
- # Whether this brand is inherited from the parent organization
291
- #
292
- # @return [Boolean, nil]
293
- optional :is_inherited, Sentdm::Internal::Type::Boolean
294
-
295
- # @!attribute status
296
- #
297
- # @return [Symbol, Sentdm::Models::ProfileDetail::Brand::Status, nil]
298
- optional :status, enum: -> { Sentdm::ProfileDetail::Brand::Status }, nil?: true
299
-
300
- # @!attribute submitted_at
301
- # When the brand was submitted to TCR
302
- #
303
- # @return [Time, nil]
304
- optional :submitted_at, Time, nil?: true
305
-
306
- # @!attribute submitted_to_tcr
307
- # Whether this brand has been submitted to TCR
308
- #
309
- # @return [Boolean, nil]
310
- optional :submitted_to_tcr, Sentdm::Internal::Type::Boolean
311
-
312
- # @!attribute tcr_brand_id
313
- # TCR brand ID (populated after TCR submission)
314
- #
315
- # @return [String, nil]
316
- optional :tcr_brand_id, String, nil?: true
317
-
318
- # @!attribute universal_ein
319
- # Universal EIN from TCR
320
- #
321
- # @return [String, nil]
322
- optional :universal_ein, String, nil?: true
323
-
324
- # @!attribute updated_at
325
- # When the brand was last updated
326
- #
327
- # @return [Time, nil]
328
- optional :updated_at, Time, nil?: true
329
-
330
- # @!method initialize(id: nil, business: nil, compliance: nil, contact: nil, created_at: nil, csp_id: nil, identity_status: nil, is_inherited: nil, status: nil, submitted_at: nil, submitted_to_tcr: nil, tcr_brand_id: nil, universal_ein: nil, updated_at: nil)
331
- # Brand response with nested contact, business, and compliance sections — mirrors
332
- # the request structure.
333
- #
334
- # @param id [String] Unique identifier for the brand
335
- #
336
- # @param business [Sentdm::Models::ProfileDetail::Brand::Business, nil] Business details and address information
337
- #
338
- # @param compliance [Sentdm::Models::ProfileDetail::Brand::Compliance, nil] Compliance and TCR-related information
339
- #
340
- # @param contact [Sentdm::Models::ProfileDetail::Brand::Contact, nil] Contact information for the brand
341
- #
342
- # @param created_at [Time] When the brand was created
343
- #
344
- # @param csp_id [String, nil] CSP (Campaign Service Provider) ID
345
- #
346
- # @param identity_status [Symbol, Sentdm::Models::ProfileDetail::Brand::IdentityStatus, nil]
347
- #
348
- # @param is_inherited [Boolean] Whether this brand is inherited from the parent organization
349
- #
350
- # @param status [Symbol, Sentdm::Models::ProfileDetail::Brand::Status, nil]
351
- #
352
- # @param submitted_at [Time, nil] When the brand was submitted to TCR
353
- #
354
- # @param submitted_to_tcr [Boolean] Whether this brand has been submitted to TCR
355
- #
356
- # @param tcr_brand_id [String, nil] TCR brand ID (populated after TCR submission)
357
- #
358
- # @param universal_ein [String, nil] Universal EIN from TCR
359
- #
360
- # @param updated_at [Time, nil] When the brand was last updated
361
-
362
- # @see Sentdm::Models::ProfileDetail::Brand#business
363
- class Business < Sentdm::Internal::Type::BaseModel
364
- # @!attribute city
365
- # City
366
- #
367
- # @return [String, nil]
368
- optional :city, String, nil?: true
369
-
370
- # @!attribute country
371
- # Country code (e.g., US, CA)
372
- #
373
- # @return [String, nil]
374
- optional :country, String, nil?: true
375
-
376
- # @!attribute country_of_registration
377
- # Country where the business is registered
378
- #
379
- # @return [String, nil]
380
- optional :country_of_registration, String, nil?: true
381
-
382
- # @!attribute entity_type
383
- # Business entity type
384
- #
385
- # @return [String, nil]
386
- optional :entity_type, String, nil?: true
387
-
388
- # @!attribute legal_name
389
- # Legal business name
390
- #
391
- # @return [String, nil]
392
- optional :legal_name, String, nil?: true
393
-
394
- # @!attribute postal_code
395
- # Postal/ZIP code
396
- #
397
- # @return [String, nil]
398
- optional :postal_code, String, nil?: true
399
-
400
- # @!attribute state
401
- # State/province code
402
- #
403
- # @return [String, nil]
404
- optional :state, String, nil?: true
405
-
406
- # @!attribute street
407
- # Street address
408
- #
409
- # @return [String, nil]
410
- optional :street, String, nil?: true
411
-
412
- # @!attribute tax_id
413
- # Tax ID/EIN number
414
- #
415
- # @return [String, nil]
416
- optional :tax_id, String, nil?: true
417
-
418
- # @!attribute tax_id_type
419
- # Type of tax ID (e.g., us_ein, ca_bn)
420
- #
421
- # @return [String, nil]
422
- optional :tax_id_type, String, nil?: true
423
-
424
- # @!attribute url
425
- # Business website URL
426
- #
427
- # @return [String, nil]
428
- optional :url, String, nil?: true
429
-
430
- # @!method initialize(city: nil, country: nil, country_of_registration: nil, entity_type: nil, legal_name: nil, postal_code: nil, state: nil, street: nil, tax_id: nil, tax_id_type: nil, url: nil)
431
- # Business details and address information
432
- #
433
- # @param city [String, nil] City
434
- #
435
- # @param country [String, nil] Country code (e.g., US, CA)
436
- #
437
- # @param country_of_registration [String, nil] Country where the business is registered
438
- #
439
- # @param entity_type [String, nil] Business entity type
440
- #
441
- # @param legal_name [String, nil] Legal business name
442
- #
443
- # @param postal_code [String, nil] Postal/ZIP code
444
- #
445
- # @param state [String, nil] State/province code
446
- #
447
- # @param street [String, nil] Street address
448
- #
449
- # @param tax_id [String, nil] Tax ID/EIN number
450
- #
451
- # @param tax_id_type [String, nil] Type of tax ID (e.g., us_ein, ca_bn)
452
- #
453
- # @param url [String, nil] Business website URL
454
- end
455
-
456
- # @see Sentdm::Models::ProfileDetail::Brand#compliance
457
- class Compliance < Sentdm::Internal::Type::BaseModel
458
- # @!attribute brand_relationship
459
- #
460
- # @return [Symbol, Sentdm::Models::TcrBrandRelationship, nil]
461
- optional :brand_relationship, enum: -> { Sentdm::TcrBrandRelationship }, nil?: true
462
-
463
- # @!attribute destination_countries
464
- # List of destination countries for messaging
465
- #
466
- # @return [Array<Sentdm::Models::DestinationCountry>, nil]
467
- optional :destination_countries, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::DestinationCountry] }
468
-
469
- # @!attribute is_tcr_application
470
- # Whether this is a TCR (Campaign Registry) application
471
- #
472
- # @return [Boolean, nil]
473
- optional :is_tcr_application, Sentdm::Internal::Type::Boolean
474
-
475
- # @!attribute notes
476
- # Additional notes about the business or use case
477
- #
478
- # @return [String, nil]
479
- optional :notes, String, nil?: true
480
-
481
- # @!attribute phone_number_prefix
482
- # Phone number prefix for messaging (e.g., "+1")
483
- #
484
- # @return [String, nil]
485
- optional :phone_number_prefix, String, nil?: true
486
-
487
- # @!attribute primary_use_case
488
- # Primary messaging use case description
489
- #
490
- # @return [String, nil]
491
- optional :primary_use_case, String, nil?: true
492
-
493
- # @!attribute vertical
494
- #
495
- # @return [Symbol, Sentdm::Models::TcrVertical, nil]
496
- optional :vertical, enum: -> { Sentdm::TcrVertical }, nil?: true
497
-
498
- # @!method initialize(brand_relationship: nil, destination_countries: nil, is_tcr_application: nil, notes: nil, phone_number_prefix: nil, primary_use_case: nil, vertical: nil)
499
- # Compliance and TCR-related information
500
- #
501
- # @param brand_relationship [Symbol, Sentdm::Models::TcrBrandRelationship, nil]
502
- #
503
- # @param destination_countries [Array<Sentdm::Models::DestinationCountry>] List of destination countries for messaging
504
- #
505
- # @param is_tcr_application [Boolean] Whether this is a TCR (Campaign Registry) application
506
- #
507
- # @param notes [String, nil] Additional notes about the business or use case
508
- #
509
- # @param phone_number_prefix [String, nil] Phone number prefix for messaging (e.g., "+1")
510
- #
511
- # @param primary_use_case [String, nil] Primary messaging use case description
512
- #
513
- # @param vertical [Symbol, Sentdm::Models::TcrVertical, nil]
514
- end
515
-
516
- # @see Sentdm::Models::ProfileDetail::Brand#contact
517
- class Contact < Sentdm::Internal::Type::BaseModel
518
- # @!attribute business_name
519
- # Business/brand name
520
- #
521
- # @return [String, nil]
522
- optional :business_name, String, nil?: true
523
-
524
- # @!attribute email
525
- # Contact email address
526
- #
527
- # @return [String, nil]
528
- optional :email, String, nil?: true
529
-
530
- # @!attribute name
531
- # Primary contact name
532
- #
533
- # @return [String, nil]
534
- optional :name, String
535
-
536
- # @!attribute phone
537
- # Contact phone number in E.164 format
538
- #
539
- # @return [String, nil]
540
- optional :phone, String, nil?: true
541
-
542
- # @!attribute phone_country_code
543
- # Contact phone country code (e.g., "1" for US)
544
- #
545
- # @return [String, nil]
546
- optional :phone_country_code, String, nil?: true
547
-
548
- # @!attribute role
549
- # Contact's role in the business
550
- #
551
- # @return [String, nil]
552
- optional :role, String, nil?: true
553
-
554
- # @!method initialize(business_name: nil, email: nil, name: nil, phone: nil, phone_country_code: nil, role: nil)
555
- # Contact information for the brand
556
- #
557
- # @param business_name [String, nil] Business/brand name
558
- #
559
- # @param email [String, nil] Contact email address
560
- #
561
- # @param name [String] Primary contact name
562
- #
563
- # @param phone [String, nil] Contact phone number in E.164 format
564
- #
565
- # @param phone_country_code [String, nil] Contact phone country code (e.g., "1" for US)
566
- #
567
- # @param role [String, nil] Contact's role in the business
568
- end
569
-
570
- # @see Sentdm::Models::ProfileDetail::Brand#identity_status
571
- module IdentityStatus
572
- extend Sentdm::Internal::Type::Enum
573
-
574
- SELF_DECLARED = :SELF_DECLARED
575
- UNVERIFIED = :UNVERIFIED
576
- VERIFIED = :VERIFIED
577
- VETTED_VERIFIED = :VETTED_VERIFIED
578
-
579
- # @!method self.values
580
- # @return [Array<Symbol>]
581
- end
582
-
583
- # @see Sentdm::Models::ProfileDetail::Brand#status
584
- module Status
585
- extend Sentdm::Internal::Type::Enum
586
-
587
- ACTIVE = :ACTIVE
588
- INACTIVE = :INACTIVE
589
- SUSPENDED = :SUSPENDED
590
-
591
- # @!method self.values
592
- # @return [Array<Symbol>]
593
- end
594
- end
595
- end
596
- end
597
- end
@@ -1,66 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- class ProfileSettings < Sentdm::Internal::Type::BaseModel
6
- # @!attribute allow_contact_sharing
7
- # Whether contacts are shared across profiles in the organization
8
- #
9
- # @return [Boolean, nil]
10
- optional :allow_contact_sharing, Sentdm::Internal::Type::Boolean, nil?: true
11
-
12
- # @!attribute allow_template_sharing
13
- # Whether templates are shared across profiles in the organization
14
- #
15
- # @return [Boolean, nil]
16
- optional :allow_template_sharing, Sentdm::Internal::Type::Boolean, nil?: true
17
-
18
- # @!attribute billing_model
19
- # Billing model: profile, organization, or profile_and_organization
20
- #
21
- # @return [String, nil]
22
- optional :billing_model, String, nil?: true
23
-
24
- # @!attribute inherit_contacts
25
- # Whether this profile inherits contacts from the organization
26
- #
27
- # @return [Boolean, nil]
28
- optional :inherit_contacts, Sentdm::Internal::Type::Boolean, nil?: true
29
-
30
- # @!attribute inherit_tcr_brand
31
- # Whether this profile inherits TCR brand from the organization
32
- #
33
- # @return [Boolean, nil]
34
- optional :inherit_tcr_brand, Sentdm::Internal::Type::Boolean, nil?: true
35
-
36
- # @!attribute inherit_tcr_campaign
37
- # Whether this profile inherits TCR campaign from the organization
38
- #
39
- # @return [Boolean, nil]
40
- optional :inherit_tcr_campaign, Sentdm::Internal::Type::Boolean, nil?: true
41
-
42
- # @!attribute inherit_templates
43
- # Whether this profile inherits templates from the organization
44
- #
45
- # @return [Boolean, nil]
46
- optional :inherit_templates, Sentdm::Internal::Type::Boolean, nil?: true
47
-
48
- # @!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)
49
- # Profile configuration settings
50
- #
51
- # @param allow_contact_sharing [Boolean, nil] Whether contacts are shared across profiles in the organization
52
- #
53
- # @param allow_template_sharing [Boolean, nil] Whether templates are shared across profiles in the organization
54
- #
55
- # @param billing_model [String, nil] Billing model: profile, organization, or profile_and_organization
56
- #
57
- # @param inherit_contacts [Boolean, nil] Whether this profile inherits contacts from the organization
58
- #
59
- # @param inherit_tcr_brand [Boolean, nil] Whether this profile inherits TCR brand from the organization
60
- #
61
- # @param inherit_tcr_campaign [Boolean, nil] Whether this profile inherits TCR campaign from the organization
62
- #
63
- # @param inherit_templates [Boolean, nil] Whether this profile inherits templates from the organization
64
- end
65
- end
66
- end