sendmux-mailbox 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/LICENSE +21 -0
  4. data/README.md +105 -0
  5. data/lib/sendmux/mailbox/version.rb +1 -1
  6. data/lib/sendmux_mailbox_generated/api/mailbox_api_api.rb +275 -14
  7. data/lib/sendmux_mailbox_generated/models/batch_delete_mailbox_messages_body.rb +1 -0
  8. data/lib/sendmux_mailbox_generated/models/batch_update_mailbox_messages_body.rb +3 -0
  9. data/lib/sendmux_mailbox_generated/models/{mailbox_message_summary_from.rb → granted_mailbox.rb} +28 -19
  10. data/lib/sendmux_mailbox_generated/models/granted_mailbox_list_response.rb +251 -0
  11. data/lib/sendmux_mailbox_generated/models/mailbox_attachment.rb +3 -1
  12. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_body.rb +228 -0
  13. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result.rb +323 -0
  14. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result_headers.rb +191 -0
  15. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result_response.rb +223 -0
  16. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_body.rb +10 -0
  17. data/lib/sendmux_mailbox_generated/models/mailbox_changes.rb +11 -1
  18. data/lib/sendmux_mailbox_generated/models/mailbox_message.rb +14 -45
  19. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_participants.rb +2 -16
  20. data/lib/sendmux_mailbox_generated/models/mailbox_message_summary.rb +15 -17
  21. data/lib/sendmux_mailbox_generated/models/mailbox_realtime_event.rb +1 -15
  22. data/lib/sendmux_mailbox_generated/models/mailbox_realtime_message.rb +14 -45
  23. data/lib/sendmux_mailbox_generated/models/mailbox_thread.rb +2 -16
  24. data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary.rb +2 -16
  25. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body.rb +10 -0
  26. data/lib/sendmux_mailbox_generated.rb +6 -2
  27. metadata +9 -4
  28. data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary_last_message.rb +0 -463
@@ -15,6 +15,8 @@ require 'time'
15
15
 
16
16
  module Sendmux::Mailbox::Generated
17
17
  class MailboxRealtimeMessage < ApiModelBase
18
+ attr_accessor :attachments
19
+
18
20
  attr_accessor :bcc
19
21
 
20
22
  attr_accessor :cc
@@ -47,8 +49,6 @@ module Sendmux::Mailbox::Generated
47
49
 
48
50
  attr_accessor :to
49
51
 
50
- attr_accessor :attachments
51
-
52
52
  attr_accessor :body
53
53
 
54
54
  attr_accessor :rfc5322_message_id
@@ -56,6 +56,7 @@ module Sendmux::Mailbox::Generated
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
57
57
  def self.attribute_map
58
58
  {
59
+ :'attachments' => :'attachments',
59
60
  :'bcc' => :'bcc',
60
61
  :'cc' => :'cc',
61
62
  :'flags' => :'flags',
@@ -71,7 +72,6 @@ module Sendmux::Mailbox::Generated
71
72
  :'subject' => :'subject',
72
73
  :'thread_id' => :'thread_id',
73
74
  :'to' => :'to',
74
- :'attachments' => :'attachments',
75
75
  :'body' => :'body',
76
76
  :'rfc5322_message_id' => :'rfc5322_message_id'
77
77
  }
@@ -90,11 +90,12 @@ module Sendmux::Mailbox::Generated
90
90
  # Attribute type mapping.
91
91
  def self.openapi_types
92
92
  {
93
+ :'attachments' => :'Array<MailboxAttachment>',
93
94
  :'bcc' => :'Array<MailboxAddress>',
94
95
  :'cc' => :'Array<MailboxAddress>',
95
96
  :'flags' => :'MailboxMessageFlags',
96
97
  :'folder_ids' => :'Array<String>',
97
- :'from' => :'MailboxMessageSummaryFrom',
98
+ :'from' => :'MailboxAddress',
98
99
  :'has_attachments' => :'Boolean',
99
100
  :'id' => :'String',
100
101
  :'keywords' => :'Array<String>',
@@ -105,7 +106,6 @@ module Sendmux::Mailbox::Generated
105
106
  :'subject' => :'String',
106
107
  :'thread_id' => :'String',
107
108
  :'to' => :'Array<MailboxAddress>',
108
- :'attachments' => :'Array<MailboxAttachment>',
109
109
  :'body' => :'MailboxRealtimeMessageAllOfBody',
110
110
  :'rfc5322_message_id' => :'String'
111
111
  }
@@ -114,6 +114,7 @@ module Sendmux::Mailbox::Generated
114
114
  # List of attributes with nullable: true
115
115
  def self.openapi_nullable
116
116
  Set.new([
117
+ :'from',
117
118
  :'preview',
118
119
  :'received_at',
119
120
  :'sent_at',
@@ -147,6 +148,12 @@ module Sendmux::Mailbox::Generated
147
148
  h[k.to_sym] = v
148
149
  }
149
150
 
151
+ if attributes.key?(:'attachments')
152
+ if (value = attributes[:'attachments']).is_a?(Array)
153
+ self.attachments = value
154
+ end
155
+ end
156
+
150
157
  if attributes.key?(:'bcc')
151
158
  if (value = attributes[:'bcc']).is_a?(Array)
152
159
  self.bcc = value
@@ -247,14 +254,6 @@ module Sendmux::Mailbox::Generated
247
254
  self.to = nil
248
255
  end
249
256
 
250
- if attributes.key?(:'attachments')
251
- if (value = attributes[:'attachments']).is_a?(Array)
252
- self.attachments = value
253
- end
254
- else
255
- self.attachments = nil
256
- end
257
-
258
257
  if attributes.key?(:'body')
259
258
  self.body = attributes[:'body']
260
259
  else
@@ -289,10 +288,6 @@ module Sendmux::Mailbox::Generated
289
288
  invalid_properties.push('invalid value for "folder_ids", folder_ids cannot be nil.')
290
289
  end
291
290
 
292
- if @from.nil?
293
- invalid_properties.push('invalid value for "from", from cannot be nil.')
294
- end
295
-
296
291
  if @has_attachments.nil?
297
292
  invalid_properties.push('invalid value for "has_attachments", has_attachments cannot be nil.')
298
293
  end
@@ -309,10 +304,6 @@ module Sendmux::Mailbox::Generated
309
304
  invalid_properties.push('invalid value for "to", to cannot be nil.')
310
305
  end
311
306
 
312
- if @attachments.nil?
313
- invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
314
- end
315
-
316
307
  if @body.nil?
317
308
  invalid_properties.push('invalid value for "body", body cannot be nil.')
318
309
  end
@@ -328,12 +319,10 @@ module Sendmux::Mailbox::Generated
328
319
  return false if @cc.nil?
329
320
  return false if @flags.nil?
330
321
  return false if @folder_ids.nil?
331
- return false if @from.nil?
332
322
  return false if @has_attachments.nil?
333
323
  return false if @id.nil?
334
324
  return false if @keywords.nil?
335
325
  return false if @to.nil?
336
- return false if @attachments.nil?
337
326
  return false if @body.nil?
338
327
  true
339
328
  end
@@ -378,16 +367,6 @@ module Sendmux::Mailbox::Generated
378
367
  @folder_ids = folder_ids
379
368
  end
380
369
 
381
- # Custom attribute writer method with validation
382
- # @param [Object] from Value to be assigned
383
- def from=(from)
384
- if from.nil?
385
- fail ArgumentError, 'from cannot be nil'
386
- end
387
-
388
- @from = from
389
- end
390
-
391
370
  # Custom attribute writer method with validation
392
371
  # @param [Object] has_attachments Value to be assigned
393
372
  def has_attachments=(has_attachments)
@@ -428,16 +407,6 @@ module Sendmux::Mailbox::Generated
428
407
  @to = to
429
408
  end
430
409
 
431
- # Custom attribute writer method with validation
432
- # @param [Object] attachments Value to be assigned
433
- def attachments=(attachments)
434
- if attachments.nil?
435
- fail ArgumentError, 'attachments cannot be nil'
436
- end
437
-
438
- @attachments = attachments
439
- end
440
-
441
410
  # Custom attribute writer method with validation
442
411
  # @param [Object] body Value to be assigned
443
412
  def body=(body)
@@ -453,6 +422,7 @@ module Sendmux::Mailbox::Generated
453
422
  def ==(o)
454
423
  return true if self.equal?(o)
455
424
  self.class == o.class &&
425
+ attachments == o.attachments &&
456
426
  bcc == o.bcc &&
457
427
  cc == o.cc &&
458
428
  flags == o.flags &&
@@ -468,7 +438,6 @@ module Sendmux::Mailbox::Generated
468
438
  subject == o.subject &&
469
439
  thread_id == o.thread_id &&
470
440
  to == o.to &&
471
- attachments == o.attachments &&
472
441
  body == o.body &&
473
442
  rfc5322_message_id == o.rfc5322_message_id
474
443
  end
@@ -482,7 +451,7 @@ module Sendmux::Mailbox::Generated
482
451
  # Calculates hash code according to all attributes.
483
452
  # @return [Integer] Hash code
484
453
  def hash
485
- [bcc, cc, flags, folder_ids, from, has_attachments, id, keywords, preview, received_at, sent_at, size_bytes, subject, thread_id, to, attachments, body, rfc5322_message_id].hash
454
+ [attachments, bcc, cc, flags, folder_ids, from, has_attachments, id, keywords, preview, received_at, sent_at, size_bytes, subject, thread_id, to, body, rfc5322_message_id].hash
486
455
  end
487
456
 
488
457
  # Builds the object from hash
@@ -68,7 +68,7 @@ module Sendmux::Mailbox::Generated
68
68
  :'folder_ids' => :'Array<String>',
69
69
  :'has_attachments' => :'Boolean',
70
70
  :'id' => :'String',
71
- :'last_message' => :'MailboxThreadSummaryLastMessage',
71
+ :'last_message' => :'MailboxMessageSummary',
72
72
  :'message_count' => :'Integer',
73
73
  :'participants' => :'Array<MailboxAddress>',
74
74
  :'states' => :'MailboxThreadSummaryStates',
@@ -81,6 +81,7 @@ module Sendmux::Mailbox::Generated
81
81
  # List of attributes with nullable: true
82
82
  def self.openapi_nullable
83
83
  Set.new([
84
+ :'last_message',
84
85
  :'subject',
85
86
  ])
86
87
  end
@@ -192,10 +193,6 @@ module Sendmux::Mailbox::Generated
192
193
  invalid_properties.push('invalid value for "id", id cannot be nil.')
193
194
  end
194
195
 
195
- if @last_message.nil?
196
- invalid_properties.push('invalid value for "last_message", last_message cannot be nil.')
197
- end
198
-
199
196
  if @message_count.nil?
200
197
  invalid_properties.push('invalid value for "message_count", message_count cannot be nil.')
201
198
  end
@@ -226,7 +223,6 @@ module Sendmux::Mailbox::Generated
226
223
  return false if @folder_ids.nil?
227
224
  return false if @has_attachments.nil?
228
225
  return false if @id.nil?
229
- return false if @last_message.nil?
230
226
  return false if @message_count.nil?
231
227
  return false if @participants.nil?
232
228
  return false if @states.nil?
@@ -265,16 +261,6 @@ module Sendmux::Mailbox::Generated
265
261
  @id = id
266
262
  end
267
263
 
268
- # Custom attribute writer method with validation
269
- # @param [Object] last_message Value to be assigned
270
- def last_message=(last_message)
271
- if last_message.nil?
272
- fail ArgumentError, 'last_message cannot be nil'
273
- end
274
-
275
- @last_message = last_message
276
- end
277
-
278
264
  # Custom attribute writer method with validation
279
265
  # @param [Object] message_count Value to be assigned
280
266
  def message_count=(message_count)
@@ -65,7 +65,7 @@ module Sendmux::Mailbox::Generated
65
65
  :'folder_ids' => :'Array<String>',
66
66
  :'has_attachments' => :'Boolean',
67
67
  :'id' => :'String',
68
- :'last_message' => :'MailboxThreadSummaryLastMessage',
68
+ :'last_message' => :'MailboxMessageSummary',
69
69
  :'message_count' => :'Integer',
70
70
  :'participants' => :'Array<MailboxAddress>',
71
71
  :'states' => :'MailboxThreadSummaryStates',
@@ -77,6 +77,7 @@ module Sendmux::Mailbox::Generated
77
77
  # List of attributes with nullable: true
78
78
  def self.openapi_nullable
79
79
  Set.new([
80
+ :'last_message',
80
81
  :'subject',
81
82
  ])
82
83
  end
@@ -173,10 +174,6 @@ module Sendmux::Mailbox::Generated
173
174
  invalid_properties.push('invalid value for "id", id cannot be nil.')
174
175
  end
175
176
 
176
- if @last_message.nil?
177
- invalid_properties.push('invalid value for "last_message", last_message cannot be nil.')
178
- end
179
-
180
177
  if @message_count.nil?
181
178
  invalid_properties.push('invalid value for "message_count", message_count cannot be nil.')
182
179
  end
@@ -203,7 +200,6 @@ module Sendmux::Mailbox::Generated
203
200
  return false if @folder_ids.nil?
204
201
  return false if @has_attachments.nil?
205
202
  return false if @id.nil?
206
- return false if @last_message.nil?
207
203
  return false if @message_count.nil?
208
204
  return false if @participants.nil?
209
205
  return false if @states.nil?
@@ -241,16 +237,6 @@ module Sendmux::Mailbox::Generated
241
237
  @id = id
242
238
  end
243
239
 
244
- # Custom attribute writer method with validation
245
- # @param [Object] last_message Value to be assigned
246
- def last_message=(last_message)
247
- if last_message.nil?
248
- fail ArgumentError, 'last_message cannot be nil'
249
- end
250
-
251
- @last_message = last_message
252
- end
253
-
254
240
  # Custom attribute writer method with validation
255
241
  # @param [Object] message_count Value to be assigned
256
242
  def message_count=(message_count)
@@ -15,24 +15,34 @@ require 'time'
15
15
 
16
16
  module Sendmux::Mailbox::Generated
17
17
  class SendMailboxMessageBody < ApiModelBase
18
+ # Attachments to send with the message.
18
19
  attr_accessor :attachments
19
20
 
21
+ # BCC recipients.
20
22
  attr_accessor :bcc
21
23
 
24
+ # CC recipients.
22
25
  attr_accessor :cc
23
26
 
27
+ # Custom headers to include.
24
28
  attr_accessor :custom_headers
25
29
 
30
+ # Sender address. Defaults to mailbox identity.
26
31
  attr_accessor :from
27
32
 
33
+ # HTML body.
28
34
  attr_accessor :html_body
29
35
 
36
+ # Reply-To recipients.
30
37
  attr_accessor :reply_to
31
38
 
39
+ # Subject line for the outgoing email.
32
40
  attr_accessor :subject
33
41
 
42
+ # Plain text body.
34
43
  attr_accessor :text_body
35
44
 
45
+ # Primary recipients.
36
46
  attr_accessor :to
37
47
 
38
48
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -26,9 +26,15 @@ require 'sendmux_mailbox_generated/models/batch_delete_mailbox_messages_body'
26
26
  require 'sendmux_mailbox_generated/models/batch_update_mailbox_messages_body'
27
27
  require 'sendmux_mailbox_generated/models/create_mailbox_folder_body'
28
28
  require 'sendmux_mailbox_generated/models/cursor_pagination'
29
+ require 'sendmux_mailbox_generated/models/granted_mailbox'
30
+ require 'sendmux_mailbox_generated/models/granted_mailbox_list_response'
29
31
  require 'sendmux_mailbox_generated/models/mailbox'
30
32
  require 'sendmux_mailbox_generated/models/mailbox_address'
31
33
  require 'sendmux_mailbox_generated/models/mailbox_attachment'
34
+ require 'sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_body'
35
+ require 'sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result'
36
+ require 'sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result_headers'
37
+ require 'sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result_response'
32
38
  require 'sendmux_mailbox_generated/models/mailbox_attachment_upload_result'
33
39
  require 'sendmux_mailbox_generated/models/mailbox_attachment_upload_result_response'
34
40
  require 'sendmux_mailbox_generated/models/mailbox_batch_delete_messages_result'
@@ -78,7 +84,6 @@ require 'sendmux_mailbox_generated/models/mailbox_message_query_changes'
78
84
  require 'sendmux_mailbox_generated/models/mailbox_message_query_changes_response'
79
85
  require 'sendmux_mailbox_generated/models/mailbox_message_summary'
80
86
  require 'sendmux_mailbox_generated/models/mailbox_message_summary_cursor_list_response'
81
- require 'sendmux_mailbox_generated/models/mailbox_message_summary_from'
82
87
  require 'sendmux_mailbox_generated/models/mailbox_quota'
83
88
  require 'sendmux_mailbox_generated/models/mailbox_quota_cursor_list_response'
84
89
  require 'sendmux_mailbox_generated/models/mailbox_raw_body'
@@ -124,7 +129,6 @@ require 'sendmux_mailbox_generated/models/mailbox_thread_content_response_all_of
124
129
  require 'sendmux_mailbox_generated/models/mailbox_thread_detail_response'
125
130
  require 'sendmux_mailbox_generated/models/mailbox_thread_summary'
126
131
  require 'sendmux_mailbox_generated/models/mailbox_thread_summary_cursor_list_response'
127
- require 'sendmux_mailbox_generated/models/mailbox_thread_summary_last_message'
128
132
  require 'sendmux_mailbox_generated/models/mailbox_thread_summary_states'
129
133
  require 'sendmux_mailbox_generated/models/mailbox_typed_changes'
130
134
  require 'sendmux_mailbox_generated/models/mailbox_typed_changes_response'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendmux-mailbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sendmux
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-06-02 00:00:00.000000000 Z
10
+ date: 2026-07-03 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: faraday
@@ -92,6 +92,7 @@ extensions: []
92
92
  extra_rdoc_files: []
93
93
  files:
94
94
  - CHANGELOG.md
95
+ - LICENSE
95
96
  - README.md
96
97
  - lib/sendmux/mailbox.rb
97
98
  - lib/sendmux/mailbox/client.rb
@@ -110,9 +111,15 @@ files:
110
111
  - lib/sendmux_mailbox_generated/models/batch_update_mailbox_messages_body.rb
111
112
  - lib/sendmux_mailbox_generated/models/create_mailbox_folder_body.rb
112
113
  - lib/sendmux_mailbox_generated/models/cursor_pagination.rb
114
+ - lib/sendmux_mailbox_generated/models/granted_mailbox.rb
115
+ - lib/sendmux_mailbox_generated/models/granted_mailbox_list_response.rb
113
116
  - lib/sendmux_mailbox_generated/models/mailbox.rb
114
117
  - lib/sendmux_mailbox_generated/models/mailbox_address.rb
115
118
  - lib/sendmux_mailbox_generated/models/mailbox_attachment.rb
119
+ - lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_body.rb
120
+ - lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result.rb
121
+ - lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result_headers.rb
122
+ - lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result_response.rb
116
123
  - lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_result.rb
117
124
  - lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_result_response.rb
118
125
  - lib/sendmux_mailbox_generated/models/mailbox_batch_delete_messages_result.rb
@@ -162,7 +169,6 @@ files:
162
169
  - lib/sendmux_mailbox_generated/models/mailbox_message_query_changes_response.rb
163
170
  - lib/sendmux_mailbox_generated/models/mailbox_message_summary.rb
164
171
  - lib/sendmux_mailbox_generated/models/mailbox_message_summary_cursor_list_response.rb
165
- - lib/sendmux_mailbox_generated/models/mailbox_message_summary_from.rb
166
172
  - lib/sendmux_mailbox_generated/models/mailbox_quota.rb
167
173
  - lib/sendmux_mailbox_generated/models/mailbox_quota_cursor_list_response.rb
168
174
  - lib/sendmux_mailbox_generated/models/mailbox_raw_body.rb
@@ -208,7 +214,6 @@ files:
208
214
  - lib/sendmux_mailbox_generated/models/mailbox_thread_detail_response.rb
209
215
  - lib/sendmux_mailbox_generated/models/mailbox_thread_summary.rb
210
216
  - lib/sendmux_mailbox_generated/models/mailbox_thread_summary_cursor_list_response.rb
211
- - lib/sendmux_mailbox_generated/models/mailbox_thread_summary_last_message.rb
212
217
  - lib/sendmux_mailbox_generated/models/mailbox_thread_summary_states.rb
213
218
  - lib/sendmux_mailbox_generated/models/mailbox_typed_changes.rb
214
219
  - lib/sendmux_mailbox_generated/models/mailbox_typed_changes_response.rb