sentdm 0.11.1 → 0.12.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 +8 -0
- data/README.md +15 -15
- data/SECURITY.md +2 -2
- data/lib/sentdm/client.rb +2 -2
- data/lib/sentdm/version.rb +1 -1
- data/rbi/sentdm/client.rbi +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eeefae3640ff54bb0b3841204634966e36a247b8849468d6913d01523de41305
|
|
4
|
+
data.tar.gz: '0198bcccee62ae33aad4ef2e06aab2a35084e24f5075267ad8b980c0db030179'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c8ad89f3f5b22dd29699617becae341fd5a9369628e25b3a81c61ae4bf29b83c478253411228ee7de7601e1b721de316cd2e07ebf5b54b7ec4780a8bd6cedc7
|
|
7
|
+
data.tar.gz: 67da2e592c58adc2ce48f6d372ef78898503dd4768c4610c5754e764f670dbfdff6545d9ba2329539038cc2311cc24d939fe29c01637acaae0877b3a15c41650
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.0 (2026-03-31)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.11.1...v0.12.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.11.1...v0.12.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([2b0638c](https://github.com/sentdm/sent-dm-ruby/commit/2b0638c7c22e0f309c769f2ca45ce4c9d9932849))
|
|
10
|
+
|
|
3
11
|
## 0.11.1 (2026-03-31)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.11.0...v0.11.1](https://github.com/sentdm/sent-dm-ruby/compare/v0.11.0...v0.11.1)
|
data/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# Sent
|
|
1
|
+
# Sent Ruby API library
|
|
2
2
|
|
|
3
|
-
The Sent
|
|
3
|
+
The Sent Ruby library provides convenient access to the Sent REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/sentdm/sent-dm-ruby#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
|
|
4
4
|
|
|
5
5
|
It is generated with [Stainless](https://www.stainless.com/).
|
|
6
6
|
|
|
7
7
|
## MCP Server
|
|
8
8
|
|
|
9
|
-
Use the Sent
|
|
9
|
+
Use the Sent MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
|
|
10
10
|
|
|
11
11
|
[](https://cursor.com/en-US/install-mcp?name=%40sentdm%2Fsentdm-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzZW50ZG0vc2VudGRtLW1jcCJdLCJlbnYiOnsiU0VOVF9ETV9BUElfS0VZIjoiTXkgQVBJIEtleSJ9fQ)
|
|
12
12
|
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40sentdm%2Fsentdm-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40sentdm%2Fsentdm-mcp%22%5D%2C%22env%22%3A%7B%22SENT_DM_API_KEY%22%3A%22My%20API%20Key%22%7D%7D)
|
|
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
26
26
|
<!-- x-release-please-start-version -->
|
|
27
27
|
|
|
28
28
|
```ruby
|
|
29
|
-
gem "sentdm", "~> 0.
|
|
29
|
+
gem "sentdm", "~> 0.12.0"
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
<!-- x-release-please-end -->
|
|
@@ -37,11 +37,11 @@ gem "sentdm", "~> 0.11.1"
|
|
|
37
37
|
require "bundler/setup"
|
|
38
38
|
require "sentdm"
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
sent = Sentdm::Client.new(
|
|
41
41
|
api_key: ENV["SENT_DM_API_KEY"] # This is the default and can be omitted
|
|
42
42
|
)
|
|
43
43
|
|
|
44
|
-
response =
|
|
44
|
+
response = sent.messages.send_(
|
|
45
45
|
channel: ["sms", "whatsapp"],
|
|
46
46
|
template: {
|
|
47
47
|
id: "7ba7b820-9dad-11d1-80b4-00c04fd430c8",
|
|
@@ -60,7 +60,7 @@ When the library is unable to connect to the API, or if the API returns a non-su
|
|
|
60
60
|
|
|
61
61
|
```ruby
|
|
62
62
|
begin
|
|
63
|
-
message =
|
|
63
|
+
message = sent.messages.send_(
|
|
64
64
|
channel: ["sms"],
|
|
65
65
|
template: {
|
|
66
66
|
id: "7ba7b820-9dad-11d1-80b4-00c04fd430c8",
|
|
@@ -106,12 +106,12 @@ You can use the `max_retries` option to configure or disable this:
|
|
|
106
106
|
|
|
107
107
|
```ruby
|
|
108
108
|
# Configure the default for all requests:
|
|
109
|
-
|
|
109
|
+
sent = Sentdm::Client.new(
|
|
110
110
|
max_retries: 0 # default is 2
|
|
111
111
|
)
|
|
112
112
|
|
|
113
113
|
# Or, configure per-request:
|
|
114
|
-
|
|
114
|
+
sent.messages.send_(
|
|
115
115
|
channel: ["sms"],
|
|
116
116
|
template: {
|
|
117
117
|
id: "7ba7b820-9dad-11d1-80b4-00c04fd430c8",
|
|
@@ -129,12 +129,12 @@ By default, requests will time out after 60 seconds. You can use the timeout opt
|
|
|
129
129
|
|
|
130
130
|
```ruby
|
|
131
131
|
# Configure the default for all requests:
|
|
132
|
-
|
|
132
|
+
sent = Sentdm::Client.new(
|
|
133
133
|
timeout: nil # default is 60
|
|
134
134
|
)
|
|
135
135
|
|
|
136
136
|
# Or, configure per-request:
|
|
137
|
-
|
|
137
|
+
sent.messages.send_(
|
|
138
138
|
channel: ["sms"],
|
|
139
139
|
template: {
|
|
140
140
|
id: "7ba7b820-9dad-11d1-80b4-00c04fd430c8",
|
|
@@ -174,7 +174,7 @@ Note: the `extra_` parameters of the same name overrides the documented paramete
|
|
|
174
174
|
|
|
175
175
|
```ruby
|
|
176
176
|
response =
|
|
177
|
-
|
|
177
|
+
sent.messages.send_(
|
|
178
178
|
channel: ["sms"],
|
|
179
179
|
template: {
|
|
180
180
|
id: "7ba7b820-9dad-11d1-80b4-00c04fd430c8",
|
|
@@ -227,7 +227,7 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio
|
|
|
227
227
|
You can provide typesafe request parameters like so:
|
|
228
228
|
|
|
229
229
|
```ruby
|
|
230
|
-
|
|
230
|
+
sent.messages.send_(
|
|
231
231
|
channel: ["sms", "whatsapp"],
|
|
232
232
|
template: Sentdm::MessageSendParams::Template.new(
|
|
233
233
|
id: "7ba7b820-9dad-11d1-80b4-00c04fd430c8",
|
|
@@ -242,7 +242,7 @@ Or, equivalently:
|
|
|
242
242
|
|
|
243
243
|
```ruby
|
|
244
244
|
# Hashes work, but are not typesafe:
|
|
245
|
-
|
|
245
|
+
sent.messages.send_(
|
|
246
246
|
channel: ["sms", "whatsapp"],
|
|
247
247
|
template: {
|
|
248
248
|
id: "7ba7b820-9dad-11d1-80b4-00c04fd430c8",
|
|
@@ -262,7 +262,7 @@ params = Sentdm::MessageSendParams.new(
|
|
|
262
262
|
),
|
|
263
263
|
to: ["+14155551234", "+14155555678"]
|
|
264
264
|
)
|
|
265
|
-
|
|
265
|
+
sent.messages.send_(**params)
|
|
266
266
|
```
|
|
267
267
|
|
|
268
268
|
### Enums
|
data/SECURITY.md
CHANGED
|
@@ -16,9 +16,9 @@ before making any information public.
|
|
|
16
16
|
## Reporting Non-SDK Related Security Issues
|
|
17
17
|
|
|
18
18
|
If you encounter security issues that are not directly related to SDKs but pertain to the services
|
|
19
|
-
or products provided by Sent
|
|
19
|
+
or products provided by Sent, please follow the respective company's security reporting guidelines.
|
|
20
20
|
|
|
21
|
-
### Sent
|
|
21
|
+
### Sent Terms and Policies
|
|
22
22
|
|
|
23
23
|
Please contact support@sent.dm for any questions or concerns regarding the security of our services.
|
|
24
24
|
|
data/lib/sentdm/client.rb
CHANGED
|
@@ -66,7 +66,7 @@ module Sentdm
|
|
|
66
66
|
# to `ENV["SENT_DM_API_KEY"]`
|
|
67
67
|
#
|
|
68
68
|
# @param base_url [String, nil] Override the default base URL for the API, e.g.,
|
|
69
|
-
# `"https://api.example.com/v2/"`. Defaults to `ENV["
|
|
69
|
+
# `"https://api.example.com/v2/"`. Defaults to `ENV["SENT_BASE_URL"]`
|
|
70
70
|
#
|
|
71
71
|
# @param max_retries [Integer] Max number of retries to attempt after a failed retryable request.
|
|
72
72
|
#
|
|
@@ -77,7 +77,7 @@ module Sentdm
|
|
|
77
77
|
# @param max_retry_delay [Float]
|
|
78
78
|
def initialize(
|
|
79
79
|
api_key: ENV["SENT_DM_API_KEY"],
|
|
80
|
-
base_url: ENV["
|
|
80
|
+
base_url: ENV["SENT_BASE_URL"],
|
|
81
81
|
max_retries: self.class::DEFAULT_MAX_RETRIES,
|
|
82
82
|
timeout: self.class::DEFAULT_TIMEOUT_IN_SECONDS,
|
|
83
83
|
initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
|
data/lib/sentdm/version.rb
CHANGED
data/rbi/sentdm/client.rbi
CHANGED
|
@@ -69,8 +69,8 @@ module Sentdm
|
|
|
69
69
|
# to `ENV["SENT_DM_API_KEY"]`
|
|
70
70
|
api_key: ENV["SENT_DM_API_KEY"],
|
|
71
71
|
# Override the default base URL for the API, e.g.,
|
|
72
|
-
# `"https://api.example.com/v2/"`. Defaults to `ENV["
|
|
73
|
-
base_url: ENV["
|
|
72
|
+
# `"https://api.example.com/v2/"`. Defaults to `ENV["SENT_BASE_URL"]`
|
|
73
|
+
base_url: ENV["SENT_BASE_URL"],
|
|
74
74
|
# Max number of retries to attempt after a failed retryable request.
|
|
75
75
|
max_retries: Sentdm::Client::DEFAULT_MAX_RETRIES,
|
|
76
76
|
timeout: Sentdm::Client::DEFAULT_TIMEOUT_IN_SECONDS,
|
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sentdm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Sent
|
|
7
|
+
- Sent
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
@@ -450,5 +450,5 @@ requirements: []
|
|
|
450
450
|
rubygems_version: 3.4.1
|
|
451
451
|
signing_key:
|
|
452
452
|
specification_version: 4
|
|
453
|
-
summary: Ruby library to access the Sent
|
|
453
|
+
summary: Ruby library to access the Sent API
|
|
454
454
|
test_files: []
|