sendmux-management 1.3.0 → 2.0.1

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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +37 -1
  4. data/lib/sendmux/management/version.rb +1 -1
  5. data/lib/sendmux_management_generated/api/sending_accounts_api.rb +2 -2
  6. data/lib/sendmux_management_generated/models/delivery_log_detail.rb +54 -15
  7. data/lib/sendmux_management_generated/models/delivery_log_item.rb +52 -13
  8. data/lib/sendmux_management_generated/models/mailbox_app_password_result.rb +1 -1
  9. data/lib/sendmux_management_generated/models/mailbox_create_result.rb +1 -0
  10. data/lib/sendmux_management_generated/models/mailbox_credential.rb +0 -1
  11. data/lib/sendmux_management_generated/models/provider_allowed_actions.rb +30 -4
  12. data/lib/sendmux_management_generated/models/provider_create_body.rb +36 -5
  13. data/lib/sendmux_management_generated/models/provider_create_body_quotas_per_day.rb +1 -1
  14. data/lib/sendmux_management_generated/models/provider_item.rb +42 -4
  15. data/lib/sendmux_management_generated/models/provider_item_cursor_list_response.rb +1 -1
  16. data/lib/sendmux_management_generated/models/provider_list_item.rb +695 -0
  17. data/lib/sendmux_management_generated/models/provider_update_body.rb +36 -5
  18. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit.rb +4 -4
  19. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit_request.rb +2 -2
  20. data/lib/sendmux_management_generated/models/webhook_subscription_with_secret.rb +31 -38
  21. data/lib/sendmux_management_generated.rb +9 -2
  22. metadata +3 -4
  23. data/lib/sendmux_management_generated/models/mailbox_app_password_result_credential.rb +0 -359
  24. data/lib/sendmux_management_generated/models/provider_create_body_quotas_per_day_any_of.rb +0 -215
@@ -42,6 +42,9 @@ module Sendmux::Management::Generated
42
42
 
43
43
  attr_accessor :tracking_domain
44
44
 
45
+ # Per-account string variables. PATCH omission preserves the current map, a supplied map replaces it, and an empty map clears it. Detail responses return an empty map when no variables are set.
46
+ attr_accessor :variables
47
+
45
48
  class EnumAttributeValidator
46
49
  attr_reader :datatype
47
50
  attr_reader :allowable_values
@@ -79,7 +82,8 @@ module Sendmux::Management::Generated
79
82
  :'smtp_port' => :'smtp_port',
80
83
  :'smtp_protocol' => :'smtp_protocol',
81
84
  :'smtp_username' => :'smtp_username',
82
- :'tracking_domain' => :'tracking_domain'
85
+ :'tracking_domain' => :'tracking_domain',
86
+ :'variables' => :'variables'
83
87
  }
84
88
  end
85
89
 
@@ -108,7 +112,8 @@ module Sendmux::Management::Generated
108
112
  :'smtp_port' => :'Integer',
109
113
  :'smtp_protocol' => :'String',
110
114
  :'smtp_username' => :'String',
111
- :'tracking_domain' => :'String'
115
+ :'tracking_domain' => :'String',
116
+ :'variables' => :'Hash<String, String>'
112
117
  }
113
118
  end
114
119
 
@@ -119,7 +124,7 @@ module Sendmux::Management::Generated
119
124
  :'from_name',
120
125
  :'reply_to_email',
121
126
  :'reply_to_name',
122
- :'tracking_domain'
127
+ :'tracking_domain',
123
128
  ])
124
129
  end
125
130
 
@@ -190,6 +195,12 @@ module Sendmux::Management::Generated
190
195
  if attributes.key?(:'tracking_domain')
191
196
  self.tracking_domain = attributes[:'tracking_domain']
192
197
  end
198
+
199
+ if attributes.key?(:'variables')
200
+ if (value = attributes[:'variables']).is_a?(Hash)
201
+ self.variables = value
202
+ end
203
+ end
193
204
  end
194
205
 
195
206
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -265,6 +276,10 @@ module Sendmux::Management::Generated
265
276
  invalid_properties.push('invalid value for "tracking_domain", the character length must be smaller than or equal to 255.')
266
277
  end
267
278
 
279
+ if !@variables.nil? && @variables.length > 50
280
+ invalid_properties.push('invalid value for "variables", number of items must be less than or equal to 50.')
281
+ end
282
+
268
283
  invalid_properties
269
284
  end
270
285
 
@@ -291,6 +306,7 @@ module Sendmux::Management::Generated
291
306
  return false if !@smtp_username.nil? && @smtp_username.to_s.length > 255
292
307
  return false if !@smtp_username.nil? && @smtp_username.to_s.length < 1
293
308
  return false if !@tracking_domain.nil? && @tracking_domain.to_s.length > 255
309
+ return false if !@variables.nil? && @variables.length > 50
294
310
  true
295
311
  end
296
312
 
@@ -462,6 +478,20 @@ module Sendmux::Management::Generated
462
478
  @tracking_domain = tracking_domain
463
479
  end
464
480
 
481
+ # Custom attribute writer method with validation
482
+ # @param [Object] variables Value to be assigned
483
+ def variables=(variables)
484
+ if variables.nil?
485
+ fail ArgumentError, 'variables cannot be nil'
486
+ end
487
+
488
+ if variables.length > 50
489
+ fail ArgumentError, 'invalid value for "variables", number of items must be less than or equal to 50.'
490
+ end
491
+
492
+ @variables = variables
493
+ end
494
+
465
495
  # Checks equality by comparing each attribute.
466
496
  # @param [Object] Object to be compared
467
497
  def ==(o)
@@ -479,7 +509,8 @@ module Sendmux::Management::Generated
479
509
  smtp_port == o.smtp_port &&
480
510
  smtp_protocol == o.smtp_protocol &&
481
511
  smtp_username == o.smtp_username &&
482
- tracking_domain == o.tracking_domain
512
+ tracking_domain == o.tracking_domain &&
513
+ variables == o.variables
483
514
  end
484
515
 
485
516
  # @see the `==` method
@@ -491,7 +522,7 @@ module Sendmux::Management::Generated
491
522
  # Calculates hash code according to all attributes.
492
523
  # @return [Integer] Hash code
493
524
  def hash
494
- [from_email, from_name, name, percentage, quotas, reply_to_email, reply_to_name, smtp_host, smtp_password, smtp_port, smtp_protocol, smtp_username, tracking_domain].hash
525
+ [from_email, from_name, name, percentage, quotas, reply_to_email, reply_to_name, smtp_host, smtp_password, smtp_port, smtp_protocol, smtp_username, tracking_domain, variables].hash
495
526
  end
496
527
 
497
528
  # Builds the object from hash
@@ -154,7 +154,7 @@ module Sendmux::Management::Generated
154
154
  invalid_properties.push('invalid value for "can_request_increase", can_request_increase cannot be nil.')
155
155
  end
156
156
 
157
- if @daily_limit < 0
157
+ if !@daily_limit.nil? && @daily_limit < 0
158
158
  invalid_properties.push('invalid value for "daily_limit", must be greater than or equal to 0.')
159
159
  end
160
160
 
@@ -170,7 +170,7 @@ module Sendmux::Management::Generated
170
170
  invalid_properties.push('invalid value for "sent_today", must be greater than or equal to 0.')
171
171
  end
172
172
 
173
- if @threshold_usage < 0
173
+ if !@threshold_usage.nil? && @threshold_usage < 0
174
174
  invalid_properties.push('invalid value for "threshold_usage", must be greater than or equal to 0.')
175
175
  end
176
176
 
@@ -182,11 +182,11 @@ module Sendmux::Management::Generated
182
182
  def valid?
183
183
  warn '[DEPRECATED] the `valid?` method is obsolete'
184
184
  return false if @can_request_increase.nil?
185
- return false if @daily_limit < 0
185
+ return false if !@daily_limit.nil? && @daily_limit < 0
186
186
  return false if @is_near_limit.nil?
187
187
  return false if @sent_today.nil?
188
188
  return false if @sent_today < 0
189
- return false if @threshold_usage < 0
189
+ return false if !@threshold_usage.nil? && @threshold_usage < 0
190
190
  true
191
191
  end
192
192
 
@@ -170,7 +170,7 @@ module Sendmux::Management::Generated
170
170
  def list_invalid_properties
171
171
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
172
172
  invalid_properties = Array.new
173
- if @approved_daily_limit <= 0
173
+ if !@approved_daily_limit.nil? && @approved_daily_limit <= 0
174
174
  invalid_properties.push('invalid value for "approved_daily_limit", must be greater than 0.')
175
175
  end
176
176
 
@@ -209,7 +209,7 @@ module Sendmux::Management::Generated
209
209
  # @return true if the model is valid
210
210
  def valid?
211
211
  warn '[DEPRECATED] the `valid?` method is obsolete'
212
- return false if @approved_daily_limit <= 0
212
+ return false if !@approved_daily_limit.nil? && @approved_daily_limit <= 0
213
213
  return false if @created_at.nil?
214
214
  return false if @current_daily_limit.nil?
215
215
  return false if @current_daily_limit < 0
@@ -35,15 +35,15 @@ module Sendmux::Management::Generated
35
35
  # Optional human-friendly label used in dashboard list/detail pages. May be `null` for subscriptions created without a name.
36
36
  attr_accessor :name
37
37
 
38
+ # Signing secret used to verify the HMAC-SHA256 signature on every event POST. This is the ONLY response containing the raw secret — store it securely; it cannot be retrieved later. Use POST /webhooks/{id}/rotate-secret to issue a new one.
39
+ attr_accessor :secret
40
+
38
41
  # ISO 8601 last-modified timestamp
39
42
  attr_accessor :updated_at
40
43
 
41
44
  # HTTPS endpoint that receives signed event POSTs.
42
45
  attr_accessor :url
43
46
 
44
- # Signing secret used to verify the HMAC-SHA256 signature on every event POST. This is the ONLY response containing the raw secret — store it securely; it cannot be retrieved later. Use POST /webhooks/{id}/rotate-secret to issue a new one.
45
- attr_accessor :secret
46
-
47
47
  class EnumAttributeValidator
48
48
  attr_reader :datatype
49
49
  attr_reader :allowable_values
@@ -76,9 +76,9 @@ module Sendmux::Management::Generated
76
76
  :'filters' => :'filters',
77
77
  :'id' => :'id',
78
78
  :'name' => :'name',
79
+ :'secret' => :'secret',
79
80
  :'updated_at' => :'updated_at',
80
- :'url' => :'url',
81
- :'secret' => :'secret'
81
+ :'url' => :'url'
82
82
  }
83
83
  end
84
84
 
@@ -102,9 +102,9 @@ module Sendmux::Management::Generated
102
102
  :'filters' => :'WebhookFilters',
103
103
  :'id' => :'String',
104
104
  :'name' => :'String',
105
+ :'secret' => :'String',
105
106
  :'updated_at' => :'String',
106
- :'url' => :'String',
107
- :'secret' => :'String'
107
+ :'url' => :'String'
108
108
  }
109
109
  end
110
110
 
@@ -115,13 +115,6 @@ module Sendmux::Management::Generated
115
115
  ])
116
116
  end
117
117
 
118
- # List of class defined in allOf (OpenAPI v3)
119
- def self.openapi_all_of
120
- [
121
- :'WebhookSubscription'
122
- ]
123
- end
124
-
125
118
  # Initializes the object
126
119
  # @param [Hash] attributes Model attributes in the form of hash
127
120
  def initialize(attributes = {})
@@ -182,6 +175,12 @@ module Sendmux::Management::Generated
182
175
  self.name = nil
183
176
  end
184
177
 
178
+ if attributes.key?(:'secret')
179
+ self.secret = attributes[:'secret']
180
+ else
181
+ self.secret = nil
182
+ end
183
+
185
184
  if attributes.key?(:'updated_at')
186
185
  self.updated_at = attributes[:'updated_at']
187
186
  else
@@ -193,12 +192,6 @@ module Sendmux::Management::Generated
193
192
  else
194
193
  self.url = nil
195
194
  end
196
-
197
- if attributes.key?(:'secret')
198
- self.secret = attributes[:'secret']
199
- else
200
- self.secret = nil
201
- end
202
195
  end
203
196
 
204
197
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -230,6 +223,10 @@ module Sendmux::Management::Generated
230
223
  invalid_properties.push('invalid value for "id", id cannot be nil.')
231
224
  end
232
225
 
226
+ if @secret.nil?
227
+ invalid_properties.push('invalid value for "secret", secret cannot be nil.')
228
+ end
229
+
233
230
  if @updated_at.nil?
234
231
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
235
232
  end
@@ -238,10 +235,6 @@ module Sendmux::Management::Generated
238
235
  invalid_properties.push('invalid value for "url", url cannot be nil.')
239
236
  end
240
237
 
241
- if @secret.nil?
242
- invalid_properties.push('invalid value for "secret", secret cannot be nil.')
243
- end
244
-
245
238
  invalid_properties
246
239
  end
247
240
 
@@ -255,9 +248,9 @@ module Sendmux::Management::Generated
255
248
  return false if @failing.nil?
256
249
  return false if @filters.nil?
257
250
  return false if @id.nil?
251
+ return false if @secret.nil?
258
252
  return false if @updated_at.nil?
259
253
  return false if @url.nil?
260
- return false if @secret.nil?
261
254
  true
262
255
  end
263
256
 
@@ -311,6 +304,16 @@ module Sendmux::Management::Generated
311
304
  @id = id
312
305
  end
313
306
 
307
+ # Custom attribute writer method with validation
308
+ # @param [Object] secret Value to be assigned
309
+ def secret=(secret)
310
+ if secret.nil?
311
+ fail ArgumentError, 'secret cannot be nil'
312
+ end
313
+
314
+ @secret = secret
315
+ end
316
+
314
317
  # Custom attribute writer method with validation
315
318
  # @param [Object] updated_at Value to be assigned
316
319
  def updated_at=(updated_at)
@@ -331,16 +334,6 @@ module Sendmux::Management::Generated
331
334
  @url = url
332
335
  end
333
336
 
334
- # Custom attribute writer method with validation
335
- # @param [Object] secret Value to be assigned
336
- def secret=(secret)
337
- if secret.nil?
338
- fail ArgumentError, 'secret cannot be nil'
339
- end
340
-
341
- @secret = secret
342
- end
343
-
344
337
  # Checks equality by comparing each attribute.
345
338
  # @param [Object] Object to be compared
346
339
  def ==(o)
@@ -353,9 +346,9 @@ module Sendmux::Management::Generated
353
346
  filters == o.filters &&
354
347
  id == o.id &&
355
348
  name == o.name &&
349
+ secret == o.secret &&
356
350
  updated_at == o.updated_at &&
357
- url == o.url &&
358
- secret == o.secret
351
+ url == o.url
359
352
  end
360
353
 
361
354
  # @see the `==` method
@@ -367,7 +360,7 @@ module Sendmux::Management::Generated
367
360
  # Calculates hash code according to all attributes.
368
361
  # @return [Integer] Hash code
369
362
  def hash
370
- [created_at, enabled, event_types, failing, filters, id, name, updated_at, url, secret].hash
363
+ [created_at, enabled, event_types, failing, filters, id, name, secret, updated_at, url].hash
371
364
  end
372
365
 
373
366
  # Builds the object from hash
@@ -55,7 +55,6 @@ require 'sendmux_management_generated/models/incoming_log_item_cursor_list_respo
55
55
  require 'sendmux_management_generated/models/incoming_log_item_response'
56
56
  require 'sendmux_management_generated/models/mailbox'
57
57
  require 'sendmux_management_generated/models/mailbox_app_password_result'
58
- require 'sendmux_management_generated/models/mailbox_app_password_result_credential'
59
58
  require 'sendmux_management_generated/models/mailbox_app_password_result_response'
60
59
  require 'sendmux_management_generated/models/mailbox_availability_reason'
61
60
  require 'sendmux_management_generated/models/mailbox_availability_response'
@@ -86,7 +85,6 @@ require 'sendmux_management_generated/models/provider_allowed_actions'
86
85
  require 'sendmux_management_generated/models/provider_create_body'
87
86
  require 'sendmux_management_generated/models/provider_create_body_quotas'
88
87
  require 'sendmux_management_generated/models/provider_create_body_quotas_per_day'
89
- require 'sendmux_management_generated/models/provider_create_body_quotas_per_day_any_of'
90
88
  require 'sendmux_management_generated/models/provider_deleted'
91
89
  require 'sendmux_management_generated/models/provider_deleted_response'
92
90
  require 'sendmux_management_generated/models/provider_item'
@@ -94,6 +92,7 @@ require 'sendmux_management_generated/models/provider_item_cursor_list_response'
94
92
  require 'sendmux_management_generated/models/provider_item_response'
95
93
  require 'sendmux_management_generated/models/provider_limits'
96
94
  require 'sendmux_management_generated/models/provider_limits_response'
95
+ require 'sendmux_management_generated/models/provider_list_item'
97
96
  require 'sendmux_management_generated/models/provider_quota_range'
98
97
  require 'sendmux_management_generated/models/provider_quotas'
99
98
  require 'sendmux_management_generated/models/provider_stats'
@@ -172,3 +171,11 @@ module Sendmux::Management::Generated
172
171
  end
173
172
  end
174
173
  end
174
+
175
+ module Sendmux::Management::Generated
176
+ # Deprecated model constants kept as aliases of their replacements until the next major release.
177
+ MailboxAppPasswordResultCredential = MailboxCredential
178
+ deprecate_constant :MailboxAppPasswordResultCredential
179
+ ProviderCreateBodyQuotasPerDayAnyOf = ProviderQuotaRange
180
+ deprecate_constant :ProviderCreateBodyQuotasPerDayAnyOf
181
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendmux-management
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sendmux
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-09-10 00:00:00.000000000 Z
10
+ date: 2026-09-21 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: faraday
@@ -155,7 +155,6 @@ files:
155
155
  - lib/sendmux_management_generated/models/incoming_log_item_response.rb
156
156
  - lib/sendmux_management_generated/models/mailbox.rb
157
157
  - lib/sendmux_management_generated/models/mailbox_app_password_result.rb
158
- - lib/sendmux_management_generated/models/mailbox_app_password_result_credential.rb
159
158
  - lib/sendmux_management_generated/models/mailbox_app_password_result_response.rb
160
159
  - lib/sendmux_management_generated/models/mailbox_availability_reason.rb
161
160
  - lib/sendmux_management_generated/models/mailbox_availability_response.rb
@@ -186,7 +185,6 @@ files:
186
185
  - lib/sendmux_management_generated/models/provider_create_body.rb
187
186
  - lib/sendmux_management_generated/models/provider_create_body_quotas.rb
188
187
  - lib/sendmux_management_generated/models/provider_create_body_quotas_per_day.rb
189
- - lib/sendmux_management_generated/models/provider_create_body_quotas_per_day_any_of.rb
190
188
  - lib/sendmux_management_generated/models/provider_deleted.rb
191
189
  - lib/sendmux_management_generated/models/provider_deleted_response.rb
192
190
  - lib/sendmux_management_generated/models/provider_item.rb
@@ -194,6 +192,7 @@ files:
194
192
  - lib/sendmux_management_generated/models/provider_item_response.rb
195
193
  - lib/sendmux_management_generated/models/provider_limits.rb
196
194
  - lib/sendmux_management_generated/models/provider_limits_response.rb
195
+ - lib/sendmux_management_generated/models/provider_list_item.rb
197
196
  - lib/sendmux_management_generated/models/provider_quota_range.rb
198
197
  - lib/sendmux_management_generated/models/provider_quotas.rb
199
198
  - lib/sendmux_management_generated/models/provider_stats.rb