sentdm 0.28.0 → 0.30.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 (276) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +27 -1
  4. data/lib/sentdm/internal/type/base_model.rb +5 -5
  5. data/lib/sentdm/models/api_meta.rb +34 -0
  6. data/lib/sentdm/models/api_response_of_contact.rb +46 -0
  7. data/lib/sentdm/models/api_response_of_contact_message_summary.rb +43 -0
  8. data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +43 -0
  9. data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
  10. data/lib/sentdm/models/api_response_of_user.rb +43 -0
  11. data/lib/sentdm/models/api_response_template.rb +43 -0
  12. data/lib/sentdm/models/api_response_webhook.rb +43 -0
  13. data/lib/sentdm/models/billing_contact_info.rb +47 -0
  14. data/lib/sentdm/models/brand_business_info.rb +114 -0
  15. data/lib/sentdm/models/brand_compliance_info.rb +59 -0
  16. data/lib/sentdm/models/brand_contact_info.rb +58 -0
  17. data/lib/sentdm/models/brands_brand_data.rb +34 -0
  18. data/lib/sentdm/models/contact_delete_params.rb +2 -16
  19. data/lib/sentdm/models/contact_list_response.rb +12 -295
  20. data/lib/sentdm/models/contact_message_summary.rb +76 -0
  21. data/lib/sentdm/models/contact_response.rb +139 -0
  22. data/lib/sentdm/models/conversation_messages_list.rb +245 -0
  23. data/lib/sentdm/models/error_detail.rb +42 -0
  24. data/lib/sentdm/models/inbound_message_event_payload.rb +17 -17
  25. data/lib/sentdm/models/me_retrieve_response.rb +43 -243
  26. data/lib/sentdm/models/message_event_payload.rb +11 -11
  27. data/lib/sentdm/models/message_retrieve_activities_response.rb +9 -159
  28. data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
  29. data/lib/sentdm/models/message_send_response.rb +6 -74
  30. data/lib/sentdm/models/mutation_request.rb +20 -0
  31. data/lib/sentdm/models/number_lookup_response.rb +6 -74
  32. data/lib/sentdm/models/pagination_meta.rb +84 -0
  33. data/lib/sentdm/models/payment_details.rb +40 -0
  34. data/lib/sentdm/models/profile_complete_response.rb +6 -74
  35. data/lib/sentdm/models/profile_create_params.rb +9 -345
  36. data/lib/sentdm/models/profile_delete_params.rb +2 -16
  37. data/lib/sentdm/models/profile_detail.rb +650 -0
  38. data/lib/sentdm/models/profile_list_response.rb +12 -815
  39. data/lib/sentdm/models/profile_settings.rb +85 -0
  40. data/lib/sentdm/models/profile_update_params.rb +9 -345
  41. data/lib/sentdm/models/profiles/api_response_of_brand_campaign.rb +45 -0
  42. data/lib/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rb +45 -0
  43. data/lib/sentdm/models/profiles/brand_campaign.rb +247 -0
  44. data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -156
  45. data/lib/sentdm/models/profiles/campaign_data.rb +136 -0
  46. data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
  47. data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -156
  48. data/lib/sentdm/models/profiles/campaign_use_case.rb +71 -0
  49. data/lib/sentdm/models/profiles/campaign_use_case_data.rb +29 -0
  50. data/lib/sentdm/models/template.rb +102 -0
  51. data/lib/sentdm/models/template_event_payload.rb +18 -18
  52. data/lib/sentdm/models/template_list_response.rb +12 -258
  53. data/lib/sentdm/models/user_list_response.rb +12 -249
  54. data/lib/sentdm/models/user_remove_params.rb +2 -16
  55. data/lib/sentdm/models/user_response.rb +94 -0
  56. data/lib/sentdm/models/webhook_event_type.rb +45 -0
  57. data/lib/sentdm/models/webhook_list_event_types_response.rb +12 -203
  58. data/lib/sentdm/models/webhook_list_events_response.rb +9 -157
  59. data/lib/sentdm/models/webhook_list_response.rb +12 -276
  60. data/lib/sentdm/models/webhook_response.rb +120 -0
  61. data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
  62. data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
  63. data/lib/sentdm/models/webhook_test_response.rb +6 -74
  64. data/lib/sentdm/models.rb +52 -0
  65. data/lib/sentdm/resources/contacts.rb +8 -8
  66. data/lib/sentdm/resources/conversations.rb +4 -4
  67. data/lib/sentdm/resources/me.rb +11 -0
  68. data/lib/sentdm/resources/profiles/campaigns.rb +8 -8
  69. data/lib/sentdm/resources/profiles.rb +12 -12
  70. data/lib/sentdm/resources/templates.rb +6 -6
  71. data/lib/sentdm/resources/users.rb +6 -6
  72. data/lib/sentdm/resources/webhooks.rb +8 -8
  73. data/lib/sentdm/version.rb +1 -1
  74. data/lib/sentdm.rb +32 -22
  75. data/rbi/sentdm/models/api_meta.rbi +55 -0
  76. data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
  77. data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +79 -0
  78. data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +79 -0
  79. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
  80. data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
  81. data/rbi/sentdm/models/api_response_template.rbi +74 -0
  82. data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
  83. data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
  84. data/rbi/sentdm/models/brand_business_info.rbi +162 -0
  85. data/rbi/sentdm/models/brand_compliance_info.rbi +76 -0
  86. data/rbi/sentdm/models/brand_contact_info.rbi +78 -0
  87. data/rbi/sentdm/models/brands_brand_data.rbi +65 -0
  88. data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
  89. data/rbi/sentdm/models/contact_list_response.rbi +16 -522
  90. data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
  91. data/rbi/sentdm/models/contact_response.rbi +200 -0
  92. data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
  93. data/rbi/sentdm/models/error_detail.rbi +66 -0
  94. data/rbi/sentdm/models/inbound_message_event_payload.rbi +16 -22
  95. data/rbi/sentdm/models/me_retrieve_response.rbi +60 -367
  96. data/rbi/sentdm/models/message_event_payload.rbi +12 -15
  97. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +12 -325
  98. data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
  99. data/rbi/sentdm/models/message_send_response.rbi +8 -135
  100. data/rbi/sentdm/models/mutation_request.rbi +32 -0
  101. data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
  102. data/rbi/sentdm/models/pagination_meta.rbi +135 -0
  103. data/rbi/sentdm/models/payment_details.rbi +56 -0
  104. data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
  105. data/rbi/sentdm/models/profile_create_params.rbi +12 -546
  106. data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
  107. data/rbi/sentdm/models/profile_detail.rbi +918 -0
  108. data/rbi/sentdm/models/profile_list_response.rbi +16 -1347
  109. data/rbi/sentdm/models/profile_settings.rbi +102 -0
  110. data/rbi/sentdm/models/profile_update_params.rbi +12 -546
  111. data/rbi/sentdm/models/profiles/api_response_of_brand_campaign.rbi +81 -0
  112. data/rbi/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbi +76 -0
  113. data/rbi/sentdm/models/profiles/brand_campaign.rbi +299 -0
  114. data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -218
  115. data/rbi/sentdm/models/profiles/campaign_data.rbi +158 -0
  116. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
  117. data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -218
  118. data/rbi/sentdm/models/profiles/campaign_use_case.rbi +110 -0
  119. data/rbi/sentdm/models/profiles/campaign_use_case_data.rbi +51 -0
  120. data/rbi/sentdm/models/template.rbi +139 -0
  121. data/rbi/sentdm/models/template_event_payload.rbi +21 -27
  122. data/rbi/sentdm/models/template_list_response.rbi +16 -464
  123. data/rbi/sentdm/models/user_list_response.rbi +16 -444
  124. data/rbi/sentdm/models/user_remove_params.rbi +2 -19
  125. data/rbi/sentdm/models/user_response.rbi +131 -0
  126. data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
  127. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +16 -414
  128. data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
  129. data/rbi/sentdm/models/webhook_list_response.rbi +16 -475
  130. data/rbi/sentdm/models/webhook_response.rbi +153 -0
  131. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
  132. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
  133. data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
  134. data/rbi/sentdm/models.rbi +54 -0
  135. data/rbi/sentdm/resources/contacts.rbi +4 -4
  136. data/rbi/sentdm/resources/conversations.rbi +2 -2
  137. data/rbi/sentdm/resources/me.rbi +11 -0
  138. data/rbi/sentdm/resources/profiles/campaigns.rbi +5 -5
  139. data/rbi/sentdm/resources/profiles.rbi +9 -13
  140. data/rbi/sentdm/resources/templates.rbi +3 -3
  141. data/rbi/sentdm/resources/users.rbi +3 -3
  142. data/rbi/sentdm/resources/webhooks.rbi +4 -4
  143. data/sig/sentdm/models/api_meta.rbs +27 -0
  144. data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
  145. data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +39 -0
  146. data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +39 -0
  147. data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
  148. data/sig/sentdm/models/api_response_of_user.rbs +39 -0
  149. data/sig/sentdm/models/api_response_template.rbs +39 -0
  150. data/sig/sentdm/models/api_response_webhook.rbs +39 -0
  151. data/sig/sentdm/models/billing_contact_info.rbs +30 -0
  152. data/sig/sentdm/models/brand_business_info.rbs +89 -0
  153. data/sig/sentdm/models/brand_compliance_info.rbs +45 -0
  154. data/sig/sentdm/models/brand_contact_info.rbs +45 -0
  155. data/sig/sentdm/models/brands_brand_data.rbs +30 -0
  156. data/sig/sentdm/models/contact_delete_params.rbs +6 -10
  157. data/sig/sentdm/models/contact_list_response.rbs +20 -263
  158. data/sig/sentdm/models/contact_message_summary.rbs +84 -0
  159. data/sig/sentdm/models/contact_response.rbs +118 -0
  160. data/sig/sentdm/models/conversation_messages_list.rbs +240 -0
  161. data/sig/sentdm/models/error_detail.rbs +39 -0
  162. data/sig/sentdm/models/inbound_message_event_payload.rbs +10 -14
  163. data/sig/sentdm/models/me_retrieve_response.rbs +28 -176
  164. data/sig/sentdm/models/message_event_payload.rbs +5 -7
  165. data/sig/sentdm/models/message_retrieve_activities_response.rbs +14 -142
  166. data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
  167. data/sig/sentdm/models/message_send_response.rbs +9 -71
  168. data/sig/sentdm/models/mutation_request.rbs +15 -0
  169. data/sig/sentdm/models/number_lookup_response.rbs +9 -71
  170. data/sig/sentdm/models/pagination_meta.rbs +67 -0
  171. data/sig/sentdm/models/payment_details.rbs +30 -0
  172. data/sig/sentdm/models/profile_complete_response.rbs +9 -71
  173. data/sig/sentdm/models/profile_create_params.rbs +12 -263
  174. data/sig/sentdm/models/profile_delete_params.rbs +6 -10
  175. data/sig/sentdm/models/profile_detail.rbs +461 -0
  176. data/sig/sentdm/models/profile_list_response.rbs +20 -606
  177. data/sig/sentdm/models/profile_settings.rbs +50 -0
  178. data/sig/sentdm/models/profile_update_params.rbs +12 -263
  179. data/sig/sentdm/models/profiles/api_response_of_brand_campaign.rbs +41 -0
  180. data/sig/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbs +41 -0
  181. data/sig/sentdm/models/profiles/brand_campaign.rbs +194 -0
  182. data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -108
  183. data/sig/sentdm/models/profiles/campaign_data.rbs +87 -0
  184. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
  185. data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -108
  186. data/sig/sentdm/models/profiles/campaign_use_case.rbs +66 -0
  187. data/sig/sentdm/models/profiles/campaign_use_case_data.rbs +27 -0
  188. data/sig/sentdm/models/template.rbs +84 -0
  189. data/sig/sentdm/models/template_event_payload.rbs +13 -17
  190. data/sig/sentdm/models/template_list_response.rbs +19 -230
  191. data/sig/sentdm/models/user_list_response.rbs +20 -224
  192. data/sig/sentdm/models/user_remove_params.rbs +6 -10
  193. data/sig/sentdm/models/user_response.rbs +79 -0
  194. data/sig/sentdm/models/webhook_event_type.rbs +51 -0
  195. data/sig/sentdm/models/webhook_list_event_types_response.rbs +20 -196
  196. data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
  197. data/sig/sentdm/models/webhook_list_response.rbs +20 -255
  198. data/sig/sentdm/models/webhook_response.rbs +110 -0
  199. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
  200. data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
  201. data/sig/sentdm/models/webhook_test_response.rbs +9 -71
  202. data/sig/sentdm/models.rbs +52 -0
  203. data/sig/sentdm/resources/contacts.rbs +4 -4
  204. data/sig/sentdm/resources/conversations.rbs +2 -2
  205. data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
  206. data/sig/sentdm/resources/profiles.rbs +9 -9
  207. data/sig/sentdm/resources/templates.rbs +3 -3
  208. data/sig/sentdm/resources/users.rbs +3 -3
  209. data/sig/sentdm/resources/webhooks.rbs +4 -4
  210. metadata +98 -68
  211. data/lib/sentdm/models/contact_create_response.rb +0 -249
  212. data/lib/sentdm/models/contact_retrieve_message_summary_response.rb +0 -186
  213. data/lib/sentdm/models/contact_retrieve_response.rb +0 -249
  214. data/lib/sentdm/models/contact_update_response.rb +0 -249
  215. data/lib/sentdm/models/conversation_list_messages_response.rb +0 -436
  216. data/lib/sentdm/models/conversation_list_response.rb +0 -433
  217. data/lib/sentdm/models/profile_create_response.rb +0 -760
  218. data/lib/sentdm/models/profile_retrieve_response.rb +0 -762
  219. data/lib/sentdm/models/profile_update_response.rb +0 -760
  220. data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -420
  221. data/lib/sentdm/models/profiles/campaign_list_response.rb +0 -421
  222. data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -420
  223. data/lib/sentdm/models/template_create_response.rb +0 -209
  224. data/lib/sentdm/models/template_retrieve_response.rb +0 -209
  225. data/lib/sentdm/models/template_update_response.rb +0 -209
  226. data/lib/sentdm/models/user_invite_response.rb +0 -201
  227. data/lib/sentdm/models/user_retrieve_response.rb +0 -201
  228. data/lib/sentdm/models/user_update_role_response.rb +0 -201
  229. data/lib/sentdm/models/webhook_create_response.rb +0 -229
  230. data/lib/sentdm/models/webhook_retrieve_response.rb +0 -229
  231. data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -229
  232. data/lib/sentdm/models/webhook_update_response.rb +0 -229
  233. data/rbi/sentdm/models/contact_create_response.rbi +0 -407
  234. data/rbi/sentdm/models/contact_retrieve_message_summary_response.rbi +0 -397
  235. data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -409
  236. data/rbi/sentdm/models/contact_update_response.rbi +0 -407
  237. data/rbi/sentdm/models/conversation_list_messages_response.rbi +0 -843
  238. data/rbi/sentdm/models/conversation_list_response.rbi +0 -819
  239. data/rbi/sentdm/models/profile_create_response.rbi +0 -1226
  240. data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1230
  241. data/rbi/sentdm/models/profile_update_response.rbi +0 -1226
  242. data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -674
  243. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +0 -667
  244. data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -674
  245. data/rbi/sentdm/models/template_create_response.rbi +0 -349
  246. data/rbi/sentdm/models/template_retrieve_response.rbi +0 -355
  247. data/rbi/sentdm/models/template_update_response.rbi +0 -349
  248. data/rbi/sentdm/models/user_invite_response.rbi +0 -336
  249. data/rbi/sentdm/models/user_retrieve_response.rbi +0 -336
  250. data/rbi/sentdm/models/user_update_role_response.rbi +0 -341
  251. data/rbi/sentdm/models/webhook_create_response.rbi +0 -361
  252. data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -363
  253. data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -379
  254. data/rbi/sentdm/models/webhook_update_response.rbi +0 -361
  255. data/sig/sentdm/models/contact_create_response.rbs +0 -216
  256. data/sig/sentdm/models/contact_retrieve_message_summary_response.rbs +0 -182
  257. data/sig/sentdm/models/contact_retrieve_response.rbs +0 -216
  258. data/sig/sentdm/models/contact_update_response.rbs +0 -216
  259. data/sig/sentdm/models/conversation_list_messages_response.rbs +0 -404
  260. data/sig/sentdm/models/conversation_list_response.rbs +0 -404
  261. data/sig/sentdm/models/profile_create_response.rbs +0 -559
  262. data/sig/sentdm/models/profile_retrieve_response.rbs +0 -559
  263. data/sig/sentdm/models/profile_update_response.rbs +0 -559
  264. data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -357
  265. data/sig/sentdm/models/profiles/campaign_list_response.rbs +0 -357
  266. data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -357
  267. data/sig/sentdm/models/template_create_response.rbs +0 -182
  268. data/sig/sentdm/models/template_retrieve_response.rbs +0 -182
  269. data/sig/sentdm/models/template_update_response.rbs +0 -182
  270. data/sig/sentdm/models/user_invite_response.rbs +0 -177
  271. data/sig/sentdm/models/user_retrieve_response.rbs +0 -177
  272. data/sig/sentdm/models/user_update_role_response.rbs +0 -177
  273. data/sig/sentdm/models/webhook_create_response.rbs +0 -208
  274. data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -208
  275. data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -208
  276. data/sig/sentdm/models/webhook_update_response.rbs +0 -208
@@ -0,0 +1,30 @@
1
+ module Sentdm
2
+ module Models
3
+ type brands_brand_data =
4
+ {
5
+ compliance: Sentdm::BrandComplianceInfo,
6
+ contact: Sentdm::BrandContactInfo,
7
+ business: Sentdm::BrandBusinessInfo?
8
+ }
9
+
10
+ class BrandsBrandData < Sentdm::Internal::Type::BaseModel
11
+ attr_accessor compliance: Sentdm::BrandComplianceInfo
12
+
13
+ attr_accessor contact: Sentdm::BrandContactInfo
14
+
15
+ attr_accessor business: Sentdm::BrandBusinessInfo?
16
+
17
+ def initialize: (
18
+ compliance: Sentdm::BrandComplianceInfo,
19
+ contact: Sentdm::BrandContactInfo,
20
+ ?business: Sentdm::BrandBusinessInfo?
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ compliance: Sentdm::BrandComplianceInfo,
25
+ contact: Sentdm::BrandContactInfo,
26
+ business: Sentdm::BrandBusinessInfo?
27
+ }
28
+ end
29
+ end
30
+ end
@@ -1,33 +1,29 @@
1
1
  module Sentdm
2
2
  module Models
3
3
  type contact_delete_params =
4
- { id: String, sandbox: bool, x_profile_id: String }
4
+ { id: String, x_profile_id: String }
5
5
  & Sentdm::Internal::Type::request_parameters
6
6
 
7
- class ContactDeleteParams < Sentdm::Internal::Type::BaseModel
7
+ class ContactDeleteParams < Sentdm::Models::MutationRequest
8
8
  extend Sentdm::Internal::Type::RequestParameters::Converter
9
9
  include Sentdm::Internal::Type::RequestParameters
10
10
 
11
- attr_accessor id: String
11
+ def id: -> String
12
12
 
13
- attr_reader sandbox: bool?
13
+ def id=: (String _) -> String
14
14
 
15
- def sandbox=: (bool) -> bool
15
+ def x_profile_id: -> String?
16
16
 
17
- attr_reader x_profile_id: String?
18
-
19
- def x_profile_id=: (String) -> String
17
+ def x_profile_id=: (String _) -> String
20
18
 
21
19
  def initialize: (
22
20
  id: String,
23
- ?sandbox: bool,
24
21
  ?x_profile_id: String,
25
22
  ?request_options: Sentdm::request_opts
26
23
  ) -> void
27
24
 
28
25
  def to_hash: -> {
29
26
  id: String,
30
- sandbox: bool,
31
27
  x_profile_id: String,
32
28
  request_options: Sentdm::RequestOptions
33
29
  }
@@ -3,21 +3,19 @@ module Sentdm
3
3
  type contact_list_response =
4
4
  {
5
5
  data: Sentdm::Models::ContactListResponse::Data?,
6
- error: Sentdm::Models::ContactListResponse::Error?,
7
- meta: Sentdm::Models::ContactListResponse::Meta,
6
+ error: Sentdm::ErrorDetail?,
7
+ meta: Sentdm::APIMeta,
8
8
  success: bool
9
9
  }
10
10
 
11
11
  class ContactListResponse < Sentdm::Internal::Type::BaseModel
12
12
  attr_accessor data: Sentdm::Models::ContactListResponse::Data?
13
13
 
14
- attr_accessor error: Sentdm::Models::ContactListResponse::Error?
14
+ attr_accessor error: Sentdm::ErrorDetail?
15
15
 
16
- attr_reader meta: Sentdm::Models::ContactListResponse::Meta?
16
+ attr_reader meta: Sentdm::APIMeta?
17
17
 
18
- def meta=: (
19
- Sentdm::Models::ContactListResponse::Meta
20
- ) -> Sentdm::Models::ContactListResponse::Meta
18
+ def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
21
19
 
22
20
  attr_reader success: bool?
23
21
 
@@ -25,285 +23,44 @@ module Sentdm
25
23
 
26
24
  def initialize: (
27
25
  ?data: Sentdm::Models::ContactListResponse::Data?,
28
- ?error: Sentdm::Models::ContactListResponse::Error?,
29
- ?meta: Sentdm::Models::ContactListResponse::Meta,
26
+ ?error: Sentdm::ErrorDetail?,
27
+ ?meta: Sentdm::APIMeta,
30
28
  ?success: bool
31
29
  ) -> void
32
30
 
33
31
  def to_hash: -> {
34
32
  data: Sentdm::Models::ContactListResponse::Data?,
35
- error: Sentdm::Models::ContactListResponse::Error?,
36
- meta: Sentdm::Models::ContactListResponse::Meta,
33
+ error: Sentdm::ErrorDetail?,
34
+ meta: Sentdm::APIMeta,
37
35
  success: bool
38
36
  }
39
37
 
40
38
  type data =
41
39
  {
42
- contacts: ::Array[Sentdm::Models::ContactListResponse::Data::Contact],
43
- pagination: Sentdm::Models::ContactListResponse::Data::Pagination
40
+ contacts: ::Array[Sentdm::ContactResponse],
41
+ pagination: Sentdm::PaginationMeta
44
42
  }
45
43
 
46
44
  class Data < Sentdm::Internal::Type::BaseModel
47
- attr_reader contacts: ::Array[Sentdm::Models::ContactListResponse::Data::Contact]?
45
+ attr_reader contacts: ::Array[Sentdm::ContactResponse]?
48
46
 
49
47
  def contacts=: (
50
- ::Array[Sentdm::Models::ContactListResponse::Data::Contact]
51
- ) -> ::Array[Sentdm::Models::ContactListResponse::Data::Contact]
48
+ ::Array[Sentdm::ContactResponse]
49
+ ) -> ::Array[Sentdm::ContactResponse]
52
50
 
53
- attr_reader pagination: Sentdm::Models::ContactListResponse::Data::Pagination?
51
+ attr_reader pagination: Sentdm::PaginationMeta?
54
52
 
55
- def pagination=: (
56
- Sentdm::Models::ContactListResponse::Data::Pagination
57
- ) -> Sentdm::Models::ContactListResponse::Data::Pagination
53
+ def pagination=: (Sentdm::PaginationMeta) -> Sentdm::PaginationMeta
58
54
 
59
55
  def initialize: (
60
- ?contacts: ::Array[Sentdm::Models::ContactListResponse::Data::Contact],
61
- ?pagination: Sentdm::Models::ContactListResponse::Data::Pagination
56
+ ?contacts: ::Array[Sentdm::ContactResponse],
57
+ ?pagination: Sentdm::PaginationMeta
62
58
  ) -> void
63
59
 
64
60
  def to_hash: -> {
65
- contacts: ::Array[Sentdm::Models::ContactListResponse::Data::Contact],
66
- pagination: Sentdm::Models::ContactListResponse::Data::Pagination
61
+ contacts: ::Array[Sentdm::ContactResponse],
62
+ pagination: Sentdm::PaginationMeta
67
63
  }
68
-
69
- type contact =
70
- {
71
- id: String,
72
- available_channels: String,
73
- country_code: String,
74
- created_at: Time,
75
- customer_id: String,
76
- default_channel: String,
77
- :format_e164 => String,
78
- format_international: String,
79
- format_national: String,
80
- format_rfc: String,
81
- is_inherited: bool,
82
- opt_out: bool,
83
- phone_number: String,
84
- region_code: String,
85
- updated_at: Time?
86
- }
87
-
88
- class Contact < Sentdm::Internal::Type::BaseModel
89
- attr_reader id: String?
90
-
91
- def id=: (String) -> String
92
-
93
- attr_reader available_channels: String?
94
-
95
- def available_channels=: (String) -> String
96
-
97
- attr_reader country_code: String?
98
-
99
- def country_code=: (String) -> String
100
-
101
- attr_reader created_at: Time?
102
-
103
- def created_at=: (Time) -> Time
104
-
105
- attr_reader customer_id: String?
106
-
107
- def customer_id=: (String) -> String
108
-
109
- attr_reader default_channel: String?
110
-
111
- def default_channel=: (String) -> String
112
-
113
- attr_reader format_e164: String?
114
-
115
- def format_e164=: (String) -> String
116
-
117
- attr_reader format_international: String?
118
-
119
- def format_international=: (String) -> String
120
-
121
- attr_reader format_national: String?
122
-
123
- def format_national=: (String) -> String
124
-
125
- attr_reader format_rfc: String?
126
-
127
- def format_rfc=: (String) -> String
128
-
129
- attr_reader is_inherited: bool?
130
-
131
- def is_inherited=: (bool) -> bool
132
-
133
- attr_reader opt_out: bool?
134
-
135
- def opt_out=: (bool) -> bool
136
-
137
- attr_reader phone_number: String?
138
-
139
- def phone_number=: (String) -> String
140
-
141
- attr_reader region_code: String?
142
-
143
- def region_code=: (String) -> String
144
-
145
- attr_accessor updated_at: Time?
146
-
147
- def initialize: (
148
- ?id: String,
149
- ?available_channels: String,
150
- ?country_code: String,
151
- ?created_at: Time,
152
- ?customer_id: String,
153
- ?default_channel: String,
154
- ?format_e164: String,
155
- ?format_international: String,
156
- ?format_national: String,
157
- ?format_rfc: String,
158
- ?is_inherited: bool,
159
- ?opt_out: bool,
160
- ?phone_number: String,
161
- ?region_code: String,
162
- ?updated_at: Time?
163
- ) -> void
164
-
165
- def to_hash: -> {
166
- id: String,
167
- available_channels: String,
168
- country_code: String,
169
- created_at: Time,
170
- customer_id: String,
171
- default_channel: String,
172
- :format_e164 => String,
173
- format_international: String,
174
- format_national: String,
175
- format_rfc: String,
176
- is_inherited: bool,
177
- opt_out: bool,
178
- phone_number: String,
179
- region_code: String,
180
- updated_at: Time?
181
- }
182
- end
183
-
184
- type pagination =
185
- {
186
- cursors: Sentdm::Models::ContactListResponse::Data::Pagination::Cursors?,
187
- has_more: bool,
188
- page: Integer,
189
- page_size: Integer,
190
- total_count: Integer,
191
- total_pages: Integer
192
- }
193
-
194
- class Pagination < Sentdm::Internal::Type::BaseModel
195
- attr_accessor cursors: Sentdm::Models::ContactListResponse::Data::Pagination::Cursors?
196
-
197
- attr_reader has_more: bool?
198
-
199
- def has_more=: (bool) -> bool
200
-
201
- attr_reader page: Integer?
202
-
203
- def page=: (Integer) -> Integer
204
-
205
- attr_reader page_size: Integer?
206
-
207
- def page_size=: (Integer) -> Integer
208
-
209
- attr_reader total_count: Integer?
210
-
211
- def total_count=: (Integer) -> Integer
212
-
213
- attr_reader total_pages: Integer?
214
-
215
- def total_pages=: (Integer) -> Integer
216
-
217
- def initialize: (
218
- ?cursors: Sentdm::Models::ContactListResponse::Data::Pagination::Cursors?,
219
- ?has_more: bool,
220
- ?page: Integer,
221
- ?page_size: Integer,
222
- ?total_count: Integer,
223
- ?total_pages: Integer
224
- ) -> void
225
-
226
- def to_hash: -> {
227
- cursors: Sentdm::Models::ContactListResponse::Data::Pagination::Cursors?,
228
- has_more: bool,
229
- page: Integer,
230
- page_size: Integer,
231
- total_count: Integer,
232
- total_pages: Integer
233
- }
234
-
235
- type cursors = { after: String?, before: String? }
236
-
237
- class Cursors < Sentdm::Internal::Type::BaseModel
238
- attr_accessor after: String?
239
-
240
- attr_accessor before: String?
241
-
242
- def initialize: (?after: String?, ?before: String?) -> void
243
-
244
- def to_hash: -> { after: String?, before: String? }
245
- end
246
- end
247
- end
248
-
249
- type error =
250
- {
251
- code: String,
252
- details: ::Hash[Symbol, ::Array[String]]?,
253
- doc_url: String?,
254
- message: String
255
- }
256
-
257
- class Error < Sentdm::Internal::Type::BaseModel
258
- attr_reader code: String?
259
-
260
- def code=: (String) -> String
261
-
262
- attr_accessor details: ::Hash[Symbol, ::Array[String]]?
263
-
264
- attr_accessor doc_url: String?
265
-
266
- attr_reader message: String?
267
-
268
- def message=: (String) -> String
269
-
270
- def initialize: (
271
- ?code: String,
272
- ?details: ::Hash[Symbol, ::Array[String]]?,
273
- ?doc_url: String?,
274
- ?message: String
275
- ) -> void
276
-
277
- def to_hash: -> {
278
- code: String,
279
- details: ::Hash[Symbol, ::Array[String]]?,
280
- doc_url: String?,
281
- message: String
282
- }
283
- end
284
-
285
- type meta = { request_id: String, timestamp: Time, version: String }
286
-
287
- class Meta < Sentdm::Internal::Type::BaseModel
288
- attr_reader request_id: String?
289
-
290
- def request_id=: (String) -> String
291
-
292
- attr_reader timestamp: Time?
293
-
294
- def timestamp=: (Time) -> Time
295
-
296
- attr_reader version: String?
297
-
298
- def version=: (String) -> String
299
-
300
- def initialize: (
301
- ?request_id: String,
302
- ?timestamp: Time,
303
- ?version: String
304
- ) -> void
305
-
306
- def to_hash: -> { request_id: String, timestamp: Time, version: String }
307
64
  end
308
65
  end
309
66
  end
@@ -0,0 +1,84 @@
1
+ module Sentdm
2
+ module Models
3
+ type contact_message_summary =
4
+ {
5
+ channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore],
6
+ channels_used: ::Array[String],
7
+ contact_id: String,
8
+ first_message_at: Time?,
9
+ last_message_at: Time?,
10
+ message_count: Integer
11
+ }
12
+
13
+ class ContactMessageSummary < Sentdm::Internal::Type::BaseModel
14
+ attr_reader channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore]?
15
+
16
+ def channel_scores=: (
17
+ ::Array[Sentdm::ContactMessageSummary::ChannelScore]
18
+ ) -> ::Array[Sentdm::ContactMessageSummary::ChannelScore]
19
+
20
+ attr_reader channels_used: ::Array[String]?
21
+
22
+ def channels_used=: (::Array[String]) -> ::Array[String]
23
+
24
+ attr_reader contact_id: String?
25
+
26
+ def contact_id=: (String) -> String
27
+
28
+ attr_accessor first_message_at: Time?
29
+
30
+ attr_accessor last_message_at: Time?
31
+
32
+ attr_reader message_count: Integer?
33
+
34
+ def message_count=: (Integer) -> Integer
35
+
36
+ def initialize: (
37
+ ?channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore],
38
+ ?channels_used: ::Array[String],
39
+ ?contact_id: String,
40
+ ?first_message_at: Time?,
41
+ ?last_message_at: Time?,
42
+ ?message_count: Integer
43
+ ) -> void
44
+
45
+ def to_hash: -> {
46
+ channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore],
47
+ channels_used: ::Array[String],
48
+ contact_id: String,
49
+ first_message_at: Time?,
50
+ last_message_at: Time?,
51
+ message_count: Integer
52
+ }
53
+
54
+ type channel_score =
55
+ { channel: String, fail_score: Integer, success_score: Integer }
56
+
57
+ class ChannelScore < Sentdm::Internal::Type::BaseModel
58
+ attr_reader channel: String?
59
+
60
+ def channel=: (String) -> String
61
+
62
+ attr_reader fail_score: Integer?
63
+
64
+ def fail_score=: (Integer) -> Integer
65
+
66
+ attr_reader success_score: Integer?
67
+
68
+ def success_score=: (Integer) -> Integer
69
+
70
+ def initialize: (
71
+ ?channel: String,
72
+ ?fail_score: Integer,
73
+ ?success_score: Integer
74
+ ) -> void
75
+
76
+ def to_hash: -> {
77
+ channel: String,
78
+ fail_score: Integer,
79
+ success_score: Integer
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,118 @@
1
+ module Sentdm
2
+ module Models
3
+ type contact_response =
4
+ {
5
+ id: String,
6
+ available_channels: String,
7
+ country_code: String,
8
+ created_at: Time,
9
+ customer_id: String,
10
+ default_channel: String,
11
+ :format_e164 => String,
12
+ format_international: String,
13
+ format_national: String,
14
+ format_rfc: String,
15
+ is_inherited: bool,
16
+ opt_out: bool,
17
+ phone_number: String,
18
+ region_code: String,
19
+ updated_at: Time?
20
+ }
21
+
22
+ class ContactResponse < Sentdm::Internal::Type::BaseModel
23
+ attr_reader id: String?
24
+
25
+ def id=: (String) -> String
26
+
27
+ attr_reader available_channels: String?
28
+
29
+ def available_channels=: (String) -> String
30
+
31
+ attr_reader country_code: String?
32
+
33
+ def country_code=: (String) -> String
34
+
35
+ attr_reader created_at: Time?
36
+
37
+ def created_at=: (Time) -> Time
38
+
39
+ attr_reader customer_id: String?
40
+
41
+ def customer_id=: (String) -> String
42
+
43
+ attr_reader default_channel: String?
44
+
45
+ def default_channel=: (String) -> String
46
+
47
+ attr_reader format_e164: String?
48
+
49
+ def format_e164=: (String) -> String
50
+
51
+ attr_reader format_international: String?
52
+
53
+ def format_international=: (String) -> String
54
+
55
+ attr_reader format_national: String?
56
+
57
+ def format_national=: (String) -> String
58
+
59
+ attr_reader format_rfc: String?
60
+
61
+ def format_rfc=: (String) -> String
62
+
63
+ attr_reader is_inherited: bool?
64
+
65
+ def is_inherited=: (bool) -> bool
66
+
67
+ attr_reader opt_out: bool?
68
+
69
+ def opt_out=: (bool) -> bool
70
+
71
+ attr_reader phone_number: String?
72
+
73
+ def phone_number=: (String) -> String
74
+
75
+ attr_reader region_code: String?
76
+
77
+ def region_code=: (String) -> String
78
+
79
+ attr_accessor updated_at: Time?
80
+
81
+ def initialize: (
82
+ ?id: String,
83
+ ?available_channels: String,
84
+ ?country_code: String,
85
+ ?created_at: Time,
86
+ ?customer_id: String,
87
+ ?default_channel: String,
88
+ ?format_e164: String,
89
+ ?format_international: String,
90
+ ?format_national: String,
91
+ ?format_rfc: String,
92
+ ?is_inherited: bool,
93
+ ?opt_out: bool,
94
+ ?phone_number: String,
95
+ ?region_code: String,
96
+ ?updated_at: Time?
97
+ ) -> void
98
+
99
+ def to_hash: -> {
100
+ id: String,
101
+ available_channels: String,
102
+ country_code: String,
103
+ created_at: Time,
104
+ customer_id: String,
105
+ default_channel: String,
106
+ :format_e164 => String,
107
+ format_international: String,
108
+ format_national: String,
109
+ format_rfc: String,
110
+ is_inherited: bool,
111
+ opt_out: bool,
112
+ phone_number: String,
113
+ region_code: String,
114
+ updated_at: Time?
115
+ }
116
+ end
117
+ end
118
+ end