mailslurp_client 16.1.0 → 16.1.2

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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/ai_controller_api.rb +128 -0
  3. data/lib/mailslurp_client/models/email_projection.rb +11 -11
  4. data/lib/mailslurp_client/models/email_thread_projection.rb +26 -26
  5. data/lib/mailslurp_client/models/generate_structured_content_attachment_options.rb +237 -0
  6. data/lib/mailslurp_client/models/page_alias.rb +15 -15
  7. data/lib/mailslurp_client/models/page_alias_thread_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
  9. data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
  10. data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
  11. data/lib/mailslurp_client/models/page_complaint.rb +15 -15
  12. data/lib/mailslurp_client/models/page_connector.rb +15 -15
  13. data/lib/mailslurp_client/models/page_connector_events.rb +15 -15
  14. data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
  16. data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
  17. data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
  18. data/lib/mailslurp_client/models/page_email_thread_projection.rb +15 -15
  19. data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
  20. data/lib/mailslurp_client/models/page_entity_automation_items.rb +15 -15
  21. data/lib/mailslurp_client/models/page_entity_event_items.rb +15 -15
  22. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +15 -15
  23. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
  24. data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
  25. data/lib/mailslurp_client/models/page_guest_portal_users.rb +15 -15
  26. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
  27. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
  28. data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
  29. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
  30. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
  31. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
  32. data/lib/mailslurp_client/models/page_inbox_tags.rb +15 -15
  33. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
  34. data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
  35. data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +15 -15
  36. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
  37. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +15 -15
  38. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +15 -15
  39. data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
  40. data/lib/mailslurp_client/models/page_plus_address_projection.rb +15 -15
  41. data/lib/mailslurp_client/models/page_reputation_items.rb +15 -15
  42. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
  43. data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
  44. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
  45. data/lib/mailslurp_client/models/page_sent_sms_projection.rb +15 -15
  46. data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
  47. data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
  48. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
  49. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
  50. data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +15 -15
  51. data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
  52. data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
  53. data/lib/mailslurp_client/models/structured_output_schema_validation.rb +231 -0
  54. data/lib/mailslurp_client/version.rb +1 -1
  55. data/lib/mailslurp_client.rb +2 -0
  56. metadata +4 -2
@@ -0,0 +1,231 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
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 StructuredOutputSchemaValidation
17
+ attr_accessor :valid
18
+
19
+ attr_accessor :errors
20
+
21
+ attr_accessor :example_output
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'valid' => :'valid',
27
+ :'errors' => :'errors',
28
+ :'example_output' => :'exampleOutput'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'valid' => :'Boolean',
36
+ :'errors' => :'Array<String>',
37
+ :'example_output' => :'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::StructuredOutputSchemaValidation` 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::StructuredOutputSchemaValidation`. 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?(:'valid')
63
+ self.valid = attributes[:'valid']
64
+ end
65
+
66
+ if attributes.key?(:'errors')
67
+ if (value = attributes[:'errors']).is_a?(Array)
68
+ self.errors = value
69
+ end
70
+ end
71
+
72
+ if attributes.key?(:'example_output')
73
+ self.example_output = attributes[:'example_output']
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ if @valid.nil?
82
+ invalid_properties.push('invalid value for "valid", valid cannot be nil.')
83
+ end
84
+
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return false if @valid.nil?
92
+ true
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ valid == o.valid &&
101
+ errors == o.errors &&
102
+ example_output == o.example_output
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [valid, errors, example_output].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ new.build_from_hash(attributes)
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.openapi_types.each_pair do |key, type|
130
+ if type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
139
+ end
140
+
141
+ self
142
+ end
143
+
144
+ # Deserializes the data based on type
145
+ # @param string type Data type
146
+ # @param string value Value to be deserialized
147
+ # @return [Object] Deserialized data
148
+ def _deserialize(type, value)
149
+ case type.to_sym
150
+ when :DateTime
151
+ DateTime.parse(value)
152
+ when :Date
153
+ Date.parse(value)
154
+ when :String
155
+ value.to_s
156
+ when :Integer
157
+ value.to_i
158
+ when :Float
159
+ value.to_f
160
+ when :Boolean
161
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
162
+ true
163
+ else
164
+ false
165
+ end
166
+ when :Object
167
+ # generic object (usually a Hash), return directly
168
+ value
169
+ when /\AArray<(?<inner_type>.+)>\z/
170
+ inner_type = Regexp.last_match[:inner_type]
171
+ value.map { |v| _deserialize(inner_type, v) }
172
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
173
+ k_type = Regexp.last_match[:k_type]
174
+ v_type = Regexp.last_match[:v_type]
175
+ {}.tap do |hash|
176
+ value.each do |k, v|
177
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
178
+ end
179
+ end
180
+ else # model
181
+ MailSlurpClient.const_get(type).build_from_hash(value)
182
+ end
183
+ end
184
+
185
+ # Returns the string representation of the object
186
+ # @return [String] String presentation of the object
187
+ def to_s
188
+ to_hash.to_s
189
+ end
190
+
191
+ # to_body is an alias to to_hash (backward compatibility)
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_body
194
+ to_hash
195
+ end
196
+
197
+ # Returns the object in the form of hash
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ if value.nil?
204
+ is_nullable = self.class.openapi_nullable.include?(attr)
205
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
206
+ end
207
+
208
+ hash[param] = _to_hash(value)
209
+ end
210
+ hash
211
+ end
212
+
213
+ # Outputs non-array value in the form of hash
214
+ # For object, use to_hash. Otherwise, just return the value
215
+ # @param [Object] value Any valid value
216
+ # @return [Hash] Returns the value in the form of hash
217
+ def _to_hash(value)
218
+ if value.is_a?(Array)
219
+ value.compact.map { |v| _to_hash(v) }
220
+ elsif value.is_a?(Hash)
221
+ {}.tap do |hash|
222
+ value.each { |k, v| hash[k] = _to_hash(v) }
223
+ end
224
+ elsif value.respond_to? :to_hash
225
+ value.to_hash
226
+ else
227
+ value
228
+ end
229
+ end
230
+ end
231
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '16.1.0'
14
+ VERSION = '16.1.2'
15
15
  end
@@ -149,6 +149,7 @@ require 'mailslurp_client/models/generate_dmarc_record_options'
149
149
  require 'mailslurp_client/models/generate_dmarc_record_results'
150
150
  require 'mailslurp_client/models/generate_mta_sts_record_options'
151
151
  require 'mailslurp_client/models/generate_mta_sts_record_results'
152
+ require 'mailslurp_client/models/generate_structured_content_attachment_options'
152
153
  require 'mailslurp_client/models/generate_structured_content_email_options'
153
154
  require 'mailslurp_client/models/generate_tls_reporting_record_options'
154
155
  require 'mailslurp_client/models/generate_tls_reporting_record_results'
@@ -321,6 +322,7 @@ require 'mailslurp_client/models/sort_object'
321
322
  require 'mailslurp_client/models/spelling_issue'
322
323
  require 'mailslurp_client/models/structured_content_result'
323
324
  require 'mailslurp_client/models/structured_output_schema'
325
+ require 'mailslurp_client/models/structured_output_schema_validation'
324
326
  require 'mailslurp_client/models/template_dto'
325
327
  require 'mailslurp_client/models/template_preview'
326
328
  require 'mailslurp_client/models/template_projection'
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: 16.1.0
4
+ version: 16.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-23 00:00:00.000000000 Z
11
+ date: 2025-05-26 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/ruby/ for full Ruby documentation. Get
@@ -192,6 +192,7 @@ files:
192
192
  - lib/mailslurp_client/models/generate_dmarc_record_results.rb
193
193
  - lib/mailslurp_client/models/generate_mta_sts_record_options.rb
194
194
  - lib/mailslurp_client/models/generate_mta_sts_record_results.rb
195
+ - lib/mailslurp_client/models/generate_structured_content_attachment_options.rb
195
196
  - lib/mailslurp_client/models/generate_structured_content_email_options.rb
196
197
  - lib/mailslurp_client/models/generate_tls_reporting_record_options.rb
197
198
  - lib/mailslurp_client/models/generate_tls_reporting_record_results.rb
@@ -364,6 +365,7 @@ files:
364
365
  - lib/mailslurp_client/models/spelling_issue.rb
365
366
  - lib/mailslurp_client/models/structured_content_result.rb
366
367
  - lib/mailslurp_client/models/structured_output_schema.rb
368
+ - lib/mailslurp_client/models/structured_output_schema_validation.rb
367
369
  - lib/mailslurp_client/models/template_dto.rb
368
370
  - lib/mailslurp_client/models/template_preview.rb
369
371
  - lib/mailslurp_client/models/template_projection.rb