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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/sentdm/models/message_event_payload.rb +3 -2
- data/lib/sentdm/models/template_create_params.rb +11 -1
- data/lib/sentdm/resources/messages.rb +2 -1
- data/lib/sentdm/resources/templates.rb +5 -3
- data/lib/sentdm/version.rb +1 -1
- data/rbi/sentdm/models/message_event_payload.rbi +4 -2
- data/rbi/sentdm/models/template_create_params.rbi +12 -0
- data/rbi/sentdm/resources/messages.rbi +2 -1
- data/rbi/sentdm/resources/templates.rbi +7 -2
- data/sig/sentdm/models/template_create_params.rbs +5 -0
- data/sig/sentdm/resources/templates.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65f6179b1fe9d72e6c260ccfa40741ffe480c338b8fa973379812cf68483de3f
|
|
4
|
+
data.tar.gz: 9709f45d561064bfd30930460ae57758dbc70cb69c2882e9a454dacc07a3a391
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
|
19
|
-
#
|
|
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
|
data/lib/sentdm/version.rb
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
|
16
|
-
#
|
|
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,
|
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.
|
|
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-
|
|
11
|
+
date: 2026-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|