Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
717309f
codegen metadata
stainless-app[bot] Jun 18, 2026
39d225f
codegen metadata
stainless-app[bot] Jun 18, 2026
84197f3
codegen metadata
stainless-app[bot] Jun 18, 2026
000f1d6
codegen metadata
stainless-app[bot] Jun 18, 2026
da96359
codegen metadata
stainless-app[bot] Jun 19, 2026
dfcc53c
codegen metadata
stainless-app[bot] Jun 19, 2026
0b5d184
codegen metadata
stainless-app[bot] Jun 19, 2026
d965858
codegen metadata
stainless-app[bot] Jun 19, 2026
01058fe
codegen metadata
stainless-app[bot] Jun 19, 2026
d67a003
codegen metadata
stainless-app[bot] Jun 19, 2026
a09080a
codegen metadata
stainless-app[bot] Jun 19, 2026
435ac83
codegen metadata
stainless-app[bot] Jun 19, 2026
1ee02a3
codegen metadata
stainless-app[bot] Jun 19, 2026
39320bc
codegen metadata
stainless-app[bot] Jun 19, 2026
42339ab
codegen metadata
stainless-app[bot] Jun 19, 2026
e2635bd
codegen metadata
stainless-app[bot] Jun 19, 2026
cc850c4
codegen metadata
stainless-app[bot] Jun 19, 2026
a4eeb93
codegen metadata
stainless-app[bot] Jun 19, 2026
9d0919e
codegen metadata
stainless-app[bot] Jun 19, 2026
d515e4d
codegen metadata
stainless-app[bot] Jun 19, 2026
e9ad22a
codegen metadata
stainless-app[bot] Jun 19, 2026
12d8f69
codegen metadata
stainless-app[bot] Jun 19, 2026
54504c3
codegen metadata
stainless-app[bot] Jun 19, 2026
257330e
codegen metadata
stainless-app[bot] Jun 19, 2026
932a938
codegen metadata
stainless-app[bot] Jun 20, 2026
aa9e721
codegen metadata
stainless-app[bot] Jun 20, 2026
b3e3472
codegen metadata
stainless-app[bot] Jun 20, 2026
3a68032
codegen metadata
stainless-app[bot] Jun 20, 2026
fee68ac
codegen metadata
stainless-app[bot] Jun 20, 2026
0a5fc3f
codegen metadata
stainless-app[bot] Jun 20, 2026
edb0839
codegen metadata
stainless-app[bot] Jun 20, 2026
fa3eac4
codegen metadata
stainless-app[bot] Jun 20, 2026
57c2ef2
codegen metadata
stainless-app[bot] Jun 20, 2026
7beb338
codegen metadata
stainless-app[bot] Jun 20, 2026
532140b
codegen metadata
stainless-app[bot] Jun 20, 2026
87bd7db
codegen metadata
stainless-app[bot] Jun 20, 2026
11f8c86
codegen metadata
stainless-app[bot] Jun 20, 2026
dea188b
codegen metadata
stainless-app[bot] Jun 20, 2026
ec6a717
codegen metadata
stainless-app[bot] Jun 20, 2026
448269e
codegen metadata
stainless-app[bot] Jun 20, 2026
d60320f
codegen metadata
stainless-app[bot] Jun 20, 2026
e270973
codegen metadata
stainless-app[bot] Jun 20, 2026
de82196
codegen metadata
stainless-app[bot] Jun 20, 2026
68b78db
codegen metadata
stainless-app[bot] Jun 21, 2026
dd5f49e
codegen metadata
stainless-app[bot] Jun 21, 2026
a7436ba
codegen metadata
stainless-app[bot] Jun 21, 2026
60dce6b
codegen metadata
stainless-app[bot] Jun 21, 2026
9925bac
codegen metadata
stainless-app[bot] Jun 21, 2026
8a31a0c
codegen metadata
stainless-app[bot] Jun 21, 2026
7918840
codegen metadata
stainless-app[bot] Jun 21, 2026
ffbf037
codegen metadata
stainless-app[bot] Jun 21, 2026
c14d404
codegen metadata
stainless-app[bot] Jun 21, 2026
cf27fe9
codegen metadata
stainless-app[bot] Jun 21, 2026
38586ac
codegen metadata
stainless-app[bot] Jun 21, 2026
2769720
codegen metadata
stainless-app[bot] Jun 21, 2026
61467b0
codegen metadata
stainless-app[bot] Jun 21, 2026
15c6021
codegen metadata
stainless-app[bot] Jun 21, 2026
21efcbe
codegen metadata
stainless-app[bot] Jun 21, 2026
e46d5e2
codegen metadata
stainless-app[bot] Jun 21, 2026
80c80eb
codegen metadata
stainless-app[bot] Jun 21, 2026
da6b535
codegen metadata
stainless-app[bot] Jun 21, 2026
c853b33
codegen metadata
stainless-app[bot] Jun 21, 2026
c10aa1b
codegen metadata
stainless-app[bot] Jun 22, 2026
d2595ca
codegen metadata
stainless-app[bot] Jun 22, 2026
4a5d6ca
codegen metadata
stainless-app[bot] Jun 22, 2026
912b6ee
codegen metadata
stainless-app[bot] Jun 22, 2026
c7d8cca
codegen metadata
stainless-app[bot] Jun 22, 2026
e2d98a7
codegen metadata
stainless-app[bot] Jun 22, 2026
8075b8c
codegen metadata
stainless-app[bot] Jun 22, 2026
143b46e
codegen metadata
stainless-app[bot] Jun 22, 2026
949f37c
codegen metadata
stainless-app[bot] Jun 22, 2026
7dc3121
codegen metadata
stainless-app[bot] Jun 22, 2026
84b3a0a
codegen metadata
stainless-app[bot] Jun 22, 2026
4729c22
codegen metadata
stainless-app[bot] Jun 22, 2026
87da4a0
codegen metadata
stainless-app[bot] Jun 22, 2026
702b196
feat(api): api update
stainless-app[bot] Jun 22, 2026
721484c
codegen metadata
stainless-app[bot] Jun 22, 2026
7c0c04e
codegen metadata
stainless-app[bot] Jun 22, 2026
f715cc5
codegen metadata
stainless-app[bot] Jun 22, 2026
b3e6119
codegen metadata
stainless-app[bot] Jun 22, 2026
eb71eb5
codegen metadata
stainless-app[bot] Jun 22, 2026
cac586f
codegen metadata
stainless-app[bot] Jun 23, 2026
a348cc6
codegen metadata
stainless-app[bot] Jun 23, 2026
506813f
codegen metadata
stainless-app[bot] Jun 23, 2026
44b953c
codegen metadata
stainless-app[bot] Jun 23, 2026
ecc8ddf
codegen metadata
stainless-app[bot] Jun 23, 2026
25d4f55
codegen metadata
stainless-app[bot] Jun 23, 2026
7786ca2
codegen metadata
stainless-app[bot] Jun 23, 2026
e9792b3
codegen metadata
stainless-app[bot] Jun 23, 2026
d1199cc
codegen metadata
stainless-app[bot] Jun 23, 2026
74db857
codegen metadata
stainless-app[bot] Jun 23, 2026
ab1393a
codegen metadata
stainless-app[bot] Jun 23, 2026
ddd7f7a
codegen metadata
stainless-app[bot] Jun 23, 2026
fcb3017
codegen metadata
stainless-app[bot] Jun 23, 2026
6734856
codegen metadata
stainless-app[bot] Jun 23, 2026
f0caceb
codegen metadata
stainless-app[bot] Jun 23, 2026
96a0423
codegen metadata
stainless-app[bot] Jun 23, 2026
cff1357
codegen metadata
stainless-app[bot] Jun 23, 2026
151aeb0
codegen metadata
stainless-app[bot] Jun 23, 2026
a8c8d4b
codegen metadata
stainless-app[bot] Jun 23, 2026
5c96b33
codegen metadata
stainless-app[bot] Jun 24, 2026
8d90a6a
codegen metadata
stainless-app[bot] Jun 24, 2026
3528c89
codegen metadata
stainless-app[bot] Jun 24, 2026
17459a8
codegen metadata
stainless-app[bot] Jun 24, 2026
725ee87
codegen metadata
stainless-app[bot] Jun 24, 2026
597c789
codegen metadata
stainless-app[bot] Jun 24, 2026
d666538
codegen metadata
stainless-app[bot] Jun 24, 2026
21ad9d6
codegen metadata
stainless-app[bot] Jun 24, 2026
004cd41
codegen metadata
stainless-app[bot] Jun 24, 2026
839c66b
codegen metadata
stainless-app[bot] Jun 24, 2026
798cda1
codegen metadata
stainless-app[bot] Jun 24, 2026
f1a7cfe
codegen metadata
stainless-app[bot] Jun 24, 2026
42349f9
codegen metadata
stainless-app[bot] Jun 24, 2026
b30ea67
codegen metadata
stainless-app[bot] Jun 24, 2026
9ce8494
codegen metadata
stainless-app[bot] Jun 24, 2026
ddc5c62
codegen metadata
stainless-app[bot] Jun 24, 2026
a796a31
codegen metadata
stainless-app[bot] Jun 24, 2026
4913830
codegen metadata
stainless-app[bot] Jun 24, 2026
050f27f
codegen metadata
stainless-app[bot] Jun 25, 2026
c2f6827
codegen metadata
stainless-app[bot] Jun 25, 2026
23835b2
codegen metadata
stainless-app[bot] Jun 25, 2026
7f4609e
codegen metadata
stainless-app[bot] Jun 25, 2026
a287ff4
codegen metadata
stainless-app[bot] Jun 25, 2026
c837108
codegen metadata
stainless-app[bot] Jun 25, 2026
cd6c555
codegen metadata
stainless-app[bot] Jun 25, 2026
55daed0
codegen metadata
stainless-app[bot] Jun 25, 2026
7675981
codegen metadata
stainless-app[bot] Jun 25, 2026
4e1a7dd
codegen metadata
stainless-app[bot] Jun 25, 2026
5acd2de
codegen metadata
stainless-app[bot] Jun 25, 2026
862557c
codegen metadata
stainless-app[bot] Jun 25, 2026
d83aff0
codegen metadata
stainless-app[bot] Jun 25, 2026
12e8d0d
codegen metadata
stainless-app[bot] Jun 25, 2026
365490d
codegen metadata
stainless-app[bot] Jun 25, 2026
0c7cf4d
codegen metadata
stainless-app[bot] Jun 25, 2026
ab4a99d
codegen metadata
stainless-app[bot] Jun 26, 2026
933d926
codegen metadata
stainless-app[bot] Jun 26, 2026
bc0df72
codegen metadata
stainless-app[bot] Jun 26, 2026
1762543
codegen metadata
stainless-app[bot] Jun 26, 2026
a81573d
codegen metadata
stainless-app[bot] Jun 26, 2026
8421ded
codegen metadata
stainless-app[bot] Jun 26, 2026
198df26
codegen metadata
stainless-app[bot] Jun 26, 2026
f22ed09
codegen metadata
stainless-app[bot] Jun 26, 2026
7b11422
codegen metadata
stainless-app[bot] Jun 26, 2026
3e22a98
codegen metadata
stainless-app[bot] Jun 26, 2026
a3493db
codegen metadata
stainless-app[bot] Jun 26, 2026
93d6fd4
codegen metadata
stainless-app[bot] Jun 26, 2026
2d7f743
codegen metadata
stainless-app[bot] Jun 26, 2026
0a550f9
codegen metadata
stainless-app[bot] Jun 26, 2026
accbc0c
codegen metadata
stainless-app[bot] Jun 26, 2026
e8dfc08
codegen metadata
stainless-app[bot] Jun 26, 2026
b451ab4
codegen metadata
stainless-app[bot] Jun 26, 2026
d126e56
codegen metadata
stainless-app[bot] Jun 26, 2026
61da89b
codegen metadata
stainless-app[bot] Jun 26, 2026
441c4bd
feat(api): api update
stainless-app[bot] Jun 26, 2026
97d8a46
codegen metadata
stainless-app[bot] Jun 26, 2026
49d593f
codegen metadata
stainless-app[bot] Jun 26, 2026
f0845bb
codegen metadata
stainless-app[bot] Jun 27, 2026
3946703
codegen metadata
stainless-app[bot] Jun 27, 2026
e5216da
codegen metadata
stainless-app[bot] Jun 27, 2026
92d7e5a
codegen metadata
stainless-app[bot] Jun 27, 2026
de47818
codegen metadata
stainless-app[bot] Jun 27, 2026
2178396
codegen metadata
stainless-app[bot] Jun 27, 2026
f30da19
codegen metadata
stainless-app[bot] Jun 27, 2026
04c6d68
codegen metadata
stainless-app[bot] Jun 27, 2026
b28b499
codegen metadata
stainless-app[bot] Jun 27, 2026
4a7b19e
codegen metadata
stainless-app[bot] Jun 27, 2026
a610157
codegen metadata
stainless-app[bot] Jun 27, 2026
dab67ea
codegen metadata
stainless-app[bot] Jun 27, 2026
630279e
codegen metadata
stainless-app[bot] Jun 27, 2026
2a75f50
codegen metadata
stainless-app[bot] Jun 27, 2026
fa8270a
codegen metadata
stainless-app[bot] Jun 27, 2026
9a94e7c
codegen metadata
stainless-app[bot] Jun 27, 2026
d611309
codegen metadata
stainless-app[bot] Jun 27, 2026
b603065
codegen metadata
stainless-app[bot] Jun 27, 2026
86ccb2f
codegen metadata
stainless-app[bot] Jun 27, 2026
b49e4f1
codegen metadata
stainless-app[bot] Jun 27, 2026
1e602d6
codegen metadata
stainless-app[bot] Jun 28, 2026
a8de655
codegen metadata
stainless-app[bot] Jun 28, 2026
b184f06
codegen metadata
stainless-app[bot] Jun 28, 2026
d7e6937
codegen metadata
stainless-app[bot] Jun 28, 2026
cce38b9
codegen metadata
stainless-app[bot] Jun 28, 2026
118553b
codegen metadata
stainless-app[bot] Jun 28, 2026
c15401c
codegen metadata
stainless-app[bot] Jun 28, 2026
b6d1f96
codegen metadata
stainless-app[bot] Jun 28, 2026
3dd36e3
codegen metadata
stainless-app[bot] Jun 28, 2026
fe30955
codegen metadata
stainless-app[bot] Jun 28, 2026
5d4d15b
codegen metadata
stainless-app[bot] Jun 28, 2026
2ac96b5
codegen metadata
stainless-app[bot] Jun 28, 2026
4858231
codegen metadata
stainless-app[bot] Jun 28, 2026
615127d
codegen metadata
stainless-app[bot] Jun 28, 2026
b484d15
codegen metadata
stainless-app[bot] Jun 28, 2026
7be1aff
codegen metadata
stainless-app[bot] Jun 28, 2026
5509c76
codegen metadata
stainless-app[bot] Jun 28, 2026
e7e3a8b
codegen metadata
stainless-app[bot] Jun 28, 2026
5bcbc6a
codegen metadata
stainless-app[bot] Jun 28, 2026
0b05be9
codegen metadata
stainless-app[bot] Jun 28, 2026
fbf43c3
codegen metadata
stainless-app[bot] Jun 29, 2026
c495592
codegen metadata
stainless-app[bot] Jun 29, 2026
807bff1
codegen metadata
stainless-app[bot] Jun 29, 2026
4e557ce
release: 0.23.0
stainless-app[bot] Jun 29, 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.22.1"
".": "0.23.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/sent-dm-ed2d25d8fc35788cd5a487e5041365c3d269407578e74930a2bab21152dcd082.yml
openapi_spec_hash: f2858e2f82502940c623e8705564ac83
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent/sent-dm-a1adbb4477333281fc9e5e5f43f2959cccff21415303bde550372d2c3b7fd23f.yml
openapi_spec_hash: 70f03ab3754486d96e77819e38d119e3
config_hash: 32929c7d4b1344f5bbf67df044a518af
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.23.0 (2026-06-29)

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

### Features

* **api:** api update ([441c4bd](https://github.com/sentdm/sent-dm-ruby/commit/441c4bdaabc474360f4ad3efd5a1805948e95686))
* **api:** api update ([702b196](https://github.com/sentdm/sent-dm-ruby/commit/702b196e3037740b8980f60bc4c67719d582d261))

## 0.22.1 (2026-06-18)

Full Changelog: [v0.22.0...v0.22.1](https://github.com/sentdm/sent-dm-ruby/compare/v0.22.0...v0.22.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.22.1)
sentdm (0.23.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 @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "sentdm", "~> 0.22.1"
gem "sentdm", "~> 0.23.0"
```

<!-- x-release-please-end -->
Expand Down
14 changes: 11 additions & 3 deletions lib/sentdm/models/message_send_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ class MessageSendParams < Sentdm::Internal::Type::BaseModel
# parameters.
#
# @return [Sentdm::Models::MessageSendParams::Template, nil]
optional :template, -> { Sentdm::MessageSendParams::Template }
optional :template, -> { Sentdm::MessageSendParams::Template }, nil?: true

# @!attribute text
# Plain-text (free-form) message body. Provide either Template or this.
#
# @return [String, nil]
optional :text, String, nil?: true

# @!attribute to
# List of recipient phone numbers in E.164 format (multi-recipient fan-out)
Expand All @@ -45,15 +51,17 @@ class MessageSendParams < Sentdm::Internal::Type::BaseModel
# @return [String, nil]
optional :x_profile_id, String

# @!method initialize(channel: nil, sandbox: nil, template: nil, to: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
# @!method initialize(channel: nil, sandbox: nil, template: nil, text: nil, to: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Sentdm::Models::MessageSendParams} for more details.
#
# @param channel [Array<String>, nil] Channels to broadcast on, e.g. ["whatsapp", "sms"].
#
# @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
#
# @param template [Sentdm::Models::MessageSendParams::Template] SDK-style template reference: resolve by ID or by name, with optional parameters
# @param template [Sentdm::Models::MessageSendParams::Template, nil] SDK-style template reference: resolve by ID or by name, with optional parameters
#
# @param text [String, nil] Plain-text (free-form) message body. Provide either Template or this.
#
# @param to [Array<String>] List of recipient phone numbers in E.164 format (multi-recipient fan-out)
#
Expand Down
46 changes: 45 additions & 1 deletion lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ class TcrCampaignWithUseCases < Sentdm::Models::Profiles::BaseDto
# @return [String, nil]
optional :description, String

# @!attribute has_submission_transaction
# True when this campaign already has a billing transaction of reference type
# TCR_CAMPAIGN_SUBMISSION (the one-time submission fee was charged). Populated
# only by the campaigns-list path; defaults false on other responses.
#
# @return [Boolean, nil]
optional :has_submission_transaction,
Sentdm::Internal::Type::Boolean,
api_name: :hasSubmissionTransaction

# @!attribute help_keywords
#
# @return [String, nil]
Expand Down Expand Up @@ -162,36 +172,70 @@ class TcrCampaignWithUseCases < Sentdm::Models::Profiles::BaseDto
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase] },
api_name: :useCases

# @!method initialize(billed_date: nil, brand_id: nil, cost: nil, csp_id: nil, customer_id: nil, dca_elections_complete: nil, dca_elections_completed_at: nil, description: nil, help_keywords: nil, help_message: nil, kyc_submission_form_id: nil, message_flow: nil, name: nil, optin_keywords: nil, optin_message: nil, optout_keywords: nil, optout_message: nil, privacy_policy_link: nil, reseller_id: nil, sharing_status: nil, status: nil, submitted_at: nil, submitted_to_tcr: nil, tcr_campaign_id: nil, tcr_sync_error: nil, telnyx_campaign_id: nil, terms_and_conditions_link: nil, type: nil, upstream_cnp_id: nil, use_cases: nil)
# @!method initialize(billed_date: nil, brand_id: nil, cost: nil, csp_id: nil, customer_id: nil, dca_elections_complete: nil, dca_elections_completed_at: nil, description: nil, has_submission_transaction: nil, help_keywords: nil, help_message: nil, kyc_submission_form_id: nil, message_flow: nil, name: nil, optin_keywords: nil, optin_message: nil, optout_keywords: nil, optout_message: nil, privacy_policy_link: nil, reseller_id: nil, sharing_status: nil, status: nil, submitted_at: nil, submitted_to_tcr: nil, tcr_campaign_id: nil, tcr_sync_error: nil, telnyx_campaign_id: nil, terms_and_conditions_link: nil, type: nil, upstream_cnp_id: nil, use_cases: nil)
# Some parameter documentations has been truncated, see
# {Sentdm::Models::Profiles::TcrCampaignWithUseCases} for more details.
#
# @param billed_date [Time, nil]
#
# @param brand_id [String, nil]
#
# @param cost [Float, nil]
#
# @param csp_id [String, nil]
#
# @param customer_id [String]
#
# @param dca_elections_complete [Boolean, nil]
#
# @param dca_elections_completed_at [Time, nil]
#
# @param description [String]
#
# @param has_submission_transaction [Boolean] True when this campaign already has a billing transaction of reference type
#
# @param help_keywords [String, nil]
#
# @param help_message [String, nil]
#
# @param kyc_submission_form_id [String, nil]
#
# @param message_flow [String, nil]
#
# @param name [String]
#
# @param optin_keywords [String, nil]
#
# @param optin_message [String, nil]
#
# @param optout_keywords [String, nil]
#
# @param optout_message [String, nil]
#
# @param privacy_policy_link [String, nil]
#
# @param reseller_id [String, nil]
#
# @param sharing_status [Symbol, Sentdm::Models::Profiles::TcrCampaignWithUseCases::SharingStatus, nil]
#
# @param status [Symbol, Sentdm::Models::Profiles::TcrCampaignWithUseCases::Status, nil]
#
# @param submitted_at [Time, nil]
#
# @param submitted_to_tcr [Boolean]
#
# @param tcr_campaign_id [String, nil]
#
# @param tcr_sync_error [String, nil]
#
# @param telnyx_campaign_id [String, nil]
#
# @param terms_and_conditions_link [String, nil]
#
# @param type [String]
#
# @param upstream_cnp_id [String, nil]
#
# @param use_cases [Array<Sentdm::Models::Profiles::TcrCampaignWithUseCases::UseCase>]

module SharingStatus
Expand Down
6 changes: 4 additions & 2 deletions lib/sentdm/resources/messages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ def retrieve_status(id, params = {})
# Returns immediately with per-recipient message IDs for async tracking via
# webhooks or the GET /messages/{id} endpoint.
#
# @overload send_(channel: nil, sandbox: nil, template: nil, to: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
# @overload send_(channel: nil, sandbox: nil, template: nil, text: nil, to: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
#
# @param channel [Array<String>, nil] Body param: Channels to broadcast on, e.g. ["whatsapp", "sms"].
#
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
#
# @param template [Sentdm::Models::MessageSendParams::Template] Body param: SDK-style template reference: resolve by ID or by name, with optiona
# @param template [Sentdm::Models::MessageSendParams::Template, nil] Body param: SDK-style template reference: resolve by ID or by name, with optiona
#
# @param text [String, nil] Body param: Plain-text (free-form) message body. Provide either Template or this
#
# @param to [Array<String>] Body param: List of recipient phone numbers in E.164 format (multi-recipient fan
#
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.22.1"
VERSION = "0.23.0"
end
18 changes: 15 additions & 3 deletions rbi/sentdm/models/message_send_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ module Sentdm
sig { returns(T.nilable(Sentdm::MessageSendParams::Template)) }
attr_reader :template

sig { params(template: Sentdm::MessageSendParams::Template::OrHash).void }
sig do
params(
template: T.nilable(Sentdm::MessageSendParams::Template::OrHash)
).void
end
attr_writer :template

# Plain-text (free-form) message body. Provide either Template or this.
sig { returns(T.nilable(String)) }
attr_accessor :text

# List of recipient phone numbers in E.164 format (multi-recipient fan-out)
sig { returns(T.nilable(T::Array[String])) }
attr_reader :to
Expand All @@ -56,7 +64,8 @@ module Sentdm
params(
channel: T.nilable(T::Array[String]),
sandbox: T::Boolean,
template: Sentdm::MessageSendParams::Template::OrHash,
template: T.nilable(Sentdm::MessageSendParams::Template::OrHash),
text: T.nilable(String),
to: T::Array[String],
idempotency_key: String,
x_profile_id: String,
Expand All @@ -74,6 +83,8 @@ module Sentdm
# SDK-style template reference: resolve by ID or by name, with optional
# parameters.
template: nil,
# Plain-text (free-form) message body. Provide either Template or this.
text: nil,
# List of recipient phone numbers in E.164 format (multi-recipient fan-out)
to: nil,
idempotency_key: nil,
Expand All @@ -87,7 +98,8 @@ module Sentdm
{
channel: T.nilable(T::Array[String]),
sandbox: T::Boolean,
template: Sentdm::MessageSendParams::Template,
template: T.nilable(Sentdm::MessageSendParams::Template),
text: T.nilable(String),
to: T::Array[String],
idempotency_key: String,
x_profile_id: String,
Expand Down
15 changes: 15 additions & 0 deletions rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ module Sentdm
sig { params(description: String).void }
attr_writer :description

# True when this campaign already has a billing transaction of reference type
# TCR_CAMPAIGN_SUBMISSION (the one-time submission fee was charged). Populated
# only by the campaigns-list path; defaults false on other responses.
sig { returns(T.nilable(T::Boolean)) }
attr_reader :has_submission_transaction

sig { params(has_submission_transaction: T::Boolean).void }
attr_writer :has_submission_transaction

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

Expand Down Expand Up @@ -155,6 +164,7 @@ module Sentdm
dca_elections_complete: T.nilable(T::Boolean),
dca_elections_completed_at: T.nilable(Time),
description: String,
has_submission_transaction: T::Boolean,
help_keywords: T.nilable(String),
help_message: T.nilable(String),
kyc_submission_form_id: T.nilable(String),
Expand Down Expand Up @@ -197,6 +207,10 @@ module Sentdm
dca_elections_complete: nil,
dca_elections_completed_at: nil,
description: nil,
# True when this campaign already has a billing transaction of reference type
# TCR_CAMPAIGN_SUBMISSION (the one-time submission fee was charged). Populated
# only by the campaigns-list path; defaults false on other responses.
has_submission_transaction: nil,
help_keywords: nil,
help_message: nil,
kyc_submission_form_id: nil,
Expand Down Expand Up @@ -233,6 +247,7 @@ module Sentdm
dca_elections_complete: T.nilable(T::Boolean),
dca_elections_completed_at: T.nilable(Time),
description: String,
has_submission_transaction: T::Boolean,
help_keywords: T.nilable(String),
help_message: T.nilable(String),
kyc_submission_form_id: T.nilable(String),
Expand Down
6 changes: 5 additions & 1 deletion rbi/sentdm/resources/messages.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ module Sentdm
params(
channel: T.nilable(T::Array[String]),
sandbox: T::Boolean,
template: Sentdm::MessageSendParams::Template::OrHash,
template: T.nilable(Sentdm::MessageSendParams::Template::OrHash),
text: T.nilable(String),
to: T::Array[String],
idempotency_key: String,
x_profile_id: String,
Expand All @@ -69,6 +70,9 @@ module Sentdm
# Body param: SDK-style template reference: resolve by ID or by name, with
# optional parameters.
template: nil,
# Body param: Plain-text (free-form) message body. Provide either Template or
# this.
text: nil,
# Body param: List of recipient phone numbers in E.164 format (multi-recipient
# fan-out)
to: nil,
Expand Down
15 changes: 8 additions & 7 deletions sig/sentdm/models/message_send_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module Sentdm
{
channel: ::Array[String]?,
sandbox: bool,
template: Sentdm::MessageSendParams::Template,
template: Sentdm::MessageSendParams::Template?,
text: String?,
to: ::Array[String],
idempotency_key: String,
x_profile_id: String
Expand All @@ -21,11 +22,9 @@ module Sentdm

def sandbox=: (bool) -> bool

attr_reader template: Sentdm::MessageSendParams::Template?
attr_accessor template: Sentdm::MessageSendParams::Template?

def template=: (
Sentdm::MessageSendParams::Template
) -> Sentdm::MessageSendParams::Template
attr_accessor text: String?

attr_reader to: ::Array[String]?

Expand All @@ -42,7 +41,8 @@ module Sentdm
def initialize: (
?channel: ::Array[String]?,
?sandbox: bool,
?template: Sentdm::MessageSendParams::Template,
?template: Sentdm::MessageSendParams::Template?,
?text: String?,
?to: ::Array[String],
?idempotency_key: String,
?x_profile_id: String,
Expand All @@ -52,7 +52,8 @@ module Sentdm
def to_hash: -> {
channel: ::Array[String]?,
sandbox: bool,
template: Sentdm::MessageSendParams::Template,
template: Sentdm::MessageSendParams::Template?,
text: String?,
to: ::Array[String],
idempotency_key: String,
x_profile_id: String,
Expand Down
7 changes: 7 additions & 0 deletions sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module Sentdm
dca_elections_complete: bool?,
dca_elections_completed_at: Time?,
description: String,
has_submission_transaction: bool,
help_keywords: String?,
help_message: String?,
kyc_submission_form_id: String?,
Expand Down Expand Up @@ -68,6 +69,10 @@ module Sentdm

def description=: (String _) -> String

def has_submission_transaction: -> bool?

def has_submission_transaction=: (bool _) -> bool

def help_keywords: -> String?

def help_keywords=: (String? _) -> String?
Expand Down Expand Up @@ -171,6 +176,7 @@ module Sentdm
?dca_elections_complete: bool?,
?dca_elections_completed_at: Time?,
?description: String,
?has_submission_transaction: bool,
?help_keywords: String?,
?help_message: String?,
?kyc_submission_form_id: String?,
Expand Down Expand Up @@ -204,6 +210,7 @@ module Sentdm
dca_elections_complete: bool?,
dca_elections_completed_at: Time?,
description: String,
has_submission_transaction: bool,
help_keywords: String?,
help_message: String?,
kyc_submission_form_id: String?,
Expand Down
3 changes: 2 additions & 1 deletion sig/sentdm/resources/messages.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ module Sentdm
def send_: (
?channel: ::Array[String]?,
?sandbox: bool,
?template: Sentdm::MessageSendParams::Template,
?template: Sentdm::MessageSendParams::Template?,
?text: String?,
?to: ::Array[String],
?idempotency_key: String,
?x_profile_id: String,
Expand Down