sendmux-management 1.1.1 → 1.3.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 (25) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +16 -1
  4. data/lib/sendmux/management/client.rb +13 -2
  5. data/lib/sendmux/management/version.rb +1 -1
  6. data/lib/sendmux_management_generated/api/billing_api.rb +5 -5
  7. data/lib/sendmux_management_generated/api/connection_api.rb +82 -0
  8. data/lib/sendmux_management_generated/api/domain_filters_api.rb +2 -2
  9. data/lib/sendmux_management_generated/api/domains_api.rb +7 -7
  10. data/lib/sendmux_management_generated/api/emails_api.rb +3 -3
  11. data/lib/sendmux_management_generated/api/inboxes_api.rb +2 -2
  12. data/lib/sendmux_management_generated/api/mailbox_filters_api.rb +2 -2
  13. data/lib/sendmux_management_generated/api/mailboxes_api.rb +10 -10
  14. data/lib/sendmux_management_generated/api/sending_accounts_api.rb +15 -15
  15. data/lib/sendmux_management_generated/api/webhooks_api.rb +9 -9
  16. data/lib/sendmux_management_generated/configuration.rb +7 -0
  17. data/lib/sendmux_management_generated/models/balance.rb +1 -1
  18. data/lib/sendmux_management_generated/models/connection.rb +273 -0
  19. data/lib/sendmux_management_generated/models/connection_credential.rb +226 -0
  20. data/lib/sendmux_management_generated/models/connection_mailboxes_inner.rb +190 -0
  21. data/lib/sendmux_management_generated/models/connection_response.rb +223 -0
  22. data/lib/sendmux_management_generated/models/connection_team.rb +190 -0
  23. data/lib/sendmux_management_generated/models/management_create_mailbox_request.rb +11 -0
  24. data/lib/sendmux_management_generated.rb +6 -0
  25. metadata +18 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3439843238f753ec990889125b677ff6a94ef5453bfc63f934a7d0cd17bbbbed
4
- data.tar.gz: 59fc079fb696f1820a8ca27afaa3e97af5e97a08c696a9365228b4334618a1f8
3
+ metadata.gz: 5054b52ac1b86c25fe37c185168b5566c8ebdfb1cfce976d9d9e906a50a41af0
4
+ data.tar.gz: f81b9dde19a295a11f13c33026a659b8afe4e1a1907125e883ce713670634bae
5
5
  SHA512:
6
- metadata.gz: 8b655b2cf33a13056503893ed4e82bfced4a45e7a10f11084ec6ba170bb4b6059fb76e8e2b4f8035bc16ed651ae3a53254af6a4df6609f890343ed2a541b9ae2
7
- data.tar.gz: d1a4b1896ebb17576c397fab995b55980a2eeacdbfbcc440a04dff6929134a176d44f9af0389b4349e738a70e8f6f9e2ea28e438bffeee022e8acc1384a08f9c
6
+ metadata.gz: 5fb7b4a3b04493e60813cc8cf23ee47210d5d81a78828cc8ee2910c589d42c2597a8a763eaa07dcfad54fb2a4044f2a0f26082365ef8fb8cc36b4a35be2b7ff5
7
+ data.tar.gz: 2f8c1810c172bd30c0ddd94407259715002282b47eec3af5568412711e4571df369817b9a1fb8d994ad0d2c5d4bb7b5c51c85cc153cbf0feaf4f0225acd4e461
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.0](https://github.com/Sendmux/sendmux-sdk/compare/ruby-management/v1.2.0...ruby-management/v1.3.0) (2026-09-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * add REST OAuth clients and CLI token lifecycle ([cc4a3aa](https://github.com/Sendmux/sendmux-sdk/commit/cc4a3aa6110378641418a94455ed5b9a986e65ff))
9
+
10
+ ## [1.2.0](https://github.com/Sendmux/sendmux-sdk/compare/ruby-management/v1.1.1...ruby-management/v1.2.0) (2026-09-08)
11
+
12
+
13
+ ### Features
14
+
15
+ * add connection checks across SDKs, CLI and MCP ([77f449e](https://github.com/Sendmux/sendmux-sdk/commit/77f449e2c8cba49bc8bc84c49c35baa61120866a))
16
+ * **sdk:** add connection checks across clients, CLI and MCP ([3e02c67](https://github.com/Sendmux/sendmux-sdk/commit/3e02c67dcab45e37dad7abbdd4c4e1bd0b1fbbe6))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * anchor generated Ruby email validation ([a87933b](https://github.com/Sendmux/sendmux-sdk/commit/a87933b507c572104b1832818e7db0587ad0352b))
22
+ * reject mailbox email line breaks in generated clients ([7934cbe](https://github.com/Sendmux/sendmux-sdk/commit/7934cbe13f1d966878239e7c1d9e75ba44927937))
23
+ * sync mailbox reliability clients ([fad78fa](https://github.com/Sendmux/sendmux-sdk/commit/fad78faf1d495c31bc0e0c40ef7d605f72727431))
24
+ * sync mailbox reliability clients ([e8e7148](https://github.com/Sendmux/sendmux-sdk/commit/e8e7148e21f8fdba790c89331e8a2e144f86be4b))
25
+
3
26
  ## [1.1.1](https://github.com/Sendmux/sendmux-sdk/compare/ruby-management/v1.1.0...ruby-management/v1.1.1) (2026-08-07)
4
27
 
5
28
 
data/README.md CHANGED
@@ -18,6 +18,8 @@ Ruby SDK package for the Sendmux Management API.
18
18
  - Ruby 3.1 or newer.
19
19
  - A root Sendmux API key beginning with `smx_root_`.
20
20
 
21
+ For OAuth, use a REST access token with the scopes and mailbox access required by the operation. See [OAuth for REST APIs](https://sendmux.ai/docs/developer-tools/oauth).
22
+
21
23
  ## Installation
22
24
 
23
25
  ```sh
@@ -30,9 +32,21 @@ Or add it to your Gemfile:
30
32
  gem "sendmux-management", "~> 1.0"
31
33
  ```
32
34
 
35
+ ## OAuth access tokens
36
+
37
+ Pass either `api_key:` or `access_token:`. `access_token:` accepts a bare token string or a callable; the callable is evaluated once per authenticated request. Your application owns token storage, expiry checks and refresh coordination.
38
+
39
+ ```ruby
40
+ require "sendmux/management"
41
+
42
+ client = Sendmux::Management::Client.new(
43
+ access_token: -> { ENV.fetch("SENDMUX_ACCESS_TOKEN") }
44
+ )
45
+ ```
46
+
33
47
  ## Usage
34
48
 
35
- Create a management client with a root key before calling generated operations.
49
+ Create a management client with a root key for the API-key example below.
36
50
 
37
51
  ```ruby
38
52
  require "sendmux/management"
@@ -53,6 +67,7 @@ puts domains.data.length
53
67
  `Sendmux::Management::Client` exposes generated API groups:
54
68
 
55
69
  - `client.billing`
70
+ - `client.connection`
56
71
  - `client.domain_filters`
57
72
  - `client.domains`
58
73
  - `client.emails`
@@ -5,6 +5,12 @@ module Sendmux
5
5
  DEFAULT_BASE_URL = 'https://app.sendmux.ai/api/v1'
6
6
 
7
7
  class ApiClient < Generated::ApiClient
8
+ def update_params_for_auth!(header_params, query_params, auth_names)
9
+ return super unless config.access_token_getter && !Array(auth_names).empty?
10
+
11
+ header_params['Authorization'] = "Bearer #{config.access_token_with_refresh}"
12
+ end
13
+
8
14
  def call_api(...)
9
15
  super
10
16
  rescue Generated::ApiError => e
@@ -15,12 +21,13 @@ module Sendmux
15
21
  class Client
16
22
  attr_reader :api_client, :configuration
17
23
 
18
- def initialize(api_key:, base_url: DEFAULT_BASE_URL, retry_options: nil)
24
+ def initialize(api_key: nil, access_token: nil, base_url: DEFAULT_BASE_URL, retry_options: nil)
19
25
  @configuration = Sendmux::Core::Auth.configure_bearer(
20
26
  Generated::Configuration.new,
21
27
  api_key,
22
28
  Sendmux::Core::ApiKeySurface::ROOT,
23
- base_url: base_url
29
+ base_url: base_url,
30
+ access_token: access_token
24
31
  )
25
32
  Sendmux::Core::Retry.configure(@configuration, retry_options)
26
33
  @api_client = ApiClient.new(@configuration)
@@ -30,6 +37,10 @@ module Sendmux
30
37
  @billing ||= Generated::BillingApi.new(@api_client)
31
38
  end
32
39
 
40
+ def connection
41
+ @connection ||= Generated::ConnectionApi.new(@api_client)
42
+ end
43
+
33
44
  def domain_filters
34
45
  @domain_filters ||= Generated::DomainFiltersApi.new(@api_client)
35
46
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sendmux
4
4
  module Management
5
- VERSION = '1.1.1'
5
+ VERSION = '1.3.0'
6
6
  end
7
7
  end
@@ -64,7 +64,7 @@ module Sendmux::Management::Generated
64
64
  return_type = opts[:debug_return_type] || 'SpendSummaryResponse'
65
65
 
66
66
  # auth_names
67
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
67
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
68
68
 
69
69
  new_options = opts.merge(
70
70
  :operation => :"BillingApi.management_get_spend_summary",
@@ -84,7 +84,7 @@ module Sendmux::Management::Generated
84
84
  end
85
85
 
86
86
  # Get current balance
87
- # Returns the current team balance and auto top-up configuration.
87
+ # Returns the current spendable balance.
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @return [BalanceResponse]
90
90
  def management_list_balance(opts = {})
@@ -93,7 +93,7 @@ module Sendmux::Management::Generated
93
93
  end
94
94
 
95
95
  # Get current balance
96
- # Returns the current team balance and auto top-up configuration.
96
+ # Returns the current spendable balance.
97
97
  # @param [Hash] opts the optional parameters
98
98
  # @return [Array<(BalanceResponse, Integer, Hash)>] BalanceResponse data, response status code and response headers
99
99
  def management_list_balance_with_http_info(opts = {})
@@ -121,7 +121,7 @@ module Sendmux::Management::Generated
121
121
  return_type = opts[:debug_return_type] || 'BalanceResponse'
122
122
 
123
123
  # auth_names
124
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
124
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
125
125
 
126
126
  new_options = opts.merge(
127
127
  :operation => :"BillingApi.management_list_balance",
@@ -199,7 +199,7 @@ module Sendmux::Management::Generated
199
199
  return_type = opts[:debug_return_type] || 'TransactionCursorListResponse'
200
200
 
201
201
  # auth_names
202
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
202
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
203
203
 
204
204
  new_options = opts.merge(
205
205
  :operation => :"BillingApi.management_list_transactions",
@@ -0,0 +1,82 @@
1
+ =begin
2
+ #Sendmux API
3
+
4
+ #Programmatic access to your Sendmux email infrastructure.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Sendmux::Management::Generated
16
+ class ConnectionApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get Management connection
23
+ # Validate this credential and return its team, connection label, permissions and authorised mailboxes. No additional read permission or mailbox selection is required. Mailbox storage and sending availability are not checked. No user profile or secrets are returned.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :if_none_match ETag from a previous response. A match returns 304 with no body after rechecking authentication.
26
+ # @return [ConnectionResponse]
27
+ def management_get_connection(opts = {})
28
+ data, _status_code, _headers = management_get_connection_with_http_info(opts)
29
+ data
30
+ end
31
+
32
+ # Get Management connection
33
+ # Validate this credential and return its team, connection label, permissions and authorised mailboxes. No additional read permission or mailbox selection is required. Mailbox storage and sending availability are not checked. No user profile or secrets are returned.
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [String] :if_none_match ETag from a previous response. A match returns 304 with no body after rechecking authentication.
36
+ # @return [Array<(ConnectionResponse, Integer, Hash)>] ConnectionResponse data, response status code and response headers
37
+ def management_get_connection_with_http_info(opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ConnectionApi.management_get_connection ...'
40
+ end
41
+ # resource path
42
+ local_var_path = '/me'
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
51
+ header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil?
52
+
53
+ # form parameters
54
+ form_params = opts[:form_params] || {}
55
+
56
+ # http body (model)
57
+ post_body = opts[:debug_body]
58
+
59
+ # return_type
60
+ return_type = opts[:debug_return_type] || 'ConnectionResponse'
61
+
62
+ # auth_names
63
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
64
+
65
+ new_options = opts.merge(
66
+ :operation => :"ConnectionApi.management_get_connection",
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => return_type
73
+ )
74
+
75
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: ConnectionApi#management_get_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+ end
82
+ end
@@ -66,7 +66,7 @@ module Sendmux::Management::Generated
66
66
  return_type = opts[:debug_return_type] || 'FilterStateResponse'
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
69
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :operation => :"DomainFiltersApi.management_get_domain_filters",
@@ -139,7 +139,7 @@ module Sendmux::Management::Generated
139
139
  return_type = opts[:debug_return_type] || 'FilterStateResponse'
140
140
 
141
141
  # auth_names
142
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
142
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
143
143
 
144
144
  new_options = opts.merge(
145
145
  :operation => :"DomainFiltersApi.management_set_domain_filters",
@@ -71,7 +71,7 @@ module Sendmux::Management::Generated
71
71
  return_type = opts[:debug_return_type] || 'DomainItemResponse'
72
72
 
73
73
  # auth_names
74
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
74
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
75
75
 
76
76
  new_options = opts.merge(
77
77
  :operation => :"DomainsApi.management_create_domain",
@@ -134,7 +134,7 @@ module Sendmux::Management::Generated
134
134
  return_type = opts[:debug_return_type] || 'DomainDeletedResponse'
135
135
 
136
136
  # auth_names
137
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
137
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
138
138
 
139
139
  new_options = opts.merge(
140
140
  :operation => :"DomainsApi.management_delete_domain",
@@ -200,7 +200,7 @@ module Sendmux::Management::Generated
200
200
  return_type = opts[:debug_return_type] || 'DomainItemResponse'
201
201
 
202
202
  # auth_names
203
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
203
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
204
204
 
205
205
  new_options = opts.merge(
206
206
  :operation => :"DomainsApi.management_get_domain",
@@ -263,7 +263,7 @@ module Sendmux::Management::Generated
263
263
  return_type = opts[:debug_return_type] || 'String'
264
264
 
265
265
  # auth_names
266
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
266
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
267
267
 
268
268
  new_options = opts.merge(
269
269
  :operation => :"DomainsApi.management_get_domain_zone_file",
@@ -334,7 +334,7 @@ module Sendmux::Management::Generated
334
334
  return_type = opts[:debug_return_type] || 'DomainItemCursorListResponse'
335
335
 
336
336
  # auth_names
337
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
337
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
338
338
 
339
339
  new_options = opts.merge(
340
340
  :operation => :"DomainsApi.management_list_domains",
@@ -407,7 +407,7 @@ module Sendmux::Management::Generated
407
407
  return_type = opts[:debug_return_type] || 'DomainItemResponse'
408
408
 
409
409
  # auth_names
410
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
410
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
411
411
 
412
412
  new_options = opts.merge(
413
413
  :operation => :"DomainsApi.management_update_domain",
@@ -470,7 +470,7 @@ module Sendmux::Management::Generated
470
470
  return_type = opts[:debug_return_type] || 'DomainVerifyResponse'
471
471
 
472
472
  # auth_names
473
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
473
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
474
474
 
475
475
  new_options = opts.merge(
476
476
  :operation => :"DomainsApi.management_verify_domain",
@@ -66,7 +66,7 @@ module Sendmux::Management::Generated
66
66
  return_type = opts[:debug_return_type] || 'DeliveryLogItemResponse'
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
69
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :operation => :"EmailsApi.management_get_email_log",
@@ -146,7 +146,7 @@ module Sendmux::Management::Generated
146
146
  return_type = opts[:debug_return_type] || 'EmailMetricsResponse'
147
147
 
148
148
  # auth_names
149
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
149
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
150
150
 
151
151
  new_options = opts.merge(
152
152
  :operation => :"EmailsApi.management_get_email_metrics",
@@ -236,7 +236,7 @@ module Sendmux::Management::Generated
236
236
  return_type = opts[:debug_return_type] || 'DeliveryLogItemCursorListResponse'
237
237
 
238
238
  # auth_names
239
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
239
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
240
240
 
241
241
  new_options = opts.merge(
242
242
  :operation => :"EmailsApi.management_list_email_logs",
@@ -63,7 +63,7 @@ module Sendmux::Management::Generated
63
63
  return_type = opts[:debug_return_type] || 'IncomingLogItemResponse'
64
64
 
65
65
  # auth_names
66
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
66
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
67
67
 
68
68
  new_options = opts.merge(
69
69
  :operation => :"InboxesApi.management_get_inbox_log",
@@ -153,7 +153,7 @@ module Sendmux::Management::Generated
153
153
  return_type = opts[:debug_return_type] || 'IncomingLogItemCursorListResponse'
154
154
 
155
155
  # auth_names
156
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
156
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
157
157
 
158
158
  new_options = opts.merge(
159
159
  :operation => :"InboxesApi.management_list_inbox_logs",
@@ -66,7 +66,7 @@ module Sendmux::Management::Generated
66
66
  return_type = opts[:debug_return_type] || 'FilterStateResponse'
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
69
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :operation => :"MailboxFiltersApi.management_get_mailbox_filters",
@@ -139,7 +139,7 @@ module Sendmux::Management::Generated
139
139
  return_type = opts[:debug_return_type] || 'FilterStateResponse'
140
140
 
141
141
  # auth_names
142
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
142
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
143
143
 
144
144
  new_options = opts.merge(
145
145
  :operation => :"MailboxFiltersApi.management_set_mailbox_filters",
@@ -64,7 +64,7 @@ module Sendmux::Management::Generated
64
64
  return_type = opts[:debug_return_type] || 'MailboxAvailabilityResponse'
65
65
 
66
66
  # auth_names
67
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
67
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
68
68
 
69
69
  new_options = opts.merge(
70
70
  :operation => :"MailboxesApi.management_check_mailbox_availability",
@@ -135,7 +135,7 @@ module Sendmux::Management::Generated
135
135
  return_type = opts[:debug_return_type] || 'MailboxCreateResultResponse'
136
136
 
137
137
  # auth_names
138
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
138
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
139
139
 
140
140
  new_options = opts.merge(
141
141
  :operation => :"MailboxesApi.management_create_mailbox",
@@ -212,7 +212,7 @@ module Sendmux::Management::Generated
212
212
  return_type = opts[:debug_return_type] || 'MailboxAppPasswordResultResponse'
213
213
 
214
214
  # auth_names
215
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
215
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
216
216
 
217
217
  new_options = opts.merge(
218
218
  :operation => :"MailboxesApi.management_create_mailbox_key",
@@ -275,7 +275,7 @@ module Sendmux::Management::Generated
275
275
  return_type = opts[:debug_return_type] || 'MailboxDeletedResponse'
276
276
 
277
277
  # auth_names
278
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
278
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
279
279
 
280
280
  new_options = opts.merge(
281
281
  :operation => :"MailboxesApi.management_delete_mailbox",
@@ -344,7 +344,7 @@ module Sendmux::Management::Generated
344
344
  return_type = opts[:debug_return_type] || 'MailboxKeyDeletedResponse'
345
345
 
346
346
  # auth_names
347
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
347
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
348
348
 
349
349
  new_options = opts.merge(
350
350
  :operation => :"MailboxesApi.management_delete_mailbox_key",
@@ -410,7 +410,7 @@ module Sendmux::Management::Generated
410
410
  return_type = opts[:debug_return_type] || 'MailboxItemResponse'
411
411
 
412
412
  # auth_names
413
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
413
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
414
414
 
415
415
  new_options = opts.merge(
416
416
  :operation => :"MailboxesApi.management_get_mailbox",
@@ -488,7 +488,7 @@ module Sendmux::Management::Generated
488
488
  return_type = opts[:debug_return_type] || 'MailboxItemCursorListResponse'
489
489
 
490
490
  # auth_names
491
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
491
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
492
492
 
493
493
  new_options = opts.merge(
494
494
  :operation => :"MailboxesApi.management_list_mailboxes",
@@ -558,7 +558,7 @@ module Sendmux::Management::Generated
558
558
  return_type = opts[:debug_return_type] || 'MailboxItemResponse'
559
559
 
560
560
  # auth_names
561
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
561
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
562
562
 
563
563
  new_options = opts.merge(
564
564
  :operation => :"MailboxesApi.management_resume_mailbox",
@@ -628,7 +628,7 @@ module Sendmux::Management::Generated
628
628
  return_type = opts[:debug_return_type] || 'MailboxItemResponse'
629
629
 
630
630
  # auth_names
631
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
631
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
632
632
 
633
633
  new_options = opts.merge(
634
634
  :operation => :"MailboxesApi.management_suspend_mailbox",
@@ -701,7 +701,7 @@ module Sendmux::Management::Generated
701
701
  return_type = opts[:debug_return_type] || 'MailboxItemResponse'
702
702
 
703
703
  # auth_names
704
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
704
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
705
705
 
706
706
  new_options = opts.merge(
707
707
  :operation => :"MailboxesApi.management_update_mailbox",
@@ -70,7 +70,7 @@ module Sendmux::Management::Generated
70
70
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
71
71
 
72
72
  # auth_names
73
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
73
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
74
74
 
75
75
  new_options = opts.merge(
76
76
  :operation => :"SendingAccountsApi.management_activate_provider",
@@ -133,7 +133,7 @@ module Sendmux::Management::Generated
133
133
  return_type = opts[:debug_return_type] || 'SharedAmazonSesLimitRequestCancelResponse'
134
134
 
135
135
  # auth_names
136
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
136
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
137
137
 
138
138
  new_options = opts.merge(
139
139
  :operation => :"SendingAccountsApi.management_cancel_shared_amazon_ses_limit_request",
@@ -204,7 +204,7 @@ module Sendmux::Management::Generated
204
204
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
205
205
 
206
206
  # auth_names
207
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
207
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
208
208
 
209
209
  new_options = opts.merge(
210
210
  :operation => :"SendingAccountsApi.management_create_provider",
@@ -268,7 +268,7 @@ module Sendmux::Management::Generated
268
268
  return_type = opts[:debug_return_type] || 'SharedAmazonSesLimitRequestCreateResponse'
269
269
 
270
270
  # auth_names
271
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
271
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
272
272
 
273
273
  new_options = opts.merge(
274
274
  :operation => :"SendingAccountsApi.management_create_shared_amazon_ses_limit_request",
@@ -338,7 +338,7 @@ module Sendmux::Management::Generated
338
338
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
339
339
 
340
340
  # auth_names
341
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
341
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
342
342
 
343
343
  new_options = opts.merge(
344
344
  :operation => :"SendingAccountsApi.management_deactivate_provider",
@@ -401,7 +401,7 @@ module Sendmux::Management::Generated
401
401
  return_type = opts[:debug_return_type] || 'ProviderDeletedResponse'
402
402
 
403
403
  # auth_names
404
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
404
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
405
405
 
406
406
  new_options = opts.merge(
407
407
  :operation => :"SendingAccountsApi.management_delete_provider",
@@ -467,7 +467,7 @@ module Sendmux::Management::Generated
467
467
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
468
468
 
469
469
  # auth_names
470
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
470
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
471
471
 
472
472
  new_options = opts.merge(
473
473
  :operation => :"SendingAccountsApi.management_get_provider",
@@ -524,7 +524,7 @@ module Sendmux::Management::Generated
524
524
  return_type = opts[:debug_return_type] || 'ProviderLimitsResponse'
525
525
 
526
526
  # auth_names
527
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
527
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
528
528
 
529
529
  new_options = opts.merge(
530
530
  :operation => :"SendingAccountsApi.management_get_provider_limits",
@@ -581,7 +581,7 @@ module Sendmux::Management::Generated
581
581
  return_type = opts[:debug_return_type] || 'ProviderStatsResponse'
582
582
 
583
583
  # auth_names
584
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
584
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
585
585
 
586
586
  new_options = opts.merge(
587
587
  :operation => :"SendingAccountsApi.management_get_provider_stats",
@@ -638,7 +638,7 @@ module Sendmux::Management::Generated
638
638
  return_type = opts[:debug_return_type] || 'ProviderUsageResponse'
639
639
 
640
640
  # auth_names
641
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
641
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
642
642
 
643
643
  new_options = opts.merge(
644
644
  :operation => :"SendingAccountsApi.management_get_provider_usage",
@@ -695,7 +695,7 @@ module Sendmux::Management::Generated
695
695
  return_type = opts[:debug_return_type] || 'SharedAmazonSesLimitRequestPageResponse'
696
696
 
697
697
  # auth_names
698
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
698
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
699
699
 
700
700
  new_options = opts.merge(
701
701
  :operation => :"SendingAccountsApi.management_get_shared_amazon_ses_limit_request",
@@ -780,7 +780,7 @@ module Sendmux::Management::Generated
780
780
  return_type = opts[:debug_return_type] || 'ProviderItemCursorListResponse'
781
781
 
782
782
  # auth_names
783
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
783
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
784
784
 
785
785
  new_options = opts.merge(
786
786
  :operation => :"SendingAccountsApi.management_list_providers",
@@ -844,7 +844,7 @@ module Sendmux::Management::Generated
844
844
  return_type = opts[:debug_return_type] || 'SendingAccountLimitRequestResponse'
845
845
 
846
846
  # auth_names
847
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
847
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
848
848
 
849
849
  new_options = opts.merge(
850
850
  :operation => :"SendingAccountsApi.management_request_sending_account_limit_increase",
@@ -914,7 +914,7 @@ module Sendmux::Management::Generated
914
914
  return_type = opts[:debug_return_type] || 'ProviderTestResultResponse'
915
915
 
916
916
  # auth_names
917
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
917
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
918
918
 
919
919
  new_options = opts.merge(
920
920
  :operation => :"SendingAccountsApi.management_test_provider",
@@ -987,7 +987,7 @@ module Sendmux::Management::Generated
987
987
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
988
988
 
989
989
  # auth_names
990
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
990
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
991
991
 
992
992
  new_options = opts.merge(
993
993
  :operation => :"SendingAccountsApi.management_update_provider",