telnyx 5.36.0 → 5.36.1
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 +9 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +8 -0
- data/lib/telnyx/models/alphanumeric_sender_id_create_params.rb +38 -0
- data/lib/telnyx/models/alphanumeric_sender_id_create_response.rb +77 -0
- data/lib/telnyx/models/alphanumeric_sender_id_delete_params.rb +14 -0
- data/lib/telnyx/models/alphanumeric_sender_id_delete_response.rb +77 -0
- data/lib/telnyx/models/alphanumeric_sender_id_list_params.rb +38 -0
- data/lib/telnyx/models/alphanumeric_sender_id_list_response.rb +66 -0
- data/lib/telnyx/models/alphanumeric_sender_id_retrieve_params.rb +14 -0
- data/lib/telnyx/models/alphanumeric_sender_id_retrieve_response.rb +77 -0
- data/lib/telnyx/models/message_retrieve_group_messages_params.rb +14 -0
- data/lib/telnyx/models/message_retrieve_group_messages_response.rb +16 -0
- data/lib/telnyx/models/message_send_with_alphanumeric_sender_params.rb +70 -0
- data/lib/telnyx/models/message_send_with_alphanumeric_sender_response.rb +16 -0
- data/lib/telnyx/models/messaging_10dlc/brand_update_params.rb +1 -1
- data/lib/telnyx/models/messaging_10dlc/partner_campaign_list_params.rb +1 -1
- data/lib/telnyx/models/messaging_hosted_number_list_params.rb +71 -0
- data/lib/telnyx/models/messaging_hosted_number_retrieve_params.rb +14 -0
- data/lib/telnyx/models/messaging_hosted_number_retrieve_response.rb +16 -0
- data/lib/telnyx/models/messaging_hosted_number_update_params.rb +49 -0
- data/lib/telnyx/models/messaging_hosted_number_update_response.rb +16 -0
- data/lib/telnyx/models/messaging_numbers_bulk_update_create_params.rb +9 -1
- data/lib/telnyx/models/messaging_profile.rb +25 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +25 -1
- data/lib/telnyx/models/messaging_profile_list_alphanumeric_sender_ids_params.rb +26 -0
- data/lib/telnyx/models/messaging_profile_list_alphanumeric_sender_ids_response.rb +67 -0
- data/lib/telnyx/models/messaging_profile_list_params.rb +17 -1
- data/lib/telnyx/models/messaging_profile_metric_list_params.rb +37 -0
- data/lib/telnyx/models/messaging_profile_metric_list_response.rb +23 -0
- data/lib/telnyx/models/messaging_profile_retrieve_metrics_params.rb +37 -0
- data/lib/telnyx/models/messaging_profile_retrieve_metrics_response.rb +17 -0
- data/lib/telnyx/models/messaging_profiles/action_regenerate_secret_params.rb +16 -0
- data/lib/telnyx/models/messaging_profiles/action_regenerate_secret_response.rb +18 -0
- data/lib/telnyx/models/mobile_phone_numbers/messaging_list_response.rb +17 -1
- data/lib/telnyx/models/mobile_phone_numbers/messaging_retrieve_response.rb +17 -1
- data/lib/telnyx/models/phone_number_with_messaging_settings.rb +17 -1
- data/lib/telnyx/models/phone_numbers/messaging_list_params.rb +66 -1
- data/lib/telnyx/models/phone_numbers/messaging_update_params.rb +9 -1
- data/lib/telnyx/models.rb +25 -0
- data/lib/telnyx/resources/alphanumeric_sender_ids.rb +111 -0
- data/lib/telnyx/resources/messages.rb +54 -0
- data/lib/telnyx/resources/messaging_hosted_numbers.rb +91 -0
- data/lib/telnyx/resources/messaging_numbers_bulk_updates.rb +3 -1
- data/lib/telnyx/resources/messaging_profile_metrics.rb +37 -0
- data/lib/telnyx/resources/messaging_profiles/actions.rb +36 -0
- data/lib/telnyx/resources/messaging_profiles.rb +74 -3
- data/lib/telnyx/resources/phone_numbers/messaging.rb +25 -3
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +28 -0
- data/rbi/telnyx/client.rbi +6 -0
- data/rbi/telnyx/models/alphanumeric_sender_id_create_params.rbi +65 -0
- data/rbi/telnyx/models/alphanumeric_sender_id_create_response.rbi +178 -0
- data/rbi/telnyx/models/alphanumeric_sender_id_delete_params.rbi +30 -0
- data/rbi/telnyx/models/alphanumeric_sender_id_delete_response.rbi +178 -0
- data/rbi/telnyx/models/alphanumeric_sender_id_list_params.rbi +71 -0
- data/rbi/telnyx/models/alphanumeric_sender_id_list_response.rbi +138 -0
- data/rbi/telnyx/models/alphanumeric_sender_id_retrieve_params.rbi +30 -0
- data/rbi/telnyx/models/alphanumeric_sender_id_retrieve_response.rbi +180 -0
- data/rbi/telnyx/models/message_retrieve_group_messages_params.rbi +30 -0
- data/rbi/telnyx/models/message_retrieve_group_messages_response.rbi +37 -0
- data/rbi/telnyx/models/message_send_with_alphanumeric_sender_params.rbi +97 -0
- data/rbi/telnyx/models/message_send_with_alphanumeric_sender_response.rbi +33 -0
- data/rbi/telnyx/models/messaging_10dlc/partner_campaign_list_params.rbi +2 -2
- data/rbi/telnyx/models/messaging_hosted_number_list_params.rbi +148 -0
- data/rbi/telnyx/models/messaging_hosted_number_retrieve_params.rbi +30 -0
- data/rbi/telnyx/models/messaging_hosted_number_retrieve_response.rbi +37 -0
- data/rbi/telnyx/models/messaging_hosted_number_update_params.rbi +87 -0
- data/rbi/telnyx/models/messaging_hosted_number_update_response.rbi +37 -0
- data/rbi/telnyx/models/messaging_numbers_bulk_update_create_params.rbi +11 -0
- data/rbi/telnyx/models/messaging_profile.rbi +27 -0
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +24 -0
- data/rbi/telnyx/models/messaging_profile_list_alphanumeric_sender_ids_params.rbi +52 -0
- data/rbi/telnyx/models/messaging_profile_list_alphanumeric_sender_ids_response.rbi +138 -0
- data/rbi/telnyx/models/messaging_profile_list_params.rbi +22 -0
- data/rbi/telnyx/models/messaging_profile_metric_list_params.rbi +114 -0
- data/rbi/telnyx/models/messaging_profile_metric_list_response.rbi +47 -0
- data/rbi/telnyx/models/messaging_profile_retrieve_metrics_params.rbi +117 -0
- data/rbi/telnyx/models/messaging_profile_retrieve_metrics_response.rbi +35 -0
- data/rbi/telnyx/models/messaging_profiles/action_regenerate_secret_params.rbi +32 -0
- data/rbi/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbi +35 -0
- data/rbi/telnyx/models/mobile_phone_numbers/messaging_list_response.rbi +22 -0
- data/rbi/telnyx/models/mobile_phone_numbers/messaging_retrieve_response.rbi +22 -0
- data/rbi/telnyx/models/phone_number_with_messaging_settings.rbi +22 -0
- data/rbi/telnyx/models/phone_numbers/messaging_list_params.rbi +161 -1
- data/rbi/telnyx/models/phone_numbers/messaging_update_params.rbi +11 -0
- data/rbi/telnyx/models.rbi +36 -0
- data/rbi/telnyx/resources/alphanumeric_sender_ids.rbi +84 -0
- data/rbi/telnyx/resources/messages.rbi +46 -0
- data/rbi/telnyx/resources/messaging_hosted_numbers.rbi +77 -0
- data/rbi/telnyx/resources/messaging_numbers_bulk_updates.rbi +3 -0
- data/rbi/telnyx/resources/messaging_profile_metrics.rbi +28 -0
- data/rbi/telnyx/resources/messaging_profiles/actions.rbi +30 -0
- data/rbi/telnyx/resources/messaging_profiles.rbi +59 -0
- data/rbi/telnyx/resources/phone_numbers/messaging.rbi +25 -1
- data/sig/telnyx/client.rbs +4 -0
- data/sig/telnyx/models/alphanumeric_sender_id_create_params.rbs +38 -0
- data/sig/telnyx/models/alphanumeric_sender_id_create_response.rbs +88 -0
- data/sig/telnyx/models/alphanumeric_sender_id_delete_params.rbs +15 -0
- data/sig/telnyx/models/alphanumeric_sender_id_delete_response.rbs +88 -0
- data/sig/telnyx/models/alphanumeric_sender_id_list_params.rbs +42 -0
- data/sig/telnyx/models/alphanumeric_sender_id_list_response.rbs +69 -0
- data/sig/telnyx/models/alphanumeric_sender_id_retrieve_params.rbs +15 -0
- data/sig/telnyx/models/alphanumeric_sender_id_retrieve_response.rbs +88 -0
- data/sig/telnyx/models/message_retrieve_group_messages_params.rbs +15 -0
- data/sig/telnyx/models/message_retrieve_group_messages_response.rbs +18 -0
- data/sig/telnyx/models/message_send_with_alphanumeric_sender_params.rbs +58 -0
- data/sig/telnyx/models/message_send_with_alphanumeric_sender_response.rbs +18 -0
- data/sig/telnyx/models/messaging_10dlc/partner_campaign_list_params.rbs +2 -2
- data/sig/telnyx/models/messaging_hosted_number_list_params.rbs +76 -0
- data/sig/telnyx/models/messaging_hosted_number_retrieve_params.rbs +15 -0
- data/sig/telnyx/models/messaging_hosted_number_retrieve_response.rbs +18 -0
- data/sig/telnyx/models/messaging_hosted_number_update_params.rbs +42 -0
- data/sig/telnyx/models/messaging_hosted_number_update_response.rbs +18 -0
- data/sig/telnyx/models/messaging_numbers_bulk_update_create_params.rbs +11 -1
- data/sig/telnyx/models/messaging_profile.rbs +17 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +15 -0
- data/sig/telnyx/models/messaging_profile_list_alphanumeric_sender_ids_params.rbs +32 -0
- data/sig/telnyx/models/messaging_profile_list_alphanumeric_sender_ids_response.rbs +69 -0
- data/sig/telnyx/models/messaging_profile_list_params.rbs +14 -0
- data/sig/telnyx/models/messaging_profile_metric_list_params.rbs +45 -0
- data/sig/telnyx/models/messaging_profile_metric_list_response.rbs +31 -0
- data/sig/telnyx/models/messaging_profile_retrieve_metrics_params.rbs +45 -0
- data/sig/telnyx/models/messaging_profile_retrieve_metrics_response.rbs +16 -0
- data/sig/telnyx/models/messaging_profiles/action_regenerate_secret_params.rbs +17 -0
- data/sig/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbs +18 -0
- data/sig/telnyx/models/mobile_phone_numbers/messaging_list_response.rbs +14 -0
- data/sig/telnyx/models/mobile_phone_numbers/messaging_retrieve_response.rbs +14 -0
- data/sig/telnyx/models/phone_number_with_messaging_settings.rbs +14 -0
- data/sig/telnyx/models/phone_numbers/messaging_list_params.rbs +66 -1
- data/sig/telnyx/models/phone_numbers/messaging_update_params.rbs +11 -1
- data/sig/telnyx/models.rbs +24 -0
- data/sig/telnyx/resources/alphanumeric_sender_ids.rbs +31 -0
- data/sig/telnyx/resources/messages.rbs +16 -0
- data/sig/telnyx/resources/messaging_hosted_numbers.rbs +23 -0
- data/sig/telnyx/resources/messaging_numbers_bulk_updates.rbs +1 -0
- data/sig/telnyx/resources/messaging_profile_metrics.rbs +12 -0
- data/sig/telnyx/resources/messaging_profiles/actions.rbs +14 -0
- data/sig/telnyx/resources/messaging_profiles.rbs +20 -0
- data/sig/telnyx/resources/phone_numbers/messaging.rbs +6 -0
- metadata +86 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27863335bea5e64dd3eb1e713557f7d78b99b16198dccf2d00096d4edf4ac37a
|
|
4
|
+
data.tar.gz: b34843f7367dd2c1450fc76972e7ecb6ba1a091dbc24b525e4574ba17c69359e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52e01ab73149b11a4f0f012c98acad70a7a3bf1ecfe96c39db149b2619df8c8d88ee86b3e053e5e9da613f4bcb3b1c59f72fcaffd694919b3977419ad6109f9f
|
|
7
|
+
data.tar.gz: e236e5a3deac4a8eb5a893a0f836b7d25cd8afe343e985a052d44580a9ce6a54009f2e809030e2b2e7e6479ef4335eca7df515575cadd456e0b18e9384fda0fb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.36.1 (2026-02-21)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.36.0...v5.36.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.36.0...v5.36.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* OAS drift — 10dlc.json (messaging-campaign-registry) ([de87287](https://github.com/team-telnyx/telnyx-ruby/commit/de872874a55bcb80a83d4e6d4e8e60cc4fb053a9))
|
|
10
|
+
* OAS drift — messaging.json (messaging-settings + messaging-outbound) ([a8b8944](https://github.com/team-telnyx/telnyx-ruby/commit/a8b89448f1ad2d9c49687f2b71a846c5e8348941))
|
|
11
|
+
|
|
3
12
|
## 5.36.0 (2026-02-20)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v5.35.0...v5.36.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.35.0...v5.36.0)
|
data/README.md
CHANGED
data/lib/telnyx/client.rb
CHANGED
|
@@ -480,6 +480,12 @@ module Telnyx
|
|
|
480
480
|
# @return [Telnyx::Resources::Organizations]
|
|
481
481
|
attr_reader :organizations
|
|
482
482
|
|
|
483
|
+
# @return [Telnyx::Resources::AlphanumericSenderIDs]
|
|
484
|
+
attr_reader :alphanumeric_sender_ids
|
|
485
|
+
|
|
486
|
+
# @return [Telnyx::Resources::MessagingProfileMetrics]
|
|
487
|
+
attr_reader :messaging_profile_metrics
|
|
488
|
+
|
|
483
489
|
# @api private
|
|
484
490
|
#
|
|
485
491
|
# @return [Hash{String=>String}]
|
|
@@ -726,6 +732,8 @@ module Telnyx
|
|
|
726
732
|
@messaging_10dlc = Telnyx::Resources::Messaging10dlc.new(client: self)
|
|
727
733
|
@speech_to_text = Telnyx::Resources::SpeechToText.new(client: self)
|
|
728
734
|
@organizations = Telnyx::Resources::Organizations.new(client: self)
|
|
735
|
+
@alphanumeric_sender_ids = Telnyx::Resources::AlphanumericSenderIDs.new(client: self)
|
|
736
|
+
@messaging_profile_metrics = Telnyx::Resources::MessagingProfileMetrics.new(client: self)
|
|
729
737
|
end
|
|
730
738
|
end
|
|
731
739
|
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::AlphanumericSenderIDs#create
|
|
6
|
+
class AlphanumericSenderIDCreateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute alphanumeric_sender_id
|
|
11
|
+
# The alphanumeric sender ID string.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :alphanumeric_sender_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute messaging_profile_id
|
|
17
|
+
# The messaging profile to associate the sender ID with.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :messaging_profile_id, String
|
|
21
|
+
|
|
22
|
+
# @!attribute us_long_code_fallback
|
|
23
|
+
# A US long code number to use as fallback when sending to US destinations.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :us_long_code_fallback, String
|
|
27
|
+
|
|
28
|
+
# @!method initialize(alphanumeric_sender_id:, messaging_profile_id:, us_long_code_fallback: nil, request_options: {})
|
|
29
|
+
# @param alphanumeric_sender_id [String] The alphanumeric sender ID string.
|
|
30
|
+
#
|
|
31
|
+
# @param messaging_profile_id [String] The messaging profile to associate the sender ID with.
|
|
32
|
+
#
|
|
33
|
+
# @param us_long_code_fallback [String] A US long code number to use as fallback when sending to US destinations.
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::AlphanumericSenderIDs#create
|
|
6
|
+
class AlphanumericSenderIDCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
#
|
|
9
|
+
# @return [Telnyx::Models::AlphanumericSenderIDCreateResponse::Data, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Models::AlphanumericSenderIDCreateResponse::Data }
|
|
11
|
+
|
|
12
|
+
# @!method initialize(data: nil)
|
|
13
|
+
# @param data [Telnyx::Models::AlphanumericSenderIDCreateResponse::Data]
|
|
14
|
+
|
|
15
|
+
# @see Telnyx::Models::AlphanumericSenderIDCreateResponse#data
|
|
16
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
17
|
+
# @!attribute id
|
|
18
|
+
# Uniquely identifies the alphanumeric sender ID resource.
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :id, String
|
|
22
|
+
|
|
23
|
+
# @!attribute alphanumeric_sender_id
|
|
24
|
+
# The alphanumeric sender ID string.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :alphanumeric_sender_id, String
|
|
28
|
+
|
|
29
|
+
# @!attribute messaging_profile_id
|
|
30
|
+
# The messaging profile this sender ID belongs to.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :messaging_profile_id, String
|
|
34
|
+
|
|
35
|
+
# @!attribute organization_id
|
|
36
|
+
# The organization that owns this sender ID.
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :organization_id, String
|
|
40
|
+
|
|
41
|
+
# @!attribute record_type
|
|
42
|
+
#
|
|
43
|
+
# @return [Symbol, Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType, nil]
|
|
44
|
+
optional :record_type, enum: -> { Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType }
|
|
45
|
+
|
|
46
|
+
# @!attribute us_long_code_fallback
|
|
47
|
+
# A US long code number to use as fallback when sending to US destinations.
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :us_long_code_fallback, String
|
|
51
|
+
|
|
52
|
+
# @!method initialize(id: nil, alphanumeric_sender_id: nil, messaging_profile_id: nil, organization_id: nil, record_type: nil, us_long_code_fallback: nil)
|
|
53
|
+
# @param id [String] Uniquely identifies the alphanumeric sender ID resource.
|
|
54
|
+
#
|
|
55
|
+
# @param alphanumeric_sender_id [String] The alphanumeric sender ID string.
|
|
56
|
+
#
|
|
57
|
+
# @param messaging_profile_id [String] The messaging profile this sender ID belongs to.
|
|
58
|
+
#
|
|
59
|
+
# @param organization_id [String] The organization that owns this sender ID.
|
|
60
|
+
#
|
|
61
|
+
# @param record_type [Symbol, Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType]
|
|
62
|
+
#
|
|
63
|
+
# @param us_long_code_fallback [String] A US long code number to use as fallback when sending to US destinations.
|
|
64
|
+
|
|
65
|
+
# @see Telnyx::Models::AlphanumericSenderIDCreateResponse::Data#record_type
|
|
66
|
+
module RecordType
|
|
67
|
+
extend Telnyx::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
ALPHANUMERIC_SENDER_ID = :alphanumeric_sender_id
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::AlphanumericSenderIDs#delete
|
|
6
|
+
class AlphanumericSenderIDDeleteParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::AlphanumericSenderIDs#delete
|
|
6
|
+
class AlphanumericSenderIDDeleteResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
#
|
|
9
|
+
# @return [Telnyx::Models::AlphanumericSenderIDDeleteResponse::Data, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Models::AlphanumericSenderIDDeleteResponse::Data }
|
|
11
|
+
|
|
12
|
+
# @!method initialize(data: nil)
|
|
13
|
+
# @param data [Telnyx::Models::AlphanumericSenderIDDeleteResponse::Data]
|
|
14
|
+
|
|
15
|
+
# @see Telnyx::Models::AlphanumericSenderIDDeleteResponse#data
|
|
16
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
17
|
+
# @!attribute id
|
|
18
|
+
# Uniquely identifies the alphanumeric sender ID resource.
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :id, String
|
|
22
|
+
|
|
23
|
+
# @!attribute alphanumeric_sender_id
|
|
24
|
+
# The alphanumeric sender ID string.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :alphanumeric_sender_id, String
|
|
28
|
+
|
|
29
|
+
# @!attribute messaging_profile_id
|
|
30
|
+
# The messaging profile this sender ID belongs to.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :messaging_profile_id, String
|
|
34
|
+
|
|
35
|
+
# @!attribute organization_id
|
|
36
|
+
# The organization that owns this sender ID.
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :organization_id, String
|
|
40
|
+
|
|
41
|
+
# @!attribute record_type
|
|
42
|
+
#
|
|
43
|
+
# @return [Symbol, Telnyx::Models::AlphanumericSenderIDDeleteResponse::Data::RecordType, nil]
|
|
44
|
+
optional :record_type, enum: -> { Telnyx::Models::AlphanumericSenderIDDeleteResponse::Data::RecordType }
|
|
45
|
+
|
|
46
|
+
# @!attribute us_long_code_fallback
|
|
47
|
+
# A US long code number to use as fallback when sending to US destinations.
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :us_long_code_fallback, String
|
|
51
|
+
|
|
52
|
+
# @!method initialize(id: nil, alphanumeric_sender_id: nil, messaging_profile_id: nil, organization_id: nil, record_type: nil, us_long_code_fallback: nil)
|
|
53
|
+
# @param id [String] Uniquely identifies the alphanumeric sender ID resource.
|
|
54
|
+
#
|
|
55
|
+
# @param alphanumeric_sender_id [String] The alphanumeric sender ID string.
|
|
56
|
+
#
|
|
57
|
+
# @param messaging_profile_id [String] The messaging profile this sender ID belongs to.
|
|
58
|
+
#
|
|
59
|
+
# @param organization_id [String] The organization that owns this sender ID.
|
|
60
|
+
#
|
|
61
|
+
# @param record_type [Symbol, Telnyx::Models::AlphanumericSenderIDDeleteResponse::Data::RecordType]
|
|
62
|
+
#
|
|
63
|
+
# @param us_long_code_fallback [String] A US long code number to use as fallback when sending to US destinations.
|
|
64
|
+
|
|
65
|
+
# @see Telnyx::Models::AlphanumericSenderIDDeleteResponse::Data#record_type
|
|
66
|
+
module RecordType
|
|
67
|
+
extend Telnyx::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
ALPHANUMERIC_SENDER_ID = :alphanumeric_sender_id
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::AlphanumericSenderIDs#list
|
|
6
|
+
class AlphanumericSenderIDListParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute filter_messaging_profile_id
|
|
11
|
+
# Filter by messaging profile ID.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :filter_messaging_profile_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute page_number
|
|
17
|
+
# Page number.
|
|
18
|
+
#
|
|
19
|
+
# @return [Integer, nil]
|
|
20
|
+
optional :page_number, Integer
|
|
21
|
+
|
|
22
|
+
# @!attribute page_size
|
|
23
|
+
# Page size.
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :page_size, Integer
|
|
27
|
+
|
|
28
|
+
# @!method initialize(filter_messaging_profile_id: nil, page_number: nil, page_size: nil, request_options: {})
|
|
29
|
+
# @param filter_messaging_profile_id [String] Filter by messaging profile ID.
|
|
30
|
+
#
|
|
31
|
+
# @param page_number [Integer] Page number.
|
|
32
|
+
#
|
|
33
|
+
# @param page_size [Integer] Page size.
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::AlphanumericSenderIDs#list
|
|
6
|
+
class AlphanumericSenderIDListResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# Uniquely identifies the alphanumeric sender ID resource.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute alphanumeric_sender_id
|
|
14
|
+
# The alphanumeric sender ID string.
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :alphanumeric_sender_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute messaging_profile_id
|
|
20
|
+
# The messaging profile this sender ID belongs to.
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :messaging_profile_id, String
|
|
24
|
+
|
|
25
|
+
# @!attribute organization_id
|
|
26
|
+
# The organization that owns this sender ID.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :organization_id, String
|
|
30
|
+
|
|
31
|
+
# @!attribute record_type
|
|
32
|
+
#
|
|
33
|
+
# @return [Symbol, Telnyx::Models::AlphanumericSenderIDListResponse::RecordType, nil]
|
|
34
|
+
optional :record_type, enum: -> { Telnyx::Models::AlphanumericSenderIDListResponse::RecordType }
|
|
35
|
+
|
|
36
|
+
# @!attribute us_long_code_fallback
|
|
37
|
+
# A US long code number to use as fallback when sending to US destinations.
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :us_long_code_fallback, String
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id: nil, alphanumeric_sender_id: nil, messaging_profile_id: nil, organization_id: nil, record_type: nil, us_long_code_fallback: nil)
|
|
43
|
+
# @param id [String] Uniquely identifies the alphanumeric sender ID resource.
|
|
44
|
+
#
|
|
45
|
+
# @param alphanumeric_sender_id [String] The alphanumeric sender ID string.
|
|
46
|
+
#
|
|
47
|
+
# @param messaging_profile_id [String] The messaging profile this sender ID belongs to.
|
|
48
|
+
#
|
|
49
|
+
# @param organization_id [String] The organization that owns this sender ID.
|
|
50
|
+
#
|
|
51
|
+
# @param record_type [Symbol, Telnyx::Models::AlphanumericSenderIDListResponse::RecordType]
|
|
52
|
+
#
|
|
53
|
+
# @param us_long_code_fallback [String] A US long code number to use as fallback when sending to US destinations.
|
|
54
|
+
|
|
55
|
+
# @see Telnyx::Models::AlphanumericSenderIDListResponse#record_type
|
|
56
|
+
module RecordType
|
|
57
|
+
extend Telnyx::Internal::Type::Enum
|
|
58
|
+
|
|
59
|
+
ALPHANUMERIC_SENDER_ID = :alphanumeric_sender_id
|
|
60
|
+
|
|
61
|
+
# @!method self.values
|
|
62
|
+
# @return [Array<Symbol>]
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::AlphanumericSenderIDs#retrieve
|
|
6
|
+
class AlphanumericSenderIDRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::AlphanumericSenderIDs#retrieve
|
|
6
|
+
class AlphanumericSenderIDRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
#
|
|
9
|
+
# @return [Telnyx::Models::AlphanumericSenderIDRetrieveResponse::Data, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Models::AlphanumericSenderIDRetrieveResponse::Data }
|
|
11
|
+
|
|
12
|
+
# @!method initialize(data: nil)
|
|
13
|
+
# @param data [Telnyx::Models::AlphanumericSenderIDRetrieveResponse::Data]
|
|
14
|
+
|
|
15
|
+
# @see Telnyx::Models::AlphanumericSenderIDRetrieveResponse#data
|
|
16
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
17
|
+
# @!attribute id
|
|
18
|
+
# Uniquely identifies the alphanumeric sender ID resource.
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :id, String
|
|
22
|
+
|
|
23
|
+
# @!attribute alphanumeric_sender_id
|
|
24
|
+
# The alphanumeric sender ID string.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :alphanumeric_sender_id, String
|
|
28
|
+
|
|
29
|
+
# @!attribute messaging_profile_id
|
|
30
|
+
# The messaging profile this sender ID belongs to.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :messaging_profile_id, String
|
|
34
|
+
|
|
35
|
+
# @!attribute organization_id
|
|
36
|
+
# The organization that owns this sender ID.
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :organization_id, String
|
|
40
|
+
|
|
41
|
+
# @!attribute record_type
|
|
42
|
+
#
|
|
43
|
+
# @return [Symbol, Telnyx::Models::AlphanumericSenderIDRetrieveResponse::Data::RecordType, nil]
|
|
44
|
+
optional :record_type, enum: -> { Telnyx::Models::AlphanumericSenderIDRetrieveResponse::Data::RecordType }
|
|
45
|
+
|
|
46
|
+
# @!attribute us_long_code_fallback
|
|
47
|
+
# A US long code number to use as fallback when sending to US destinations.
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :us_long_code_fallback, String
|
|
51
|
+
|
|
52
|
+
# @!method initialize(id: nil, alphanumeric_sender_id: nil, messaging_profile_id: nil, organization_id: nil, record_type: nil, us_long_code_fallback: nil)
|
|
53
|
+
# @param id [String] Uniquely identifies the alphanumeric sender ID resource.
|
|
54
|
+
#
|
|
55
|
+
# @param alphanumeric_sender_id [String] The alphanumeric sender ID string.
|
|
56
|
+
#
|
|
57
|
+
# @param messaging_profile_id [String] The messaging profile this sender ID belongs to.
|
|
58
|
+
#
|
|
59
|
+
# @param organization_id [String] The organization that owns this sender ID.
|
|
60
|
+
#
|
|
61
|
+
# @param record_type [Symbol, Telnyx::Models::AlphanumericSenderIDRetrieveResponse::Data::RecordType]
|
|
62
|
+
#
|
|
63
|
+
# @param us_long_code_fallback [String] A US long code number to use as fallback when sending to US destinations.
|
|
64
|
+
|
|
65
|
+
# @see Telnyx::Models::AlphanumericSenderIDRetrieveResponse::Data#record_type
|
|
66
|
+
module RecordType
|
|
67
|
+
extend Telnyx::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
ALPHANUMERIC_SENDER_ID = :alphanumeric_sender_id
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::Messages#retrieve_group_messages
|
|
6
|
+
class MessageRetrieveGroupMessagesParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::Messages#retrieve_group_messages
|
|
6
|
+
class MessageRetrieveGroupMessagesResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<Telnyx::Models::OutboundMessagePayload>, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::OutboundMessagePayload] }
|
|
11
|
+
|
|
12
|
+
# @!method initialize(data: nil)
|
|
13
|
+
# @param data [Array<Telnyx::Models::OutboundMessagePayload>]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::Messages#send_with_alphanumeric_sender
|
|
6
|
+
class MessageSendWithAlphanumericSenderParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute from
|
|
11
|
+
# A valid alphanumeric sender ID on the user's account.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :from, String
|
|
15
|
+
|
|
16
|
+
# @!attribute messaging_profile_id
|
|
17
|
+
# The messaging profile ID to use.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :messaging_profile_id, String
|
|
21
|
+
|
|
22
|
+
# @!attribute text
|
|
23
|
+
# The message body.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :text, String
|
|
27
|
+
|
|
28
|
+
# @!attribute to
|
|
29
|
+
# Receiving address (+E.164 formatted phone number).
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :to, String
|
|
33
|
+
|
|
34
|
+
# @!attribute use_profile_webhooks
|
|
35
|
+
# If true, use the messaging profile's webhook settings.
|
|
36
|
+
#
|
|
37
|
+
# @return [Boolean, nil]
|
|
38
|
+
optional :use_profile_webhooks, Telnyx::Internal::Type::Boolean
|
|
39
|
+
|
|
40
|
+
# @!attribute webhook_failover_url
|
|
41
|
+
# Failover callback URL for delivery status updates.
|
|
42
|
+
#
|
|
43
|
+
# @return [String, nil]
|
|
44
|
+
optional :webhook_failover_url, String, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute webhook_url
|
|
47
|
+
# Callback URL for delivery status updates.
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :webhook_url, String, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!method initialize(from:, messaging_profile_id:, text:, to:, use_profile_webhooks: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
|
|
53
|
+
# @param from [String] A valid alphanumeric sender ID on the user's account.
|
|
54
|
+
#
|
|
55
|
+
# @param messaging_profile_id [String] The messaging profile ID to use.
|
|
56
|
+
#
|
|
57
|
+
# @param text [String] The message body.
|
|
58
|
+
#
|
|
59
|
+
# @param to [String] Receiving address (+E.164 formatted phone number).
|
|
60
|
+
#
|
|
61
|
+
# @param use_profile_webhooks [Boolean] If true, use the messaging profile's webhook settings.
|
|
62
|
+
#
|
|
63
|
+
# @param webhook_failover_url [String, nil] Failover callback URL for delivery status updates.
|
|
64
|
+
#
|
|
65
|
+
# @param webhook_url [String, nil] Callback URL for delivery status updates.
|
|
66
|
+
#
|
|
67
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::Messages#send_with_alphanumeric_sender
|
|
6
|
+
class MessageSendWithAlphanumericSenderResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
#
|
|
9
|
+
# @return [Telnyx::Models::OutboundMessagePayload, nil]
|
|
10
|
+
optional :data, -> { Telnyx::OutboundMessagePayload }
|
|
11
|
+
|
|
12
|
+
# @!method initialize(data: nil)
|
|
13
|
+
# @param data [Telnyx::Models::OutboundMessagePayload]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -42,7 +42,7 @@ module Telnyx
|
|
|
42
42
|
# Alternate business identifier such as DUNS, LEI, or GIIN
|
|
43
43
|
#
|
|
44
44
|
# @return [String, nil]
|
|
45
|
-
optional :alt_business_id, String, api_name: :
|
|
45
|
+
optional :alt_business_id, String, api_name: :altBusinessId
|
|
46
46
|
|
|
47
47
|
# @!attribute alt_business_id_type
|
|
48
48
|
# An enumeration.
|
|
@@ -50,7 +50,7 @@ module Telnyx
|
|
|
50
50
|
BRAND_DISPLAY_NAME = :brandDisplayName
|
|
51
51
|
BRAND_DISPLAY_NAME_DESC = :"-brandDisplayName"
|
|
52
52
|
TCR_BRAND_ID = :tcrBrandId
|
|
53
|
-
|
|
53
|
+
TCR_BRAND_ID_DESC = :"-tcrBrandId"
|
|
54
54
|
TCR_CAMPAIGN_ID = :tcrCampaignId
|
|
55
55
|
TCR_CAMPAIGN_ID_DESC = :"-tcrCampaignId"
|
|
56
56
|
CREATED_AT = :createdAt
|