mailslurp_client 13.0.1 → 14.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/alias_controller_api.rb +19 -1
  3. data/lib/mailslurp_client/api/attachment_controller_api.rb +7 -1
  4. data/lib/mailslurp_client/api/bounce_controller_api.rb +13 -1
  5. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +1 -1
  6. data/lib/mailslurp_client/api/common_actions_controller_api.rb +45 -1
  7. data/lib/mailslurp_client/api/contact_controller_api.rb +7 -1
  8. data/lib/mailslurp_client/api/domain_controller_api.rb +1 -1
  9. data/lib/mailslurp_client/api/email_controller_api.rb +17 -5
  10. data/lib/mailslurp_client/api/expired_controller_api.rb +7 -1
  11. data/lib/mailslurp_client/api/export_controller_api.rb +1 -1
  12. data/lib/mailslurp_client/api/form_controller_api.rb +1 -1
  13. data/lib/mailslurp_client/api/group_controller_api.rb +13 -1
  14. data/lib/mailslurp_client/api/inbox_controller_api.rb +111 -7
  15. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +7 -1
  16. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +7 -1
  17. data/lib/mailslurp_client/api/mail_server_controller_api.rb +1 -1
  18. data/lib/mailslurp_client/api/missed_email_controller_api.rb +94 -1
  19. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +25 -1
  20. data/lib/mailslurp_client/api/template_controller_api.rb +81 -7
  21. data/lib/mailslurp_client/api/tracking_controller_api.rb +7 -1
  22. data/lib/mailslurp_client/api/wait_for_controller_api.rb +22 -7
  23. data/lib/mailslurp_client/api/webhook_controller_api.rb +386 -8
  24. data/lib/mailslurp_client/api_client.rb +1 -1
  25. data/lib/mailslurp_client/api_error.rb +1 -1
  26. data/lib/mailslurp_client/configuration.rb +1 -1
  27. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +3 -3
  28. data/lib/mailslurp_client/models/alias_dto.rb +1 -1
  29. data/lib/mailslurp_client/models/alias_projection.rb +1 -1
  30. data/lib/mailslurp_client/models/attachment_entity.rb +1 -1
  31. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  32. data/lib/mailslurp_client/models/attachment_projection.rb +1 -1
  33. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
  34. data/lib/mailslurp_client/models/bounce_projection.rb +1 -1
  35. data/lib/mailslurp_client/models/bounce_recipient.rb +1 -1
  36. data/lib/mailslurp_client/models/bounced_email_dto.rb +1 -1
  37. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +1 -1
  38. data/lib/mailslurp_client/models/bulk_send_email_options.rb +1 -1
  39. data/lib/mailslurp_client/models/condition_option.rb +1 -1
  40. data/lib/mailslurp_client/models/contact_dto.rb +1 -1
  41. data/lib/mailslurp_client/models/contact_projection.rb +1 -1
  42. data/lib/mailslurp_client/models/content_match_options.rb +1 -1
  43. data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
  44. data/lib/mailslurp_client/models/create_contact_options.rb +1 -1
  45. data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
  46. data/lib/mailslurp_client/models/create_group_options.rb +1 -1
  47. data/lib/mailslurp_client/models/create_inbox_dto.rb +2 -2
  48. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +18 -29
  49. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +1 -1
  50. data/lib/mailslurp_client/models/create_template_options.rb +1 -1
  51. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  52. data/lib/mailslurp_client/models/create_webhook_options.rb +3 -3
  53. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
  54. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -1
  55. data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
  56. data/lib/mailslurp_client/models/dns_lookup_result.rb +1 -1
  57. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
  58. data/lib/mailslurp_client/models/domain_dto.rb +1 -1
  59. data/lib/mailslurp_client/models/domain_name_record.rb +1 -1
  60. data/lib/mailslurp_client/models/domain_preview.rb +1 -1
  61. data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
  62. data/lib/mailslurp_client/models/email.rb +29 -11
  63. data/lib/mailslurp_client/models/email_analysis.rb +1 -1
  64. data/lib/mailslurp_client/models/email_content_match_result.rb +1 -1
  65. data/lib/mailslurp_client/models/email_links_result.rb +1 -1
  66. data/lib/mailslurp_client/models/email_preview.rb +7 -7
  67. data/lib/mailslurp_client/models/email_projection.rb +1 -1
  68. data/lib/mailslurp_client/models/email_recipients.rb +230 -0
  69. data/lib/mailslurp_client/models/email_text_lines_result.rb +1 -1
  70. data/lib/mailslurp_client/models/email_verification_result.rb +2 -2
  71. data/lib/mailslurp_client/models/expiration_defaults.rb +19 -5
  72. data/lib/mailslurp_client/models/expired_inbox_dto.rb +1 -1
  73. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +1 -1
  74. data/lib/mailslurp_client/models/export_link.rb +1 -1
  75. data/lib/mailslurp_client/models/export_options.rb +1 -1
  76. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +227 -0
  77. data/lib/mailslurp_client/models/forward_email_options.rb +1 -1
  78. data/lib/mailslurp_client/models/gravatar_url.rb +1 -1
  79. data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -1
  80. data/lib/mailslurp_client/models/group_dto.rb +1 -1
  81. data/lib/mailslurp_client/models/group_projection.rb +1 -1
  82. data/lib/mailslurp_client/models/html_validation_result.rb +1 -1
  83. data/lib/mailslurp_client/models/inbox.rb +1 -1
  84. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +1 -1
  85. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
  86. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -1
  87. data/lib/mailslurp_client/models/{inbox_projection.rb → inbox_preview.rb} +23 -25
  88. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -1
  89. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
  90. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -1
  91. data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
  92. data/lib/mailslurp_client/models/json_schema_dto.rb +211 -0
  93. data/lib/mailslurp_client/models/match_option.rb +1 -1
  94. data/lib/mailslurp_client/models/match_options.rb +1 -1
  95. data/lib/mailslurp_client/models/missed_email.rb +1 -6
  96. data/lib/mailslurp_client/models/missed_email_projection.rb +1 -6
  97. data/lib/mailslurp_client/models/name_server_record.rb +1 -1
  98. data/lib/mailslurp_client/models/organization_inbox_projection.rb +1 -1
  99. data/lib/mailslurp_client/models/page_alias.rb +1 -1
  100. data/lib/mailslurp_client/models/page_attachment_entity.rb +1 -1
  101. data/lib/mailslurp_client/models/page_bounced_email.rb +1 -1
  102. data/lib/mailslurp_client/models/page_bounced_recipients.rb +1 -1
  103. data/lib/mailslurp_client/models/page_contact_projection.rb +1 -1
  104. data/lib/mailslurp_client/models/page_email_preview.rb +1 -1
  105. data/lib/mailslurp_client/models/page_email_projection.rb +1 -1
  106. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +1 -1
  107. data/lib/mailslurp_client/models/page_group_projection.rb +1 -1
  108. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +1 -1
  109. data/lib/mailslurp_client/models/page_inbox_projection.rb +2 -2
  110. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +1 -1
  111. data/lib/mailslurp_client/models/page_missed_email_projection.rb +1 -1
  112. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +1 -1
  113. data/lib/mailslurp_client/models/page_sent_email_projection.rb +1 -1
  114. data/lib/mailslurp_client/models/page_template_projection.rb +1 -1
  115. data/lib/mailslurp_client/models/page_thread_projection.rb +1 -1
  116. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +1 -1
  117. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +299 -0
  118. data/lib/mailslurp_client/models/page_webhook_projection.rb +2 -1
  119. data/lib/mailslurp_client/models/page_webhook_result.rb +2 -2
  120. data/lib/mailslurp_client/models/pageable.rb +1 -1
  121. data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
  122. data/lib/mailslurp_client/models/{model_alias.rb → recipient.rb} +14 -74
  123. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +1 -1
  124. data/lib/mailslurp_client/models/reply_to_email_options.rb +1 -1
  125. data/lib/mailslurp_client/models/send_email_options.rb +1 -1
  126. data/lib/mailslurp_client/models/sender.rb +234 -0
  127. data/lib/mailslurp_client/models/sent_email_dto.rb +1 -1
  128. data/lib/mailslurp_client/models/sent_email_projection.rb +1 -1
  129. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
  130. data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -1
  131. data/lib/mailslurp_client/models/sort.rb +1 -1
  132. data/lib/mailslurp_client/models/template_dto.rb +1 -1
  133. data/lib/mailslurp_client/models/template_projection.rb +1 -1
  134. data/lib/mailslurp_client/models/template_variable.rb +1 -1
  135. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
  136. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
  137. data/lib/mailslurp_client/models/thread_projection.rb +1 -1
  138. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -1
  139. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +1 -1
  140. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +254 -0
  141. data/lib/mailslurp_client/models/unread_count.rb +1 -1
  142. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +211 -0
  143. data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
  144. data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
  145. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
  146. data/lib/mailslurp_client/models/update_inbox_options.rb +1 -1
  147. data/lib/mailslurp_client/models/upload_attachment_options.rb +2 -2
  148. data/lib/mailslurp_client/models/validation_dto.rb +1 -1
  149. data/lib/mailslurp_client/models/validation_message.rb +1 -1
  150. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
  151. data/lib/mailslurp_client/models/wait_for_conditions.rb +43 -3
  152. data/lib/mailslurp_client/models/webhook_dto.rb +4 -4
  153. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +3 -3
  154. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +312 -0
  155. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +3 -3
  156. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +3 -3
  157. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +8 -8
  158. data/lib/mailslurp_client/models/webhook_projection.rb +3 -3
  159. data/lib/mailslurp_client/models/webhook_redrive_result.rb +234 -0
  160. data/lib/mailslurp_client/models/{webhook_result_entity.rb → webhook_result_dto.rb} +25 -7
  161. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -1
  162. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -1
  163. data/lib/mailslurp_client/models/webhook_test_result.rb +1 -1
  164. data/lib/mailslurp_client/version.rb +2 -2
  165. data/lib/mailslurp_client.rb +13 -4
  166. metadata +14 -5
@@ -0,0 +1,234 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class WebhookRedriveResult
17
+ attr_accessor :message
18
+
19
+ attr_accessor :success
20
+
21
+ attr_accessor :webhook_result_id
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'message' => :'message',
27
+ :'success' => :'success',
28
+ :'webhook_result_id' => :'webhookResultId'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'message' => :'String',
36
+ :'success' => :'Boolean',
37
+ :'webhook_result_id' => :'String'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::WebhookRedriveResult` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::WebhookRedriveResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'message')
63
+ self.message = attributes[:'message']
64
+ end
65
+
66
+ if attributes.key?(:'success')
67
+ self.success = attributes[:'success']
68
+ end
69
+
70
+ if attributes.key?(:'webhook_result_id')
71
+ self.webhook_result_id = attributes[:'webhook_result_id']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ if @success.nil?
80
+ invalid_properties.push('invalid value for "success", success cannot be nil.')
81
+ end
82
+
83
+ if @webhook_result_id.nil?
84
+ invalid_properties.push('invalid value for "webhook_result_id", webhook_result_id cannot be nil.')
85
+ end
86
+
87
+ invalid_properties
88
+ end
89
+
90
+ # Check to see if the all the properties in the model are valid
91
+ # @return true if the model is valid
92
+ def valid?
93
+ return false if @success.nil?
94
+ return false if @webhook_result_id.nil?
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ message == o.message &&
104
+ success == o.success &&
105
+ webhook_result_id == o.webhook_result_id
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Integer] Hash code
116
+ def hash
117
+ [message, success, webhook_result_id].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def self.build_from_hash(attributes)
124
+ new.build_from_hash(attributes)
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def build_from_hash(attributes)
131
+ return nil unless attributes.is_a?(Hash)
132
+ self.class.openapi_types.each_pair do |key, type|
133
+ if type =~ /\AArray<(.*)>/i
134
+ # check to ensure the input is an array given that the attribute
135
+ # is documented as an array but the input is not
136
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
137
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
138
+ end
139
+ elsif !attributes[self.class.attribute_map[key]].nil?
140
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
141
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
142
+ end
143
+
144
+ self
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :DateTime
154
+ DateTime.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :Boolean
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ MailSlurpClient.const_get(type).build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ if value.nil?
207
+ is_nullable = self.class.openapi_nullable.include?(attr)
208
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
209
+ end
210
+
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end
233
+ end
234
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- class WebhookResultEntity
16
+ class WebhookResultDto
17
17
  attr_accessor :created_at
18
18
 
19
19
  attr_accessor :http_method
@@ -24,6 +24,8 @@ module MailSlurpClient
24
24
 
25
25
  attr_accessor :message_id
26
26
 
27
+ attr_accessor :redrive_id
28
+
27
29
  attr_accessor :response_body_extract
28
30
 
29
31
  attr_accessor :response_status
@@ -32,6 +34,8 @@ module MailSlurpClient
32
34
 
33
35
  attr_accessor :result_type
34
36
 
37
+ attr_accessor :seen
38
+
35
39
  attr_accessor :updated_at
36
40
 
37
41
  attr_accessor :user_id
@@ -72,10 +76,12 @@ module MailSlurpClient
72
76
  :'id' => :'id',
73
77
  :'inbox_id' => :'inboxId',
74
78
  :'message_id' => :'messageId',
79
+ :'redrive_id' => :'redriveId',
75
80
  :'response_body_extract' => :'responseBodyExtract',
76
81
  :'response_status' => :'responseStatus',
77
82
  :'response_time_millis' => :'responseTimeMillis',
78
83
  :'result_type' => :'resultType',
84
+ :'seen' => :'seen',
79
85
  :'updated_at' => :'updatedAt',
80
86
  :'user_id' => :'userId',
81
87
  :'webhook_event' => :'webhookEvent',
@@ -92,10 +98,12 @@ module MailSlurpClient
92
98
  :'id' => :'String',
93
99
  :'inbox_id' => :'String',
94
100
  :'message_id' => :'String',
101
+ :'redrive_id' => :'String',
95
102
  :'response_body_extract' => :'String',
96
103
  :'response_status' => :'Integer',
97
104
  :'response_time_millis' => :'Integer',
98
105
  :'result_type' => :'String',
106
+ :'seen' => :'Boolean',
99
107
  :'updated_at' => :'DateTime',
100
108
  :'user_id' => :'String',
101
109
  :'webhook_event' => :'String',
@@ -114,13 +122,13 @@ module MailSlurpClient
114
122
  # @param [Hash] attributes Model attributes in the form of hash
115
123
  def initialize(attributes = {})
116
124
  if (!attributes.is_a?(Hash))
117
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::WebhookResultEntity` initialize method"
125
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::WebhookResultDto` initialize method"
118
126
  end
119
127
 
120
128
  # check to see if the attribute exists and convert string to symbol for hash key
121
129
  attributes = attributes.each_with_object({}) { |(k, v), h|
122
130
  if (!self.class.attribute_map.key?(k.to_sym))
123
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::WebhookResultEntity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
131
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::WebhookResultDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
124
132
  end
125
133
  h[k.to_sym] = v
126
134
  }
@@ -145,6 +153,10 @@ module MailSlurpClient
145
153
  self.message_id = attributes[:'message_id']
146
154
  end
147
155
 
156
+ if attributes.key?(:'redrive_id')
157
+ self.redrive_id = attributes[:'redrive_id']
158
+ end
159
+
148
160
  if attributes.key?(:'response_body_extract')
149
161
  self.response_body_extract = attributes[:'response_body_extract']
150
162
  end
@@ -161,6 +173,10 @@ module MailSlurpClient
161
173
  self.result_type = attributes[:'result_type']
162
174
  end
163
175
 
176
+ if attributes.key?(:'seen')
177
+ self.seen = attributes[:'seen']
178
+ end
179
+
164
180
  if attributes.key?(:'updated_at')
165
181
  self.updated_at = attributes[:'updated_at']
166
182
  end
@@ -244,7 +260,7 @@ module MailSlurpClient
244
260
  return false if @updated_at.nil?
245
261
  return false if @user_id.nil?
246
262
  return false if @webhook_event.nil?
247
- webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
263
+ webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
248
264
  return false unless webhook_event_validator.valid?(@webhook_event)
249
265
  return false if @webhook_id.nil?
250
266
  return false if @webhook_url.nil?
@@ -274,7 +290,7 @@ module MailSlurpClient
274
290
  # Custom attribute writer method checking allowed values (enum).
275
291
  # @param [Object] webhook_event Object to be assigned
276
292
  def webhook_event=(webhook_event)
277
- validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
293
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
278
294
  unless validator.valid?(webhook_event)
279
295
  fail ArgumentError, "invalid value for \"webhook_event\", must be one of #{validator.allowable_values}."
280
296
  end
@@ -291,10 +307,12 @@ module MailSlurpClient
291
307
  id == o.id &&
292
308
  inbox_id == o.inbox_id &&
293
309
  message_id == o.message_id &&
310
+ redrive_id == o.redrive_id &&
294
311
  response_body_extract == o.response_body_extract &&
295
312
  response_status == o.response_status &&
296
313
  response_time_millis == o.response_time_millis &&
297
314
  result_type == o.result_type &&
315
+ seen == o.seen &&
298
316
  updated_at == o.updated_at &&
299
317
  user_id == o.user_id &&
300
318
  webhook_event == o.webhook_event &&
@@ -311,7 +329,7 @@ module MailSlurpClient
311
329
  # Calculates hash code according to all attributes.
312
330
  # @return [Integer] Hash code
313
331
  def hash
314
- [created_at, http_method, id, inbox_id, message_id, response_body_extract, response_status, response_time_millis, result_type, updated_at, user_id, webhook_event, webhook_id, webhook_url].hash
332
+ [created_at, http_method, id, inbox_id, message_id, redrive_id, response_body_extract, response_status, response_time_millis, result_type, seen, updated_at, user_id, webhook_event, webhook_id, webhook_url].hash
315
333
  end
316
334
 
317
335
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '13.0.1'
14
+ VERSION = '14.0.2'
15
15
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -58,6 +58,7 @@ require 'mailslurp_client/models/email_content_match_result'
58
58
  require 'mailslurp_client/models/email_links_result'
59
59
  require 'mailslurp_client/models/email_preview'
60
60
  require 'mailslurp_client/models/email_projection'
61
+ require 'mailslurp_client/models/email_recipients'
61
62
  require 'mailslurp_client/models/email_text_lines_result'
62
63
  require 'mailslurp_client/models/email_verification_result'
63
64
  require 'mailslurp_client/models/expiration_defaults'
@@ -65,6 +66,7 @@ require 'mailslurp_client/models/expired_inbox_dto'
65
66
  require 'mailslurp_client/models/expired_inbox_record_projection'
66
67
  require 'mailslurp_client/models/export_link'
67
68
  require 'mailslurp_client/models/export_options'
69
+ require 'mailslurp_client/models/flush_expired_inboxes_result'
68
70
  require 'mailslurp_client/models/forward_email_options'
69
71
  require 'mailslurp_client/models/gravatar_url'
70
72
  require 'mailslurp_client/models/group_contacts_dto'
@@ -76,15 +78,15 @@ require 'mailslurp_client/models/inbox'
76
78
  require 'mailslurp_client/models/inbox_forwarder_dto'
77
79
  require 'mailslurp_client/models/inbox_forwarder_test_options'
78
80
  require 'mailslurp_client/models/inbox_forwarder_test_result'
79
- require 'mailslurp_client/models/inbox_projection'
81
+ require 'mailslurp_client/models/inbox_preview'
80
82
  require 'mailslurp_client/models/inbox_ruleset_dto'
81
83
  require 'mailslurp_client/models/inbox_ruleset_test_options'
82
84
  require 'mailslurp_client/models/inbox_ruleset_test_result'
85
+ require 'mailslurp_client/models/json_schema_dto'
83
86
  require 'mailslurp_client/models/match_option'
84
87
  require 'mailslurp_client/models/match_options'
85
88
  require 'mailslurp_client/models/missed_email'
86
89
  require 'mailslurp_client/models/missed_email_projection'
87
- require 'mailslurp_client/models/model_alias'
88
90
  require 'mailslurp_client/models/name_server_record'
89
91
  require 'mailslurp_client/models/organization_inbox_projection'
90
92
  require 'mailslurp_client/models/page_alias'
@@ -105,13 +107,16 @@ require 'mailslurp_client/models/page_sent_email_projection'
105
107
  require 'mailslurp_client/models/page_template_projection'
106
108
  require 'mailslurp_client/models/page_thread_projection'
107
109
  require 'mailslurp_client/models/page_tracking_pixel_projection'
110
+ require 'mailslurp_client/models/page_unknown_missed_email_projection'
108
111
  require 'mailslurp_client/models/page_webhook_projection'
109
112
  require 'mailslurp_client/models/page_webhook_result'
110
113
  require 'mailslurp_client/models/pageable'
111
114
  require 'mailslurp_client/models/raw_email_json'
115
+ require 'mailslurp_client/models/recipient'
112
116
  require 'mailslurp_client/models/reply_to_alias_email_options'
113
117
  require 'mailslurp_client/models/reply_to_email_options'
114
118
  require 'mailslurp_client/models/send_email_options'
119
+ require 'mailslurp_client/models/sender'
115
120
  require 'mailslurp_client/models/sent_email_dto'
116
121
  require 'mailslurp_client/models/sent_email_projection'
117
122
  require 'mailslurp_client/models/set_inbox_favourited_options'
@@ -125,7 +130,9 @@ require 'mailslurp_client/models/test_new_inbox_ruleset_options'
125
130
  require 'mailslurp_client/models/thread_projection'
126
131
  require 'mailslurp_client/models/tracking_pixel_dto'
127
132
  require 'mailslurp_client/models/tracking_pixel_projection'
133
+ require 'mailslurp_client/models/unknown_missed_email_projection'
128
134
  require 'mailslurp_client/models/unread_count'
135
+ require 'mailslurp_client/models/unseen_error_count_dto'
129
136
  require 'mailslurp_client/models/update_alias_options'
130
137
  require 'mailslurp_client/models/update_domain_options'
131
138
  require 'mailslurp_client/models/update_group_contacts'
@@ -137,11 +144,13 @@ require 'mailslurp_client/models/verify_email_address_options'
137
144
  require 'mailslurp_client/models/wait_for_conditions'
138
145
  require 'mailslurp_client/models/webhook_dto'
139
146
  require 'mailslurp_client/models/webhook_email_opened_payload'
147
+ require 'mailslurp_client/models/webhook_email_read_payload'
140
148
  require 'mailslurp_client/models/webhook_new_attachment_payload'
141
149
  require 'mailslurp_client/models/webhook_new_contact_payload'
142
150
  require 'mailslurp_client/models/webhook_new_email_payload'
143
151
  require 'mailslurp_client/models/webhook_projection'
144
- require 'mailslurp_client/models/webhook_result_entity'
152
+ require 'mailslurp_client/models/webhook_redrive_result'
153
+ require 'mailslurp_client/models/webhook_result_dto'
145
154
  require 'mailslurp_client/models/webhook_test_request'
146
155
  require 'mailslurp_client/models/webhook_test_response'
147
156
  require 'mailslurp_client/models/webhook_test_result'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.0.1
4
+ version: 14.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-03 00:00:00.000000000 Z
11
+ date: 2021-10-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create emails addresses in Ruby then send and receive real emails and
14
14
  attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
@@ -89,6 +89,7 @@ files:
89
89
  - lib/mailslurp_client/models/email_links_result.rb
90
90
  - lib/mailslurp_client/models/email_preview.rb
91
91
  - lib/mailslurp_client/models/email_projection.rb
92
+ - lib/mailslurp_client/models/email_recipients.rb
92
93
  - lib/mailslurp_client/models/email_text_lines_result.rb
93
94
  - lib/mailslurp_client/models/email_verification_result.rb
94
95
  - lib/mailslurp_client/models/expiration_defaults.rb
@@ -96,6 +97,7 @@ files:
96
97
  - lib/mailslurp_client/models/expired_inbox_record_projection.rb
97
98
  - lib/mailslurp_client/models/export_link.rb
98
99
  - lib/mailslurp_client/models/export_options.rb
100
+ - lib/mailslurp_client/models/flush_expired_inboxes_result.rb
99
101
  - lib/mailslurp_client/models/forward_email_options.rb
100
102
  - lib/mailslurp_client/models/gravatar_url.rb
101
103
  - lib/mailslurp_client/models/group_contacts_dto.rb
@@ -106,16 +108,16 @@ files:
106
108
  - lib/mailslurp_client/models/inbox_forwarder_dto.rb
107
109
  - lib/mailslurp_client/models/inbox_forwarder_test_options.rb
108
110
  - lib/mailslurp_client/models/inbox_forwarder_test_result.rb
109
- - lib/mailslurp_client/models/inbox_projection.rb
111
+ - lib/mailslurp_client/models/inbox_preview.rb
110
112
  - lib/mailslurp_client/models/inbox_ruleset_dto.rb
111
113
  - lib/mailslurp_client/models/inbox_ruleset_test_options.rb
112
114
  - lib/mailslurp_client/models/inbox_ruleset_test_result.rb
113
115
  - lib/mailslurp_client/models/ip_address_result.rb
116
+ - lib/mailslurp_client/models/json_schema_dto.rb
114
117
  - lib/mailslurp_client/models/match_option.rb
115
118
  - lib/mailslurp_client/models/match_options.rb
116
119
  - lib/mailslurp_client/models/missed_email.rb
117
120
  - lib/mailslurp_client/models/missed_email_projection.rb
118
- - lib/mailslurp_client/models/model_alias.rb
119
121
  - lib/mailslurp_client/models/name_server_record.rb
120
122
  - lib/mailslurp_client/models/organization_inbox_projection.rb
121
123
  - lib/mailslurp_client/models/page_alias.rb
@@ -136,13 +138,16 @@ files:
136
138
  - lib/mailslurp_client/models/page_template_projection.rb
137
139
  - lib/mailslurp_client/models/page_thread_projection.rb
138
140
  - lib/mailslurp_client/models/page_tracking_pixel_projection.rb
141
+ - lib/mailslurp_client/models/page_unknown_missed_email_projection.rb
139
142
  - lib/mailslurp_client/models/page_webhook_projection.rb
140
143
  - lib/mailslurp_client/models/page_webhook_result.rb
141
144
  - lib/mailslurp_client/models/pageable.rb
142
145
  - lib/mailslurp_client/models/raw_email_json.rb
146
+ - lib/mailslurp_client/models/recipient.rb
143
147
  - lib/mailslurp_client/models/reply_to_alias_email_options.rb
144
148
  - lib/mailslurp_client/models/reply_to_email_options.rb
145
149
  - lib/mailslurp_client/models/send_email_options.rb
150
+ - lib/mailslurp_client/models/sender.rb
146
151
  - lib/mailslurp_client/models/sent_email_dto.rb
147
152
  - lib/mailslurp_client/models/sent_email_projection.rb
148
153
  - lib/mailslurp_client/models/set_inbox_favourited_options.rb
@@ -156,7 +161,9 @@ files:
156
161
  - lib/mailslurp_client/models/thread_projection.rb
157
162
  - lib/mailslurp_client/models/tracking_pixel_dto.rb
158
163
  - lib/mailslurp_client/models/tracking_pixel_projection.rb
164
+ - lib/mailslurp_client/models/unknown_missed_email_projection.rb
159
165
  - lib/mailslurp_client/models/unread_count.rb
166
+ - lib/mailslurp_client/models/unseen_error_count_dto.rb
160
167
  - lib/mailslurp_client/models/update_alias_options.rb
161
168
  - lib/mailslurp_client/models/update_domain_options.rb
162
169
  - lib/mailslurp_client/models/update_group_contacts.rb
@@ -168,11 +175,13 @@ files:
168
175
  - lib/mailslurp_client/models/wait_for_conditions.rb
169
176
  - lib/mailslurp_client/models/webhook_dto.rb
170
177
  - lib/mailslurp_client/models/webhook_email_opened_payload.rb
178
+ - lib/mailslurp_client/models/webhook_email_read_payload.rb
171
179
  - lib/mailslurp_client/models/webhook_new_attachment_payload.rb
172
180
  - lib/mailslurp_client/models/webhook_new_contact_payload.rb
173
181
  - lib/mailslurp_client/models/webhook_new_email_payload.rb
174
182
  - lib/mailslurp_client/models/webhook_projection.rb
175
- - lib/mailslurp_client/models/webhook_result_entity.rb
183
+ - lib/mailslurp_client/models/webhook_redrive_result.rb
184
+ - lib/mailslurp_client/models/webhook_result_dto.rb
176
185
  - lib/mailslurp_client/models/webhook_test_request.rb
177
186
  - lib/mailslurp_client/models/webhook_test_response.rb
178
187
  - lib/mailslurp_client/models/webhook_test_result.rb