mailslurp_client 16.2.0 → 16.2.3

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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/ai_controller_api.rb +193 -79
  3. data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -3
  4. data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
  5. data/lib/mailslurp_client/api/form_controller_api.rb +8 -9
  6. data/lib/mailslurp_client/api/inbox_controller_api.rb +28 -2
  7. data/lib/mailslurp_client/api/mfa_controller_api.rb +88 -13
  8. data/lib/mailslurp_client/api/sms_controller_api.rb +3 -0
  9. data/lib/mailslurp_client/api/webhook_controller_api.rb +63 -9
  10. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
  11. data/lib/mailslurp_client/models/{ai_tranform_create_options.rb → ai_transform_create_options.rb} +31 -7
  12. data/lib/mailslurp_client/models/ai_transform_dto.rb +1 -0
  13. data/lib/mailslurp_client/models/ai_transform_mapping_dto.rb +18 -9
  14. data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +15 -6
  15. data/lib/mailslurp_client/models/ai_transform_projection.rb +16 -1
  16. data/lib/mailslurp_client/models/ai_transform_result_dto.rb +5 -1
  17. data/lib/mailslurp_client/models/{ai_transform_result_projection.rb → ai_transform_result_projection_dto.rb} +56 -53
  18. data/lib/mailslurp_client/models/alias_thread_projection.rb +11 -11
  19. data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
  20. data/lib/mailslurp_client/models/conditional_structured_content_result.rb +221 -0
  21. data/lib/mailslurp_client/models/create_ai_transformer_mapping_options.rb +5 -10
  22. data/lib/mailslurp_client/models/create_domain_options.rb +19 -0
  23. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -0
  24. data/lib/mailslurp_client/models/create_inbox_replier_options.rb +19 -0
  25. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +2 -2
  26. data/lib/mailslurp_client/models/create_totp_device_base32_secret_key_options.rb +306 -0
  27. data/lib/mailslurp_client/models/create_totp_device_custom_options.rb +306 -0
  28. data/lib/mailslurp_client/models/create_totp_device_otp_auth_url_options.rb +35 -0
  29. data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
  30. data/lib/mailslurp_client/models/describe_domain_options.rb +19 -0
  31. data/lib/mailslurp_client/models/dns_lookup_options.rb +19 -0
  32. data/lib/mailslurp_client/models/email.rb +13 -13
  33. data/lib/mailslurp_client/models/email_projection.rb +18 -18
  34. data/lib/mailslurp_client/models/email_thread_projection.rb +17 -17
  35. data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/expiration_defaults.rb +1 -0
  37. data/lib/mailslurp_client/models/fake_email_dto.rb +1 -0
  38. data/lib/mailslurp_client/models/generate_structured_content_attachment_options.rb +1 -0
  39. data/lib/mailslurp_client/models/generate_structured_content_email_options.rb +1 -0
  40. data/lib/mailslurp_client/models/generate_structured_content_sms_options.rb +1 -0
  41. data/lib/mailslurp_client/models/inbox_exists_dto.rb +26 -4
  42. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +2 -2
  43. data/lib/mailslurp_client/models/inline_object.rb +58 -12
  44. data/lib/mailslurp_client/models/inline_object1.rb +211 -0
  45. data/lib/mailslurp_client/models/invoke_transformer_options.rb +329 -0
  46. data/lib/mailslurp_client/models/match_option.rb +19 -0
  47. data/lib/mailslurp_client/models/missed_email_dto.rb +1 -0
  48. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  49. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +1 -1
  50. data/lib/mailslurp_client/models/pageable_object.rb +10 -10
  51. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +19 -19
  52. data/lib/mailslurp_client/models/phone_message_thread_projection.rb +15 -25
  53. data/lib/mailslurp_client/models/sent_email_projection.rb +38 -53
  54. data/lib/mailslurp_client/models/sms_match_option.rb +19 -0
  55. data/lib/mailslurp_client/models/sms_preview.rb +4 -0
  56. data/lib/mailslurp_client/models/structured_output_schema.rb +12 -9
  57. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  58. data/lib/mailslurp_client/models/update_inbox_replier_options.rb +19 -0
  59. data/lib/mailslurp_client/models/upload_attachment_options.rb +19 -0
  60. data/lib/mailslurp_client/models/webhook_bounce_payload.rb +2 -2
  61. data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
  62. data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +2 -2
  63. data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
  64. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +2 -2
  65. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +2 -2
  66. data/lib/mailslurp_client/models/webhook_new_ai_transform_result_payload.rb +389 -0
  67. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
  68. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -2
  69. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
  70. data/lib/mailslurp_client/models/webhook_new_sms_payload.rb +2 -2
  71. data/lib/mailslurp_client/models/webhook_projection.rb +2 -2
  72. data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -2
  73. data/lib/mailslurp_client/version.rb +1 -1
  74. data/lib/mailslurp_client.rb +8 -2
  75. metadata +10 -4
@@ -14,8 +14,6 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class PhoneMessageThreadProjection
17
- attr_accessor :last_body
18
-
19
17
  attr_accessor :phone_number
20
18
 
21
19
  attr_accessor :phone_number_id
@@ -24,6 +22,8 @@ module MailSlurpClient
24
22
 
25
23
  attr_accessor :last_message_direction
26
24
 
25
+ attr_accessor :last_body
26
+
27
27
  attr_accessor :last_created
28
28
 
29
29
  class EnumAttributeValidator
@@ -51,11 +51,11 @@ module MailSlurpClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'last_body' => :'lastBody',
55
54
  :'phone_number' => :'phoneNumber',
56
55
  :'phone_number_id' => :'phoneNumberId',
57
56
  :'other_phone_number' => :'otherPhoneNumber',
58
57
  :'last_message_direction' => :'lastMessageDirection',
58
+ :'last_body' => :'lastBody',
59
59
  :'last_created' => :'lastCreated'
60
60
  }
61
61
  end
@@ -63,11 +63,11 @@ module MailSlurpClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'last_body' => :'String',
67
66
  :'phone_number' => :'String',
68
67
  :'phone_number_id' => :'String',
69
68
  :'other_phone_number' => :'String',
70
69
  :'last_message_direction' => :'String',
70
+ :'last_body' => :'String',
71
71
  :'last_created' => :'DateTime'
72
72
  }
73
73
  end
@@ -93,10 +93,6 @@ module MailSlurpClient
93
93
  h[k.to_sym] = v
94
94
  }
95
95
 
96
- if attributes.key?(:'last_body')
97
- self.last_body = attributes[:'last_body']
98
- end
99
-
100
96
  if attributes.key?(:'phone_number')
101
97
  self.phone_number = attributes[:'phone_number']
102
98
  end
@@ -113,6 +109,10 @@ module MailSlurpClient
113
109
  self.last_message_direction = attributes[:'last_message_direction']
114
110
  end
115
111
 
112
+ if attributes.key?(:'last_body')
113
+ self.last_body = attributes[:'last_body']
114
+ end
115
+
116
116
  if attributes.key?(:'last_created')
117
117
  self.last_created = attributes[:'last_created']
118
118
  end
@@ -122,26 +122,18 @@ module MailSlurpClient
122
122
  # @return Array for valid properties with the reasons
123
123
  def list_invalid_properties
124
124
  invalid_properties = Array.new
125
- if @last_body.nil?
126
- invalid_properties.push('invalid value for "last_body", last_body cannot be nil.')
127
- end
128
-
129
- if @phone_number.nil?
130
- invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
131
- end
132
-
133
125
  if @phone_number_id.nil?
134
126
  invalid_properties.push('invalid value for "phone_number_id", phone_number_id cannot be nil.')
135
127
  end
136
128
 
137
- if @other_phone_number.nil?
138
- invalid_properties.push('invalid value for "other_phone_number", other_phone_number cannot be nil.')
139
- end
140
-
141
129
  if @last_message_direction.nil?
142
130
  invalid_properties.push('invalid value for "last_message_direction", last_message_direction cannot be nil.')
143
131
  end
144
132
 
133
+ if @last_body.nil?
134
+ invalid_properties.push('invalid value for "last_body", last_body cannot be nil.')
135
+ end
136
+
145
137
  if @last_created.nil?
146
138
  invalid_properties.push('invalid value for "last_created", last_created cannot be nil.')
147
139
  end
@@ -152,13 +144,11 @@ module MailSlurpClient
152
144
  # Check to see if the all the properties in the model are valid
153
145
  # @return true if the model is valid
154
146
  def valid?
155
- return false if @last_body.nil?
156
- return false if @phone_number.nil?
157
147
  return false if @phone_number_id.nil?
158
- return false if @other_phone_number.nil?
159
148
  return false if @last_message_direction.nil?
160
149
  last_message_direction_validator = EnumAttributeValidator.new('String', ["OUTBOUND", "INBOUND"])
161
150
  return false unless last_message_direction_validator.valid?(@last_message_direction)
151
+ return false if @last_body.nil?
162
152
  return false if @last_created.nil?
163
153
  true
164
154
  end
@@ -178,11 +168,11 @@ module MailSlurpClient
178
168
  def ==(o)
179
169
  return true if self.equal?(o)
180
170
  self.class == o.class &&
181
- last_body == o.last_body &&
182
171
  phone_number == o.phone_number &&
183
172
  phone_number_id == o.phone_number_id &&
184
173
  other_phone_number == o.other_phone_number &&
185
174
  last_message_direction == o.last_message_direction &&
175
+ last_body == o.last_body &&
186
176
  last_created == o.last_created
187
177
  end
188
178
 
@@ -195,7 +185,7 @@ module MailSlurpClient
195
185
  # Calculates hash code according to all attributes.
196
186
  # @return [Integer] Hash code
197
187
  def hash
198
- [last_body, phone_number, phone_number_id, other_phone_number, last_message_direction, last_created].hash
188
+ [phone_number, phone_number_id, other_phone_number, last_message_direction, last_body, last_created].hash
199
189
  end
200
190
 
201
191
  # Builds the object from hash
@@ -14,19 +14,15 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class SentEmailProjection
17
- attr_accessor :subject
18
-
19
17
  attr_accessor :id
20
18
 
21
- attr_accessor :thread_id
22
-
23
- attr_accessor :in_reply_to
19
+ attr_accessor :recipients
24
20
 
25
21
  attr_accessor :from
26
22
 
27
23
  attr_accessor :sender
28
24
 
29
- attr_accessor :recipients
25
+ attr_accessor :subject
30
26
 
31
27
  attr_accessor :attachments
32
28
 
@@ -44,6 +40,8 @@ module MailSlurpClient
44
40
 
45
41
  attr_accessor :message_id
46
42
 
43
+ attr_accessor :in_reply_to
44
+
47
45
  attr_accessor :body_excerpt
48
46
 
49
47
  attr_accessor :text_excerpt
@@ -52,16 +50,16 @@ module MailSlurpClient
52
50
 
53
51
  attr_accessor :virtual_send
54
52
 
53
+ attr_accessor :thread_id
54
+
55
55
  # Attribute mapping from ruby-style variable name to JSON key.
56
56
  def self.attribute_map
57
57
  {
58
- :'subject' => :'subject',
59
58
  :'id' => :'id',
60
- :'thread_id' => :'threadId',
61
- :'in_reply_to' => :'inReplyTo',
59
+ :'recipients' => :'recipients',
62
60
  :'from' => :'from',
63
61
  :'sender' => :'sender',
64
- :'recipients' => :'recipients',
62
+ :'subject' => :'subject',
65
63
  :'attachments' => :'attachments',
66
64
  :'inbox_id' => :'inboxId',
67
65
  :'user_id' => :'userId',
@@ -70,23 +68,23 @@ module MailSlurpClient
70
68
  :'cc' => :'cc',
71
69
  :'bcc' => :'bcc',
72
70
  :'message_id' => :'messageId',
71
+ :'in_reply_to' => :'inReplyTo',
73
72
  :'body_excerpt' => :'bodyExcerpt',
74
73
  :'text_excerpt' => :'textExcerpt',
75
74
  :'body_md5_hash' => :'bodyMD5Hash',
76
- :'virtual_send' => :'virtualSend'
75
+ :'virtual_send' => :'virtualSend',
76
+ :'thread_id' => :'threadId'
77
77
  }
78
78
  end
79
79
 
80
80
  # Attribute type mapping.
81
81
  def self.openapi_types
82
82
  {
83
- :'subject' => :'String',
84
83
  :'id' => :'String',
85
- :'thread_id' => :'String',
86
- :'in_reply_to' => :'String',
84
+ :'recipients' => :'EmailRecipients',
87
85
  :'from' => :'String',
88
86
  :'sender' => :'Sender',
89
- :'recipients' => :'EmailRecipients',
87
+ :'subject' => :'String',
90
88
  :'attachments' => :'Array<String>',
91
89
  :'inbox_id' => :'String',
92
90
  :'user_id' => :'String',
@@ -95,27 +93,29 @@ module MailSlurpClient
95
93
  :'cc' => :'Array<String>',
96
94
  :'bcc' => :'Array<String>',
97
95
  :'message_id' => :'String',
96
+ :'in_reply_to' => :'String',
98
97
  :'body_excerpt' => :'String',
99
98
  :'text_excerpt' => :'String',
100
99
  :'body_md5_hash' => :'String',
101
- :'virtual_send' => :'Boolean'
100
+ :'virtual_send' => :'Boolean',
101
+ :'thread_id' => :'String'
102
102
  }
103
103
  end
104
104
 
105
105
  # List of attributes with nullable: true
106
106
  def self.openapi_nullable
107
107
  Set.new([
108
- :'subject',
109
- :'thread_id',
110
- :'in_reply_to',
108
+ :'recipients',
111
109
  :'from',
112
110
  :'sender',
113
- :'recipients',
111
+ :'subject',
114
112
  :'attachments',
115
113
  :'message_id',
114
+ :'in_reply_to',
116
115
  :'body_excerpt',
117
116
  :'text_excerpt',
118
117
  :'body_md5_hash',
118
+ :'thread_id'
119
119
  ])
120
120
  end
121
121
 
@@ -134,20 +134,12 @@ module MailSlurpClient
134
134
  h[k.to_sym] = v
135
135
  }
136
136
 
137
- if attributes.key?(:'subject')
138
- self.subject = attributes[:'subject']
139
- end
140
-
141
137
  if attributes.key?(:'id')
142
138
  self.id = attributes[:'id']
143
139
  end
144
140
 
145
- if attributes.key?(:'thread_id')
146
- self.thread_id = attributes[:'thread_id']
147
- end
148
-
149
- if attributes.key?(:'in_reply_to')
150
- self.in_reply_to = attributes[:'in_reply_to']
141
+ if attributes.key?(:'recipients')
142
+ self.recipients = attributes[:'recipients']
151
143
  end
152
144
 
153
145
  if attributes.key?(:'from')
@@ -158,8 +150,8 @@ module MailSlurpClient
158
150
  self.sender = attributes[:'sender']
159
151
  end
160
152
 
161
- if attributes.key?(:'recipients')
162
- self.recipients = attributes[:'recipients']
153
+ if attributes.key?(:'subject')
154
+ self.subject = attributes[:'subject']
163
155
  end
164
156
 
165
157
  if attributes.key?(:'attachments')
@@ -202,6 +194,10 @@ module MailSlurpClient
202
194
  self.message_id = attributes[:'message_id']
203
195
  end
204
196
 
197
+ if attributes.key?(:'in_reply_to')
198
+ self.in_reply_to = attributes[:'in_reply_to']
199
+ end
200
+
205
201
  if attributes.key?(:'body_excerpt')
206
202
  self.body_excerpt = attributes[:'body_excerpt']
207
203
  end
@@ -217,6 +213,10 @@ module MailSlurpClient
217
213
  if attributes.key?(:'virtual_send')
218
214
  self.virtual_send = attributes[:'virtual_send']
219
215
  end
216
+
217
+ if attributes.key?(:'thread_id')
218
+ self.thread_id = attributes[:'thread_id']
219
+ end
220
220
  end
221
221
 
222
222
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -239,18 +239,6 @@ module MailSlurpClient
239
239
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
240
240
  end
241
241
 
242
- if @to.nil?
243
- invalid_properties.push('invalid value for "to", to cannot be nil.')
244
- end
245
-
246
- if @cc.nil?
247
- invalid_properties.push('invalid value for "cc", cc cannot be nil.')
248
- end
249
-
250
- if @bcc.nil?
251
- invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
252
- end
253
-
254
242
  if @virtual_send.nil?
255
243
  invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
256
244
  end
@@ -265,9 +253,6 @@ module MailSlurpClient
265
253
  return false if @inbox_id.nil?
266
254
  return false if @user_id.nil?
267
255
  return false if @created_at.nil?
268
- return false if @to.nil?
269
- return false if @cc.nil?
270
- return false if @bcc.nil?
271
256
  return false if @virtual_send.nil?
272
257
  true
273
258
  end
@@ -277,13 +262,11 @@ module MailSlurpClient
277
262
  def ==(o)
278
263
  return true if self.equal?(o)
279
264
  self.class == o.class &&
280
- subject == o.subject &&
281
265
  id == o.id &&
282
- thread_id == o.thread_id &&
283
- in_reply_to == o.in_reply_to &&
266
+ recipients == o.recipients &&
284
267
  from == o.from &&
285
268
  sender == o.sender &&
286
- recipients == o.recipients &&
269
+ subject == o.subject &&
287
270
  attachments == o.attachments &&
288
271
  inbox_id == o.inbox_id &&
289
272
  user_id == o.user_id &&
@@ -292,10 +275,12 @@ module MailSlurpClient
292
275
  cc == o.cc &&
293
276
  bcc == o.bcc &&
294
277
  message_id == o.message_id &&
278
+ in_reply_to == o.in_reply_to &&
295
279
  body_excerpt == o.body_excerpt &&
296
280
  text_excerpt == o.text_excerpt &&
297
281
  body_md5_hash == o.body_md5_hash &&
298
- virtual_send == o.virtual_send
282
+ virtual_send == o.virtual_send &&
283
+ thread_id == o.thread_id
299
284
  end
300
285
 
301
286
  # @see the `==` method
@@ -307,7 +292,7 @@ module MailSlurpClient
307
292
  # Calculates hash code according to all attributes.
308
293
  # @return [Integer] Hash code
309
294
  def hash
310
- [subject, id, thread_id, in_reply_to, from, sender, recipients, attachments, inbox_id, user_id, created_at, to, cc, bcc, message_id, body_excerpt, text_excerpt, body_md5_hash, virtual_send].hash
295
+ [id, recipients, from, sender, subject, attachments, inbox_id, user_id, created_at, to, cc, bcc, message_id, in_reply_to, body_excerpt, text_excerpt, body_md5_hash, virtual_send, thread_id].hash
311
296
  end
312
297
 
313
298
  # Builds the object from hash
@@ -114,6 +114,10 @@ module MailSlurpClient
114
114
  invalid_properties.push('invalid value for "value", value cannot be nil.')
115
115
  end
116
116
 
117
+ if @value.to_s.length < 1
118
+ invalid_properties.push('invalid value for "value", the character length must be great than or equal to 1.')
119
+ end
120
+
117
121
  invalid_properties
118
122
  end
119
123
 
@@ -127,6 +131,7 @@ module MailSlurpClient
127
131
  should_validator = EnumAttributeValidator.new('String', ["MATCH", "CONTAIN", "EQUAL"])
128
132
  return false unless should_validator.valid?(@should)
129
133
  return false if @value.nil?
134
+ return false if @value.to_s.length < 1
130
135
  true
131
136
  end
132
137
 
@@ -150,6 +155,20 @@ module MailSlurpClient
150
155
  @should = should
151
156
  end
152
157
 
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] value Value to be assigned
160
+ def value=(value)
161
+ if value.nil?
162
+ fail ArgumentError, 'value cannot be nil'
163
+ end
164
+
165
+ if value.to_s.length < 1
166
+ fail ArgumentError, 'invalid value for "value", the character length must be great than or equal to 1.'
167
+ end
168
+
169
+ @value = value
170
+ end
171
+
153
172
  # Checks equality by comparing each attribute.
154
173
  # @param [Object] Object to be compared
155
174
  def ==(o)
@@ -18,12 +18,16 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :user_id
20
20
 
21
+ # TXT message content
21
22
  attr_accessor :body
22
23
 
24
+ # ID of the phone number that received this SMS
23
25
  attr_accessor :phone_number
24
26
 
27
+ # Sender number
25
28
  attr_accessor :from_number
26
29
 
30
+ # Is the message read or unread
27
31
  attr_accessor :read
28
32
 
29
33
  attr_accessor :created_at
@@ -23,7 +23,7 @@ module MailSlurpClient
23
23
  attr_accessor :description
24
24
 
25
25
  # When using type string and format enum pass a collection of enum values here.
26
- attr_accessor :enum
26
+ attr_accessor :enum_values
27
27
 
28
28
  attr_accessor :example
29
29
 
@@ -40,6 +40,7 @@ module MailSlurpClient
40
40
 
41
41
  attr_accessor :min_length
42
42
 
43
+ # Regex pattern for STRING type
43
44
  attr_accessor :pattern
44
45
 
45
46
  # Properties of an OBJECT schema. These are key value pairs where the key is the property name and the value is the schema for that property.
@@ -48,6 +49,7 @@ module MailSlurpClient
48
49
  # Pass an array of property names to specify the order of properties in the generated JSON object if required.
49
50
  attr_accessor :property_ordering
50
51
 
52
+ # Is field required
51
53
  attr_accessor :required
52
54
 
53
55
  attr_accessor :max_properties
@@ -93,7 +95,7 @@ module MailSlurpClient
93
95
  :'any_of' => :'anyOf',
94
96
  :'default' => :'default',
95
97
  :'description' => :'description',
96
- :'enum' => :'enum',
98
+ :'enum_values' => :'enumValues',
97
99
  :'example' => :'example',
98
100
  :'format' => :'format',
99
101
  :'items' => :'items',
@@ -121,7 +123,7 @@ module MailSlurpClient
121
123
  :'any_of' => :'Array<StructuredOutputSchema>',
122
124
  :'default' => :'Object',
123
125
  :'description' => :'String',
124
- :'enum' => :'Array<String>',
126
+ :'enum_values' => :'Array<String>',
125
127
  :'example' => :'Object',
126
128
  :'format' => :'String',
127
129
  :'items' => :'StructuredOutputSchema',
@@ -149,9 +151,10 @@ module MailSlurpClient
149
151
  :'any_of',
150
152
  :'default',
151
153
  :'description',
152
- :'enum',
154
+ :'enum_values',
153
155
  :'example',
154
156
  :'format',
157
+ :'items',
155
158
  :'max_items',
156
159
  :'min_items',
157
160
  :'max_length',
@@ -199,9 +202,9 @@ module MailSlurpClient
199
202
  self.description = attributes[:'description']
200
203
  end
201
204
 
202
- if attributes.key?(:'enum')
203
- if (value = attributes[:'enum']).is_a?(Array)
204
- self.enum = value
205
+ if attributes.key?(:'enum_values')
206
+ if (value = attributes[:'enum_values']).is_a?(Array)
207
+ self.enum_values = value
205
208
  end
206
209
  end
207
210
 
@@ -407,7 +410,7 @@ module MailSlurpClient
407
410
  any_of == o.any_of &&
408
411
  default == o.default &&
409
412
  description == o.description &&
410
- enum == o.enum &&
413
+ enum_values == o.enum_values &&
411
414
  example == o.example &&
412
415
  format == o.format &&
413
416
  items == o.items &&
@@ -437,7 +440,7 @@ module MailSlurpClient
437
440
  # Calculates hash code according to all attributes.
438
441
  # @return [Integer] Hash code
439
442
  def hash
440
- [any_of, default, description, enum, example, format, items, max_items, min_items, max_length, min_length, pattern, properties, property_ordering, required, max_properties, min_properties, maximum, minimum, nullable, title, type].hash
443
+ [any_of, default, description, enum_values, example, format, items, max_items, min_items, max_length, min_length, pattern, properties, property_ordering, required, max_properties, min_properties, maximum, minimum, nullable, title, type].hash
441
444
  end
442
445
 
443
446
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Unknown missed email projection
17
17
  class UnknownMissedEmailProjection
18
- attr_accessor :subject
19
-
20
18
  attr_accessor :created_at
21
19
 
22
20
  attr_accessor :to
23
21
 
22
+ attr_accessor :subject
23
+
24
24
  attr_accessor :id
25
25
 
26
26
  attr_accessor :from
@@ -28,9 +28,9 @@ module MailSlurpClient
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'subject' => :'subject',
32
31
  :'created_at' => :'createdAt',
33
32
  :'to' => :'to',
33
+ :'subject' => :'subject',
34
34
  :'id' => :'id',
35
35
  :'from' => :'from'
36
36
  }
@@ -39,9 +39,9 @@ module MailSlurpClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'subject' => :'String',
43
42
  :'created_at' => :'DateTime',
44
43
  :'to' => :'Array<String>',
44
+ :'subject' => :'String',
45
45
  :'id' => :'String',
46
46
  :'from' => :'String'
47
47
  }
@@ -68,10 +68,6 @@ module MailSlurpClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
- if attributes.key?(:'subject')
72
- self.subject = attributes[:'subject']
73
- end
74
-
75
71
  if attributes.key?(:'created_at')
76
72
  self.created_at = attributes[:'created_at']
77
73
  end
@@ -82,6 +78,10 @@ module MailSlurpClient
82
78
  end
83
79
  end
84
80
 
81
+ if attributes.key?(:'subject')
82
+ self.subject = attributes[:'subject']
83
+ end
84
+
85
85
  if attributes.key?(:'id')
86
86
  self.id = attributes[:'id']
87
87
  end
@@ -119,9 +119,9 @@ module MailSlurpClient
119
119
  def ==(o)
120
120
  return true if self.equal?(o)
121
121
  self.class == o.class &&
122
- subject == o.subject &&
123
122
  created_at == o.created_at &&
124
123
  to == o.to &&
124
+ subject == o.subject &&
125
125
  id == o.id &&
126
126
  from == o.from
127
127
  end
@@ -135,7 +135,7 @@ module MailSlurpClient
135
135
  # Calculates hash code according to all attributes.
136
136
  # @return [Integer] Hash code
137
137
  def hash
138
- [subject, created_at, to, id, from].hash
138
+ [created_at, to, subject, id, from].hash
139
139
  end
140
140
 
141
141
  # Builds the object from hash
@@ -216,6 +216,10 @@ module MailSlurpClient
216
216
  invalid_properties.push('invalid value for "match", match cannot be nil.')
217
217
  end
218
218
 
219
+ if @match.to_s.length < 1
220
+ invalid_properties.push('invalid value for "match", the character length must be great than or equal to 1.')
221
+ end
222
+
219
223
  invalid_properties
220
224
  end
221
225
 
@@ -227,6 +231,7 @@ module MailSlurpClient
227
231
  field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
228
232
  return false unless field_validator.valid?(@field)
229
233
  return false if @match.nil?
234
+ return false if @match.to_s.length < 1
230
235
  true
231
236
  end
232
237
 
@@ -240,6 +245,20 @@ module MailSlurpClient
240
245
  @field = field
241
246
  end
242
247
 
248
+ # Custom attribute writer method with validation
249
+ # @param [Object] match Value to be assigned
250
+ def match=(match)
251
+ if match.nil?
252
+ fail ArgumentError, 'match cannot be nil'
253
+ end
254
+
255
+ if match.to_s.length < 1
256
+ fail ArgumentError, 'invalid value for "match", the character length must be great than or equal to 1.'
257
+ end
258
+
259
+ @match = match
260
+ end
261
+
243
262
  # Checks equality by comparing each attribute.
244
263
  # @param [Object] Object to be compared
245
264
  def ==(o)
@@ -96,6 +96,10 @@ module MailSlurpClient
96
96
  invalid_properties.push('invalid value for "base64_contents", base64_contents cannot be nil.')
97
97
  end
98
98
 
99
+ if @base64_contents.to_s.length < 1
100
+ invalid_properties.push('invalid value for "base64_contents", the character length must be great than or equal to 1.')
101
+ end
102
+
99
103
  invalid_properties
100
104
  end
101
105
 
@@ -103,9 +107,24 @@ module MailSlurpClient
103
107
  # @return true if the model is valid
104
108
  def valid?
105
109
  return false if @base64_contents.nil?
110
+ return false if @base64_contents.to_s.length < 1
106
111
  true
107
112
  end
108
113
 
114
+ # Custom attribute writer method with validation
115
+ # @param [Object] base64_contents Value to be assigned
116
+ def base64_contents=(base64_contents)
117
+ if base64_contents.nil?
118
+ fail ArgumentError, 'base64_contents cannot be nil'
119
+ end
120
+
121
+ if base64_contents.to_s.length < 1
122
+ fail ArgumentError, 'invalid value for "base64_contents", the character length must be great than or equal to 1.'
123
+ end
124
+
125
+ @base64_contents = base64_contents
126
+ end
127
+
109
128
  # Checks equality by comparing each attribute.
110
129
  # @param [Object] Object to be compared
111
130
  def ==(o)
@@ -183,7 +183,7 @@ module MailSlurpClient
183
183
  return false if @message_id.nil?
184
184
  return false if @webhook_id.nil?
185
185
  return false if @event_name.nil?
186
- event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS", "NEW_GUEST_USER"])
186
+ event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_AI_TRANSFORM_RESULT", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS", "NEW_GUEST_USER"])
187
187
  return false unless event_name_validator.valid?(@event_name)
188
188
  return false if @bounce_id.nil?
189
189
  return false if @sender.nil?
@@ -193,7 +193,7 @@ module MailSlurpClient
193
193
  # Custom attribute writer method checking allowed values (enum).
194
194
  # @param [Object] event_name Object to be assigned
195
195
  def event_name=(event_name)
196
- validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS", "NEW_GUEST_USER"])
196
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_AI_TRANSFORM_RESULT", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS", "NEW_GUEST_USER"])
197
197
  unless validator.valid?(event_name)
198
198
  fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
199
199
  end