sendmux-management 1.2.0 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +16 -1
- data/lib/sendmux/management/client.rb +9 -2
- data/lib/sendmux/management/version.rb +1 -1
- data/lib/sendmux_management_generated/api/billing_api.rb +3 -3
- data/lib/sendmux_management_generated/api/connection_api.rb +1 -1
- data/lib/sendmux_management_generated/api/domain_filters_api.rb +2 -2
- data/lib/sendmux_management_generated/api/domains_api.rb +7 -7
- data/lib/sendmux_management_generated/api/emails_api.rb +3 -3
- data/lib/sendmux_management_generated/api/inboxes_api.rb +2 -2
- data/lib/sendmux_management_generated/api/mailbox_filters_api.rb +2 -2
- data/lib/sendmux_management_generated/api/mailboxes_api.rb +10 -10
- data/lib/sendmux_management_generated/api/sending_accounts_api.rb +15 -15
- data/lib/sendmux_management_generated/api/webhooks_api.rb +9 -9
- data/lib/sendmux_management_generated/configuration.rb +7 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5054b52ac1b86c25fe37c185168b5566c8ebdfb1cfce976d9d9e906a50a41af0
|
|
4
|
+
data.tar.gz: f81b9dde19a295a11f13c33026a659b8afe4e1a1907125e883ce713670634bae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5fb7b4a3b04493e60813cc8cf23ee47210d5d81a78828cc8ee2910c589d42c2597a8a763eaa07dcfad54fb2a4044f2a0f26082365ef8fb8cc36b4a35be2b7ff5
|
|
7
|
+
data.tar.gz: 2f8c1810c172bd30c0ddd94407259715002282b47eec3af5568412711e4571df369817b9a1fb8d994ad0d2c5d4bb7b5c51c85cc153cbf0feaf4f0225acd4e461
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
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
|
+
|
|
3
10
|
## [1.2.0](https://github.com/Sendmux/sendmux-sdk/compare/ruby-management/v1.1.1...ruby-management/v1.2.0) (2026-09-08)
|
|
4
11
|
|
|
5
12
|
|
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
|
|
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
|
|
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)
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -60,7 +60,7 @@ module Sendmux::Management::Generated
|
|
|
60
60
|
return_type = opts[:debug_return_type] || 'ConnectionResponse'
|
|
61
61
|
|
|
62
62
|
# auth_names
|
|
63
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
63
|
+
auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
|
|
64
64
|
|
|
65
65
|
new_options = opts.merge(
|
|
66
66
|
:operation => :"ConnectionApi.management_get_connection",
|
|
@@ -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",
|
|
@@ -71,7 +71,7 @@ module Sendmux::Management::Generated
|
|
|
71
71
|
return_type = opts[:debug_return_type] || 'WebhookSubscriptionWithSecretResponse'
|
|
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 => :"WebhooksApi.management_create_webhook",
|
|
@@ -134,7 +134,7 @@ module Sendmux::Management::Generated
|
|
|
134
134
|
return_type = opts[:debug_return_type] || 'WebhookDeletedResponse'
|
|
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 => :"WebhooksApi.management_delete_webhook",
|
|
@@ -203,7 +203,7 @@ module Sendmux::Management::Generated
|
|
|
203
203
|
return_type = opts[:debug_return_type] || 'WebhookDeliveryPayloadResponse'
|
|
204
204
|
|
|
205
205
|
# auth_names
|
|
206
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
206
|
+
auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
|
|
207
207
|
|
|
208
208
|
new_options = opts.merge(
|
|
209
209
|
:operation => :"WebhooksApi.management_get_delivery_payload",
|
|
@@ -269,7 +269,7 @@ module Sendmux::Management::Generated
|
|
|
269
269
|
return_type = opts[:debug_return_type] || 'WebhookSubscriptionResponse'
|
|
270
270
|
|
|
271
271
|
# auth_names
|
|
272
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
272
|
+
auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
|
|
273
273
|
|
|
274
274
|
new_options = opts.merge(
|
|
275
275
|
:operation => :"WebhooksApi.management_get_webhook",
|
|
@@ -360,7 +360,7 @@ module Sendmux::Management::Generated
|
|
|
360
360
|
return_type = opts[:debug_return_type] || 'WebhookDeliveryAttemptCursorListResponse'
|
|
361
361
|
|
|
362
362
|
# auth_names
|
|
363
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
363
|
+
auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
|
|
364
364
|
|
|
365
365
|
new_options = opts.merge(
|
|
366
366
|
:operation => :"WebhooksApi.management_list_delivery",
|
|
@@ -431,7 +431,7 @@ module Sendmux::Management::Generated
|
|
|
431
431
|
return_type = opts[:debug_return_type] || 'WebhookSubscriptionCursorListResponse'
|
|
432
432
|
|
|
433
433
|
# auth_names
|
|
434
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
434
|
+
auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
|
|
435
435
|
|
|
436
436
|
new_options = opts.merge(
|
|
437
437
|
:operation => :"WebhooksApi.management_list_webhooks",
|
|
@@ -501,7 +501,7 @@ module Sendmux::Management::Generated
|
|
|
501
501
|
return_type = opts[:debug_return_type] || 'WebhookSubscriptionWithSecretResponse'
|
|
502
502
|
|
|
503
503
|
# auth_names
|
|
504
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
504
|
+
auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
|
|
505
505
|
|
|
506
506
|
new_options = opts.merge(
|
|
507
507
|
:operation => :"WebhooksApi.management_rotate_webhook_secret",
|
|
@@ -571,7 +571,7 @@ module Sendmux::Management::Generated
|
|
|
571
571
|
return_type = opts[:debug_return_type] || 'ManagementTestWebhook200Response'
|
|
572
572
|
|
|
573
573
|
# auth_names
|
|
574
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
574
|
+
auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
|
|
575
575
|
|
|
576
576
|
new_options = opts.merge(
|
|
577
577
|
:operation => :"WebhooksApi.management_test_webhook",
|
|
@@ -644,7 +644,7 @@ module Sendmux::Management::Generated
|
|
|
644
644
|
return_type = opts[:debug_return_type] || 'WebhookSubscriptionResponse'
|
|
645
645
|
|
|
646
646
|
# auth_names
|
|
647
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
647
|
+
auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
|
|
648
648
|
|
|
649
649
|
new_options = opts.merge(
|
|
650
650
|
:operation => :"WebhooksApi.management_update_webhook",
|
|
@@ -256,6 +256,13 @@ module Sendmux::Management::Generated
|
|
|
256
256
|
key: 'Authorization',
|
|
257
257
|
value: "Bearer #{access_token_with_refresh}"
|
|
258
258
|
},
|
|
259
|
+
'oauth2' =>
|
|
260
|
+
{
|
|
261
|
+
type: 'oauth2',
|
|
262
|
+
in: 'header',
|
|
263
|
+
key: 'Authorization',
|
|
264
|
+
value: "Bearer #{access_token_with_refresh}"
|
|
265
|
+
},
|
|
259
266
|
}
|
|
260
267
|
end
|
|
261
268
|
|
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.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sendmux
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-09-
|
|
10
|
+
date: 2026-09-10 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: faraday
|
|
@@ -77,7 +77,7 @@ dependencies:
|
|
|
77
77
|
requirements:
|
|
78
78
|
- - ">="
|
|
79
79
|
- !ruby/object:Gem::Version
|
|
80
|
-
version: 1.
|
|
80
|
+
version: 1.3.0
|
|
81
81
|
- - "<"
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
83
|
version: '2.0'
|
|
@@ -87,7 +87,7 @@ dependencies:
|
|
|
87
87
|
requirements:
|
|
88
88
|
- - ">="
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: 1.
|
|
90
|
+
version: 1.3.0
|
|
91
91
|
- - "<"
|
|
92
92
|
- !ruby/object:Gem::Version
|
|
93
93
|
version: '2.0'
|