ElasticEmail 4.0.29 โ†’ 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/CODE_OF_CONDUCT.md +132 -0
  3. data/CONTRIBUTING.md +76 -0
  4. data/ElasticEmail.gemspec +2 -2
  5. data/LICENSE +21 -0
  6. data/README.md +171 -64
  7. data/SECURITY.md +31 -0
  8. data/VERSION +1 -1
  9. data/docs/Webhook.md +7 -1
  10. data/docs/WebhookApi.md +72 -0
  11. data/docs/WebhookCreatePayload.md +5 -1
  12. data/docs/WebhookDeliveryMethod.md +15 -0
  13. data/lib/ElasticEmail/api/campaigns_api.rb +1 -1
  14. data/lib/ElasticEmail/api/contacts_api.rb +1 -1
  15. data/lib/ElasticEmail/api/domains_api.rb +1 -1
  16. data/lib/ElasticEmail/api/emails_api.rb +1 -1
  17. data/lib/ElasticEmail/api/events_api.rb +1 -1
  18. data/lib/ElasticEmail/api/files_api.rb +1 -1
  19. data/lib/ElasticEmail/api/inbound_route_api.rb +1 -1
  20. data/lib/ElasticEmail/api/lists_api.rb +1 -1
  21. data/lib/ElasticEmail/api/security_api.rb +1 -1
  22. data/lib/ElasticEmail/api/segments_api.rb +1 -1
  23. data/lib/ElasticEmail/api/statistics_api.rb +1 -1
  24. data/lib/ElasticEmail/api/sub_accounts_api.rb +1 -1
  25. data/lib/ElasticEmail/api/suppressions_api.rb +1 -1
  26. data/lib/ElasticEmail/api/templates_api.rb +1 -1
  27. data/lib/ElasticEmail/api/verifications_api.rb +1 -1
  28. data/lib/ElasticEmail/api/webhook_api.rb +64 -1
  29. data/lib/ElasticEmail/api_client.rb +9 -8
  30. data/lib/ElasticEmail/api_error.rb +1 -1
  31. data/lib/ElasticEmail/configuration.rb +1 -1
  32. data/lib/ElasticEmail/models/access_level.rb +1 -1
  33. data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
  34. data/lib/ElasticEmail/models/api_key.rb +4 -10
  35. data/lib/ElasticEmail/models/api_key_payload.rb +4 -30
  36. data/lib/ElasticEmail/models/body_content_type.rb +1 -1
  37. data/lib/ElasticEmail/models/body_part.rb +4 -20
  38. data/lib/ElasticEmail/models/campaign.rb +4 -30
  39. data/lib/ElasticEmail/models/campaign_options.rb +4 -10
  40. data/lib/ElasticEmail/models/campaign_recipient.rb +4 -10
  41. data/lib/ElasticEmail/models/campaign_status.rb +1 -1
  42. data/lib/ElasticEmail/models/campaign_template.rb +4 -20
  43. data/lib/ElasticEmail/models/certificate_validation_status.rb +1 -1
  44. data/lib/ElasticEmail/models/channel_log_status_summary.rb +4 -10
  45. data/lib/ElasticEmail/models/compression_format.rb +1 -1
  46. data/lib/ElasticEmail/models/consent_data.rb +4 -10
  47. data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
  48. data/lib/ElasticEmail/models/contact.rb +4 -10
  49. data/lib/ElasticEmail/models/contact_activity.rb +4 -10
  50. data/lib/ElasticEmail/models/contact_payload.rb +4 -20
  51. data/lib/ElasticEmail/models/contact_source.rb +1 -1
  52. data/lib/ElasticEmail/models/contact_status.rb +1 -1
  53. data/lib/ElasticEmail/models/contact_update_payload.rb +4 -10
  54. data/lib/ElasticEmail/models/contacts_list.rb +4 -10
  55. data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
  56. data/lib/ElasticEmail/models/dkim_record.rb +4 -10
  57. data/lib/ElasticEmail/models/domain_data.rb +4 -10
  58. data/lib/ElasticEmail/models/domain_detail.rb +4 -10
  59. data/lib/ElasticEmail/models/domain_owner.rb +1 -1
  60. data/lib/ElasticEmail/models/domain_payload.rb +4 -10
  61. data/lib/ElasticEmail/models/domain_update_payload.rb +4 -10
  62. data/lib/ElasticEmail/models/email_content.rb +4 -20
  63. data/lib/ElasticEmail/models/email_data.rb +4 -10
  64. data/lib/ElasticEmail/models/email_job_failed_status.rb +4 -10
  65. data/lib/ElasticEmail/models/email_job_status.rb +4 -10
  66. data/lib/ElasticEmail/models/email_message_data.rb +4 -30
  67. data/lib/ElasticEmail/models/email_predicted_validation_status.rb +1 -1
  68. data/lib/ElasticEmail/models/email_recipient.rb +4 -20
  69. data/lib/ElasticEmail/models/email_send.rb +4 -10
  70. data/lib/ElasticEmail/models/email_status.rb +4 -10
  71. data/lib/ElasticEmail/models/email_transactional_message_data.rb +4 -30
  72. data/lib/ElasticEmail/models/email_validation_result.rb +4 -10
  73. data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
  74. data/lib/ElasticEmail/models/email_view.rb +4 -10
  75. data/lib/ElasticEmail/models/emails_payload.rb +4 -10
  76. data/lib/ElasticEmail/models/encoding_type.rb +1 -1
  77. data/lib/ElasticEmail/models/event_type.rb +1 -1
  78. data/lib/ElasticEmail/models/events_order_by.rb +1 -1
  79. data/lib/ElasticEmail/models/export_file_formats.rb +1 -1
  80. data/lib/ElasticEmail/models/export_link.rb +4 -10
  81. data/lib/ElasticEmail/models/export_status.rb +1 -1
  82. data/lib/ElasticEmail/models/file_info.rb +4 -10
  83. data/lib/ElasticEmail/models/file_payload.rb +4 -20
  84. data/lib/ElasticEmail/models/file_upload_result.rb +4 -10
  85. data/lib/ElasticEmail/models/inbound_payload.rb +4 -50
  86. data/lib/ElasticEmail/models/inbound_route.rb +4 -10
  87. data/lib/ElasticEmail/models/inbound_route_action_type.rb +1 -1
  88. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +1 -1
  89. data/lib/ElasticEmail/models/list_payload.rb +4 -20
  90. data/lib/ElasticEmail/models/list_update_payload.rb +4 -10
  91. data/lib/ElasticEmail/models/log_job_status.rb +1 -1
  92. data/lib/ElasticEmail/models/log_status_summary.rb +4 -10
  93. data/lib/ElasticEmail/models/merge_email_payload.rb +4 -30
  94. data/lib/ElasticEmail/models/message_attachment.rb +4 -30
  95. data/lib/ElasticEmail/models/message_category.rb +1 -1
  96. data/lib/ElasticEmail/models/message_category_enum.rb +1 -1
  97. data/lib/ElasticEmail/models/new_api_key.rb +4 -10
  98. data/lib/ElasticEmail/models/new_smtp_credentials.rb +4 -10
  99. data/lib/ElasticEmail/models/options.rb +4 -10
  100. data/lib/ElasticEmail/models/recipient_event.rb +4 -10
  101. data/lib/ElasticEmail/models/segment.rb +4 -10
  102. data/lib/ElasticEmail/models/segment_payload.rb +4 -30
  103. data/lib/ElasticEmail/models/smtp_credentials.rb +4 -10
  104. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +4 -20
  105. data/lib/ElasticEmail/models/sort_order_item.rb +4 -30
  106. data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
  107. data/lib/ElasticEmail/models/split_options.rb +4 -10
  108. data/lib/ElasticEmail/models/sub_account_info.rb +4 -10
  109. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +4 -20
  110. data/lib/ElasticEmail/models/subaccount_email_settings.rb +4 -10
  111. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +4 -10
  112. data/lib/ElasticEmail/models/subaccount_payload.rb +4 -30
  113. data/lib/ElasticEmail/models/subaccount_settings_info.rb +4 -10
  114. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +4 -10
  115. data/lib/ElasticEmail/models/suppression.rb +4 -10
  116. data/lib/ElasticEmail/models/template.rb +4 -10
  117. data/lib/ElasticEmail/models/template_payload.rb +4 -20
  118. data/lib/ElasticEmail/models/template_scope.rb +1 -1
  119. data/lib/ElasticEmail/models/template_type.rb +1 -1
  120. data/lib/ElasticEmail/models/tracking_type.rb +1 -1
  121. data/lib/ElasticEmail/models/tracking_validation_status.rb +1 -1
  122. data/lib/ElasticEmail/models/transactional_recipient.rb +4 -20
  123. data/lib/ElasticEmail/models/utm.rb +4 -10
  124. data/lib/ElasticEmail/models/verification_file_result.rb +4 -10
  125. data/lib/ElasticEmail/models/verification_file_result_details.rb +4 -10
  126. data/lib/ElasticEmail/models/verification_status.rb +1 -1
  127. data/lib/ElasticEmail/models/webhook.rb +61 -14
  128. data/lib/ElasticEmail/models/webhook_create_payload.rb +52 -34
  129. data/lib/ElasticEmail/models/webhook_delivery_method.rb +40 -0
  130. data/lib/ElasticEmail/models/webhook_update_payload.rb +4 -10
  131. data/lib/ElasticEmail/version.rb +2 -2
  132. data/lib/ElasticEmail.rb +2 -1
  133. data/spec/api/campaigns_api_spec.rb +1 -1
  134. data/spec/api/contacts_api_spec.rb +1 -1
  135. data/spec/api/domains_api_spec.rb +1 -1
  136. data/spec/api/emails_api_spec.rb +1 -1
  137. data/spec/api/events_api_spec.rb +1 -1
  138. data/spec/api/files_api_spec.rb +1 -1
  139. data/spec/api/inbound_route_api_spec.rb +1 -1
  140. data/spec/api/lists_api_spec.rb +1 -1
  141. data/spec/api/security_api_spec.rb +1 -1
  142. data/spec/api/segments_api_spec.rb +1 -1
  143. data/spec/api/statistics_api_spec.rb +1 -1
  144. data/spec/api/sub_accounts_api_spec.rb +1 -1
  145. data/spec/api/suppressions_api_spec.rb +1 -1
  146. data/spec/api/templates_api_spec.rb +1 -1
  147. data/spec/api/verifications_api_spec.rb +1 -1
  148. data/spec/api/webhook_api_spec.rb +13 -1
  149. data/spec/models/access_level_spec.rb +1 -1
  150. data/spec/models/account_status_enum_spec.rb +1 -1
  151. data/spec/models/api_key_payload_spec.rb +1 -1
  152. data/spec/models/api_key_spec.rb +1 -1
  153. data/spec/models/body_content_type_spec.rb +1 -1
  154. data/spec/models/body_part_spec.rb +1 -1
  155. data/spec/models/campaign_options_spec.rb +1 -1
  156. data/spec/models/campaign_recipient_spec.rb +1 -1
  157. data/spec/models/campaign_spec.rb +1 -1
  158. data/spec/models/campaign_status_spec.rb +1 -1
  159. data/spec/models/campaign_template_spec.rb +1 -1
  160. data/spec/models/certificate_validation_status_spec.rb +1 -1
  161. data/spec/models/channel_log_status_summary_spec.rb +1 -1
  162. data/spec/models/compression_format_spec.rb +1 -1
  163. data/spec/models/consent_data_spec.rb +1 -1
  164. data/spec/models/consent_tracking_spec.rb +1 -1
  165. data/spec/models/contact_activity_spec.rb +1 -1
  166. data/spec/models/contact_payload_spec.rb +1 -1
  167. data/spec/models/contact_source_spec.rb +1 -1
  168. data/spec/models/contact_spec.rb +1 -1
  169. data/spec/models/contact_status_spec.rb +1 -1
  170. data/spec/models/contact_update_payload_spec.rb +1 -1
  171. data/spec/models/contacts_list_spec.rb +1 -1
  172. data/spec/models/delivery_optimization_type_spec.rb +1 -1
  173. data/spec/models/dkim_record_spec.rb +1 -1
  174. data/spec/models/domain_data_spec.rb +1 -1
  175. data/spec/models/domain_detail_spec.rb +1 -1
  176. data/spec/models/domain_owner_spec.rb +1 -1
  177. data/spec/models/domain_payload_spec.rb +1 -1
  178. data/spec/models/domain_update_payload_spec.rb +1 -1
  179. data/spec/models/email_content_spec.rb +1 -1
  180. data/spec/models/email_data_spec.rb +1 -1
  181. data/spec/models/email_job_failed_status_spec.rb +1 -1
  182. data/spec/models/email_job_status_spec.rb +1 -1
  183. data/spec/models/email_message_data_spec.rb +1 -1
  184. data/spec/models/email_predicted_validation_status_spec.rb +1 -1
  185. data/spec/models/email_recipient_spec.rb +1 -1
  186. data/spec/models/email_send_spec.rb +1 -1
  187. data/spec/models/email_status_spec.rb +1 -1
  188. data/spec/models/email_transactional_message_data_spec.rb +1 -1
  189. data/spec/models/email_validation_result_spec.rb +1 -1
  190. data/spec/models/email_validation_status_spec.rb +1 -1
  191. data/spec/models/email_view_spec.rb +1 -1
  192. data/spec/models/emails_payload_spec.rb +1 -1
  193. data/spec/models/encoding_type_spec.rb +1 -1
  194. data/spec/models/event_type_spec.rb +1 -1
  195. data/spec/models/events_order_by_spec.rb +1 -1
  196. data/spec/models/export_file_formats_spec.rb +1 -1
  197. data/spec/models/export_link_spec.rb +1 -1
  198. data/spec/models/export_status_spec.rb +1 -1
  199. data/spec/models/file_info_spec.rb +1 -1
  200. data/spec/models/file_payload_spec.rb +1 -1
  201. data/spec/models/file_upload_result_spec.rb +1 -1
  202. data/spec/models/inbound_payload_spec.rb +1 -1
  203. data/spec/models/inbound_route_action_type_spec.rb +1 -1
  204. data/spec/models/inbound_route_filter_type_spec.rb +1 -1
  205. data/spec/models/inbound_route_spec.rb +1 -1
  206. data/spec/models/list_payload_spec.rb +1 -1
  207. data/spec/models/list_update_payload_spec.rb +1 -1
  208. data/spec/models/log_job_status_spec.rb +1 -1
  209. data/spec/models/log_status_summary_spec.rb +1 -1
  210. data/spec/models/merge_email_payload_spec.rb +1 -1
  211. data/spec/models/message_attachment_spec.rb +1 -1
  212. data/spec/models/message_category_enum_spec.rb +1 -1
  213. data/spec/models/message_category_spec.rb +1 -1
  214. data/spec/models/new_api_key_spec.rb +1 -1
  215. data/spec/models/new_smtp_credentials_spec.rb +1 -1
  216. data/spec/models/options_spec.rb +1 -1
  217. data/spec/models/recipient_event_spec.rb +1 -1
  218. data/spec/models/segment_payload_spec.rb +1 -1
  219. data/spec/models/segment_spec.rb +1 -1
  220. data/spec/models/smtp_credentials_payload_spec.rb +1 -1
  221. data/spec/models/smtp_credentials_spec.rb +1 -1
  222. data/spec/models/sort_order_item_spec.rb +1 -1
  223. data/spec/models/split_optimization_type_spec.rb +1 -1
  224. data/spec/models/split_options_spec.rb +1 -1
  225. data/spec/models/sub_account_info_spec.rb +1 -1
  226. data/spec/models/subaccount_email_credits_payload_spec.rb +1 -1
  227. data/spec/models/subaccount_email_settings_payload_spec.rb +1 -1
  228. data/spec/models/subaccount_email_settings_spec.rb +1 -1
  229. data/spec/models/subaccount_payload_spec.rb +1 -1
  230. data/spec/models/subaccount_settings_info_payload_spec.rb +1 -1
  231. data/spec/models/subaccount_settings_info_spec.rb +1 -1
  232. data/spec/models/suppression_spec.rb +1 -1
  233. data/spec/models/template_payload_spec.rb +1 -1
  234. data/spec/models/template_scope_spec.rb +1 -1
  235. data/spec/models/template_spec.rb +1 -1
  236. data/spec/models/template_type_spec.rb +1 -1
  237. data/spec/models/tracking_type_spec.rb +1 -1
  238. data/spec/models/tracking_validation_status_spec.rb +1 -1
  239. data/spec/models/transactional_recipient_spec.rb +1 -1
  240. data/spec/models/utm_spec.rb +1 -1
  241. data/spec/models/verification_file_result_details_spec.rb +1 -1
  242. data/spec/models/verification_file_result_spec.rb +1 -1
  243. data/spec/models/verification_status_spec.rb +1 -1
  244. data/spec/models/webhook_create_payload_spec.rb +13 -1
  245. data/spec/models/webhook_delivery_method_spec.rb +30 -0
  246. data/spec/models/webhook_spec.rb +19 -1
  247. data/spec/models/webhook_update_payload_spec.rb +1 -1
  248. data/spec/spec_helper.rb +1 -1
  249. metadata +110 -102
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59705a70ea428595c16c3ef845e70eedc79052b11e390376fc15f6e2656a9998
4
- data.tar.gz: fc78dceec1fa757ca56ce642233b64f3d39c9320fea82d0c96fb95f04589b8bd
3
+ metadata.gz: 1e417f9c1ee7940472a88fcdf9932097a34b31dd40df9d079a57d13fca54843d
4
+ data.tar.gz: 1abc27316361fd6f040fd04287004f02a4252a548a0fe40560c21d28e1aa78b3
5
5
  SHA512:
6
- metadata.gz: 896859eac4d297d086b72556c9557fe1587910a7a53dc32fc4a62f76abc79a68c78e4904dc730067b46456255f8146a3234a2bf9da3c467db1512c661107d339
7
- data.tar.gz: 0467c882f5050392dfd711a307cdd47550e3611d2d47a45fd62f3f3280942e1f0861aa705e4ec2306c44bc64da933b5561149783e2c18d6575200528b76730ef
6
+ metadata.gz: 6c096bec79e40c92f32fcf76fd0b41bf4b31d01450c7027431fd61dc872c9ae3303bcc292b5aacb26bcd2ce9ef1b971c4525591bb4ad3f6dbdd446f21f541e19
7
+ data.tar.gz: d02916126ff5c251304599e06cd1355e4afbc010d2794471fc7650af2adcc91efa80c78d36f8775839c6fa2f9fb68b30d5ed96ae64a5f8320613e9a88d173463
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ **integrations@elasticemail.com**.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,76 @@
1
+ # Contributing to the Elastic Email Ruby SDK
2
+
3
+ Thanks for taking the time to contribute! This document explains how to report problems, suggest changes and submit pull requests.
4
+
5
+ ## Before you start: this SDK is generated
6
+
7
+ Almost everything in this repository (`lib/ElasticEmail/api`, `lib/ElasticEmail/models`, the client files in `lib/ElasticEmail`, `spec/`, `docs/` and most of `README.md`) is generated by [OpenAPI Generator](https://openapi-generator.tech) from the Elastic Email API specification.
8
+
9
+ This means:
10
+
11
+ - **Manual edits to generated files will be overwritten** by the next release.
12
+ - If an endpoint, model, parameter or description is wrong or missing, the fix belongs in the API specification. Please [open an issue](https://github.com/ElasticEmail/elasticemail-ruby/issues/new/choose) describing the problem. We'll fix it upstream and regenerate the SDK.
13
+ - Pull requests are most useful for non-generated content: documentation, examples, tests, build and CI configuration, and repository tooling.
14
+
15
+ If you're not sure whether something is generated, open an issue first and ask.
16
+
17
+ ## Reporting bugs
18
+
19
+ Search [existing issues](https://github.com/ElasticEmail/elasticemail-ruby/issues) first. If nothing matches, open a new issue using the **Bug report** template and include:
20
+
21
+ - SDK version (from RubyGems, e.g. `4.3.0`; run `gem list ElasticEmail`)
22
+ - Ruby version (`ruby -v`)
23
+ - The API method you called and a minimal code sample
24
+ - The full error message, HTTP status code and response body (`ElasticEmail::ApiError#code` and `#response_body`)
25
+
26
+ **Never paste your API key** into an issue, log or code sample.
27
+
28
+ Questions about your Elastic Email account, sending limits, deliverability or billing aren't handled in this repository. The preferred way to get help is the **chat widget on [elasticemail.com](https://elasticemail.com)**.
29
+
30
+ Looking for sample code? See the [Elastic Email examples repository](https://github.com/ElasticEmail/elasticemail-examples), including the [Ruby examples](https://github.com/ElasticEmail/elasticemail-examples/tree/main/ruby-elasticemail-examples).
31
+
32
+ ## Suggesting features
33
+
34
+ Open an issue using the **Feature request** template. Describe the use case first and the solution second. It helps us decide whether the change belongs in the API, the SDK or the documentation.
35
+
36
+ ## Security issues
37
+
38
+ Please do **not** report security vulnerabilities in public issues. See [SECURITY.md](SECURITY.md).
39
+
40
+ ## Development setup
41
+
42
+ Requirements: Ruby 2.7 or later and [Bundler](https://bundler.io).
43
+
44
+ ```bash
45
+ git clone https://github.com/ElasticEmail/elasticemail-ruby.git
46
+ cd elasticemail-ruby
47
+ bundle install
48
+ bundle exec rspec
49
+ ```
50
+
51
+ To build and install the gem locally:
52
+
53
+ ```bash
54
+ gem build ElasticEmail.gemspec
55
+ gem install ./ElasticEmail-4.3.0.gem
56
+ ```
57
+
58
+ Keep the gem compatible with Ruby 2.7 and don't add new runtime dependencies without discussing it in an issue first.
59
+
60
+ ## Pull requests
61
+
62
+ 1. Fork the repository and create a branch from `master` (`git checkout -b fix/short-description`).
63
+ 2. Keep each change focused. One logical change per pull request.
64
+ 3. Make sure `bundle exec rspec` and `gem build ElasticEmail.gemspec` pass.
65
+ 4. Update documentation if your change affects how the SDK is used.
66
+ 5. Open a pull request against `master` and fill in the template.
67
+
68
+ A maintainer will review your pull request and may ask for changes. When a change touches generated code, we may apply it upstream instead of merging the PR directly. You'll still get credit in the release notes.
69
+
70
+ ## Code of Conduct
71
+
72
+ This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating, you agree to uphold it.
73
+
74
+ ## License
75
+
76
+ By contributing, you agree that your contributions will be licensed under the [MIT License](LICENSE).
data/ElasticEmail.gemspec CHANGED
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 4.0.0
9
9
  Contact: support@elasticemail.com
10
10
  Generated by: https://openapi-generator.tech
11
- Generator version: 7.14.0
11
+ Generator version: 7.11.0
12
12
 
13
13
  =end
14
14
 
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.homepage = "https://elasticemail.com"
25
25
  s.summary = "Elastic Email REST API Ruby Gem"
26
26
  s.description = "The Ruby library for the Elastic Email REST API. This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. To start using this API, you will need your Access Token. Remember to keep it safe."
27
- s.license = "Unlicense"
27
+ s.license = "MIT"
28
28
  s.required_ruby_version = ">= 2.7"
29
29
  s.metadata = {}
30
30
 
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021-2026 Elastic Email
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,94 +1,166 @@
1
- # ElasticEmail
1
+ <div align="center">
2
2
 
3
- ElasticEmail - the Ruby gem for the Elastic Email REST API
3
+ <img src=".github/ee-logo.png" alt="Elastic Email" width="96" />
4
4
 
5
- This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach.
6
-
7
- Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used.
8
-
9
- The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request.
10
-
11
- To start using this API, you will need your Access Token (available <a target='_blank' href='https://app.elasticemail.com/marketing/settings/new/manage-api'>here</a>). Remember to keep it safe. Required access levels are listed in the given requestโ€™s description.
12
-
13
- Downloadable library clients can be found in our Github repository <a target='_blank' href='https://github.com/ElasticEmail/elasticemail-ruby'>here</a>
5
+ # Elastic Email Ruby SDK
14
6
 
15
- This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
7
+ The official Ruby client library for the [Elastic Email](https://elasticemail.com) REST API v4.
16
8
 
17
- - API version: 4.0.0
18
- - Package version: 4.0.29
19
- - Generator version: 7.14.0
20
- - Build package: org.openapitools.codegen.languages.RubyClientCodegen
9
+ [![RubyGems](https://img.shields.io/gem/v/ElasticEmail?logo=rubygems&logoColor=white&label=RubyGems&color=E9573F)](https://rubygems.org/gems/ElasticEmail)
10
+ [![RubyGems downloads](https://img.shields.io/gem/dt/ElasticEmail?logo=rubygems&logoColor=white&label=downloads&color=E9573F)](https://rubygems.org/gems/ElasticEmail)
11
+ [![Ruby](https://img.shields.io/badge/Ruby-2.7%2B-CC342D?logo=ruby&logoColor=white)](https://www.ruby-lang.org/en/downloads/branches/)
12
+ [![API](https://img.shields.io/badge/API-v4-0A7BBB)](https://elasticemail.com/developers/api-documentation/rest-api)
13
+ [![OpenAPI Generator](https://img.shields.io/badge/generated%20by-OpenAPI%20Generator-6BA539?logo=openapiinitiative&logoColor=white)](https://openapi-generator.tech)
14
+ [![License: MIT](https://img.shields.io/github/license/ElasticEmail/elasticemail-ruby?color=yellow)](LICENSE)
21
15
 
22
- ## Installation
16
+ [![Latest release](https://img.shields.io/github/v/release/ElasticEmail/elasticemail-ruby?logo=github&label=release)](https://github.com/ElasticEmail/elasticemail-ruby/releases)
17
+ [![Last commit](https://img.shields.io/github/last-commit/ElasticEmail/elasticemail-ruby?logo=github)](https://github.com/ElasticEmail/elasticemail-ruby/commits/master)
18
+ [![Open issues](https://img.shields.io/github/issues/ElasticEmail/elasticemail-ruby?logo=github)](https://github.com/ElasticEmail/elasticemail-ruby/issues)
19
+ [![GitHub stars](https://img.shields.io/github/stars/ElasticEmail/elasticemail-ruby?style=flat&logo=github)](https://github.com/ElasticEmail/elasticemail-ruby/stargazers)
23
20
 
24
- ### Build a gem
21
+ [Installation](#installation) โ€ข
22
+ [Quick start](#quick-start) โ€ข
23
+ [Examples](#more-examples) โ€ข
24
+ [API reference](#api-reference) โ€ข
25
+ [Models](#models) โ€ข
26
+ [Contributing](#contributing)
25
27
 
26
- To build the Ruby code into a gem:
28
+ </div>
27
29
 
28
- ```shell
29
- gem build ElasticEmail.gemspec
30
- ```
30
+ ---
31
31
 
32
- Then either install the gem locally:
32
+ ## Features
33
33
 
34
- ```shell
35
- gem install ./ElasticEmail-4.0.29.gem
36
- ```
34
+ - **Transactional and bulk email.** Send single messages, bulk campaigns or CSV merge-file sends.
35
+ - **Contacts, lists and segments.** Add, update, import, export and bulk-delete contacts.
36
+ - **Campaigns and automations.** Create, update, pause and trigger automations for a contact.
37
+ - **Templates, files and attachments.** Manage templates and uploaded files.
38
+ - **Domains.** Verify sending domains and check SPF, DKIM, tracking and certificate status.
39
+ - **Webhooks and inbound routes.** Receive delivery events and route incoming mail.
40
+ - **Statistics, events and suppressions.** Track delivery, bounces, complaints and unsubscribes.
41
+ - **Subaccounts and security.** Manage subaccounts and API keys.
42
+ - **Plain Ruby objects.** Models are built from keyword hashes with snake_case keys, and every call has a `โ€ฆ_with_http_info` variant that also returns the status code and headers.
37
43
 
38
- (for development, run `gem install --dev ./ElasticEmail-4.0.29.gem` to install the development dependencies)
44
+ ## Requirements
39
45
 
40
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
46
+ | Dependency | Version |
47
+ | --- | --- |
48
+ | Ruby | 2.7 or later |
49
+ | [Typhoeus](https://rubygems.org/gems/typhoeus) | `~> 1.0` (installed automatically) |
41
50
 
42
- Finally add this to the Gemfile:
51
+ You'll also need an Elastic Email **API key**. You can create one in your [API settings](https://app.elasticemail.com/marketing/settings/new/manage-api). Each endpoint's documentation lists the access level it needs.
43
52
 
44
- gem 'ElasticEmail', '~> 4.0.29'
53
+ ## Installation
45
54
 
46
- ### Install from Git
55
+ Install the [`ElasticEmail`](https://rubygems.org/gems/ElasticEmail) gem from RubyGems:
47
56
 
48
- If the Ruby gem is hosted at a git repository: https://github.com/elasticemail/elasticemail-ruby, then add the following in the Gemfile:
57
+ ```bash
58
+ gem install ElasticEmail
59
+ ```
49
60
 
50
- gem 'ElasticEmail', :git => 'https://github.com/elasticemail/elasticemail-ruby.git'
61
+ Or add it to your `Gemfile`:
51
62
 
52
- ### Include the Ruby code directly
63
+ ```ruby
64
+ gem 'ElasticEmail', '~> 4.3'
65
+ ```
53
66
 
54
- Include the Ruby code directly using `-I` as follows:
67
+ and run `bundle install`. RubyGems installs the dependency ([Typhoeus](https://rubygems.org/gems/typhoeus)) for you.
55
68
 
56
- ```shell
57
- ruby -Ilib script.rb
58
- ```
69
+ ## Quick start
59
70
 
60
- ## Getting Started
71
+ > [!IMPORTANT]
72
+ > Elastic Email only sends from verified domains. Before your first send, [verify your sending domain](https://help.elasticemail.com/en/articles/4934400-how-to-verify-your-domain) and use an address on that domain as the sender.
61
73
 
62
- Please follow the [installation](#installation) procedure and then run the following code:
74
+ ### Configure the client
63
75
 
64
76
  ```ruby
65
- # Load the gem
66
77
  require 'ElasticEmail'
67
78
 
68
- # Setup authorization
69
79
  ElasticEmail.configure do |config|
70
- # Configure API key authorization: apikey
71
- config.api_key['X-ElasticEmail-ApiKey'] = 'YOUR API KEY'
72
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
73
- # config.api_key_prefix['X-ElasticEmail-ApiKey'] = 'Bearer'
80
+ config.api_key['X-ElasticEmail-ApiKey'] = ENV.fetch('ELASTICEMAIL_API_KEY')
74
81
  end
82
+ ```
83
+
84
+ > [!TIP]
85
+ > Keep your API key out of source code. Load it from an environment variable, Rails credentials or a secrets manager.
75
86
 
76
- api_instance = ElasticEmail::CampaignsApi.new
77
- name = 'name_example' # String |
78
- contact_email = 'contact_email_example' # String |
87
+ ### Send a transactional email
88
+
89
+ ```ruby
90
+ emails = ElasticEmail::EmailsApi.new
91
+
92
+ message = ElasticEmail::EmailTransactionalMessageData.new(
93
+ recipients: ElasticEmail::TransactionalRecipient.new(to: ['john.doe@example.com']),
94
+ content: ElasticEmail::EmailContent.new(
95
+ from: 'My App <no-reply@yourdomain.com>',
96
+ subject: 'Welcome aboard!',
97
+ body: [
98
+ ElasticEmail::BodyPart.new(content_type: ElasticEmail::BodyContentType::HTML, content: '<h1>Hello!</h1><p>Thanks for signing up.</p>'),
99
+ ElasticEmail::BodyPart.new(content_type: ElasticEmail::BodyContentType::PLAIN_TEXT, content: 'Hello! Thanks for signing up.')
100
+ ]
101
+ )
102
+ )
79
103
 
80
104
  begin
81
- #Trigger Automation for Contact
82
- api_instance.campaigns_automation_by_name_trigger_post(name, contact_email)
105
+ result = emails.emails_transactional_post(message)
106
+ puts "Sent. TransactionID: #{result.transaction_id}, MessageID: #{result.message_id}"
83
107
  rescue ElasticEmail::ApiError => e
84
- puts "Exception when calling CampaignsApi->campaigns_automation_by_name_trigger_post: #{e}"
108
+ puts "Elastic Email API error #{e.code}: #{e.response_body}"
85
109
  end
110
+ ```
111
+
112
+ The `from` address must use a domain you've [verified in your Elastic Email account](https://help.elasticemail.com/en/articles/4934400-how-to-verify-your-domain).
113
+
114
+ ### Send from a template with merge fields
86
115
 
116
+ ```ruby
117
+ message = ElasticEmail::EmailTransactionalMessageData.new(
118
+ recipients: ElasticEmail::TransactionalRecipient.new(to: ['john.doe@example.com']),
119
+ content: ElasticEmail::EmailContent.new(
120
+ from: 'My App <no-reply@yourdomain.com>',
121
+ template_name: 'welcome-template',
122
+ merge: { 'firstname' => 'John' }
123
+ )
124
+ )
125
+
126
+ emails.emails_transactional_post(message)
87
127
  ```
88
128
 
129
+ ### Timeouts, debugging and SSL
89
130
 
131
+ ```ruby
132
+ ElasticEmail.configure do |config|
133
+ config.timeout = 30 # seconds; 0 (default) means no timeout
134
+ config.debugging = true # log requests and responses to config.logger
135
+ config.ssl_ca_cert = '/path/to/ca-bundle.crt'
136
+ end
137
+ ```
90
138
 
91
- All URIs are relative to *https://api.elasticemail.com/v4*
139
+ ## More examples
140
+
141
+ More complete, runnable samples are in the **[Elastic Email examples repository](https://github.com/ElasticEmail/elasticemail-examples)**. It covers transactional email, SMTP, webhooks, inbound email, contacts and serverless platforms across 20+ languages and frameworks.
142
+
143
+ - ๐Ÿ’Ž [Ruby examples](https://github.com/ElasticEmail/elasticemail-examples/tree/main/ruby-elasticemail-examples)
144
+ - ๐Ÿ“‚ [All examples](https://github.com/ElasticEmail/elasticemail-examples)
145
+
146
+ ## Authentication
147
+
148
+ | Scheme | Header | Used for |
149
+ | --- | --- | --- |
150
+ | `apikey` | `X-ElasticEmail-ApiKey` | All standard API calls |
151
+ | `ApiKeyAuthCustomBranding` | `X-Auth-Token` | Custom-branding (white-label) accounts |
152
+
153
+ ## API limits
154
+
155
+ - Up to **20 concurrent connections** per account
156
+ - A hard timeout of **600 seconds** per request
157
+
158
+ ## API reference
159
+
160
+ All URIs are relative to `https://api.elasticemail.com/v4`. The SDK covers **115 endpoints** across 16 API classes: `CampaignsApi`, `ContactsApi`, `DomainsApi`, `EmailsApi`, `EventsApi`, `FilesApi`, `InboundRouteApi`, `ListsApi`, `SecurityApi`, `SegmentsApi`, `StatisticsApi`, `SubAccountsApi`, `SuppressionsApi`, `TemplatesApi`, `VerificationsApi` and `WebhookApi`, all in the `ElasticEmail` module.
161
+
162
+ <details>
163
+ <summary><strong>Show all endpoints</strong></summary>
92
164
 
93
165
  Class | Method | HTTP request | Description
94
166
  ------------ | ------------- | ------------- | -------------
@@ -204,11 +276,16 @@ Class | Method | HTTP request | Description
204
276
  *ElasticEmail::WebhookApi* | [**webhook_by_publicid_delete**](docs/WebhookApi.md#webhook_by_publicid_delete) | **DELETE** /webhook/{publicid} | Delete Webhook
205
277
  *ElasticEmail::WebhookApi* | [**webhook_by_publicid_get**](docs/WebhookApi.md#webhook_by_publicid_get) | **GET** /webhook/{publicid} | Load Webhook
206
278
  *ElasticEmail::WebhookApi* | [**webhook_by_publicid_put**](docs/WebhookApi.md#webhook_by_publicid_put) | **PUT** /webhook/{publicid} | Update Webhook
279
+ *ElasticEmail::WebhookApi* | [**webhook_by_publicid_secret_rotate_post**](docs/WebhookApi.md#webhook_by_publicid_secret_rotate_post) | **POST** /webhook/{publicid}/secret/rotate | Rotate Webhook Secret
207
280
  *ElasticEmail::WebhookApi* | [**webhook_get**](docs/WebhookApi.md#webhook_get) | **GET** /webhook | Load Webhooks
208
281
  *ElasticEmail::WebhookApi* | [**webhook_post**](docs/WebhookApi.md#webhook_post) | **POST** /webhook | Add Webhook
209
282
 
283
+ </details>
284
+
285
+ ## Models
210
286
 
211
- ## Documentation for Models
287
+ <details>
288
+ <summary><strong>Show all 99 models</strong></summary>
212
289
 
213
290
  - [ElasticEmail::AccessLevel](docs/AccessLevel.md)
214
291
  - [ElasticEmail::AccountStatusEnum](docs/AccountStatusEnum.md)
@@ -307,24 +384,54 @@ Class | Method | HTTP request | Description
307
384
  - [ElasticEmail::VerificationStatus](docs/VerificationStatus.md)
308
385
  - [ElasticEmail::Webhook](docs/Webhook.md)
309
386
  - [ElasticEmail::WebhookCreatePayload](docs/WebhookCreatePayload.md)
387
+ - [ElasticEmail::WebhookDeliveryMethod](docs/WebhookDeliveryMethod.md)
310
388
  - [ElasticEmail::WebhookUpdatePayload](docs/WebhookUpdatePayload.md)
311
389
 
390
+ </details>
391
+
392
+ ## Tests
393
+
394
+ The `spec/` folder has generated RSpec specs for every API class and model:
395
+
396
+ ```bash
397
+ bundle install
398
+ bundle exec rspec
399
+ ```
400
+
401
+ ## Versioning
402
+
403
+ The SDK follows the Elastic Email API v4. Package versions and release notes are listed on [RubyGems](https://rubygems.org/gems/ElasticEmail/versions) and in [GitHub Releases](https://github.com/ElasticEmail/elasticemail-ruby/releases).
404
+
405
+ <details>
406
+ <summary>Build details</summary>
407
+
408
+ - API version: 4.0.0
409
+ - SDK version: 4.3.0
410
+ - Generator version: 7.11.0
411
+ - Build package: `org.openapitools.codegen.languages.RubyClientCodegen`
412
+
413
+ </details>
312
414
 
313
- ## Documentation for Authorization
415
+ ## Contributing
314
416
 
417
+ Contributions are welcome! Most of this SDK is generated from the Elastic Email OpenAPI specification, so please read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request.
315
418
 
316
- Authentication schemes defined for the API:
317
- ### apikey
419
+ - ๐Ÿ› [Report a bug](https://github.com/ElasticEmail/elasticemail-ruby/issues/new?template=bug_report.md)
420
+ - ๐Ÿ’ก [Request a feature](https://github.com/ElasticEmail/elasticemail-ruby/issues/new?template=feature_request.md)
421
+ - ๐Ÿ”’ [Report a security issue](SECURITY.md)
318
422
 
423
+ This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md).
319
424
 
320
- - **Type**: API key
321
- - **API key parameter name**: X-ElasticEmail-ApiKey
322
- - **Location**: HTTP header
425
+ ## Support
323
426
 
324
- ### ApiKeyAuthCustomBranding
427
+ > [!IMPORTANT]
428
+ > The fastest way to get help is the **chat widget on [elasticemail.com](https://elasticemail.com)**. Our support team can help with your account, sending, deliverability and API questions.
325
429
 
430
+ - ๐Ÿ’ฌ [Chat with support on elasticemail.com](https://elasticemail.com) (preferred)
431
+ - ๐Ÿ“š [API documentation](https://elasticemail.com/developers/api-documentation/rest-api)
432
+ - ๐Ÿงช [Examples repository](https://github.com/ElasticEmail/elasticemail-examples)
433
+ - ๐Ÿ› [GitHub issues](https://github.com/ElasticEmail/elasticemail-ruby/issues), for bugs in this SDK only
326
434
 
327
- - **Type**: API key
328
- - **API key parameter name**: X-Auth-Token
329
- - **Location**: HTTP header
435
+ ## License
330
436
 
437
+ Released under the [MIT License](LICENSE). Copyright ยฉ 2021โ€“2026 Elastic Email.
data/SECURITY.md ADDED
@@ -0,0 +1,31 @@
1
+ # Security Policy
2
+
3
+ ## Supported versions
4
+
5
+ Security fixes are released for the latest published version of the [`ElasticEmail`](https://rubygems.org/gems/ElasticEmail) gem on RubyGems. Please upgrade to the latest version before reporting an issue.
6
+
7
+ | Version | Supported |
8
+ | ------- | ------------------ |
9
+ | 4.2.x | :white_check_mark: |
10
+ | < 4.2 | :x: |
11
+
12
+ ## Reporting a vulnerability
13
+
14
+ **Please do not open a public GitHub issue for security vulnerabilities.**
15
+
16
+ Report them privately by one of these methods:
17
+
18
+ - [GitHub private vulnerability reporting](https://github.com/ElasticEmail/elasticemail-ruby/security/advisories/new)
19
+ - Email **integrations@elasticemail.com** with the subject `Security: elasticemail-ruby`
20
+
21
+ Please include:
22
+
23
+ - A description of the issue and its impact
24
+ - Steps to reproduce, or a proof of concept
25
+ - The affected SDK version(s)
26
+
27
+ We will acknowledge your report, investigate, and keep you updated on the fix. Please give us reasonable time to release a fix before disclosing the issue publicly.
28
+
29
+ ## API key safety
30
+
31
+ If you think an API key has been exposed (in a commit, log, issue or screenshot), revoke it right away in your [Elastic Email API settings](https://app.elasticemail.com/marketing/settings/new/manage-api) and create a new one.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.29
1
+ 4.3.0
data/docs/Webhook.md CHANGED
@@ -17,6 +17,9 @@
17
17
  | **notification_for_abuse_report** | **Boolean** | | [optional] |
18
18
  | **notification_for_error** | **Boolean** | | [optional] |
19
19
  | **is_enabled** | **Boolean** | | [optional] |
20
+ | **signing_enabled** | **Boolean** | Requests carry an HMAC-SHA256 signature. Chosen when the webhook is created and can&#39;t be changed. | [optional] |
21
+ | **delivery_method** | [**WebhookDeliveryMethod**](WebhookDeliveryMethod.md) | | [optional][default to &#39;Get&#39;] |
22
+ | **signing_secret** | **String** | Signing secret - returned only once, when a webhook is created with signing or its secret is rotated. Store it safely. | [optional] |
20
23
 
21
24
  ## Example
22
25
 
@@ -36,7 +39,10 @@ instance = ElasticEmail::Webhook.new(
36
39
  notification_for_unsubscribed: null,
37
40
  notification_for_abuse_report: null,
38
41
  notification_for_error: null,
39
- is_enabled: null
42
+ is_enabled: null,
43
+ signing_enabled: null,
44
+ delivery_method: null,
45
+ signing_secret: null
40
46
  )
41
47
  ```
42
48