Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
a83a8e2
codegen metadata
stainless-app[bot] Apr 10, 2026
a60fbb4
codegen metadata
stainless-app[bot] Apr 10, 2026
ebdaeb8
codegen metadata
stainless-app[bot] Apr 10, 2026
35da92c
codegen metadata
stainless-app[bot] Apr 10, 2026
db39277
codegen metadata
stainless-app[bot] Apr 10, 2026
626686e
codegen metadata
stainless-app[bot] Apr 11, 2026
8f5169a
codegen metadata
stainless-app[bot] Apr 11, 2026
69cdca7
codegen metadata
stainless-app[bot] Apr 11, 2026
c41f151
codegen metadata
stainless-app[bot] Apr 11, 2026
cd16916
codegen metadata
stainless-app[bot] Apr 11, 2026
7915838
codegen metadata
stainless-app[bot] Apr 11, 2026
0d32602
codegen metadata
stainless-app[bot] Apr 11, 2026
1b19b05
codegen metadata
stainless-app[bot] Apr 11, 2026
e191826
codegen metadata
stainless-app[bot] Apr 11, 2026
92fa71d
codegen metadata
stainless-app[bot] Apr 11, 2026
09f0306
codegen metadata
stainless-app[bot] Apr 11, 2026
3f0cf8e
codegen metadata
stainless-app[bot] Apr 11, 2026
6f56583
codegen metadata
stainless-app[bot] Apr 11, 2026
979c0d1
codegen metadata
stainless-app[bot] Apr 11, 2026
6b1f1a9
codegen metadata
stainless-app[bot] Apr 11, 2026
cf1d673
codegen metadata
stainless-app[bot] Apr 11, 2026
ae76e51
codegen metadata
stainless-app[bot] Apr 11, 2026
0537b6d
codegen metadata
stainless-app[bot] Apr 11, 2026
5f9d1e2
codegen metadata
stainless-app[bot] Apr 11, 2026
c666036
codegen metadata
stainless-app[bot] Apr 11, 2026
8ea4bbe
codegen metadata
stainless-app[bot] Apr 11, 2026
c1b9dd6
codegen metadata
stainless-app[bot] Apr 11, 2026
fef1c0d
codegen metadata
stainless-app[bot] Apr 11, 2026
25c8d64
codegen metadata
stainless-app[bot] Apr 12, 2026
a80aad6
codegen metadata
stainless-app[bot] Apr 12, 2026
94b5741
codegen metadata
stainless-app[bot] Apr 12, 2026
e0a17d6
codegen metadata
stainless-app[bot] Apr 12, 2026
66c83e3
codegen metadata
stainless-app[bot] Apr 12, 2026
57235f1
codegen metadata
stainless-app[bot] Apr 12, 2026
879f846
codegen metadata
stainless-app[bot] Apr 12, 2026
f083091
codegen metadata
stainless-app[bot] Apr 12, 2026
42e1f31
codegen metadata
stainless-app[bot] Apr 12, 2026
3e5ee04
codegen metadata
stainless-app[bot] Apr 12, 2026
f008bb9
codegen metadata
stainless-app[bot] Apr 12, 2026
5cfde28
codegen metadata
stainless-app[bot] Apr 12, 2026
512d9fd
codegen metadata
stainless-app[bot] Apr 12, 2026
0d88bc3
codegen metadata
stainless-app[bot] Apr 12, 2026
0221e42
codegen metadata
stainless-app[bot] Apr 12, 2026
89acf21
codegen metadata
stainless-app[bot] Apr 12, 2026
98d1274
codegen metadata
stainless-app[bot] Apr 12, 2026
83ff20f
codegen metadata
stainless-app[bot] Apr 12, 2026
7fc8899
codegen metadata
stainless-app[bot] Apr 12, 2026
a7a4747
codegen metadata
stainless-app[bot] Apr 12, 2026
3bca103
codegen metadata
stainless-app[bot] Apr 12, 2026
d7f3fe9
codegen metadata
stainless-app[bot] Apr 12, 2026
65b4aed
codegen metadata
stainless-app[bot] Apr 13, 2026
1fff4e0
codegen metadata
stainless-app[bot] Apr 13, 2026
2af1cb2
codegen metadata
stainless-app[bot] Apr 13, 2026
44cf3f2
codegen metadata
stainless-app[bot] Apr 13, 2026
01b4b4e
codegen metadata
stainless-app[bot] Apr 13, 2026
fc80850
codegen metadata
stainless-app[bot] Apr 13, 2026
e856097
codegen metadata
stainless-app[bot] Apr 13, 2026
f25f7e4
codegen metadata
stainless-app[bot] Apr 13, 2026
d781a13
codegen metadata
stainless-app[bot] Apr 13, 2026
440eeec
codegen metadata
stainless-app[bot] Apr 13, 2026
ae5fbfe
codegen metadata
stainless-app[bot] Apr 13, 2026
2a6646a
codegen metadata
stainless-app[bot] Apr 13, 2026
5d49b0f
codegen metadata
stainless-app[bot] Apr 13, 2026
b8e8f22
codegen metadata
stainless-app[bot] Apr 13, 2026
5bc1d68
codegen metadata
stainless-app[bot] Apr 13, 2026
d429046
codegen metadata
stainless-app[bot] Apr 13, 2026
e20cdc2
codegen metadata
stainless-app[bot] Apr 13, 2026
1ff8ccf
codegen metadata
stainless-app[bot] Apr 13, 2026
c670be6
codegen metadata
stainless-app[bot] Apr 13, 2026
20cfeac
codegen metadata
stainless-app[bot] Apr 13, 2026
5f9fb89
codegen metadata
stainless-app[bot] Apr 13, 2026
f1d3e2d
codegen metadata
stainless-app[bot] Apr 13, 2026
da8e448
codegen metadata
stainless-app[bot] Apr 14, 2026
a5f0fcb
codegen metadata
stainless-app[bot] Apr 14, 2026
66253a0
codegen metadata
stainless-app[bot] Apr 14, 2026
97a5638
codegen metadata
stainless-app[bot] Apr 14, 2026
57bb901
codegen metadata
stainless-app[bot] Apr 14, 2026
742a5ef
codegen metadata
stainless-app[bot] Apr 14, 2026
7c8f153
codegen metadata
stainless-app[bot] Apr 14, 2026
963a6cc
codegen metadata
stainless-app[bot] Apr 14, 2026
2a3b769
codegen metadata
stainless-app[bot] Apr 14, 2026
a52a92b
codegen metadata
stainless-app[bot] Apr 14, 2026
82db07a
codegen metadata
stainless-app[bot] Apr 14, 2026
be077d4
codegen metadata
stainless-app[bot] Apr 14, 2026
ebf45aa
codegen metadata
stainless-app[bot] Apr 14, 2026
6dbc13e
codegen metadata
stainless-app[bot] Apr 14, 2026
fb1d44e
codegen metadata
stainless-app[bot] Apr 14, 2026
d6be24b
codegen metadata
stainless-app[bot] Apr 14, 2026
a14539b
codegen metadata
stainless-app[bot] Apr 14, 2026
e74851b
codegen metadata
stainless-app[bot] Apr 14, 2026
208dcfc
codegen metadata
stainless-app[bot] Apr 15, 2026
eebc367
codegen metadata
stainless-app[bot] Apr 15, 2026
f8a0257
codegen metadata
stainless-app[bot] Apr 15, 2026
f66e6f7
codegen metadata
stainless-app[bot] Apr 15, 2026
7ccca17
codegen metadata
stainless-app[bot] Apr 15, 2026
493cf51
codegen metadata
stainless-app[bot] Apr 15, 2026
bd840ed
codegen metadata
stainless-app[bot] Apr 15, 2026
cc789b2
codegen metadata
stainless-app[bot] Apr 15, 2026
90c8a43
codegen metadata
stainless-app[bot] Apr 15, 2026
0d5d4f5
codegen metadata
stainless-app[bot] Apr 15, 2026
60dbb8f
codegen metadata
stainless-app[bot] Apr 15, 2026
7605bb0
codegen metadata
stainless-app[bot] Apr 15, 2026
4571506
codegen metadata
stainless-app[bot] Apr 15, 2026
dae264d
codegen metadata
stainless-app[bot] Apr 15, 2026
ea9f787
codegen metadata
stainless-app[bot] Apr 15, 2026
d5d131a
codegen metadata
stainless-app[bot] Apr 15, 2026
7afac9b
codegen metadata
stainless-app[bot] Apr 15, 2026
4bd0785
codegen metadata
stainless-app[bot] Apr 15, 2026
53e1bbe
codegen metadata
stainless-app[bot] Apr 15, 2026
e096e78
codegen metadata
stainless-app[bot] Apr 15, 2026
39a288b
codegen metadata
stainless-app[bot] Apr 15, 2026
f0754ff
codegen metadata
stainless-app[bot] Apr 15, 2026
fda35b8
codegen metadata
stainless-app[bot] Apr 15, 2026
e04e8ee
codegen metadata
stainless-app[bot] Apr 16, 2026
aa4e6b9
codegen metadata
stainless-app[bot] Apr 16, 2026
deb651a
codegen metadata
stainless-app[bot] Apr 16, 2026
d4900b8
codegen metadata
stainless-app[bot] Apr 16, 2026
512054e
codegen metadata
stainless-app[bot] Apr 16, 2026
6960462
codegen metadata
stainless-app[bot] Apr 16, 2026
926cf98
codegen metadata
stainless-app[bot] Apr 16, 2026
f9869e2
codegen metadata
stainless-app[bot] Apr 16, 2026
1c356c7
codegen metadata
stainless-app[bot] Apr 16, 2026
720aa3b
codegen metadata
stainless-app[bot] Apr 16, 2026
4e9a6f3
codegen metadata
stainless-app[bot] Apr 16, 2026
d3eeadf
codegen metadata
stainless-app[bot] Apr 16, 2026
3363604
codegen metadata
stainless-app[bot] Apr 16, 2026
6726145
codegen metadata
stainless-app[bot] Apr 16, 2026
183ddaa
codegen metadata
stainless-app[bot] Apr 16, 2026
a249d09
codegen metadata
stainless-app[bot] Apr 16, 2026
603a7af
codegen metadata
stainless-app[bot] Apr 16, 2026
212ae0f
codegen metadata
stainless-app[bot] Apr 16, 2026
63ca4d4
codegen metadata
stainless-app[bot] Apr 16, 2026
0876a47
codegen metadata
stainless-app[bot] Apr 16, 2026
1e40db0
codegen metadata
stainless-app[bot] Apr 17, 2026
3bb1a28
codegen metadata
stainless-app[bot] Apr 17, 2026
2e57329
codegen metadata
stainless-app[bot] Apr 17, 2026
a9f2a23
codegen metadata
stainless-app[bot] Apr 17, 2026
00d467f
codegen metadata
stainless-app[bot] Apr 17, 2026
8fd85ac
codegen metadata
stainless-app[bot] Apr 17, 2026
ae5e117
codegen metadata
stainless-app[bot] Apr 17, 2026
ffe3614
codegen metadata
stainless-app[bot] Apr 17, 2026
e38f046
codegen metadata
stainless-app[bot] Apr 17, 2026
e5513ef
codegen metadata
stainless-app[bot] Apr 17, 2026
a300040
codegen metadata
stainless-app[bot] Apr 17, 2026
9ba49a3
codegen metadata
stainless-app[bot] Apr 17, 2026
cd2fc72
codegen metadata
stainless-app[bot] Apr 17, 2026
40a70e7
codegen metadata
stainless-app[bot] Apr 17, 2026
c1a732e
codegen metadata
stainless-app[bot] Apr 17, 2026
ddb65a5
codegen metadata
stainless-app[bot] Apr 17, 2026
445247e
codegen metadata
stainless-app[bot] Apr 17, 2026
c27bca7
codegen metadata
stainless-app[bot] Apr 17, 2026
bcc3adf
codegen metadata
stainless-app[bot] Apr 18, 2026
223ae80
codegen metadata
stainless-app[bot] Apr 18, 2026
ae6b4b2
codegen metadata
stainless-app[bot] Apr 18, 2026
a63b0b6
codegen metadata
stainless-app[bot] Apr 18, 2026
ac4fd05
codegen metadata
stainless-app[bot] Apr 18, 2026
b7cb1bf
codegen metadata
stainless-app[bot] Apr 18, 2026
32076e6
codegen metadata
stainless-app[bot] Apr 18, 2026
495647f
codegen metadata
stainless-app[bot] Apr 18, 2026
97412e3
codegen metadata
stainless-app[bot] Apr 18, 2026
ee8b589
codegen metadata
stainless-app[bot] Apr 18, 2026
4f93c36
codegen metadata
stainless-app[bot] Apr 18, 2026
c7e1cc7
codegen metadata
stainless-app[bot] Apr 18, 2026
f9cd771
codegen metadata
stainless-app[bot] Apr 18, 2026
9e2ba95
codegen metadata
stainless-app[bot] Apr 18, 2026
9cd4ee1
codegen metadata
stainless-app[bot] Apr 18, 2026
2ef43aa
codegen metadata
stainless-app[bot] Apr 18, 2026
e96d461
codegen metadata
stainless-app[bot] Apr 19, 2026
66cc417
codegen metadata
stainless-app[bot] Apr 19, 2026
89298fc
codegen metadata
stainless-app[bot] Apr 19, 2026
e151c1a
codegen metadata
stainless-app[bot] Apr 19, 2026
f4e2c4a
codegen metadata
stainless-app[bot] Apr 19, 2026
4aead41
codegen metadata
stainless-app[bot] Apr 19, 2026
d6eb0dc
codegen metadata
stainless-app[bot] Apr 19, 2026
52eda08
codegen metadata
stainless-app[bot] Apr 19, 2026
08a2cb6
codegen metadata
stainless-app[bot] Apr 19, 2026
ac7b84a
codegen metadata
stainless-app[bot] Apr 19, 2026
f74842c
codegen metadata
stainless-app[bot] Apr 19, 2026
24a32ff
codegen metadata
stainless-app[bot] Apr 19, 2026
33dfad0
codegen metadata
stainless-app[bot] Apr 19, 2026
56d0e19
codegen metadata
stainless-app[bot] Apr 19, 2026
fafec8b
codegen metadata
stainless-app[bot] Apr 19, 2026
8fa7a29
codegen metadata
stainless-app[bot] Apr 19, 2026
d6a6ce9
codegen metadata
stainless-app[bot] Apr 19, 2026
d2ff85a
codegen metadata
stainless-app[bot] Apr 19, 2026
2cccd40
codegen metadata
stainless-app[bot] Apr 19, 2026
8a0d4d1
codegen metadata
stainless-app[bot] Apr 20, 2026
9be94fd
codegen metadata
stainless-app[bot] Apr 20, 2026
c0cb59a
codegen metadata
stainless-app[bot] Apr 20, 2026
fbd51c1
codegen metadata
stainless-app[bot] Apr 20, 2026
92e2c42
codegen metadata
stainless-app[bot] Apr 20, 2026
2fdacf0
codegen metadata
stainless-app[bot] Apr 20, 2026
ab10303
codegen metadata
stainless-app[bot] Apr 20, 2026
7faa4f2
codegen metadata
stainless-app[bot] Apr 20, 2026
6f57eed
codegen metadata
stainless-app[bot] Apr 20, 2026
07de10f
codegen metadata
stainless-app[bot] Apr 20, 2026
c69ee23
codegen metadata
stainless-app[bot] Apr 20, 2026
27832ee
feat(api): api update
stainless-app[bot] Apr 20, 2026
15eb8de
release: 0.14.0
stainless-app[bot] Apr 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.13.1"
".": "0.14.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 40
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-2fa77c5563df4353049c27f275600e30487ea3fd617770a059a8e8579bedcedb.yml
openapi_spec_hash: 3ae742e1990418d2c01ecac606187887
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-f35f1b37bbee180194767c8644de479a1ce7166e863c4cc22f76115a7adac08f.yml
openapi_spec_hash: b62ddef06e729720dbae93de3efa0898
config_hash: 405ade725d72d542c60de821a127411b
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.14.0 (2026-04-20)

Full Changelog: [v0.13.1...v0.14.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.13.1...v0.14.0)

### Features

* **api:** api update ([27832ee](https://github.com/sentdm/sent-dm-ruby/commit/27832ee8fb7acf613d181af0a485f79d6523ed26))

## 0.13.1 (2026-04-10)

Full Changelog: [v0.13.0...v0.13.1](https://github.com/sentdm/sent-dm-ruby/compare/v0.13.0...v0.13.1)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
sentdm (0.13.1)
sentdm (0.14.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "sentdm", "~> 0.13.1"
gem "sentdm", "~> 0.14.0"
```

<!-- x-release-please-end -->
Expand Down
12 changes: 11 additions & 1 deletion lib/sentdm/models/message_retrieve_activities_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ class Activity < Sentdm::Internal::Type::BaseModel
# @return [String, nil]
optional :description, String

# @!attribute from
# Sender phone number for this activity (the customer's sending number for
# outbound, the external sender for inbound). Null when not reported by the
# provider.
#
# @return [String, nil]
optional :from, String, nil?: true

# @!attribute price
# Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
# 4 decimal places.
Expand All @@ -94,7 +102,7 @@ class Activity < Sentdm::Internal::Type::BaseModel
# @return [Time, nil]
optional :timestamp, Time

# @!method initialize(active_contact_price: nil, description: nil, price: nil, status: nil, timestamp: nil)
# @!method initialize(active_contact_price: nil, description: nil, from: nil, price: nil, status: nil, timestamp: nil)
# Some parameter documentations has been truncated, see
# {Sentdm::Models::MessageRetrieveActivitiesResponse::Data::Activity} for more
# details.
Expand All @@ -105,6 +113,8 @@ class Activity < Sentdm::Internal::Type::BaseModel
#
# @param description [String] Human-readable description of the activity
#
# @param from [String, nil] Sender phone number for this activity (the customer's sending number for outboun
#
# @param price [String, nil] Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
#
# @param status [String] Activity status (e.g., QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, FAILED)
Expand Down
11 changes: 10 additions & 1 deletion lib/sentdm/models/webhook_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ class WebhookCreateParams < Sentdm::Internal::Type::BaseModel
# @return [String, nil]
optional :endpoint_url, String

# @!attribute event_filters
#
# @return [Hash{Symbol=>Array<String>}, nil]
optional :event_filters,
Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]],
nil?: true

# @!attribute event_types
#
# @return [Array<String>, nil]
Expand Down Expand Up @@ -49,14 +56,16 @@ class WebhookCreateParams < Sentdm::Internal::Type::BaseModel
# @return [String, nil]
optional :x_profile_id, String

# @!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: {})
# @!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: {})
# Some parameter documentations has been truncated, see
# {Sentdm::Models::WebhookCreateParams} for more details.
#
# @param display_name [String]
#
# @param endpoint_url [String]
#
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
#
# @param event_types [Array<String>]
#
# @param retry_count [Integer]
Expand Down
14 changes: 13 additions & 1 deletion lib/sentdm/models/webhook_list_event_types_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ class EventType < Sentdm::Internal::Type::BaseModel
# @return [String, nil]
optional :display_name, String

# @!attribute event_type
#
# @return [String, nil]
optional :event_type, String, nil?: true

# @!attribute is_active
#
# @return [Boolean, nil]
Expand All @@ -73,11 +78,18 @@ class EventType < Sentdm::Internal::Type::BaseModel
# @return [String, nil]
optional :name, String

# @!method initialize(description: nil, display_name: nil, is_active: nil, name: nil)
# @!attribute sub_types
#
# @return [Array<Object>, nil]
optional :sub_types, Sentdm::Internal::Type::ArrayOf[Sentdm::Internal::Type::Unknown], nil?: true

# @!method initialize(description: nil, display_name: nil, event_type: nil, is_active: nil, name: nil, sub_types: nil)
# @param description [String, nil]
# @param display_name [String]
# @param event_type [String, nil]
# @param is_active [Boolean]
# @param name [String]
# @param sub_types [Array<Object>, nil]
end
end
end
Expand Down
10 changes: 9 additions & 1 deletion lib/sentdm/models/webhook_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ class WebhookResponse < Sentdm::Internal::Type::BaseModel
# @return [String, nil]
optional :endpoint_url, String

# @!attribute event_filters
#
# @return [Hash{Symbol=>Array<String>}, nil]
optional :event_filters,
Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]],
nil?: true

# @!attribute event_types
#
# @return [Array<String>, nil]
Expand Down Expand Up @@ -68,12 +75,13 @@ class WebhookResponse < Sentdm::Internal::Type::BaseModel
# @return [Time, nil]
optional :updated_at, Time, nil?: true

# @!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)
# @!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)
# @param id [String]
# @param consecutive_failures [Integer]
# @param created_at [Time]
# @param display_name [String]
# @param endpoint_url [String]
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
# @param event_types [Array<String>]
# @param is_active [Boolean]
# @param last_delivery_attempt_at [Time, nil]
Expand Down
11 changes: 10 additions & 1 deletion lib/sentdm/models/webhook_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ class WebhookUpdateParams < Sentdm::Internal::Type::BaseModel
# @return [String, nil]
optional :endpoint_url, String

# @!attribute event_filters
#
# @return [Hash{Symbol=>Array<String>}, nil]
optional :event_filters,
Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]],
nil?: true

# @!attribute event_types
#
# @return [Array<String>, nil]
Expand Down Expand Up @@ -54,7 +61,7 @@ class WebhookUpdateParams < Sentdm::Internal::Type::BaseModel
# @return [String, nil]
optional :x_profile_id, String

# @!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: {})
# @!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: {})
# Some parameter documentations has been truncated, see
# {Sentdm::Models::WebhookUpdateParams} for more details.
#
Expand All @@ -64,6 +71,8 @@ class WebhookUpdateParams < Sentdm::Internal::Type::BaseModel
#
# @param endpoint_url [String]
#
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
#
# @param event_types [Array<String>]
#
# @param retry_count [Integer]
Expand Down
8 changes: 6 additions & 2 deletions lib/sentdm/resources/webhooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ class Webhooks
#
# Creates a new webhook endpoint for the authenticated customer.
#
# @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: {})
# @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: {})
#
# @param display_name [String] Body param
#
# @param endpoint_url [String] Body param
#
# @param event_filters [Hash{Symbol=>Array<String>}, nil] Body param
#
# @param event_types [Array<String>] Body param
#
# @param retry_count [Integer] Body param
Expand Down Expand Up @@ -77,14 +79,16 @@ def retrieve(id, params = {})
#
# Updates an existing webhook for the authenticated customer.
#
# @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: {})
# @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: {})
#
# @param id [String] Path param
#
# @param display_name [String] Body param
#
# @param endpoint_url [String] Body param
#
# @param event_filters [Hash{Symbol=>Array<String>}, nil] Body param
#
# @param event_types [Array<String>] Body param
#
# @param retry_count [Integer] Body param
Expand Down
2 changes: 1 addition & 1 deletion lib/sentdm/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Sentdm
VERSION = "0.13.1"
VERSION = "0.14.0"
end
12 changes: 12 additions & 0 deletions rbi/sentdm/models/message_retrieve_activities_response.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ module Sentdm
sig { params(description: String).void }
attr_writer :description

# Sender phone number for this activity (the customer's sending number for
# outbound, the external sender for inbound). Null when not reported by the
# provider.
sig { returns(T.nilable(String)) }
attr_accessor :from

# Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
# 4 decimal places.
sig { returns(T.nilable(String)) }
Expand All @@ -205,6 +211,7 @@ module Sentdm
params(
active_contact_price: T.nilable(String),
description: String,
from: T.nilable(String),
price: T.nilable(String),
status: String,
timestamp: Time
Expand All @@ -216,6 +223,10 @@ module Sentdm
active_contact_price: nil,
# Human-readable description of the activity
description: nil,
# Sender phone number for this activity (the customer's sending number for
# outbound, the external sender for inbound). Null when not reported by the
# provider.
from: nil,
# Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
# 4 decimal places.
price: nil,
Expand All @@ -231,6 +242,7 @@ module Sentdm
{
active_contact_price: T.nilable(String),
description: String,
from: T.nilable(String),
price: T.nilable(String),
status: String,
timestamp: Time
Expand Down
6 changes: 6 additions & 0 deletions rbi/sentdm/models/webhook_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ module Sentdm
sig { params(endpoint_url: String).void }
attr_writer :endpoint_url

sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
attr_accessor :event_filters

sig { returns(T.nilable(T::Array[String])) }
attr_reader :event_types

Expand Down Expand Up @@ -65,6 +68,7 @@ module Sentdm
params(
display_name: String,
endpoint_url: String,
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
event_types: T::Array[String],
retry_count: Integer,
sandbox: T::Boolean,
Expand All @@ -77,6 +81,7 @@ module Sentdm
def self.new(
display_name: nil,
endpoint_url: nil,
event_filters: nil,
event_types: nil,
retry_count: nil,
# Sandbox flag - when true, the operation is simulated without side effects Useful
Expand All @@ -94,6 +99,7 @@ module Sentdm
{
display_name: String,
endpoint_url: String,
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
event_types: T::Array[String],
retry_count: Integer,
sandbox: T::Boolean,
Expand Down
18 changes: 15 additions & 3 deletions rbi/sentdm/models/webhook_list_event_types_response.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ module Sentdm
sig { params(display_name: String).void }
attr_writer :display_name

sig { returns(T.nilable(String)) }
attr_accessor :event_type

sig { returns(T.nilable(T::Boolean)) }
attr_reader :is_active

Expand All @@ -171,19 +174,26 @@ module Sentdm
sig { params(name: String).void }
attr_writer :name

sig { returns(T.nilable(T::Array[T.anything])) }
attr_accessor :sub_types

sig do
params(
description: T.nilable(String),
display_name: String,
event_type: T.nilable(String),
is_active: T::Boolean,
name: String
name: String,
sub_types: T.nilable(T::Array[T.anything])
).returns(T.attached_class)
end
def self.new(
description: nil,
display_name: nil,
event_type: nil,
is_active: nil,
name: nil
name: nil,
sub_types: nil
)
end

Expand All @@ -192,8 +202,10 @@ module Sentdm
{
description: T.nilable(String),
display_name: String,
event_type: T.nilable(String),
is_active: T::Boolean,
name: String
name: String,
sub_types: T.nilable(T::Array[T.anything])
}
)
end
Expand Down
Loading