sentdm 0.13.0 → 0.14.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 +16 -0
- data/README.md +1 -1
- data/lib/sentdm/internal/util.rb +3 -1
- data/lib/sentdm/models/message_retrieve_activities_response.rb +11 -1
- data/lib/sentdm/models/webhook_create_params.rb +10 -1
- data/lib/sentdm/models/webhook_list_event_types_response.rb +13 -1
- data/lib/sentdm/models/webhook_response.rb +9 -1
- data/lib/sentdm/models/webhook_update_params.rb +10 -1
- data/lib/sentdm/resources/webhooks.rb +6 -2
- data/lib/sentdm/version.rb +1 -1
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +12 -0
- data/rbi/sentdm/models/webhook_create_params.rbi +6 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +15 -3
- data/rbi/sentdm/models/webhook_response.rbi +6 -0
- data/rbi/sentdm/models/webhook_update_params.rbi +6 -0
- data/rbi/sentdm/resources/webhooks.rbi +6 -0
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +5 -0
- data/sig/sentdm/models/webhook_create_params.rbs +5 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +13 -3
- data/sig/sentdm/models/webhook_response.rbs +5 -0
- data/sig/sentdm/models/webhook_update_params.rbs +5 -0
- data/sig/sentdm/resources/webhooks.rbs +2 -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: 6deb093a9f2c5d24bcdb01a4931610ac5a20888cd2a55cb2b6b716b11b6cd54a
|
|
4
|
+
data.tar.gz: 213dc9cedf353c9c1eafa2cd7463415ad1cdad1e8d9438fa037672eebfe48912
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d486ff5a4f521ad385c10fac04f27d1d55e94bc107b9639a3abae6ba9040d0b59b53f6a9e938198ab311df84c553ed0cf0721b2f832075a0dcc08a4df77b8f8
|
|
7
|
+
data.tar.gz: dc5717d0ef6304ad6ce20564f5317a046f8c25274519fdb63d656abb2c736e87e5ce7539306aaa98a7e14fa2fa7486f2c3259d9514c226f17a475cf58fa3d8c9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.14.0 (2026-04-20)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.13.1...v0.14.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.13.1...v0.14.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([27832ee](https://github.com/sentdm/sent-dm-ruby/commit/27832ee8fb7acf613d181af0a485f79d6523ed26))
|
|
10
|
+
|
|
11
|
+
## 0.13.1 (2026-04-10)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.13.0...v0.13.1](https://github.com/sentdm/sent-dm-ruby/compare/v0.13.0...v0.13.1)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* multipart encoding for file arrays ([3bf860f](https://github.com/sentdm/sent-dm-ruby/commit/3bf860f577ef213e769f932545dfe961183ccee9))
|
|
18
|
+
|
|
3
19
|
## 0.13.0 (2026-04-07)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.12.1...v0.13.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.12.1...v0.13.0)
|
data/README.md
CHANGED
data/lib/sentdm/internal/util.rb
CHANGED
|
@@ -610,6 +610,7 @@ module Sentdm
|
|
|
610
610
|
#
|
|
611
611
|
# @return [Array(String, Enumerable<String>)]
|
|
612
612
|
private def encode_multipart_streaming(body)
|
|
613
|
+
# rubocop:disable Style/CaseEquality
|
|
613
614
|
# RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
|
|
614
615
|
boundary = SecureRandom.urlsafe_base64(46)
|
|
615
616
|
|
|
@@ -619,7 +620,7 @@ module Sentdm
|
|
|
619
620
|
in Hash
|
|
620
621
|
body.each do |key, val|
|
|
621
622
|
case val
|
|
622
|
-
in Array if val.all? { primitive?(_1) }
|
|
623
|
+
in Array if val.all? { primitive?(_1) || Sentdm::Internal::Type::FileInput === _1 }
|
|
623
624
|
val.each do |v|
|
|
624
625
|
write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
|
|
625
626
|
end
|
|
@@ -635,6 +636,7 @@ module Sentdm
|
|
|
635
636
|
|
|
636
637
|
fused_io = fused_enum(strio) { closing.each(&:call) }
|
|
637
638
|
[boundary, fused_io]
|
|
639
|
+
# rubocop:enable Style/CaseEquality
|
|
638
640
|
end
|
|
639
641
|
|
|
640
642
|
# @api private
|
|
@@ -75,6 +75,14 @@ module Sentdm
|
|
|
75
75
|
# @return [String, nil]
|
|
76
76
|
optional :description, String
|
|
77
77
|
|
|
78
|
+
# @!attribute from
|
|
79
|
+
# Sender phone number for this activity (the customer's sending number for
|
|
80
|
+
# outbound, the external sender for inbound). Null when not reported by the
|
|
81
|
+
# provider.
|
|
82
|
+
#
|
|
83
|
+
# @return [String, nil]
|
|
84
|
+
optional :from, String, nil?: true
|
|
85
|
+
|
|
78
86
|
# @!attribute price
|
|
79
87
|
# Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
|
|
80
88
|
# 4 decimal places.
|
|
@@ -94,7 +102,7 @@ module Sentdm
|
|
|
94
102
|
# @return [Time, nil]
|
|
95
103
|
optional :timestamp, Time
|
|
96
104
|
|
|
97
|
-
# @!method initialize(active_contact_price: nil, description: nil, price: nil, status: nil, timestamp: nil)
|
|
105
|
+
# @!method initialize(active_contact_price: nil, description: nil, from: nil, price: nil, status: nil, timestamp: nil)
|
|
98
106
|
# Some parameter documentations has been truncated, see
|
|
99
107
|
# {Sentdm::Models::MessageRetrieveActivitiesResponse::Data::Activity} for more
|
|
100
108
|
# details.
|
|
@@ -105,6 +113,8 @@ module Sentdm
|
|
|
105
113
|
#
|
|
106
114
|
# @param description [String] Human-readable description of the activity
|
|
107
115
|
#
|
|
116
|
+
# @param from [String, nil] Sender phone number for this activity (the customer's sending number for outboun
|
|
117
|
+
#
|
|
108
118
|
# @param price [String, nil] Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
|
|
109
119
|
#
|
|
110
120
|
# @param status [String] Activity status (e.g., QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, FAILED)
|
|
@@ -17,6 +17,13 @@ module Sentdm
|
|
|
17
17
|
# @return [String, nil]
|
|
18
18
|
optional :endpoint_url, String
|
|
19
19
|
|
|
20
|
+
# @!attribute event_filters
|
|
21
|
+
#
|
|
22
|
+
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
23
|
+
optional :event_filters,
|
|
24
|
+
Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]],
|
|
25
|
+
nil?: true
|
|
26
|
+
|
|
20
27
|
# @!attribute event_types
|
|
21
28
|
#
|
|
22
29
|
# @return [Array<String>, nil]
|
|
@@ -49,7 +56,7 @@ module Sentdm
|
|
|
49
56
|
# @return [String, nil]
|
|
50
57
|
optional :x_profile_id, String
|
|
51
58
|
|
|
52
|
-
# @!method initialize(display_name: nil, endpoint_url: nil, event_types: nil, retry_count: nil, sandbox: nil, timeout_seconds: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
59
|
+
# @!method initialize(display_name: nil, endpoint_url: nil, event_filters: nil, event_types: nil, retry_count: nil, sandbox: nil, timeout_seconds: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
53
60
|
# Some parameter documentations has been truncated, see
|
|
54
61
|
# {Sentdm::Models::WebhookCreateParams} for more details.
|
|
55
62
|
#
|
|
@@ -57,6 +64,8 @@ module Sentdm
|
|
|
57
64
|
#
|
|
58
65
|
# @param endpoint_url [String]
|
|
59
66
|
#
|
|
67
|
+
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
|
|
68
|
+
#
|
|
60
69
|
# @param event_types [Array<String>]
|
|
61
70
|
#
|
|
62
71
|
# @param retry_count [Integer]
|
|
@@ -63,6 +63,11 @@ module Sentdm
|
|
|
63
63
|
# @return [String, nil]
|
|
64
64
|
optional :display_name, String
|
|
65
65
|
|
|
66
|
+
# @!attribute event_type
|
|
67
|
+
#
|
|
68
|
+
# @return [String, nil]
|
|
69
|
+
optional :event_type, String, nil?: true
|
|
70
|
+
|
|
66
71
|
# @!attribute is_active
|
|
67
72
|
#
|
|
68
73
|
# @return [Boolean, nil]
|
|
@@ -73,11 +78,18 @@ module Sentdm
|
|
|
73
78
|
# @return [String, nil]
|
|
74
79
|
optional :name, String
|
|
75
80
|
|
|
76
|
-
# @!
|
|
81
|
+
# @!attribute sub_types
|
|
82
|
+
#
|
|
83
|
+
# @return [Array<Object>, nil]
|
|
84
|
+
optional :sub_types, Sentdm::Internal::Type::ArrayOf[Sentdm::Internal::Type::Unknown], nil?: true
|
|
85
|
+
|
|
86
|
+
# @!method initialize(description: nil, display_name: nil, event_type: nil, is_active: nil, name: nil, sub_types: nil)
|
|
77
87
|
# @param description [String, nil]
|
|
78
88
|
# @param display_name [String]
|
|
89
|
+
# @param event_type [String, nil]
|
|
79
90
|
# @param is_active [Boolean]
|
|
80
91
|
# @param name [String]
|
|
92
|
+
# @param sub_types [Array<Object>, nil]
|
|
81
93
|
end
|
|
82
94
|
end
|
|
83
95
|
end
|
|
@@ -28,6 +28,13 @@ module Sentdm
|
|
|
28
28
|
# @return [String, nil]
|
|
29
29
|
optional :endpoint_url, String
|
|
30
30
|
|
|
31
|
+
# @!attribute event_filters
|
|
32
|
+
#
|
|
33
|
+
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
34
|
+
optional :event_filters,
|
|
35
|
+
Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]],
|
|
36
|
+
nil?: true
|
|
37
|
+
|
|
31
38
|
# @!attribute event_types
|
|
32
39
|
#
|
|
33
40
|
# @return [Array<String>, nil]
|
|
@@ -68,12 +75,13 @@ module Sentdm
|
|
|
68
75
|
# @return [Time, nil]
|
|
69
76
|
optional :updated_at, Time, nil?: true
|
|
70
77
|
|
|
71
|
-
# @!method initialize(id: nil, consecutive_failures: nil, created_at: nil, display_name: nil, endpoint_url: nil, event_types: nil, is_active: nil, last_delivery_attempt_at: nil, last_successful_delivery_at: nil, retry_count: nil, signing_secret: nil, timeout_seconds: nil, updated_at: nil)
|
|
78
|
+
# @!method initialize(id: nil, consecutive_failures: nil, created_at: nil, display_name: nil, endpoint_url: nil, event_filters: nil, event_types: nil, is_active: nil, last_delivery_attempt_at: nil, last_successful_delivery_at: nil, retry_count: nil, signing_secret: nil, timeout_seconds: nil, updated_at: nil)
|
|
72
79
|
# @param id [String]
|
|
73
80
|
# @param consecutive_failures [Integer]
|
|
74
81
|
# @param created_at [Time]
|
|
75
82
|
# @param display_name [String]
|
|
76
83
|
# @param endpoint_url [String]
|
|
84
|
+
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
|
|
77
85
|
# @param event_types [Array<String>]
|
|
78
86
|
# @param is_active [Boolean]
|
|
79
87
|
# @param last_delivery_attempt_at [Time, nil]
|
|
@@ -22,6 +22,13 @@ module Sentdm
|
|
|
22
22
|
# @return [String, nil]
|
|
23
23
|
optional :endpoint_url, String
|
|
24
24
|
|
|
25
|
+
# @!attribute event_filters
|
|
26
|
+
#
|
|
27
|
+
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
28
|
+
optional :event_filters,
|
|
29
|
+
Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]],
|
|
30
|
+
nil?: true
|
|
31
|
+
|
|
25
32
|
# @!attribute event_types
|
|
26
33
|
#
|
|
27
34
|
# @return [Array<String>, nil]
|
|
@@ -54,7 +61,7 @@ module Sentdm
|
|
|
54
61
|
# @return [String, nil]
|
|
55
62
|
optional :x_profile_id, String
|
|
56
63
|
|
|
57
|
-
# @!method initialize(id:, display_name: nil, endpoint_url: nil, event_types: nil, retry_count: nil, sandbox: nil, timeout_seconds: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
64
|
+
# @!method initialize(id:, display_name: nil, endpoint_url: nil, event_filters: nil, event_types: nil, retry_count: nil, sandbox: nil, timeout_seconds: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
58
65
|
# Some parameter documentations has been truncated, see
|
|
59
66
|
# {Sentdm::Models::WebhookUpdateParams} for more details.
|
|
60
67
|
#
|
|
@@ -64,6 +71,8 @@ module Sentdm
|
|
|
64
71
|
#
|
|
65
72
|
# @param endpoint_url [String]
|
|
66
73
|
#
|
|
74
|
+
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
|
|
75
|
+
#
|
|
67
76
|
# @param event_types [Array<String>]
|
|
68
77
|
#
|
|
69
78
|
# @param retry_count [Integer]
|
|
@@ -9,12 +9,14 @@ module Sentdm
|
|
|
9
9
|
#
|
|
10
10
|
# Creates a new webhook endpoint for the authenticated customer.
|
|
11
11
|
#
|
|
12
|
-
# @overload create(display_name: nil, endpoint_url: nil, event_types: nil, retry_count: nil, sandbox: nil, timeout_seconds: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
12
|
+
# @overload create(display_name: nil, endpoint_url: nil, event_filters: nil, event_types: nil, retry_count: nil, sandbox: nil, timeout_seconds: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
13
13
|
#
|
|
14
14
|
# @param display_name [String] Body param
|
|
15
15
|
#
|
|
16
16
|
# @param endpoint_url [String] Body param
|
|
17
17
|
#
|
|
18
|
+
# @param event_filters [Hash{Symbol=>Array<String>}, nil] Body param
|
|
19
|
+
#
|
|
18
20
|
# @param event_types [Array<String>] Body param
|
|
19
21
|
#
|
|
20
22
|
# @param retry_count [Integer] Body param
|
|
@@ -77,7 +79,7 @@ module Sentdm
|
|
|
77
79
|
#
|
|
78
80
|
# Updates an existing webhook for the authenticated customer.
|
|
79
81
|
#
|
|
80
|
-
# @overload update(id, display_name: nil, endpoint_url: nil, event_types: nil, retry_count: nil, sandbox: nil, timeout_seconds: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
82
|
+
# @overload update(id, display_name: nil, endpoint_url: nil, event_filters: nil, event_types: nil, retry_count: nil, sandbox: nil, timeout_seconds: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
81
83
|
#
|
|
82
84
|
# @param id [String] Path param
|
|
83
85
|
#
|
|
@@ -85,6 +87,8 @@ module Sentdm
|
|
|
85
87
|
#
|
|
86
88
|
# @param endpoint_url [String] Body param
|
|
87
89
|
#
|
|
90
|
+
# @param event_filters [Hash{Symbol=>Array<String>}, nil] Body param
|
|
91
|
+
#
|
|
88
92
|
# @param event_types [Array<String>] Body param
|
|
89
93
|
#
|
|
90
94
|
# @param retry_count [Integer] Body param
|
data/lib/sentdm/version.rb
CHANGED
|
@@ -181,6 +181,12 @@ module Sentdm
|
|
|
181
181
|
sig { params(description: String).void }
|
|
182
182
|
attr_writer :description
|
|
183
183
|
|
|
184
|
+
# Sender phone number for this activity (the customer's sending number for
|
|
185
|
+
# outbound, the external sender for inbound). Null when not reported by the
|
|
186
|
+
# provider.
|
|
187
|
+
sig { returns(T.nilable(String)) }
|
|
188
|
+
attr_accessor :from
|
|
189
|
+
|
|
184
190
|
# Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
|
|
185
191
|
# 4 decimal places.
|
|
186
192
|
sig { returns(T.nilable(String)) }
|
|
@@ -205,6 +211,7 @@ module Sentdm
|
|
|
205
211
|
params(
|
|
206
212
|
active_contact_price: T.nilable(String),
|
|
207
213
|
description: String,
|
|
214
|
+
from: T.nilable(String),
|
|
208
215
|
price: T.nilable(String),
|
|
209
216
|
status: String,
|
|
210
217
|
timestamp: Time
|
|
@@ -216,6 +223,10 @@ module Sentdm
|
|
|
216
223
|
active_contact_price: nil,
|
|
217
224
|
# Human-readable description of the activity
|
|
218
225
|
description: nil,
|
|
226
|
+
# Sender phone number for this activity (the customer's sending number for
|
|
227
|
+
# outbound, the external sender for inbound). Null when not reported by the
|
|
228
|
+
# provider.
|
|
229
|
+
from: nil,
|
|
219
230
|
# Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
|
|
220
231
|
# 4 decimal places.
|
|
221
232
|
price: nil,
|
|
@@ -231,6 +242,7 @@ module Sentdm
|
|
|
231
242
|
{
|
|
232
243
|
active_contact_price: T.nilable(String),
|
|
233
244
|
description: String,
|
|
245
|
+
from: T.nilable(String),
|
|
234
246
|
price: T.nilable(String),
|
|
235
247
|
status: String,
|
|
236
248
|
timestamp: Time
|
|
@@ -23,6 +23,9 @@ module Sentdm
|
|
|
23
23
|
sig { params(endpoint_url: String).void }
|
|
24
24
|
attr_writer :endpoint_url
|
|
25
25
|
|
|
26
|
+
sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
|
|
27
|
+
attr_accessor :event_filters
|
|
28
|
+
|
|
26
29
|
sig { returns(T.nilable(T::Array[String])) }
|
|
27
30
|
attr_reader :event_types
|
|
28
31
|
|
|
@@ -65,6 +68,7 @@ module Sentdm
|
|
|
65
68
|
params(
|
|
66
69
|
display_name: String,
|
|
67
70
|
endpoint_url: String,
|
|
71
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
68
72
|
event_types: T::Array[String],
|
|
69
73
|
retry_count: Integer,
|
|
70
74
|
sandbox: T::Boolean,
|
|
@@ -77,6 +81,7 @@ module Sentdm
|
|
|
77
81
|
def self.new(
|
|
78
82
|
display_name: nil,
|
|
79
83
|
endpoint_url: nil,
|
|
84
|
+
event_filters: nil,
|
|
80
85
|
event_types: nil,
|
|
81
86
|
retry_count: nil,
|
|
82
87
|
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
@@ -94,6 +99,7 @@ module Sentdm
|
|
|
94
99
|
{
|
|
95
100
|
display_name: String,
|
|
96
101
|
endpoint_url: String,
|
|
102
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
97
103
|
event_types: T::Array[String],
|
|
98
104
|
retry_count: Integer,
|
|
99
105
|
sandbox: T::Boolean,
|
|
@@ -159,6 +159,9 @@ module Sentdm
|
|
|
159
159
|
sig { params(display_name: String).void }
|
|
160
160
|
attr_writer :display_name
|
|
161
161
|
|
|
162
|
+
sig { returns(T.nilable(String)) }
|
|
163
|
+
attr_accessor :event_type
|
|
164
|
+
|
|
162
165
|
sig { returns(T.nilable(T::Boolean)) }
|
|
163
166
|
attr_reader :is_active
|
|
164
167
|
|
|
@@ -171,19 +174,26 @@ module Sentdm
|
|
|
171
174
|
sig { params(name: String).void }
|
|
172
175
|
attr_writer :name
|
|
173
176
|
|
|
177
|
+
sig { returns(T.nilable(T::Array[T.anything])) }
|
|
178
|
+
attr_accessor :sub_types
|
|
179
|
+
|
|
174
180
|
sig do
|
|
175
181
|
params(
|
|
176
182
|
description: T.nilable(String),
|
|
177
183
|
display_name: String,
|
|
184
|
+
event_type: T.nilable(String),
|
|
178
185
|
is_active: T::Boolean,
|
|
179
|
-
name: String
|
|
186
|
+
name: String,
|
|
187
|
+
sub_types: T.nilable(T::Array[T.anything])
|
|
180
188
|
).returns(T.attached_class)
|
|
181
189
|
end
|
|
182
190
|
def self.new(
|
|
183
191
|
description: nil,
|
|
184
192
|
display_name: nil,
|
|
193
|
+
event_type: nil,
|
|
185
194
|
is_active: nil,
|
|
186
|
-
name: nil
|
|
195
|
+
name: nil,
|
|
196
|
+
sub_types: nil
|
|
187
197
|
)
|
|
188
198
|
end
|
|
189
199
|
|
|
@@ -192,8 +202,10 @@ module Sentdm
|
|
|
192
202
|
{
|
|
193
203
|
description: T.nilable(String),
|
|
194
204
|
display_name: String,
|
|
205
|
+
event_type: T.nilable(String),
|
|
195
206
|
is_active: T::Boolean,
|
|
196
|
-
name: String
|
|
207
|
+
name: String,
|
|
208
|
+
sub_types: T.nilable(T::Array[T.anything])
|
|
197
209
|
}
|
|
198
210
|
)
|
|
199
211
|
end
|
|
@@ -38,6 +38,9 @@ module Sentdm
|
|
|
38
38
|
sig { params(endpoint_url: String).void }
|
|
39
39
|
attr_writer :endpoint_url
|
|
40
40
|
|
|
41
|
+
sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
|
|
42
|
+
attr_accessor :event_filters
|
|
43
|
+
|
|
41
44
|
sig { returns(T.nilable(T::Array[String])) }
|
|
42
45
|
attr_reader :event_types
|
|
43
46
|
|
|
@@ -81,6 +84,7 @@ module Sentdm
|
|
|
81
84
|
created_at: Time,
|
|
82
85
|
display_name: String,
|
|
83
86
|
endpoint_url: String,
|
|
87
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
84
88
|
event_types: T::Array[String],
|
|
85
89
|
is_active: T::Boolean,
|
|
86
90
|
last_delivery_attempt_at: T.nilable(Time),
|
|
@@ -97,6 +101,7 @@ module Sentdm
|
|
|
97
101
|
created_at: nil,
|
|
98
102
|
display_name: nil,
|
|
99
103
|
endpoint_url: nil,
|
|
104
|
+
event_filters: nil,
|
|
100
105
|
event_types: nil,
|
|
101
106
|
is_active: nil,
|
|
102
107
|
last_delivery_attempt_at: nil,
|
|
@@ -116,6 +121,7 @@ module Sentdm
|
|
|
116
121
|
created_at: Time,
|
|
117
122
|
display_name: String,
|
|
118
123
|
endpoint_url: String,
|
|
124
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
119
125
|
event_types: T::Array[String],
|
|
120
126
|
is_active: T::Boolean,
|
|
121
127
|
last_delivery_attempt_at: T.nilable(Time),
|
|
@@ -26,6 +26,9 @@ module Sentdm
|
|
|
26
26
|
sig { params(endpoint_url: String).void }
|
|
27
27
|
attr_writer :endpoint_url
|
|
28
28
|
|
|
29
|
+
sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
|
|
30
|
+
attr_accessor :event_filters
|
|
31
|
+
|
|
29
32
|
sig { returns(T.nilable(T::Array[String])) }
|
|
30
33
|
attr_reader :event_types
|
|
31
34
|
|
|
@@ -69,6 +72,7 @@ module Sentdm
|
|
|
69
72
|
id: String,
|
|
70
73
|
display_name: String,
|
|
71
74
|
endpoint_url: String,
|
|
75
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
72
76
|
event_types: T::Array[String],
|
|
73
77
|
retry_count: Integer,
|
|
74
78
|
sandbox: T::Boolean,
|
|
@@ -82,6 +86,7 @@ module Sentdm
|
|
|
82
86
|
id:,
|
|
83
87
|
display_name: nil,
|
|
84
88
|
endpoint_url: nil,
|
|
89
|
+
event_filters: nil,
|
|
85
90
|
event_types: nil,
|
|
86
91
|
retry_count: nil,
|
|
87
92
|
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
@@ -100,6 +105,7 @@ module Sentdm
|
|
|
100
105
|
id: String,
|
|
101
106
|
display_name: String,
|
|
102
107
|
endpoint_url: String,
|
|
108
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
103
109
|
event_types: T::Array[String],
|
|
104
110
|
retry_count: Integer,
|
|
105
111
|
sandbox: T::Boolean,
|
|
@@ -9,6 +9,7 @@ module Sentdm
|
|
|
9
9
|
params(
|
|
10
10
|
display_name: String,
|
|
11
11
|
endpoint_url: String,
|
|
12
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
12
13
|
event_types: T::Array[String],
|
|
13
14
|
retry_count: Integer,
|
|
14
15
|
sandbox: T::Boolean,
|
|
@@ -24,6 +25,8 @@ module Sentdm
|
|
|
24
25
|
# Body param
|
|
25
26
|
endpoint_url: nil,
|
|
26
27
|
# Body param
|
|
28
|
+
event_filters: nil,
|
|
29
|
+
# Body param
|
|
27
30
|
event_types: nil,
|
|
28
31
|
# Body param
|
|
29
32
|
retry_count: nil,
|
|
@@ -67,6 +70,7 @@ module Sentdm
|
|
|
67
70
|
id: String,
|
|
68
71
|
display_name: String,
|
|
69
72
|
endpoint_url: String,
|
|
73
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
70
74
|
event_types: T::Array[String],
|
|
71
75
|
retry_count: Integer,
|
|
72
76
|
sandbox: T::Boolean,
|
|
@@ -84,6 +88,8 @@ module Sentdm
|
|
|
84
88
|
# Body param
|
|
85
89
|
endpoint_url: nil,
|
|
86
90
|
# Body param
|
|
91
|
+
event_filters: nil,
|
|
92
|
+
# Body param
|
|
87
93
|
event_types: nil,
|
|
88
94
|
# Body param
|
|
89
95
|
retry_count: nil,
|
|
@@ -66,6 +66,7 @@ module Sentdm
|
|
|
66
66
|
{
|
|
67
67
|
active_contact_price: String?,
|
|
68
68
|
description: String,
|
|
69
|
+
from: String?,
|
|
69
70
|
price: String?,
|
|
70
71
|
status: String,
|
|
71
72
|
timestamp: Time
|
|
@@ -78,6 +79,8 @@ module Sentdm
|
|
|
78
79
|
|
|
79
80
|
def description=: (String) -> String
|
|
80
81
|
|
|
82
|
+
attr_accessor from: String?
|
|
83
|
+
|
|
81
84
|
attr_accessor price: String?
|
|
82
85
|
|
|
83
86
|
attr_reader status: String?
|
|
@@ -91,6 +94,7 @@ module Sentdm
|
|
|
91
94
|
def initialize: (
|
|
92
95
|
?active_contact_price: String?,
|
|
93
96
|
?description: String,
|
|
97
|
+
?from: String?,
|
|
94
98
|
?price: String?,
|
|
95
99
|
?status: String,
|
|
96
100
|
?timestamp: Time
|
|
@@ -99,6 +103,7 @@ module Sentdm
|
|
|
99
103
|
def to_hash: -> {
|
|
100
104
|
active_contact_price: String?,
|
|
101
105
|
description: String,
|
|
106
|
+
from: String?,
|
|
102
107
|
price: String?,
|
|
103
108
|
status: String,
|
|
104
109
|
timestamp: Time
|
|
@@ -4,6 +4,7 @@ module Sentdm
|
|
|
4
4
|
{
|
|
5
5
|
display_name: String,
|
|
6
6
|
endpoint_url: String,
|
|
7
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
7
8
|
event_types: ::Array[String],
|
|
8
9
|
retry_count: Integer,
|
|
9
10
|
sandbox: bool,
|
|
@@ -25,6 +26,8 @@ module Sentdm
|
|
|
25
26
|
|
|
26
27
|
def endpoint_url=: (String) -> String
|
|
27
28
|
|
|
29
|
+
attr_accessor event_filters: ::Hash[Symbol, ::Array[String]]?
|
|
30
|
+
|
|
28
31
|
attr_reader event_types: ::Array[String]?
|
|
29
32
|
|
|
30
33
|
def event_types=: (::Array[String]) -> ::Array[String]
|
|
@@ -52,6 +55,7 @@ module Sentdm
|
|
|
52
55
|
def initialize: (
|
|
53
56
|
?display_name: String,
|
|
54
57
|
?endpoint_url: String,
|
|
58
|
+
?event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
55
59
|
?event_types: ::Array[String],
|
|
56
60
|
?retry_count: Integer,
|
|
57
61
|
?sandbox: bool,
|
|
@@ -64,6 +68,7 @@ module Sentdm
|
|
|
64
68
|
def to_hash: -> {
|
|
65
69
|
display_name: String,
|
|
66
70
|
endpoint_url: String,
|
|
71
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
67
72
|
event_types: ::Array[String],
|
|
68
73
|
retry_count: Integer,
|
|
69
74
|
sandbox: bool,
|
|
@@ -59,8 +59,10 @@ module Sentdm
|
|
|
59
59
|
{
|
|
60
60
|
description: String?,
|
|
61
61
|
display_name: String,
|
|
62
|
+
event_type: String?,
|
|
62
63
|
is_active: bool,
|
|
63
|
-
name: String
|
|
64
|
+
name: String,
|
|
65
|
+
sub_types: ::Array[top]?
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
class EventType < Sentdm::Internal::Type::BaseModel
|
|
@@ -70,6 +72,8 @@ module Sentdm
|
|
|
70
72
|
|
|
71
73
|
def display_name=: (String) -> String
|
|
72
74
|
|
|
75
|
+
attr_accessor event_type: String?
|
|
76
|
+
|
|
73
77
|
attr_reader is_active: bool?
|
|
74
78
|
|
|
75
79
|
def is_active=: (bool) -> bool
|
|
@@ -78,18 +82,24 @@ module Sentdm
|
|
|
78
82
|
|
|
79
83
|
def name=: (String) -> String
|
|
80
84
|
|
|
85
|
+
attr_accessor sub_types: ::Array[top]?
|
|
86
|
+
|
|
81
87
|
def initialize: (
|
|
82
88
|
?description: String?,
|
|
83
89
|
?display_name: String,
|
|
90
|
+
?event_type: String?,
|
|
84
91
|
?is_active: bool,
|
|
85
|
-
?name: String
|
|
92
|
+
?name: String,
|
|
93
|
+
?sub_types: ::Array[top]?
|
|
86
94
|
) -> void
|
|
87
95
|
|
|
88
96
|
def to_hash: -> {
|
|
89
97
|
description: String?,
|
|
90
98
|
display_name: String,
|
|
99
|
+
event_type: String?,
|
|
91
100
|
is_active: bool,
|
|
92
|
-
name: String
|
|
101
|
+
name: String,
|
|
102
|
+
sub_types: ::Array[top]?
|
|
93
103
|
}
|
|
94
104
|
end
|
|
95
105
|
end
|
|
@@ -7,6 +7,7 @@ module Sentdm
|
|
|
7
7
|
created_at: Time,
|
|
8
8
|
display_name: String,
|
|
9
9
|
endpoint_url: String,
|
|
10
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
10
11
|
event_types: ::Array[String],
|
|
11
12
|
is_active: bool,
|
|
12
13
|
last_delivery_attempt_at: Time?,
|
|
@@ -38,6 +39,8 @@ module Sentdm
|
|
|
38
39
|
|
|
39
40
|
def endpoint_url=: (String) -> String
|
|
40
41
|
|
|
42
|
+
attr_accessor event_filters: ::Hash[Symbol, ::Array[String]]?
|
|
43
|
+
|
|
41
44
|
attr_reader event_types: ::Array[String]?
|
|
42
45
|
|
|
43
46
|
def event_types=: (::Array[String]) -> ::Array[String]
|
|
@@ -68,6 +71,7 @@ module Sentdm
|
|
|
68
71
|
?created_at: Time,
|
|
69
72
|
?display_name: String,
|
|
70
73
|
?endpoint_url: String,
|
|
74
|
+
?event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
71
75
|
?event_types: ::Array[String],
|
|
72
76
|
?is_active: bool,
|
|
73
77
|
?last_delivery_attempt_at: Time?,
|
|
@@ -84,6 +88,7 @@ module Sentdm
|
|
|
84
88
|
created_at: Time,
|
|
85
89
|
display_name: String,
|
|
86
90
|
endpoint_url: String,
|
|
91
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
87
92
|
event_types: ::Array[String],
|
|
88
93
|
is_active: bool,
|
|
89
94
|
last_delivery_attempt_at: Time?,
|
|
@@ -5,6 +5,7 @@ module Sentdm
|
|
|
5
5
|
id: String,
|
|
6
6
|
display_name: String,
|
|
7
7
|
endpoint_url: String,
|
|
8
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
8
9
|
event_types: ::Array[String],
|
|
9
10
|
retry_count: Integer,
|
|
10
11
|
sandbox: bool,
|
|
@@ -28,6 +29,8 @@ module Sentdm
|
|
|
28
29
|
|
|
29
30
|
def endpoint_url=: (String) -> String
|
|
30
31
|
|
|
32
|
+
attr_accessor event_filters: ::Hash[Symbol, ::Array[String]]?
|
|
33
|
+
|
|
31
34
|
attr_reader event_types: ::Array[String]?
|
|
32
35
|
|
|
33
36
|
def event_types=: (::Array[String]) -> ::Array[String]
|
|
@@ -56,6 +59,7 @@ module Sentdm
|
|
|
56
59
|
id: String,
|
|
57
60
|
?display_name: String,
|
|
58
61
|
?endpoint_url: String,
|
|
62
|
+
?event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
59
63
|
?event_types: ::Array[String],
|
|
60
64
|
?retry_count: Integer,
|
|
61
65
|
?sandbox: bool,
|
|
@@ -69,6 +73,7 @@ module Sentdm
|
|
|
69
73
|
id: String,
|
|
70
74
|
display_name: String,
|
|
71
75
|
endpoint_url: String,
|
|
76
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
72
77
|
event_types: ::Array[String],
|
|
73
78
|
retry_count: Integer,
|
|
74
79
|
sandbox: bool,
|
|
@@ -4,6 +4,7 @@ module Sentdm
|
|
|
4
4
|
def create: (
|
|
5
5
|
?display_name: String,
|
|
6
6
|
?endpoint_url: String,
|
|
7
|
+
?event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
7
8
|
?event_types: ::Array[String],
|
|
8
9
|
?retry_count: Integer,
|
|
9
10
|
?sandbox: bool,
|
|
@@ -23,6 +24,7 @@ module Sentdm
|
|
|
23
24
|
String id,
|
|
24
25
|
?display_name: String,
|
|
25
26
|
?endpoint_url: String,
|
|
27
|
+
?event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
26
28
|
?event_types: ::Array[String],
|
|
27
29
|
?retry_count: Integer,
|
|
28
30
|
?sandbox: bool,
|
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.14.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-04-
|
|
11
|
+
date: 2026-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|