mailslurp_client 16.0.2 → 16.0.4
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.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/models/email_thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +18 -18
- data/lib/mailslurp_client/models/sent_email_projection.rb +21 -21
- data/lib/mailslurp_client/models/sort_object.rb +10 -10
- data/lib/mailslurp_client/models/structured_output_schema.rb +25 -1
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96fa2cfefba0f6a9b235b2fe25ae534666dbb363074594c2b582adc9782f34a5
|
4
|
+
data.tar.gz: f523a9482a4dc1f9df76a943125068241deae03e2bb94bbf090f24367365b751
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29f28f9f2a3f48ab9cd9897faf1926eca1e1aa1a6176ca06e1f0a9e5968bf00db4a787ce9998c0e67ad7b0682a5c232ceb12f896cf8400bebcaa6937e3ac8a0b
|
7
|
+
data.tar.gz: 5ef509e8d1fad73d27f9d20752d7b4544c28913e77a17621bc3747f4d1f32314c3b2a91123fe064e310c7a4d4d3c920c23e35bd3989f72ee970707cc81b2d32c
|
@@ -43,6 +43,9 @@ module MailSlurpClient
|
|
43
43
|
# Has attachments
|
44
44
|
attr_accessor :has_attachments
|
45
45
|
|
46
|
+
# Has unread
|
47
|
+
attr_accessor :unread
|
48
|
+
|
46
49
|
# Number of messages in the thread
|
47
50
|
attr_accessor :message_count
|
48
51
|
|
@@ -60,9 +63,6 @@ module MailSlurpClient
|
|
60
63
|
|
61
64
|
attr_accessor :last_sender
|
62
65
|
|
63
|
-
# Has unread
|
64
|
-
attr_accessor :unread
|
65
|
-
|
66
66
|
# Thread topic subject
|
67
67
|
attr_accessor :subject
|
68
68
|
|
@@ -85,13 +85,13 @@ module MailSlurpClient
|
|
85
85
|
:'cc' => :'cc',
|
86
86
|
:'bcc' => :'bcc',
|
87
87
|
:'has_attachments' => :'hasAttachments',
|
88
|
+
:'unread' => :'unread',
|
88
89
|
:'message_count' => :'messageCount',
|
89
90
|
:'last_body_excerpt' => :'lastBodyExcerpt',
|
90
91
|
:'last_text_excerpt' => :'lastTextExcerpt',
|
91
92
|
:'last_created_at' => :'lastCreatedAt',
|
92
93
|
:'last_from' => :'lastFrom',
|
93
94
|
:'last_sender' => :'lastSender',
|
94
|
-
:'unread' => :'unread',
|
95
95
|
:'subject' => :'subject',
|
96
96
|
:'id' => :'id',
|
97
97
|
:'from' => :'from'
|
@@ -111,13 +111,13 @@ module MailSlurpClient
|
|
111
111
|
:'cc' => :'Array<String>',
|
112
112
|
:'bcc' => :'Array<String>',
|
113
113
|
:'has_attachments' => :'Boolean',
|
114
|
+
:'unread' => :'Boolean',
|
114
115
|
:'message_count' => :'Integer',
|
115
116
|
:'last_body_excerpt' => :'String',
|
116
117
|
:'last_text_excerpt' => :'String',
|
117
118
|
:'last_created_at' => :'DateTime',
|
118
119
|
:'last_from' => :'String',
|
119
120
|
:'last_sender' => :'SenderProjection',
|
120
|
-
:'unread' => :'Boolean',
|
121
121
|
:'subject' => :'String',
|
122
122
|
:'id' => :'String',
|
123
123
|
:'from' => :'String'
|
@@ -191,6 +191,10 @@ module MailSlurpClient
|
|
191
191
|
self.has_attachments = attributes[:'has_attachments']
|
192
192
|
end
|
193
193
|
|
194
|
+
if attributes.key?(:'unread')
|
195
|
+
self.unread = attributes[:'unread']
|
196
|
+
end
|
197
|
+
|
194
198
|
if attributes.key?(:'message_count')
|
195
199
|
self.message_count = attributes[:'message_count']
|
196
200
|
end
|
@@ -215,10 +219,6 @@ module MailSlurpClient
|
|
215
219
|
self.last_sender = attributes[:'last_sender']
|
216
220
|
end
|
217
221
|
|
218
|
-
if attributes.key?(:'unread')
|
219
|
-
self.unread = attributes[:'unread']
|
220
|
-
end
|
221
|
-
|
222
222
|
if attributes.key?(:'subject')
|
223
223
|
self.subject = attributes[:'subject']
|
224
224
|
end
|
@@ -256,14 +256,14 @@ module MailSlurpClient
|
|
256
256
|
invalid_properties.push('invalid value for "has_attachments", has_attachments cannot be nil.')
|
257
257
|
end
|
258
258
|
|
259
|
-
if @message_count.nil?
|
260
|
-
invalid_properties.push('invalid value for "message_count", message_count cannot be nil.')
|
261
|
-
end
|
262
|
-
|
263
259
|
if @unread.nil?
|
264
260
|
invalid_properties.push('invalid value for "unread", unread cannot be nil.')
|
265
261
|
end
|
266
262
|
|
263
|
+
if @message_count.nil?
|
264
|
+
invalid_properties.push('invalid value for "message_count", message_count cannot be nil.')
|
265
|
+
end
|
266
|
+
|
267
267
|
if @id.nil?
|
268
268
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
269
269
|
end
|
@@ -279,8 +279,8 @@ module MailSlurpClient
|
|
279
279
|
return false if @created_at.nil?
|
280
280
|
return false if @to.nil?
|
281
281
|
return false if @has_attachments.nil?
|
282
|
-
return false if @message_count.nil?
|
283
282
|
return false if @unread.nil?
|
283
|
+
return false if @message_count.nil?
|
284
284
|
return false if @id.nil?
|
285
285
|
true
|
286
286
|
end
|
@@ -300,13 +300,13 @@ module MailSlurpClient
|
|
300
300
|
cc == o.cc &&
|
301
301
|
bcc == o.bcc &&
|
302
302
|
has_attachments == o.has_attachments &&
|
303
|
+
unread == o.unread &&
|
303
304
|
message_count == o.message_count &&
|
304
305
|
last_body_excerpt == o.last_body_excerpt &&
|
305
306
|
last_text_excerpt == o.last_text_excerpt &&
|
306
307
|
last_created_at == o.last_created_at &&
|
307
308
|
last_from == o.last_from &&
|
308
309
|
last_sender == o.last_sender &&
|
309
|
-
unread == o.unread &&
|
310
310
|
subject == o.subject &&
|
311
311
|
id == o.id &&
|
312
312
|
from == o.from
|
@@ -321,7 +321,7 @@ module MailSlurpClient
|
|
321
321
|
# Calculates hash code according to all attributes.
|
322
322
|
# @return [Integer] Hash code
|
323
323
|
def hash
|
324
|
-
[sender, recipients, user_id, inbox_id, updated_at, created_at, to, cc, bcc, has_attachments, message_count, last_body_excerpt, last_text_excerpt, last_created_at, last_from, last_sender,
|
324
|
+
[sender, recipients, user_id, inbox_id, updated_at, created_at, to, cc, bcc, has_attachments, unread, message_count, last_body_excerpt, last_text_excerpt, last_created_at, last_from, last_sender, subject, id, from].hash
|
325
325
|
end
|
326
326
|
|
327
327
|
# Builds the object from hash
|
@@ -20,12 +20,12 @@ module MailSlurpClient
|
|
20
20
|
|
21
21
|
attr_accessor :created
|
22
22
|
|
23
|
+
attr_accessor :from_phone_number
|
24
|
+
|
23
25
|
attr_accessor :to_phone_number
|
24
26
|
|
25
27
|
attr_accessor :message_direction
|
26
28
|
|
27
|
-
attr_accessor :from_phone_number
|
28
|
-
|
29
29
|
class EnumAttributeValidator
|
30
30
|
attr_reader :datatype
|
31
31
|
attr_reader :allowable_values
|
@@ -54,9 +54,9 @@ module MailSlurpClient
|
|
54
54
|
:'body' => :'body',
|
55
55
|
:'phone_number_id' => :'phoneNumberId',
|
56
56
|
:'created' => :'created',
|
57
|
+
:'from_phone_number' => :'fromPhoneNumber',
|
57
58
|
:'to_phone_number' => :'toPhoneNumber',
|
58
|
-
:'message_direction' => :'messageDirection'
|
59
|
-
:'from_phone_number' => :'fromPhoneNumber'
|
59
|
+
:'message_direction' => :'messageDirection'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
@@ -66,9 +66,9 @@ module MailSlurpClient
|
|
66
66
|
:'body' => :'String',
|
67
67
|
:'phone_number_id' => :'String',
|
68
68
|
:'created' => :'DateTime',
|
69
|
+
:'from_phone_number' => :'String',
|
69
70
|
:'to_phone_number' => :'String',
|
70
|
-
:'message_direction' => :'String'
|
71
|
-
:'from_phone_number' => :'String'
|
71
|
+
:'message_direction' => :'String'
|
72
72
|
}
|
73
73
|
end
|
74
74
|
|
@@ -105,6 +105,10 @@ module MailSlurpClient
|
|
105
105
|
self.created = attributes[:'created']
|
106
106
|
end
|
107
107
|
|
108
|
+
if attributes.key?(:'from_phone_number')
|
109
|
+
self.from_phone_number = attributes[:'from_phone_number']
|
110
|
+
end
|
111
|
+
|
108
112
|
if attributes.key?(:'to_phone_number')
|
109
113
|
self.to_phone_number = attributes[:'to_phone_number']
|
110
114
|
end
|
@@ -112,10 +116,6 @@ module MailSlurpClient
|
|
112
116
|
if attributes.key?(:'message_direction')
|
113
117
|
self.message_direction = attributes[:'message_direction']
|
114
118
|
end
|
115
|
-
|
116
|
-
if attributes.key?(:'from_phone_number')
|
117
|
-
self.from_phone_number = attributes[:'from_phone_number']
|
118
|
-
end
|
119
119
|
end
|
120
120
|
|
121
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -134,6 +134,10 @@ module MailSlurpClient
|
|
134
134
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
135
135
|
end
|
136
136
|
|
137
|
+
if @from_phone_number.nil?
|
138
|
+
invalid_properties.push('invalid value for "from_phone_number", from_phone_number cannot be nil.')
|
139
|
+
end
|
140
|
+
|
137
141
|
if @to_phone_number.nil?
|
138
142
|
invalid_properties.push('invalid value for "to_phone_number", to_phone_number cannot be nil.')
|
139
143
|
end
|
@@ -142,10 +146,6 @@ module MailSlurpClient
|
|
142
146
|
invalid_properties.push('invalid value for "message_direction", message_direction cannot be nil.')
|
143
147
|
end
|
144
148
|
|
145
|
-
if @from_phone_number.nil?
|
146
|
-
invalid_properties.push('invalid value for "from_phone_number", from_phone_number cannot be nil.')
|
147
|
-
end
|
148
|
-
|
149
149
|
invalid_properties
|
150
150
|
end
|
151
151
|
|
@@ -155,11 +155,11 @@ module MailSlurpClient
|
|
155
155
|
return false if @body.nil?
|
156
156
|
return false if @phone_number_id.nil?
|
157
157
|
return false if @created.nil?
|
158
|
+
return false if @from_phone_number.nil?
|
158
159
|
return false if @to_phone_number.nil?
|
159
160
|
return false if @message_direction.nil?
|
160
161
|
message_direction_validator = EnumAttributeValidator.new('String', ["OUTBOUND", "INBOUND"])
|
161
162
|
return false unless message_direction_validator.valid?(@message_direction)
|
162
|
-
return false if @from_phone_number.nil?
|
163
163
|
true
|
164
164
|
end
|
165
165
|
|
@@ -181,9 +181,9 @@ module MailSlurpClient
|
|
181
181
|
body == o.body &&
|
182
182
|
phone_number_id == o.phone_number_id &&
|
183
183
|
created == o.created &&
|
184
|
+
from_phone_number == o.from_phone_number &&
|
184
185
|
to_phone_number == o.to_phone_number &&
|
185
|
-
message_direction == o.message_direction
|
186
|
-
from_phone_number == o.from_phone_number
|
186
|
+
message_direction == o.message_direction
|
187
187
|
end
|
188
188
|
|
189
189
|
# @see the `==` method
|
@@ -195,7 +195,7 @@ module MailSlurpClient
|
|
195
195
|
# Calculates hash code according to all attributes.
|
196
196
|
# @return [Integer] Hash code
|
197
197
|
def hash
|
198
|
-
[body, phone_number_id, created, to_phone_number, message_direction
|
198
|
+
[body, phone_number_id, created, from_phone_number, to_phone_number, message_direction].hash
|
199
199
|
end
|
200
200
|
|
201
201
|
# Builds the object from hash
|
@@ -16,14 +16,14 @@ module MailSlurpClient
|
|
16
16
|
class SentEmailProjection
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
|
-
attr_accessor :recipients
|
20
|
-
|
21
|
-
attr_accessor :subject
|
22
|
-
|
23
19
|
attr_accessor :from
|
24
20
|
|
25
21
|
attr_accessor :sender
|
26
22
|
|
23
|
+
attr_accessor :recipients
|
24
|
+
|
25
|
+
attr_accessor :subject
|
26
|
+
|
27
27
|
attr_accessor :user_id
|
28
28
|
|
29
29
|
attr_accessor :attachments
|
@@ -56,10 +56,10 @@ module MailSlurpClient
|
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
58
|
:'id' => :'id',
|
59
|
-
:'recipients' => :'recipients',
|
60
|
-
:'subject' => :'subject',
|
61
59
|
:'from' => :'from',
|
62
60
|
:'sender' => :'sender',
|
61
|
+
:'recipients' => :'recipients',
|
62
|
+
:'subject' => :'subject',
|
63
63
|
:'user_id' => :'userId',
|
64
64
|
:'attachments' => :'attachments',
|
65
65
|
:'inbox_id' => :'inboxId',
|
@@ -81,10 +81,10 @@ module MailSlurpClient
|
|
81
81
|
def self.openapi_types
|
82
82
|
{
|
83
83
|
:'id' => :'String',
|
84
|
-
:'recipients' => :'EmailRecipients',
|
85
|
-
:'subject' => :'String',
|
86
84
|
:'from' => :'String',
|
87
85
|
:'sender' => :'Sender',
|
86
|
+
:'recipients' => :'EmailRecipients',
|
87
|
+
:'subject' => :'String',
|
88
88
|
:'user_id' => :'String',
|
89
89
|
:'attachments' => :'Array<String>',
|
90
90
|
:'inbox_id' => :'String',
|
@@ -105,10 +105,10 @@ module MailSlurpClient
|
|
105
105
|
# List of attributes with nullable: true
|
106
106
|
def self.openapi_nullable
|
107
107
|
Set.new([
|
108
|
-
:'recipients',
|
109
|
-
:'subject',
|
110
108
|
:'from',
|
111
109
|
:'sender',
|
110
|
+
:'recipients',
|
111
|
+
:'subject',
|
112
112
|
:'attachments',
|
113
113
|
:'message_id',
|
114
114
|
:'in_reply_to',
|
@@ -138,14 +138,6 @@ module MailSlurpClient
|
|
138
138
|
self.id = attributes[:'id']
|
139
139
|
end
|
140
140
|
|
141
|
-
if attributes.key?(:'recipients')
|
142
|
-
self.recipients = attributes[:'recipients']
|
143
|
-
end
|
144
|
-
|
145
|
-
if attributes.key?(:'subject')
|
146
|
-
self.subject = attributes[:'subject']
|
147
|
-
end
|
148
|
-
|
149
141
|
if attributes.key?(:'from')
|
150
142
|
self.from = attributes[:'from']
|
151
143
|
end
|
@@ -154,6 +146,14 @@ module MailSlurpClient
|
|
154
146
|
self.sender = attributes[:'sender']
|
155
147
|
end
|
156
148
|
|
149
|
+
if attributes.key?(:'recipients')
|
150
|
+
self.recipients = attributes[:'recipients']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'subject')
|
154
|
+
self.subject = attributes[:'subject']
|
155
|
+
end
|
156
|
+
|
157
157
|
if attributes.key?(:'user_id')
|
158
158
|
self.user_id = attributes[:'user_id']
|
159
159
|
end
|
@@ -278,10 +278,10 @@ module MailSlurpClient
|
|
278
278
|
return true if self.equal?(o)
|
279
279
|
self.class == o.class &&
|
280
280
|
id == o.id &&
|
281
|
-
recipients == o.recipients &&
|
282
|
-
subject == o.subject &&
|
283
281
|
from == o.from &&
|
284
282
|
sender == o.sender &&
|
283
|
+
recipients == o.recipients &&
|
284
|
+
subject == o.subject &&
|
285
285
|
user_id == o.user_id &&
|
286
286
|
attachments == o.attachments &&
|
287
287
|
inbox_id == o.inbox_id &&
|
@@ -307,7 +307,7 @@ module MailSlurpClient
|
|
307
307
|
# Calculates hash code according to all attributes.
|
308
308
|
# @return [Integer] Hash code
|
309
309
|
def hash
|
310
|
-
[id,
|
310
|
+
[id, from, sender, recipients, subject, user_id, attachments, inbox_id, created_at, to, cc, bcc, message_id, in_reply_to, body_excerpt, text_excerpt, body_md5_hash, virtual_send, thread_id].hash
|
311
311
|
end
|
312
312
|
|
313
313
|
# Builds the object from hash
|
@@ -14,17 +14,17 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class SortObject
|
17
|
-
attr_accessor :sorted
|
18
|
-
|
19
17
|
attr_accessor :unsorted
|
20
18
|
|
19
|
+
attr_accessor :sorted
|
20
|
+
|
21
21
|
attr_accessor :empty
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
|
-
:'sorted' => :'sorted',
|
27
26
|
:'unsorted' => :'unsorted',
|
27
|
+
:'sorted' => :'sorted',
|
28
28
|
:'empty' => :'empty'
|
29
29
|
}
|
30
30
|
end
|
@@ -32,8 +32,8 @@ module MailSlurpClient
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
|
-
:'sorted' => :'Boolean',
|
36
35
|
:'unsorted' => :'Boolean',
|
36
|
+
:'sorted' => :'Boolean',
|
37
37
|
:'empty' => :'Boolean'
|
38
38
|
}
|
39
39
|
end
|
@@ -59,14 +59,14 @@ module MailSlurpClient
|
|
59
59
|
h[k.to_sym] = v
|
60
60
|
}
|
61
61
|
|
62
|
-
if attributes.key?(:'sorted')
|
63
|
-
self.sorted = attributes[:'sorted']
|
64
|
-
end
|
65
|
-
|
66
62
|
if attributes.key?(:'unsorted')
|
67
63
|
self.unsorted = attributes[:'unsorted']
|
68
64
|
end
|
69
65
|
|
66
|
+
if attributes.key?(:'sorted')
|
67
|
+
self.sorted = attributes[:'sorted']
|
68
|
+
end
|
69
|
+
|
70
70
|
if attributes.key?(:'empty')
|
71
71
|
self.empty = attributes[:'empty']
|
72
72
|
end
|
@@ -90,8 +90,8 @@ module MailSlurpClient
|
|
90
90
|
def ==(o)
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
|
-
sorted == o.sorted &&
|
94
93
|
unsorted == o.unsorted &&
|
94
|
+
sorted == o.sorted &&
|
95
95
|
empty == o.empty
|
96
96
|
end
|
97
97
|
|
@@ -104,7 +104,7 @@ module MailSlurpClient
|
|
104
104
|
# Calculates hash code according to all attributes.
|
105
105
|
# @return [Integer] Hash code
|
106
106
|
def hash
|
107
|
-
[
|
107
|
+
[unsorted, sorted, empty].hash
|
108
108
|
end
|
109
109
|
|
110
110
|
# Builds the object from hash
|
@@ -13,18 +13,21 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
#
|
16
|
+
# JSON output schema for structured content repsonses. This schema dictates the format that an AI should use when responding to your instructions.
|
17
17
|
class StructuredOutputSchema
|
18
18
|
attr_accessor :any_of
|
19
19
|
|
20
20
|
attr_accessor :default
|
21
21
|
|
22
|
+
# Provide a description of the schema to help the AI understand the schema.
|
22
23
|
attr_accessor :description
|
23
24
|
|
25
|
+
# When using type string and format enum pass a collection of enum values here.
|
24
26
|
attr_accessor :enum
|
25
27
|
|
26
28
|
attr_accessor :example
|
27
29
|
|
30
|
+
# Format for string types. Can be null, date-time or enum.
|
28
31
|
attr_accessor :format
|
29
32
|
|
30
33
|
attr_accessor :items
|
@@ -39,8 +42,10 @@ module MailSlurpClient
|
|
39
42
|
|
40
43
|
attr_accessor :pattern
|
41
44
|
|
45
|
+
# 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.
|
42
46
|
attr_accessor :properties
|
43
47
|
|
48
|
+
# Pass an array of property names to specify the order of properties in the generated JSON object if required.
|
44
49
|
attr_accessor :property_ordering
|
45
50
|
|
46
51
|
attr_accessor :required
|
@@ -141,8 +146,27 @@ module MailSlurpClient
|
|
141
146
|
# List of attributes with nullable: true
|
142
147
|
def self.openapi_nullable
|
143
148
|
Set.new([
|
149
|
+
:'any_of',
|
144
150
|
:'default',
|
151
|
+
:'description',
|
152
|
+
:'enum',
|
145
153
|
:'example',
|
154
|
+
:'format',
|
155
|
+
:'max_items',
|
156
|
+
:'min_items',
|
157
|
+
:'max_length',
|
158
|
+
:'min_length',
|
159
|
+
:'pattern',
|
160
|
+
:'properties',
|
161
|
+
:'property_ordering',
|
162
|
+
:'required',
|
163
|
+
:'max_properties',
|
164
|
+
:'min_properties',
|
165
|
+
:'maximum',
|
166
|
+
:'minimum',
|
167
|
+
:'nullable',
|
168
|
+
:'title',
|
169
|
+
:'type'
|
146
170
|
])
|
147
171
|
end
|
148
172
|
|