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
@@ -4,7 +4,7 @@ module Sentdm
4
4
  type campaign_create_params =
5
5
  {
6
6
  profile_id: String,
7
- campaign: Sentdm::Profiles::CampaignCreateParams::Campaign,
7
+ campaign: Sentdm::Profiles::CampaignData,
8
8
  sandbox: bool,
9
9
  idempotency_key: String,
10
10
  x_profile_id: String
@@ -17,7 +17,7 @@ module Sentdm
17
17
 
18
18
  attr_accessor profile_id: String
19
19
 
20
- attr_accessor campaign: Sentdm::Profiles::CampaignCreateParams::Campaign
20
+ attr_accessor campaign: Sentdm::Profiles::CampaignData
21
21
 
22
22
  attr_reader sandbox: bool?
23
23
 
@@ -33,7 +33,7 @@ module Sentdm
33
33
 
34
34
  def initialize: (
35
35
  profile_id: String,
36
- campaign: Sentdm::Profiles::CampaignCreateParams::Campaign,
36
+ campaign: Sentdm::Profiles::CampaignData,
37
37
  ?sandbox: bool,
38
38
  ?idempotency_key: String,
39
39
  ?x_profile_id: String,
@@ -42,116 +42,12 @@ module Sentdm
42
42
 
43
43
  def to_hash: -> {
44
44
  profile_id: String,
45
- campaign: Sentdm::Profiles::CampaignCreateParams::Campaign,
45
+ campaign: Sentdm::Profiles::CampaignData,
46
46
  sandbox: bool,
47
47
  idempotency_key: String,
48
48
  x_profile_id: String,
49
49
  request_options: Sentdm::RequestOptions
50
50
  }
51
-
52
- type campaign =
53
- {
54
- description: String,
55
- name: String,
56
- type: String,
57
- use_cases: ::Array[Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase],
58
- help_keywords: String?,
59
- help_message: String?,
60
- message_flow: String?,
61
- optin_keywords: String?,
62
- optin_message: String?,
63
- optout_keywords: String?,
64
- optout_message: String?,
65
- privacy_policy_link: String?,
66
- terms_and_conditions_link: String?,
67
- volume: String?
68
- }
69
-
70
- class Campaign < Sentdm::Internal::Type::BaseModel
71
- attr_accessor description: String
72
-
73
- attr_accessor name: String
74
-
75
- attr_accessor type: String
76
-
77
- attr_accessor use_cases: ::Array[Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase]
78
-
79
- attr_accessor help_keywords: String?
80
-
81
- attr_accessor help_message: String?
82
-
83
- attr_accessor message_flow: String?
84
-
85
- attr_accessor optin_keywords: String?
86
-
87
- attr_accessor optin_message: String?
88
-
89
- attr_accessor optout_keywords: String?
90
-
91
- attr_accessor optout_message: String?
92
-
93
- attr_accessor privacy_policy_link: String?
94
-
95
- attr_accessor terms_and_conditions_link: String?
96
-
97
- attr_accessor volume: String?
98
-
99
- def initialize: (
100
- description: String,
101
- name: String,
102
- type: String,
103
- use_cases: ::Array[Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase],
104
- ?help_keywords: String?,
105
- ?help_message: String?,
106
- ?message_flow: String?,
107
- ?optin_keywords: String?,
108
- ?optin_message: String?,
109
- ?optout_keywords: String?,
110
- ?optout_message: String?,
111
- ?privacy_policy_link: String?,
112
- ?terms_and_conditions_link: String?,
113
- ?volume: String?
114
- ) -> void
115
-
116
- def to_hash: -> {
117
- description: String,
118
- name: String,
119
- type: String,
120
- use_cases: ::Array[Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase],
121
- help_keywords: String?,
122
- help_message: String?,
123
- message_flow: String?,
124
- optin_keywords: String?,
125
- optin_message: String?,
126
- optout_keywords: String?,
127
- optout_message: String?,
128
- privacy_policy_link: String?,
129
- terms_and_conditions_link: String?,
130
- volume: String?
131
- }
132
-
133
- type use_case =
134
- {
135
- messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
136
- sample_messages: ::Array[String]
137
- }
138
-
139
- class UseCase < Sentdm::Internal::Type::BaseModel
140
- attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
141
-
142
- attr_accessor sample_messages: ::Array[String]
143
-
144
- def initialize: (
145
- messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
146
- sample_messages: ::Array[String]
147
- ) -> void
148
-
149
- def to_hash: -> {
150
- messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
151
- sample_messages: ::Array[String]
152
- }
153
- end
154
- end
155
51
  end
156
52
  end
157
53
  end
@@ -0,0 +1,87 @@
1
+ module Sentdm
2
+ module Models
3
+ module Profiles
4
+ type campaign_data =
5
+ {
6
+ description: String,
7
+ name: String,
8
+ type: String,
9
+ use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData],
10
+ help_keywords: String?,
11
+ help_message: String?,
12
+ message_flow: String?,
13
+ optin_keywords: String?,
14
+ optin_message: String?,
15
+ optout_keywords: String?,
16
+ optout_message: String?,
17
+ privacy_policy_link: String?,
18
+ terms_and_conditions_link: String?,
19
+ volume: String?
20
+ }
21
+
22
+ class CampaignData < Sentdm::Internal::Type::BaseModel
23
+ attr_accessor description: String
24
+
25
+ attr_accessor name: String
26
+
27
+ attr_accessor type: String
28
+
29
+ attr_accessor use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData]
30
+
31
+ attr_accessor help_keywords: String?
32
+
33
+ attr_accessor help_message: String?
34
+
35
+ attr_accessor message_flow: String?
36
+
37
+ attr_accessor optin_keywords: String?
38
+
39
+ attr_accessor optin_message: String?
40
+
41
+ attr_accessor optout_keywords: String?
42
+
43
+ attr_accessor optout_message: String?
44
+
45
+ attr_accessor privacy_policy_link: String?
46
+
47
+ attr_accessor terms_and_conditions_link: String?
48
+
49
+ attr_accessor volume: String?
50
+
51
+ def initialize: (
52
+ description: String,
53
+ name: String,
54
+ type: String,
55
+ use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData],
56
+ ?help_keywords: String?,
57
+ ?help_message: String?,
58
+ ?message_flow: String?,
59
+ ?optin_keywords: String?,
60
+ ?optin_message: String?,
61
+ ?optout_keywords: String?,
62
+ ?optout_message: String?,
63
+ ?privacy_policy_link: String?,
64
+ ?terms_and_conditions_link: String?,
65
+ ?volume: String?
66
+ ) -> void
67
+
68
+ def to_hash: -> {
69
+ description: String,
70
+ name: String,
71
+ type: String,
72
+ use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData],
73
+ help_keywords: String?,
74
+ help_message: String?,
75
+ message_flow: String?,
76
+ optin_keywords: String?,
77
+ optin_message: String?,
78
+ optout_keywords: String?,
79
+ optout_message: String?,
80
+ privacy_policy_link: String?,
81
+ terms_and_conditions_link: String?,
82
+ volume: String?
83
+ }
84
+ end
85
+ end
86
+ end
87
+ end
@@ -2,34 +2,28 @@ module Sentdm
2
2
  module Models
3
3
  module Profiles
4
4
  type campaign_delete_params =
5
- {
6
- profile_id: String,
7
- campaign_id: String,
8
- sandbox: bool,
9
- x_profile_id: String
10
- }
5
+ { profile_id: String, campaign_id: String, x_profile_id: String }
11
6
  & Sentdm::Internal::Type::request_parameters
12
7
 
13
- class CampaignDeleteParams < Sentdm::Internal::Type::BaseModel
8
+ class CampaignDeleteParams < Sentdm::Models::MutationRequest
14
9
  extend Sentdm::Internal::Type::RequestParameters::Converter
15
10
  include Sentdm::Internal::Type::RequestParameters
16
11
 
17
- attr_accessor profile_id: String
12
+ def profile_id: -> String
18
13
 
19
- attr_accessor campaign_id: String
14
+ def profile_id=: (String _) -> String
20
15
 
21
- attr_reader sandbox: bool?
16
+ def campaign_id: -> String
22
17
 
23
- def sandbox=: (bool) -> bool
18
+ def campaign_id=: (String _) -> String
24
19
 
25
- attr_reader x_profile_id: String?
20
+ def x_profile_id: -> String?
26
21
 
27
- def x_profile_id=: (String) -> String
22
+ def x_profile_id=: (String _) -> String
28
23
 
29
24
  def initialize: (
30
25
  profile_id: String,
31
26
  campaign_id: String,
32
- ?sandbox: bool,
33
27
  ?x_profile_id: String,
34
28
  ?request_options: Sentdm::request_opts
35
29
  ) -> void
@@ -37,7 +31,6 @@ module Sentdm
37
31
  def to_hash: -> {
38
32
  profile_id: String,
39
33
  campaign_id: String,
40
- sandbox: bool,
41
34
  x_profile_id: String,
42
35
  request_options: Sentdm::RequestOptions
43
36
  }
@@ -5,7 +5,7 @@ module Sentdm
5
5
  {
6
6
  profile_id: String,
7
7
  campaign_id: String,
8
- campaign: Sentdm::Profiles::CampaignUpdateParams::Campaign,
8
+ campaign: Sentdm::Profiles::CampaignData,
9
9
  sandbox: bool,
10
10
  idempotency_key: String,
11
11
  x_profile_id: String
@@ -20,7 +20,7 @@ module Sentdm
20
20
 
21
21
  attr_accessor campaign_id: String
22
22
 
23
- attr_accessor campaign: Sentdm::Profiles::CampaignUpdateParams::Campaign
23
+ attr_accessor campaign: Sentdm::Profiles::CampaignData
24
24
 
25
25
  attr_reader sandbox: bool?
26
26
 
@@ -37,7 +37,7 @@ module Sentdm
37
37
  def initialize: (
38
38
  profile_id: String,
39
39
  campaign_id: String,
40
- campaign: Sentdm::Profiles::CampaignUpdateParams::Campaign,
40
+ campaign: Sentdm::Profiles::CampaignData,
41
41
  ?sandbox: bool,
42
42
  ?idempotency_key: String,
43
43
  ?x_profile_id: String,
@@ -47,116 +47,12 @@ module Sentdm
47
47
  def to_hash: -> {
48
48
  profile_id: String,
49
49
  campaign_id: String,
50
- campaign: Sentdm::Profiles::CampaignUpdateParams::Campaign,
50
+ campaign: Sentdm::Profiles::CampaignData,
51
51
  sandbox: bool,
52
52
  idempotency_key: String,
53
53
  x_profile_id: String,
54
54
  request_options: Sentdm::RequestOptions
55
55
  }
56
-
57
- type campaign =
58
- {
59
- description: String,
60
- name: String,
61
- type: String,
62
- use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase],
63
- help_keywords: String?,
64
- help_message: String?,
65
- message_flow: String?,
66
- optin_keywords: String?,
67
- optin_message: String?,
68
- optout_keywords: String?,
69
- optout_message: String?,
70
- privacy_policy_link: String?,
71
- terms_and_conditions_link: String?,
72
- volume: String?
73
- }
74
-
75
- class Campaign < Sentdm::Internal::Type::BaseModel
76
- attr_accessor description: String
77
-
78
- attr_accessor name: String
79
-
80
- attr_accessor type: String
81
-
82
- attr_accessor use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase]
83
-
84
- attr_accessor help_keywords: String?
85
-
86
- attr_accessor help_message: String?
87
-
88
- attr_accessor message_flow: String?
89
-
90
- attr_accessor optin_keywords: String?
91
-
92
- attr_accessor optin_message: String?
93
-
94
- attr_accessor optout_keywords: String?
95
-
96
- attr_accessor optout_message: String?
97
-
98
- attr_accessor privacy_policy_link: String?
99
-
100
- attr_accessor terms_and_conditions_link: String?
101
-
102
- attr_accessor volume: String?
103
-
104
- def initialize: (
105
- description: String,
106
- name: String,
107
- type: String,
108
- use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase],
109
- ?help_keywords: String?,
110
- ?help_message: String?,
111
- ?message_flow: String?,
112
- ?optin_keywords: String?,
113
- ?optin_message: String?,
114
- ?optout_keywords: String?,
115
- ?optout_message: String?,
116
- ?privacy_policy_link: String?,
117
- ?terms_and_conditions_link: String?,
118
- ?volume: String?
119
- ) -> void
120
-
121
- def to_hash: -> {
122
- description: String,
123
- name: String,
124
- type: String,
125
- use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase],
126
- help_keywords: String?,
127
- help_message: String?,
128
- message_flow: String?,
129
- optin_keywords: String?,
130
- optin_message: String?,
131
- optout_keywords: String?,
132
- optout_message: String?,
133
- privacy_policy_link: String?,
134
- terms_and_conditions_link: String?,
135
- volume: String?
136
- }
137
-
138
- type use_case =
139
- {
140
- messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
141
- sample_messages: ::Array[String]
142
- }
143
-
144
- class UseCase < Sentdm::Internal::Type::BaseModel
145
- attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
146
-
147
- attr_accessor sample_messages: ::Array[String]
148
-
149
- def initialize: (
150
- messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
151
- sample_messages: ::Array[String]
152
- ) -> void
153
-
154
- def to_hash: -> {
155
- messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
156
- sample_messages: ::Array[String]
157
- }
158
- end
159
- end
160
56
  end
161
57
  end
162
58
  end
@@ -0,0 +1,66 @@
1
+ module Sentdm
2
+ module Models
3
+ module Profiles
4
+ type campaign_use_case =
5
+ {
6
+ id: String,
7
+ campaign_id: String,
8
+ created_at: Time,
9
+ customer_id: String,
10
+ messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
11
+ sample_messages: ::Array[String],
12
+ updated_at: Time?
13
+ }
14
+
15
+ class CampaignUseCase < Sentdm::Internal::Type::BaseModel
16
+ attr_reader id: String?
17
+
18
+ def id=: (String) -> String
19
+
20
+ attr_reader campaign_id: String?
21
+
22
+ def campaign_id=: (String) -> String
23
+
24
+ attr_reader created_at: Time?
25
+
26
+ def created_at=: (Time) -> Time
27
+
28
+ attr_reader customer_id: String?
29
+
30
+ def customer_id=: (String) -> String
31
+
32
+ attr_reader messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us?
33
+
34
+ def messaging_use_case_us=: (
35
+ Sentdm::Models::Profiles::messaging_use_case_us
36
+ ) -> Sentdm::Models::Profiles::messaging_use_case_us
37
+
38
+ attr_reader sample_messages: ::Array[String]?
39
+
40
+ def sample_messages=: (::Array[String]) -> ::Array[String]
41
+
42
+ attr_accessor updated_at: Time?
43
+
44
+ def initialize: (
45
+ ?id: String,
46
+ ?campaign_id: String,
47
+ ?created_at: Time,
48
+ ?customer_id: String,
49
+ ?messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
50
+ ?sample_messages: ::Array[String],
51
+ ?updated_at: Time?
52
+ ) -> void
53
+
54
+ def to_hash: -> {
55
+ id: String,
56
+ campaign_id: String,
57
+ created_at: Time,
58
+ customer_id: String,
59
+ messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
60
+ sample_messages: ::Array[String],
61
+ updated_at: Time?
62
+ }
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,27 @@
1
+ module Sentdm
2
+ module Models
3
+ module Profiles
4
+ type campaign_use_case_data =
5
+ {
6
+ messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
7
+ sample_messages: ::Array[String]
8
+ }
9
+
10
+ class CampaignUseCaseData < Sentdm::Internal::Type::BaseModel
11
+ attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
12
+
13
+ attr_accessor sample_messages: ::Array[String]
14
+
15
+ def initialize: (
16
+ messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
17
+ sample_messages: ::Array[String]
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
22
+ sample_messages: ::Array[String]
23
+ }
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,84 @@
1
+ module Sentdm
2
+ module Models
3
+ type template =
4
+ {
5
+ customer_id: String,
6
+ id: String,
7
+ category: String,
8
+ channels: ::Array[String]?,
9
+ created_at: Time,
10
+ is_published: bool,
11
+ language: String,
12
+ name: String,
13
+ status: String,
14
+ updated_at: Time?,
15
+ variables: ::Array[String]?
16
+ }
17
+
18
+ class Template < Sentdm::Internal::Type::BaseModel
19
+ attr_accessor customer_id: String
20
+
21
+ attr_reader id: String?
22
+
23
+ def id=: (String) -> String
24
+
25
+ attr_reader category: String?
26
+
27
+ def category=: (String) -> String
28
+
29
+ attr_accessor channels: ::Array[String]?
30
+
31
+ attr_reader created_at: Time?
32
+
33
+ def created_at=: (Time) -> Time
34
+
35
+ attr_reader is_published: bool?
36
+
37
+ def is_published=: (bool) -> bool
38
+
39
+ attr_reader language: String?
40
+
41
+ def language=: (String) -> String
42
+
43
+ attr_reader name: String?
44
+
45
+ def name=: (String) -> String
46
+
47
+ attr_reader status: String?
48
+
49
+ def status=: (String) -> String
50
+
51
+ attr_accessor updated_at: Time?
52
+
53
+ attr_accessor variables: ::Array[String]?
54
+
55
+ def initialize: (
56
+ customer_id: String,
57
+ ?id: String,
58
+ ?category: String,
59
+ ?channels: ::Array[String]?,
60
+ ?created_at: Time,
61
+ ?is_published: bool,
62
+ ?language: String,
63
+ ?name: String,
64
+ ?status: String,
65
+ ?updated_at: Time?,
66
+ ?variables: ::Array[String]?
67
+ ) -> void
68
+
69
+ def to_hash: -> {
70
+ customer_id: String,
71
+ id: String,
72
+ category: String,
73
+ channels: ::Array[String]?,
74
+ created_at: Time,
75
+ is_published: bool,
76
+ language: String,
77
+ name: String,
78
+ status: String,
79
+ updated_at: Time?,
80
+ variables: ::Array[String]?
81
+ }
82
+ end
83
+ end
84
+ end
@@ -2,18 +2,22 @@ module Sentdm
2
2
  module Models
3
3
  type template_event_payload =
4
4
  {
5
+ status: String,
6
+ whatsapp_template_id: String,
5
7
  account_id: String,
6
8
  category: String,
7
9
  channel: String,
8
10
  language: String,
9
11
  reason: String?,
10
- status: String,
11
12
  template_id: String,
12
- template_name: String,
13
- whatsapp_template_id: String
13
+ template_name: String
14
14
  }
15
15
 
16
16
  class TemplateEventPayload < Sentdm::Internal::Type::BaseModel
17
+ attr_accessor status: String
18
+
19
+ attr_accessor whatsapp_template_id: String
20
+
17
21
  attr_reader account_id: String?
18
22
 
19
23
  def account_id=: (String) -> String
@@ -32,10 +36,6 @@ module Sentdm
32
36
 
33
37
  attr_accessor reason: String?
34
38
 
35
- attr_reader status: String?
36
-
37
- def status=: (String) -> String
38
-
39
39
  attr_reader template_id: String?
40
40
 
41
41
  def template_id=: (String) -> String
@@ -44,32 +44,28 @@ module Sentdm
44
44
 
45
45
  def template_name=: (String) -> String
46
46
 
47
- attr_reader whatsapp_template_id: String?
48
-
49
- def whatsapp_template_id=: (String) -> String
50
-
51
47
  def initialize: (
48
+ status: String,
49
+ whatsapp_template_id: String,
52
50
  ?account_id: String,
53
51
  ?category: String,
54
52
  ?channel: String,
55
53
  ?language: String,
56
54
  ?reason: String?,
57
- ?status: String,
58
55
  ?template_id: String,
59
- ?template_name: String,
60
- ?whatsapp_template_id: String
56
+ ?template_name: String
61
57
  ) -> void
62
58
 
63
59
  def to_hash: -> {
60
+ status: String,
61
+ whatsapp_template_id: String,
64
62
  account_id: String,
65
63
  category: String,
66
64
  channel: String,
67
65
  language: String,
68
66
  reason: String?,
69
- status: String,
70
67
  template_id: String,
71
- template_name: String,
72
- whatsapp_template_id: String
68
+ template_name: String
73
69
  }
74
70
  end
75
71
  end