telnyx 5.27.0 → 5.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac219cca9489be5d485de3357985d32d754ca4f58041926acbd9d30dabc09cd5
4
- data.tar.gz: 7019be13066ffddf7631d940cc2499b27f35850f84d3d3d6ed6aecd3cba2692b
3
+ metadata.gz: a3f36777848b37d5f2c1ceb5ac85b6f6a55c6d9b9300e765c703851e3df47422
4
+ data.tar.gz: ce719e6d970c664cc37e95b937317b2fb105ec03f1669e6de06341c34f9c7a58
5
5
  SHA512:
6
- metadata.gz: 01a3f0ee7ac62a9839e32361c34b27cdeb72e196e18f2af2b9c7251c47f221d669b55ccf413372ce7cead0b4c92ed312fcd25adbd3569080f054ece53d373479
7
- data.tar.gz: a05cb89dbd90ddd314f4ce569d4754238e8a222998f76359c16b0401a7c60ef730be5757e6788b17668521114f5405383014742a679753f70c3b9fca3f14be0f
6
+ metadata.gz: b3456c24794f8441f4707f304028d1806d51bbccf07e01caf11e394791ff1c4e18668ff29f6e9967efcaf5c32636512c7cdf61cc834fda133d07315e4c7cb37a
7
+ data.tar.gz: ec2b7590543fa418d1a42dbcb45584dfa8c0996ca72edcd0d1344ce4baa464a39eac9b2bbd6ef131625946953496149fef50f1c485384410efcd7e20c86e2500
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.28.0 (2026-02-18)
4
+
5
+ Full Changelog: [v5.27.0...v5.28.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.27.0...v5.28.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([7f22269](https://github.com/team-telnyx/telnyx-ruby/commit/7f222695996445e1abcceb3a81f601fa72542d05))
10
+
3
11
  ## 5.27.0 (2026-02-18)
4
12
 
5
13
  Full Changelog: [v5.26.0...v5.27.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.26.0...v5.27.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.27.0"
27
+ gem "telnyx", "~> 5.28.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Messaging10dlc
6
+ # @see Telnyx::Resources::Messaging10dlc::Brand#get_sms_otp_by_reference
7
+ class BrandGetSMSOtpByReferenceParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute brand_id
12
+ # Filter by Brand ID for easier lookup in portal applications
13
+ #
14
+ # @return [String, nil]
15
+ optional :brand_id, String
16
+
17
+ # @!method initialize(brand_id: nil, request_options: {})
18
+ # @param brand_id [String] Filter by Brand ID for easier lookup in portal applications
19
+ #
20
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,82 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Messaging10dlc
6
+ # @see Telnyx::Resources::Messaging10dlc::Brand#get_sms_otp_by_reference
7
+ class BrandGetSMSOtpByReferenceResponse < Telnyx::Internal::Type::BaseModel
8
+ # @!attribute brand_id
9
+ # The Brand ID associated with this OTP request
10
+ #
11
+ # @return [String]
12
+ required :brand_id, String, api_name: :brandId
13
+
14
+ # @!attribute delivery_status
15
+ # The current delivery status of the OTP SMS message. Common values include:
16
+ # `DELIVERED_HANDSET`, `PENDING`, `FAILED`, `EXPIRED`
17
+ #
18
+ # @return [String]
19
+ required :delivery_status, String, api_name: :deliveryStatus
20
+
21
+ # @!attribute mobile_phone
22
+ # The mobile phone number where the OTP was sent, in E.164 format
23
+ #
24
+ # @return [String]
25
+ required :mobile_phone, String, api_name: :mobilePhone
26
+
27
+ # @!attribute reference_id
28
+ # The reference ID for this OTP request, used for status queries
29
+ #
30
+ # @return [String]
31
+ required :reference_id, String, api_name: :referenceId
32
+
33
+ # @!attribute request_date
34
+ # The timestamp when the OTP request was initiated
35
+ #
36
+ # @return [Time]
37
+ required :request_date, Time, api_name: :requestDate
38
+
39
+ # @!attribute delivery_status_date
40
+ # The timestamp when the delivery status was last updated
41
+ #
42
+ # @return [Time, nil]
43
+ optional :delivery_status_date, Time, api_name: :deliveryStatusDate
44
+
45
+ # @!attribute delivery_status_details
46
+ # Additional details about the delivery status
47
+ #
48
+ # @return [String, nil]
49
+ optional :delivery_status_details, String, api_name: :deliveryStatusDetails
50
+
51
+ # @!attribute verify_date
52
+ # The timestamp when the OTP was successfully verified (if applicable)
53
+ #
54
+ # @return [Time, nil]
55
+ optional :verify_date, Time, api_name: :verifyDate
56
+
57
+ # @!method initialize(brand_id:, delivery_status:, mobile_phone:, reference_id:, request_date:, delivery_status_date: nil, delivery_status_details: nil, verify_date: nil)
58
+ # Some parameter documentations has been truncated, see
59
+ # {Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse} for more
60
+ # details.
61
+ #
62
+ # Status information for an SMS OTP sent during Sole Proprietor brand verification
63
+ #
64
+ # @param brand_id [String] The Brand ID associated with this OTP request
65
+ #
66
+ # @param delivery_status [String] The current delivery status of the OTP SMS message. Common values include: `DELI
67
+ #
68
+ # @param mobile_phone [String] The mobile phone number where the OTP was sent, in E.164 format
69
+ #
70
+ # @param reference_id [String] The reference ID for this OTP request, used for status queries
71
+ #
72
+ # @param request_date [Time] The timestamp when the OTP request was initiated
73
+ #
74
+ # @param delivery_status_date [Time] The timestamp when the delivery status was last updated
75
+ #
76
+ # @param delivery_status_details [String] Additional details about the delivery status
77
+ #
78
+ # @param verify_date [Time] The timestamp when the OTP was successfully verified (if applicable)
79
+ end
80
+ end
81
+ end
82
+ end
@@ -275,6 +275,41 @@ module Telnyx
275
275
  )
276
276
  end
277
277
 
278
+ # Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
279
+ # verification.
280
+ #
281
+ # This endpoint allows you to check the delivery and verification status of an OTP
282
+ # sent during the Sole Proprietor brand verification process. You can query by
283
+ # either:
284
+ #
285
+ # - `referenceId` - The reference ID returned when the OTP was initially triggered
286
+ # - `brandId` - Query parameter for portal users to look up OTP status by Brand ID
287
+ #
288
+ # The response includes delivery status, verification dates, and detailed delivery
289
+ # information.
290
+ #
291
+ # @overload get_sms_otp_by_reference(reference_id, brand_id: nil, request_options: {})
292
+ #
293
+ # @param reference_id [String] The reference ID returned when the OTP was initially triggered
294
+ #
295
+ # @param brand_id [String] Filter by Brand ID for easier lookup in portal applications
296
+ #
297
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
298
+ #
299
+ # @return [Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse]
300
+ #
301
+ # @see Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceParams
302
+ def get_sms_otp_by_reference(reference_id, params = {})
303
+ parsed, options = Telnyx::Messaging10dlc::BrandGetSMSOtpByReferenceParams.dump_request(params)
304
+ @client.request(
305
+ method: :get,
306
+ path: ["10dlc/brand/smsOtp/%1$s", reference_id],
307
+ query: parsed.transform_keys(brand_id: "brandId"),
308
+ model: Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse,
309
+ options: options
310
+ )
311
+ end
312
+
278
313
  # Resend brand 2FA email
279
314
  #
280
315
  # @overload resend_2fa_email(brand_id, request_options: {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.27.0"
4
+ VERSION = "5.28.0"
5
5
  end
data/lib/telnyx.rb CHANGED
@@ -1095,6 +1095,8 @@ require_relative "telnyx/models/messaging_10dlc/brand_create_params"
1095
1095
  require_relative "telnyx/models/messaging_10dlc/brand_delete_params"
1096
1096
  require_relative "telnyx/models/messaging_10dlc/brand_get_feedback_params"
1097
1097
  require_relative "telnyx/models/messaging_10dlc/brand_get_feedback_response"
1098
+ require_relative "telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params"
1099
+ require_relative "telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response"
1098
1100
  require_relative "telnyx/models/messaging_10dlc/brand_identity_status"
1099
1101
  require_relative "telnyx/models/messaging_10dlc/brand_list_params"
1100
1102
  require_relative "telnyx/models/messaging_10dlc/brand_list_response"
@@ -0,0 +1,48 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Messaging10dlc
6
+ class BrandGetSMSOtpByReferenceParams < Telnyx::Internal::Type::BaseModel
7
+ extend Telnyx::Internal::Type::RequestParameters::Converter
8
+ include Telnyx::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Telnyx::Messaging10dlc::BrandGetSMSOtpByReferenceParams,
14
+ Telnyx::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ # Filter by Brand ID for easier lookup in portal applications
19
+ sig { returns(T.nilable(String)) }
20
+ attr_reader :brand_id
21
+
22
+ sig { params(brand_id: String).void }
23
+ attr_writer :brand_id
24
+
25
+ sig do
26
+ params(
27
+ brand_id: String,
28
+ request_options: Telnyx::RequestOptions::OrHash
29
+ ).returns(T.attached_class)
30
+ end
31
+ def self.new(
32
+ # Filter by Brand ID for easier lookup in portal applications
33
+ brand_id: nil,
34
+ request_options: {}
35
+ )
36
+ end
37
+
38
+ sig do
39
+ override.returns(
40
+ { brand_id: String, request_options: Telnyx::RequestOptions }
41
+ )
42
+ end
43
+ def to_hash
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,110 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Messaging10dlc
6
+ class BrandGetSMSOtpByReferenceResponse < Telnyx::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse,
11
+ Telnyx::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # The Brand ID associated with this OTP request
16
+ sig { returns(String) }
17
+ attr_accessor :brand_id
18
+
19
+ # The current delivery status of the OTP SMS message. Common values include:
20
+ # `DELIVERED_HANDSET`, `PENDING`, `FAILED`, `EXPIRED`
21
+ sig { returns(String) }
22
+ attr_accessor :delivery_status
23
+
24
+ # The mobile phone number where the OTP was sent, in E.164 format
25
+ sig { returns(String) }
26
+ attr_accessor :mobile_phone
27
+
28
+ # The reference ID for this OTP request, used for status queries
29
+ sig { returns(String) }
30
+ attr_accessor :reference_id
31
+
32
+ # The timestamp when the OTP request was initiated
33
+ sig { returns(Time) }
34
+ attr_accessor :request_date
35
+
36
+ # The timestamp when the delivery status was last updated
37
+ sig { returns(T.nilable(Time)) }
38
+ attr_reader :delivery_status_date
39
+
40
+ sig { params(delivery_status_date: Time).void }
41
+ attr_writer :delivery_status_date
42
+
43
+ # Additional details about the delivery status
44
+ sig { returns(T.nilable(String)) }
45
+ attr_reader :delivery_status_details
46
+
47
+ sig { params(delivery_status_details: String).void }
48
+ attr_writer :delivery_status_details
49
+
50
+ # The timestamp when the OTP was successfully verified (if applicable)
51
+ sig { returns(T.nilable(Time)) }
52
+ attr_reader :verify_date
53
+
54
+ sig { params(verify_date: Time).void }
55
+ attr_writer :verify_date
56
+
57
+ # Status information for an SMS OTP sent during Sole Proprietor brand verification
58
+ sig do
59
+ params(
60
+ brand_id: String,
61
+ delivery_status: String,
62
+ mobile_phone: String,
63
+ reference_id: String,
64
+ request_date: Time,
65
+ delivery_status_date: Time,
66
+ delivery_status_details: String,
67
+ verify_date: Time
68
+ ).returns(T.attached_class)
69
+ end
70
+ def self.new(
71
+ # The Brand ID associated with this OTP request
72
+ brand_id:,
73
+ # The current delivery status of the OTP SMS message. Common values include:
74
+ # `DELIVERED_HANDSET`, `PENDING`, `FAILED`, `EXPIRED`
75
+ delivery_status:,
76
+ # The mobile phone number where the OTP was sent, in E.164 format
77
+ mobile_phone:,
78
+ # The reference ID for this OTP request, used for status queries
79
+ reference_id:,
80
+ # The timestamp when the OTP request was initiated
81
+ request_date:,
82
+ # The timestamp when the delivery status was last updated
83
+ delivery_status_date: nil,
84
+ # Additional details about the delivery status
85
+ delivery_status_details: nil,
86
+ # The timestamp when the OTP was successfully verified (if applicable)
87
+ verify_date: nil
88
+ )
89
+ end
90
+
91
+ sig do
92
+ override.returns(
93
+ {
94
+ brand_id: String,
95
+ delivery_status: String,
96
+ mobile_phone: String,
97
+ reference_id: String,
98
+ request_date: Time,
99
+ delivery_status_date: Time,
100
+ delivery_status_details: String,
101
+ verify_date: Time
102
+ }
103
+ )
104
+ end
105
+ def to_hash
106
+ end
107
+ end
108
+ end
109
+ end
110
+ end
@@ -273,6 +273,36 @@ module Telnyx
273
273
  def get_feedback(brand_id, request_options: {})
274
274
  end
275
275
 
276
+ # Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
277
+ # verification.
278
+ #
279
+ # This endpoint allows you to check the delivery and verification status of an OTP
280
+ # sent during the Sole Proprietor brand verification process. You can query by
281
+ # either:
282
+ #
283
+ # - `referenceId` - The reference ID returned when the OTP was initially triggered
284
+ # - `brandId` - Query parameter for portal users to look up OTP status by Brand ID
285
+ #
286
+ # The response includes delivery status, verification dates, and detailed delivery
287
+ # information.
288
+ sig do
289
+ params(
290
+ reference_id: String,
291
+ brand_id: String,
292
+ request_options: Telnyx::RequestOptions::OrHash
293
+ ).returns(
294
+ Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse
295
+ )
296
+ end
297
+ def get_sms_otp_by_reference(
298
+ # The reference ID returned when the OTP was initially triggered
299
+ reference_id,
300
+ # Filter by Brand ID for easier lookup in portal applications
301
+ brand_id: nil,
302
+ request_options: {}
303
+ )
304
+ end
305
+
276
306
  # Resend brand 2FA email
277
307
  sig do
278
308
  params(
@@ -0,0 +1,27 @@
1
+ module Telnyx
2
+ module Models
3
+ module Messaging10dlc
4
+ type brand_get_sms_otp_by_reference_params =
5
+ { brand_id: String } & Telnyx::Internal::Type::request_parameters
6
+
7
+ class BrandGetSMSOtpByReferenceParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ attr_reader brand_id: String?
12
+
13
+ def brand_id=: (String) -> String
14
+
15
+ def initialize: (
16
+ ?brand_id: String,
17
+ ?request_options: Telnyx::request_opts
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ brand_id: String,
22
+ request_options: Telnyx::RequestOptions
23
+ }
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,63 @@
1
+ module Telnyx
2
+ module Models
3
+ module Messaging10dlc
4
+ type brand_get_sms_otp_by_reference_response =
5
+ {
6
+ brand_id: String,
7
+ delivery_status: String,
8
+ mobile_phone: String,
9
+ reference_id: String,
10
+ request_date: Time,
11
+ delivery_status_date: Time,
12
+ delivery_status_details: String,
13
+ verify_date: Time
14
+ }
15
+
16
+ class BrandGetSMSOtpByReferenceResponse < Telnyx::Internal::Type::BaseModel
17
+ attr_accessor brand_id: String
18
+
19
+ attr_accessor delivery_status: String
20
+
21
+ attr_accessor mobile_phone: String
22
+
23
+ attr_accessor reference_id: String
24
+
25
+ attr_accessor request_date: Time
26
+
27
+ attr_reader delivery_status_date: Time?
28
+
29
+ def delivery_status_date=: (Time) -> Time
30
+
31
+ attr_reader delivery_status_details: String?
32
+
33
+ def delivery_status_details=: (String) -> String
34
+
35
+ attr_reader verify_date: Time?
36
+
37
+ def verify_date=: (Time) -> Time
38
+
39
+ def initialize: (
40
+ brand_id: String,
41
+ delivery_status: String,
42
+ mobile_phone: String,
43
+ reference_id: String,
44
+ request_date: Time,
45
+ ?delivery_status_date: Time,
46
+ ?delivery_status_details: String,
47
+ ?verify_date: Time
48
+ ) -> void
49
+
50
+ def to_hash: -> {
51
+ brand_id: String,
52
+ delivery_status: String,
53
+ mobile_phone: String,
54
+ reference_id: String,
55
+ request_date: Time,
56
+ delivery_status_date: Time,
57
+ delivery_status_details: String,
58
+ verify_date: Time
59
+ }
60
+ end
61
+ end
62
+ end
63
+ end
@@ -90,6 +90,12 @@ module Telnyx
90
90
  ?request_options: Telnyx::request_opts
91
91
  ) -> Telnyx::Models::Messaging10dlc::BrandGetFeedbackResponse
92
92
 
93
+ def get_sms_otp_by_reference: (
94
+ String reference_id,
95
+ ?brand_id: String,
96
+ ?request_options: Telnyx::request_opts
97
+ ) -> Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse
98
+
93
99
  def resend_2fa_email: (
94
100
  String brand_id,
95
101
  ?request_options: Telnyx::request_opts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.27.0
4
+ version: 5.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx
@@ -1095,6 +1095,8 @@ files:
1095
1095
  - lib/telnyx/models/messaging_10dlc/brand_delete_params.rb
1096
1096
  - lib/telnyx/models/messaging_10dlc/brand_get_feedback_params.rb
1097
1097
  - lib/telnyx/models/messaging_10dlc/brand_get_feedback_response.rb
1098
+ - lib/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params.rb
1099
+ - lib/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response.rb
1098
1100
  - lib/telnyx/models/messaging_10dlc/brand_identity_status.rb
1099
1101
  - lib/telnyx/models/messaging_10dlc/brand_list_params.rb
1100
1102
  - lib/telnyx/models/messaging_10dlc/brand_list_response.rb
@@ -3462,6 +3464,8 @@ files:
3462
3464
  - rbi/telnyx/models/messaging_10dlc/brand_delete_params.rbi
3463
3465
  - rbi/telnyx/models/messaging_10dlc/brand_get_feedback_params.rbi
3464
3466
  - rbi/telnyx/models/messaging_10dlc/brand_get_feedback_response.rbi
3467
+ - rbi/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params.rbi
3468
+ - rbi/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response.rbi
3465
3469
  - rbi/telnyx/models/messaging_10dlc/brand_identity_status.rbi
3466
3470
  - rbi/telnyx/models/messaging_10dlc/brand_list_params.rbi
3467
3471
  - rbi/telnyx/models/messaging_10dlc/brand_list_response.rbi
@@ -5828,6 +5832,8 @@ files:
5828
5832
  - sig/telnyx/models/messaging_10dlc/brand_delete_params.rbs
5829
5833
  - sig/telnyx/models/messaging_10dlc/brand_get_feedback_params.rbs
5830
5834
  - sig/telnyx/models/messaging_10dlc/brand_get_feedback_response.rbs
5835
+ - sig/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params.rbs
5836
+ - sig/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response.rbs
5831
5837
  - sig/telnyx/models/messaging_10dlc/brand_identity_status.rbs
5832
5838
  - sig/telnyx/models/messaging_10dlc/brand_list_params.rbs
5833
5839
  - sig/telnyx/models/messaging_10dlc/brand_list_response.rbs