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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dd3536dba11133112756610ef3a1d20de80e6bdb77db90f0c76513d8ebec7c9
4
- data.tar.gz: cdf0ec189e0f9aaba4ca02dbee99460d165be72c10234386dcc222bdb9049c1c
3
+ metadata.gz: eeefae3640ff54bb0b3841204634966e36a247b8849468d6913d01523de41305
4
+ data.tar.gz: '0198bcccee62ae33aad4ef2e06aab2a35084e24f5075267ad8b980c0db030179'
5
5
  SHA512:
6
- metadata.gz: 4c866752a1ad8f0c3f791e787298515bd467f751afc8284b50f702b6c9cdd31e72de5c7a4b13378071d52844916fb9b31111ee59412335b5fdc6f41f9b9ee8ef
7
- data.tar.gz: c1dd28651be7b13945b132d83d266d00184a15ee42e90c04c9596a5aa9d48510b5467487fd8b9d771bcb03edcf8c6f95353b17276f426470d9245fd4059c287a
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 Dm Ruby API library
1
+ # Sent Ruby API library
2
2
 
3
- The Sent Dm Ruby library provides convenient access to the Sent Dm 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.
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 Dm 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.
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
  [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40sentdm%2Fsentdm-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzZW50ZG0vc2VudGRtLW1jcCJdLCJlbnYiOnsiU0VOVF9ETV9BUElfS0VZIjoiTXkgQVBJIEtleSJ9fQ)
12
12
  [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](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.11.1"
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
- sent_dm = Sentdm::Client.new(
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 = sent_dm.messages.send_(
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 = sent_dm.messages.send_(
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
- sent_dm = Sentdm::Client.new(
109
+ sent = Sentdm::Client.new(
110
110
  max_retries: 0 # default is 2
111
111
  )
112
112
 
113
113
  # Or, configure per-request:
114
- sent_dm.messages.send_(
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
- sent_dm = Sentdm::Client.new(
132
+ sent = Sentdm::Client.new(
133
133
  timeout: nil # default is 60
134
134
  )
135
135
 
136
136
  # Or, configure per-request:
137
- sent_dm.messages.send_(
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
- sent_dm.messages.send_(
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
- sent_dm.messages.send_(
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
- sent_dm.messages.send_(
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
- sent_dm.messages.send_(**params)
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 Dm, please follow the respective company's security reporting guidelines.
19
+ or products provided by Sent, please follow the respective company's security reporting guidelines.
20
20
 
21
- ### Sent Dm Terms and Policies
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["SENT_DM_BASE_URL"]`
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["SENT_DM_BASE_URL"],
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentdm
4
- VERSION = "0.11.1"
4
+ VERSION = "0.12.0"
5
5
  end
@@ -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["SENT_DM_BASE_URL"]`
73
- base_url: ENV["SENT_DM_BASE_URL"],
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.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
- - Sent Dm
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 Dm API
453
+ summary: Ruby library to access the Sent API
454
454
  test_files: []