sentdm 0.44.0 → 0.45.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: 46c6f38c1bac617a9d4b5f114cf1315c0165581995884399707a19b74db1d1c7
4
- data.tar.gz: 9fd166f6b0d86b2fe8bba638891c98bcf80f77bbdd6a035aa9524ec5a666c239
3
+ metadata.gz: 65f6179b1fe9d72e6c260ccfa40741ffe480c338b8fa973379812cf68483de3f
4
+ data.tar.gz: 9709f45d561064bfd30930460ae57758dbc70cb69c2882e9a454dacc07a3a391
5
5
  SHA512:
6
- metadata.gz: e313815b9a52feac9bf9cc74368eec76805d90c4d4e83bdf01866e7ba837745fd8bb089b901ae602c3aec9041994aef97b66a74dae712ef5586b774f120eeb59
7
- data.tar.gz: 473e10edb48f2d5c5c46df341966ca4db2bab6b024eb7e57369a474f816f8fa1490534287c58d3917d0a6c14b01a017ad329601d8ce0e052732ccfb5892ab953
6
+ metadata.gz: 5ccdabf83e3f77e4e8b3f2198d6105ae93cfd5c31c8a3382480ead68f390b563605a3f61ab1bd2b0c949e8b92c6e70b2ff42dc0e8a05becb72aa3b04bcbda717
7
+ data.tar.gz: 6eb2f443166e2a8620bc44cb97d83776d944ce02501e76311244e834d781ea294b5325c5f7b65f95b4d27ac5929ca10a60317e4d8ac1c81bedd44b79c3931050
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.45.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.44.0...v0.45.0) (2026-11-05)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** sync OpenAPI spec from production ([850cfec](https://github.com/sentdm/sent-dm-ruby/commit/850cfec93cf24d63cc4be16f61a61b14587fe7cc))
9
+
3
10
  ## [0.44.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.43.0...v0.44.0) (2026-11-04)
4
11
 
5
12
 
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "sentdm", "~> 0.44.0"
20
+ gem "sentdm", "~> 0.45.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -103,7 +103,8 @@ module Sentdm
103
103
  optional :template_name, String, nil?: true
104
104
 
105
105
  # @!attribute updated_at
106
- # When the message reached MessageStatus, in UTC (yyyy-MM-ddTHH:mm:ssZ).
106
+ # When the message reached the status this event reports, in UTC
107
+ # (yyyy-MM-ddTHH:mm:ssZ).
107
108
  #
108
109
  # @return [String, nil]
109
110
  optional :updated_at, String
@@ -142,7 +143,7 @@ module Sentdm
142
143
  #
143
144
  # @param template_name [String, nil] Name of the template the message was sent from. Omitted when the message wasn't
144
145
  #
145
- # @param updated_at [String] When the message reached MessageStatus, in UTC
146
+ # @param updated_at [String] When the message reached the status this event reports, in UTC
146
147
  end
147
148
  end
148
149
  end
@@ -41,6 +41,14 @@ module Sentdm
41
41
  # @return [String, nil]
42
42
  optional :language, String, nil?: true
43
43
 
44
+ # @!attribute name
45
+ # Template display name (optional). When omitted or blank, a name is generated
46
+ # from the template's content. It can be changed afterwards with PUT
47
+ # /v3/templates/{id}.
48
+ #
49
+ # @return [String, nil]
50
+ optional :name, String, nil?: true
51
+
44
52
  # @!attribute sandbox
45
53
  # Sandbox flag - when true, the operation is simulated without side effects Useful
46
54
  # for testing integrations without actual execution
@@ -64,7 +72,7 @@ module Sentdm
64
72
  # @return [String, nil]
65
73
  optional :x_profile_id, String
66
74
 
67
- # @!method initialize(auto_create_for_sp: nil, category: nil, creation_source: nil, definition: nil, language: nil, sandbox: nil, submit_for_review: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
75
+ # @!method initialize(auto_create_for_sp: nil, category: nil, creation_source: nil, definition: nil, language: nil, name: nil, sandbox: nil, submit_for_review: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
68
76
  # Some parameter documentations has been truncated, see
69
77
  # {Sentdm::Models::TemplateCreateParams} for more details.
70
78
  #
@@ -78,6 +86,8 @@ module Sentdm
78
86
  #
79
87
  # @param language [String, nil] Template language code (e.g., en_US) (optional, auto-detected if not provided)
80
88
  #
89
+ # @param name [String, nil] Template display name (optional). When omitted or blank, a name is generated fro
90
+ #
81
91
  # @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
82
92
  #
83
93
  # @param submit_for_review [Boolean] Whether to submit the template for review after creation (default: false)
@@ -185,7 +185,8 @@ module Sentdm
185
185
  # accepted: if the time falls inside a legally protected quiet-hours window for a
186
186
  # recipient, that message is moved to the next allowed time at release and a
187
187
  # second message.scheduled webhook reports the new scheduled_at. An account may
188
- # hold at most 1,000,000 scheduled messages at once (429 LIMIT_001).
188
+ # hold at most 1,000,000 scheduled messages at once: a message scheduled past that
189
+ # is reported as BLOCKED (LIMIT_001) instead of being held.
189
190
  #
190
191
  # @overload send_(channel: nil, channels: nil, media_urls: nil, sandbox: nil, scheduled_at: nil, subject: nil, template: nil, text: nil, to: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
191
192
  #
@@ -15,11 +15,11 @@ module Sentdm
15
15
  #
16
16
  # Creates a new message template with header, body, footer, and buttons. The
17
17
  # template can be submitted for review immediately or saved as draft for later
18
- # submission. There is no `name` field on create — the display name is derived
19
- # from the template's content and can be changed afterwards with
18
+ # submission. `name` is optional: when omitted or blank, a name is generated from
19
+ # the template's content. It can be changed afterwards with
20
20
  # `PUT /v3/templates/{id}`.
21
21
  #
22
- # @overload create(auto_create_for_sp: nil, category: nil, creation_source: nil, definition: nil, language: nil, sandbox: nil, submit_for_review: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
22
+ # @overload create(auto_create_for_sp: nil, category: nil, creation_source: nil, definition: nil, language: nil, name: nil, sandbox: nil, submit_for_review: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
23
23
  #
24
24
  # @param auto_create_for_sp [Boolean] Body param: Create this template automatically on every sender profile of the or
25
25
  #
@@ -31,6 +31,8 @@ module Sentdm
31
31
  #
32
32
  # @param language [String, nil] Body param: Template language code (e.g., en_US) (optional, auto-detected if not
33
33
  #
34
+ # @param name [String, nil] Body param: Template display name (optional). When omitted or blank, a name is g
35
+ #
34
36
  # @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
35
37
  #
36
38
  # @param submit_for_review [Boolean] Body param: Whether to submit the template for review after creation (default: f
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentdm
4
- VERSION = "0.44.0"
4
+ VERSION = "0.45.0"
5
5
  end
@@ -93,7 +93,8 @@ module Sentdm
93
93
  sig { returns(T.nilable(String)) }
94
94
  attr_accessor :template_name
95
95
 
96
- # When the message reached MessageStatus, in UTC (yyyy-MM-ddTHH:mm:ssZ).
96
+ # When the message reached the status this event reports, in UTC
97
+ # (yyyy-MM-ddTHH:mm:ssZ).
97
98
  sig { returns(T.nilable(String)) }
98
99
  attr_reader :updated_at
99
100
 
@@ -169,7 +170,8 @@ module Sentdm
169
170
  # Name of the template the message was sent from. Omitted when the message wasn't
170
171
  # template-based.
171
172
  template_name: nil,
172
- # When the message reached MessageStatus, in UTC (yyyy-MM-ddTHH:mm:ssZ).
173
+ # When the message reached the status this event reports, in UTC
174
+ # (yyyy-MM-ddTHH:mm:ssZ).
173
175
  updated_at: nil
174
176
  )
175
177
  end
@@ -41,6 +41,12 @@ module Sentdm
41
41
  sig { returns(T.nilable(String)) }
42
42
  attr_accessor :language
43
43
 
44
+ # Template display name (optional). When omitted or blank, a name is generated
45
+ # from the template's content. It can be changed afterwards with PUT
46
+ # /v3/templates/{id}.
47
+ sig { returns(T.nilable(String)) }
48
+ attr_accessor :name
49
+
44
50
  # Sandbox flag - when true, the operation is simulated without side effects Useful
45
51
  # for testing integrations without actual execution
46
52
  sig { returns(T.nilable(T::Boolean)) }
@@ -75,6 +81,7 @@ module Sentdm
75
81
  creation_source: T.nilable(String),
76
82
  definition: Sentdm::TemplateDefinition::OrHash,
77
83
  language: T.nilable(String),
84
+ name: T.nilable(String),
78
85
  sandbox: T::Boolean,
79
86
  submit_for_review: T::Boolean,
80
87
  idempotency_key: String,
@@ -97,6 +104,10 @@ module Sentdm
97
104
  definition: nil,
98
105
  # Template language code (e.g., en_US) (optional, auto-detected if not provided)
99
106
  language: nil,
107
+ # Template display name (optional). When omitted or blank, a name is generated
108
+ # from the template's content. It can be changed afterwards with PUT
109
+ # /v3/templates/{id}.
110
+ name: nil,
100
111
  # Sandbox flag - when true, the operation is simulated without side effects Useful
101
112
  # for testing integrations without actual execution
102
113
  sandbox: nil,
@@ -116,6 +127,7 @@ module Sentdm
116
127
  creation_source: T.nilable(String),
117
128
  definition: Sentdm::TemplateDefinition,
118
129
  language: T.nilable(String),
130
+ name: T.nilable(String),
119
131
  sandbox: T::Boolean,
120
132
  submit_for_review: T::Boolean,
121
133
  idempotency_key: String,
@@ -159,7 +159,8 @@ module Sentdm
159
159
  # accepted: if the time falls inside a legally protected quiet-hours window for a
160
160
  # recipient, that message is moved to the next allowed time at release and a
161
161
  # second message.scheduled webhook reports the new scheduled_at. An account may
162
- # hold at most 1,000,000 scheduled messages at once (429 LIMIT_001).
162
+ # hold at most 1,000,000 scheduled messages at once: a message scheduled past that
163
+ # is reported as BLOCKED (LIMIT_001) instead of being held.
163
164
  sig do
164
165
  params(
165
166
  channel: T.nilable(T::Array[String]),
@@ -12,8 +12,8 @@ module Sentdm
12
12
  class Templates
13
13
  # Creates a new message template with header, body, footer, and buttons. The
14
14
  # template can be submitted for review immediately or saved as draft for later
15
- # submission. There is no `name` field on create — the display name is derived
16
- # from the template's content and can be changed afterwards with
15
+ # submission. `name` is optional: when omitted or blank, a name is generated from
16
+ # the template's content. It can be changed afterwards with
17
17
  # `PUT /v3/templates/{id}`.
18
18
  sig do
19
19
  params(
@@ -22,6 +22,7 @@ module Sentdm
22
22
  creation_source: T.nilable(String),
23
23
  definition: Sentdm::TemplateDefinition::OrHash,
24
24
  language: T.nilable(String),
25
+ name: T.nilable(String),
25
26
  sandbox: T::Boolean,
26
27
  submit_for_review: T::Boolean,
27
28
  idempotency_key: String,
@@ -46,6 +47,10 @@ module Sentdm
46
47
  # Body param: Template language code (e.g., en_US) (optional, auto-detected if not
47
48
  # provided)
48
49
  language: nil,
50
+ # Body param: Template display name (optional). When omitted or blank, a name is
51
+ # generated from the template's content. It can be changed afterwards with PUT
52
+ # /v3/templates/{id}.
53
+ name: nil,
49
54
  # Body param: Sandbox flag - when true, the operation is simulated without side
50
55
  # effects Useful for testing integrations without actual execution
51
56
  sandbox: nil,
@@ -7,6 +7,7 @@ module Sentdm
7
7
  creation_source: String?,
8
8
  definition: Sentdm::TemplateDefinition,
9
9
  language: String?,
10
+ name: String?,
10
11
  sandbox: bool,
11
12
  submit_for_review: bool,
12
13
  idempotency_key: String,
@@ -34,6 +35,8 @@ module Sentdm
34
35
 
35
36
  attr_accessor language: String?
36
37
 
38
+ attr_accessor name: String?
39
+
37
40
  attr_reader sandbox: bool?
38
41
 
39
42
  def sandbox=: (bool) -> bool
@@ -56,6 +59,7 @@ module Sentdm
56
59
  ?creation_source: String?,
57
60
  ?definition: Sentdm::TemplateDefinition,
58
61
  ?language: String?,
62
+ ?name: String?,
59
63
  ?sandbox: bool,
60
64
  ?submit_for_review: bool,
61
65
  ?idempotency_key: String,
@@ -69,6 +73,7 @@ module Sentdm
69
73
  creation_source: String?,
70
74
  definition: Sentdm::TemplateDefinition,
71
75
  language: String?,
76
+ name: String?,
72
77
  sandbox: bool,
73
78
  submit_for_review: bool,
74
79
  idempotency_key: String,
@@ -7,6 +7,7 @@ module Sentdm
7
7
  ?creation_source: String?,
8
8
  ?definition: Sentdm::TemplateDefinition,
9
9
  ?language: String?,
10
+ ?name: String?,
10
11
  ?sandbox: bool,
11
12
  ?submit_for_review: bool,
12
13
  ?idempotency_key: String,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-04 00:00:00.000000000 Z
11
+ date: 2026-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi