sendmux-sdk 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 946626bb643de0dc8928f34d244b36238c753a03c23cfecd9df1dbc1dcf3bf64
4
- data.tar.gz: cc71e459613e3e051b3be9ca84e4a0093560e40ae9c7599b19daf87b96b764ae
3
+ metadata.gz: 66227bf1072159cedbb9126dd0fb2ece26162029997197001ba891623290f82a
4
+ data.tar.gz: fa5df90b832cde7af4e0f100764812f0b406429f6b10d95de98fc5128fb73af7
5
5
  SHA512:
6
- metadata.gz: b2a7c15d4764c8ee03527894905ee189df1c319de9d66fc2ac38c987051719c5297b640e5d4d78c975d7ad8e19003b6ddc20dce70632d57111f8059303d67df5
7
- data.tar.gz: 49240f8784116d5ff261abba03eab3d6b43bc1d096b5f77a1288b14864e7f4d4d6196c7b8c4eed87ebe8028a572caa4dfb2e84843219d117201c5d070018c6ff
6
+ metadata.gz: 456ac46fec81d216a8df869711622af5d2c0b636e6ea19899d86888d96c88ec36089ae3aeadc5e2b018a5b8b92d67a36d69eff166fafdef8c22b3cf8b5ab1183
7
+ data.tar.gz: 1d0f51f4455fa61917ac1dca68c97a1643c02cc63ca9b4e1a798cfc68faf79f678aa3873e248be48b0afed0a2105b95c37000fbb4a3f82d4f28f4c13eb712866
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.0](https://github.com/Sendmux/sendmux-sdk/compare/ruby-sdk/v1.2.0...ruby-sdk/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-sdk/v1.1.0...ruby-sdk/v1.2.0) (2026-09-08)
11
+
12
+
13
+ ### Features
14
+
15
+ * **ruby-sdk:** require connection-capable client versions ([175f89f](https://github.com/Sendmux/sendmux-sdk/commit/175f89f9dbe72bb84a4c65b6db77d0223ce80d3f))
16
+
3
17
  ## [1.1.0](https://github.com/Sendmux/sendmux-sdk/compare/ruby-sdk/v1.0.0...ruby-sdk/v1.1.0) (2026-07-01)
4
18
 
5
19
 
data/README.md CHANGED
@@ -19,6 +19,8 @@ Umbrella Ruby SDK package for Sendmux.
19
19
  - A mailbox-scoped key beginning with `smx_mbx_` or scoped token beginning with `smx_agent_` for mailbox clients.
20
20
  - A root key beginning with `smx_root_` for management clients.
21
21
 
22
+ 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).
23
+
22
24
  ## Installation
23
25
 
24
26
  ```sh
@@ -31,6 +33,18 @@ Or add it to your Gemfile:
31
33
  gem "sendmux-sdk", "~> 1.0"
32
34
  ```
33
35
 
36
+ ## OAuth access tokens
37
+
38
+ 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.
39
+
40
+ ```ruby
41
+ require "sendmux/sdk"
42
+
43
+ client = Sendmux::SDK.management(
44
+ access_token: -> { ENV.fetch("SENDMUX_ACCESS_TOKEN") }
45
+ )
46
+ ```
47
+
34
48
  ## Usage
35
49
 
36
50
  Use the umbrella gem when you want all Ruby SDK surfaces in one install.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sendmux
4
4
  module SDK
5
- VERSION = '1.1.0'
5
+ VERSION = '1.3.0'
6
6
  end
7
7
  end
data/lib/sendmux/sdk.rb CHANGED
@@ -8,16 +8,20 @@ require 'sendmux/sdk/version'
8
8
 
9
9
  module Sendmux
10
10
  module SDK
11
- def self.sending(api_key:, base_url: Sendmux::Sending::DEFAULT_BASE_URL, retry_options: nil)
12
- Sendmux::Sending::Client.new(api_key: api_key, base_url: base_url, retry_options: retry_options)
11
+ def self.sending(api_key: nil, access_token: nil, base_url: Sendmux::Sending::DEFAULT_BASE_URL, retry_options: nil)
12
+ Sendmux::Sending::Client.new(api_key: api_key, access_token: access_token,
13
+ base_url: base_url, retry_options: retry_options)
13
14
  end
14
15
 
15
- def self.mailbox(api_key:, base_url: Sendmux::Mailbox::DEFAULT_BASE_URL, retry_options: nil)
16
- Sendmux::Mailbox::Client.new(api_key: api_key, base_url: base_url, retry_options: retry_options)
16
+ def self.mailbox(api_key: nil, access_token: nil, base_url: Sendmux::Mailbox::DEFAULT_BASE_URL, retry_options: nil)
17
+ Sendmux::Mailbox::Client.new(api_key: api_key, access_token: access_token,
18
+ base_url: base_url, retry_options: retry_options)
17
19
  end
18
20
 
19
- def self.management(api_key:, base_url: Sendmux::Management::DEFAULT_BASE_URL, retry_options: nil)
20
- Sendmux::Management::Client.new(api_key: api_key, base_url: base_url, retry_options: retry_options)
21
+ def self.management(api_key: nil, access_token: nil, base_url: Sendmux::Management::DEFAULT_BASE_URL,
22
+ retry_options: nil)
23
+ Sendmux::Management::Client.new(api_key: api_key, access_token: access_token,
24
+ base_url: base_url, retry_options: retry_options)
21
25
  end
22
26
  end
23
27
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendmux-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
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-07-01 00:00:00.000000000 Z
10
+ date: 2026-09-10 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: sendmux-core
@@ -15,7 +15,7 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 1.1.0
18
+ version: 1.3.0
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '2.0'
@@ -25,7 +25,7 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 1.1.0
28
+ version: 1.3.0
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
31
  version: '2.0'
@@ -35,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ">="
37
37
  - !ruby/object:Gem::Version
38
- version: 1.0.0
38
+ version: 1.4.0
39
39
  - - "<"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '2.0'
@@ -45,7 +45,7 @@ dependencies:
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 1.0.0
48
+ version: 1.4.0
49
49
  - - "<"
50
50
  - !ruby/object:Gem::Version
51
51
  version: '2.0'
@@ -55,7 +55,7 @@ dependencies:
55
55
  requirements:
56
56
  - - ">="
57
57
  - !ruby/object:Gem::Version
58
- version: 1.0.0
58
+ version: 1.3.0
59
59
  - - "<"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.0'
@@ -65,7 +65,7 @@ dependencies:
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.0
68
+ version: 1.3.0
69
69
  - - "<"
70
70
  - !ruby/object:Gem::Version
71
71
  version: '2.0'
@@ -75,7 +75,7 @@ dependencies:
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
- version: 1.1.0
78
+ version: 1.4.0
79
79
  - - "<"
80
80
  - !ruby/object:Gem::Version
81
81
  version: '2.0'
@@ -85,7 +85,7 @@ dependencies:
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: 1.1.0
88
+ version: 1.4.0
89
89
  - - "<"
90
90
  - !ruby/object:Gem::Version
91
91
  version: '2.0'