telnyx 5.36.2 → 5.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/{alphanumeric_sender_id_list_response.rb → alphanumeric_sender_id.rb} +5 -5
- data/lib/telnyx/models/alphanumeric_sender_id_create_response.rb +3 -64
- data/lib/telnyx/models/alphanumeric_sender_id_delete_response.rb +3 -64
- data/lib/telnyx/models/alphanumeric_sender_id_retrieve_response.rb +3 -64
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/alphanumeric_sender_ids.rb +2 -2
- data/lib/telnyx/resources/messaging_profiles.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -2
- data/rbi/telnyx/models/{alphanumeric_sender_id_list_response.rbi → alphanumeric_sender_id.rbi} +9 -22
- data/rbi/telnyx/models/alphanumeric_sender_id_create_response.rbi +6 -151
- data/rbi/telnyx/models/alphanumeric_sender_id_delete_response.rbi +6 -151
- data/rbi/telnyx/models/alphanumeric_sender_id_retrieve_response.rbi +6 -153
- data/rbi/telnyx/models.rbi +2 -0
- data/rbi/telnyx/resources/alphanumeric_sender_ids.rbi +1 -3
- data/rbi/telnyx/resources/messaging_profiles.rbi +1 -3
- data/sig/telnyx/models/{alphanumeric_sender_id_list_response.rbs → alphanumeric_sender_id.rbs} +9 -9
- data/sig/telnyx/models/alphanumeric_sender_id_create_response.rbs +5 -77
- data/sig/telnyx/models/alphanumeric_sender_id_delete_response.rbs +5 -77
- data/sig/telnyx/models/alphanumeric_sender_id_retrieve_response.rbs +5 -77
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/alphanumeric_sender_ids.rbs +1 -1
- data/sig/telnyx/resources/messaging_profiles.rbs +1 -1
- metadata +4 -7
- data/lib/telnyx/models/messaging_profile_list_alphanumeric_sender_ids_response.rb +0 -67
- data/rbi/telnyx/models/messaging_profile_list_alphanumeric_sender_ids_response.rbi +0 -138
- data/sig/telnyx/models/messaging_profile_list_alphanumeric_sender_ids_response.rbs +0 -69
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f552a33634ae5d4f71b3f68e91154ed133b90aad4874fab02f51f5e5bad1e8f2
|
|
4
|
+
data.tar.gz: 2175a622e1165711aa6fefdbe41178048681f551f12971d8a0d776342d994002
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 747534aeae5548c533a108186371796aa239449fe155e24b8b1805835004e0f61e2de0f9d32bf42b97062e95ba48d22dc002d287905d62b119f98808ebd066d1
|
|
7
|
+
data.tar.gz: a0ba9f3f4aeb5dfca2699ded848e8234dce4cccc2a53f7321804414d1a2841e4ae2ed7a0a82dcd2d964eb0b2839f687a4fda761422c09c19144eb2d0c3faa5ac
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.37.0 (2026-02-22)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.36.2...v5.37.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.36.2...v5.37.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([bd9b6d4](https://github.com/team-telnyx/telnyx-ruby/commit/bd9b6d44be5a841096a3e05e5d5cf6f535b82bdf))
|
|
10
|
+
|
|
3
11
|
## 5.36.2 (2026-02-22)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v5.36.1...v5.36.2](https://github.com/team-telnyx/telnyx-ruby/compare/v5.36.1...v5.36.2)
|
data/README.md
CHANGED
data/lib/telnyx/models/{alphanumeric_sender_id_list_response.rb → alphanumeric_sender_id.rb}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
# @see Telnyx::Resources::AlphanumericSenderIDs#list
|
|
6
|
-
class
|
|
6
|
+
class AlphanumericSenderID < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
8
|
# Uniquely identifies the alphanumeric sender ID resource.
|
|
9
9
|
#
|
|
@@ -30,8 +30,8 @@ module Telnyx
|
|
|
30
30
|
|
|
31
31
|
# @!attribute record_type
|
|
32
32
|
#
|
|
33
|
-
# @return [Symbol, Telnyx::Models::
|
|
34
|
-
optional :record_type, enum: -> { Telnyx::
|
|
33
|
+
# @return [Symbol, Telnyx::Models::AlphanumericSenderID::RecordType, nil]
|
|
34
|
+
optional :record_type, enum: -> { Telnyx::AlphanumericSenderID::RecordType }
|
|
35
35
|
|
|
36
36
|
# @!attribute us_long_code_fallback
|
|
37
37
|
# A US long code number to use as fallback when sending to US destinations.
|
|
@@ -48,11 +48,11 @@ module Telnyx
|
|
|
48
48
|
#
|
|
49
49
|
# @param organization_id [String] The organization that owns this sender ID.
|
|
50
50
|
#
|
|
51
|
-
# @param record_type [Symbol, Telnyx::Models::
|
|
51
|
+
# @param record_type [Symbol, Telnyx::Models::AlphanumericSenderID::RecordType]
|
|
52
52
|
#
|
|
53
53
|
# @param us_long_code_fallback [String] A US long code number to use as fallback when sending to US destinations.
|
|
54
54
|
|
|
55
|
-
# @see Telnyx::Models::
|
|
55
|
+
# @see Telnyx::Models::AlphanumericSenderID#record_type
|
|
56
56
|
module RecordType
|
|
57
57
|
extend Telnyx::Internal::Type::Enum
|
|
58
58
|
|
|
@@ -6,72 +6,11 @@ module Telnyx
|
|
|
6
6
|
class AlphanumericSenderIDCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::AlphanumericSenderID, nil]
|
|
10
|
+
optional :data, -> { Telnyx::AlphanumericSenderID }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
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
|
|
13
|
+
# @param data [Telnyx::Models::AlphanumericSenderID]
|
|
75
14
|
end
|
|
76
15
|
end
|
|
77
16
|
end
|
|
@@ -6,72 +6,11 @@ module Telnyx
|
|
|
6
6
|
class AlphanumericSenderIDDeleteResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::AlphanumericSenderID, nil]
|
|
10
|
+
optional :data, -> { Telnyx::AlphanumericSenderID }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
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
|
|
13
|
+
# @param data [Telnyx::Models::AlphanumericSenderID]
|
|
75
14
|
end
|
|
76
15
|
end
|
|
77
16
|
end
|
|
@@ -6,72 +6,11 @@ module Telnyx
|
|
|
6
6
|
class AlphanumericSenderIDRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::AlphanumericSenderID, nil]
|
|
10
|
+
optional :data, -> { Telnyx::AlphanumericSenderID }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
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
|
|
13
|
+
# @param data [Telnyx::Models::AlphanumericSenderID]
|
|
75
14
|
end
|
|
76
15
|
end
|
|
77
16
|
end
|
data/lib/telnyx/models.rb
CHANGED
|
@@ -87,6 +87,8 @@ module Telnyx
|
|
|
87
87
|
|
|
88
88
|
AISummarizeParams = Telnyx::Models::AISummarizeParams
|
|
89
89
|
|
|
90
|
+
AlphanumericSenderID = Telnyx::Models::AlphanumericSenderID
|
|
91
|
+
|
|
90
92
|
AlphanumericSenderIDCreateParams = Telnyx::Models::AlphanumericSenderIDCreateParams
|
|
91
93
|
|
|
92
94
|
AlphanumericSenderIDDeleteParams = Telnyx::Models::AlphanumericSenderIDDeleteParams
|
|
@@ -61,7 +61,7 @@ module Telnyx
|
|
|
61
61
|
#
|
|
62
62
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
63
63
|
#
|
|
64
|
-
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::
|
|
64
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::AlphanumericSenderID>]
|
|
65
65
|
#
|
|
66
66
|
# @see Telnyx::Models::AlphanumericSenderIDListParams
|
|
67
67
|
def list(params = {})
|
|
@@ -75,7 +75,7 @@ module Telnyx
|
|
|
75
75
|
page_size: "page[size]"
|
|
76
76
|
),
|
|
77
77
|
page: Telnyx::Internal::DefaultFlatPagination,
|
|
78
|
-
model: Telnyx::
|
|
78
|
+
model: Telnyx::AlphanumericSenderID,
|
|
79
79
|
options: options
|
|
80
80
|
)
|
|
81
81
|
end
|
|
@@ -213,7 +213,7 @@ module Telnyx
|
|
|
213
213
|
#
|
|
214
214
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
215
215
|
#
|
|
216
|
-
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::
|
|
216
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::AlphanumericSenderID>]
|
|
217
217
|
#
|
|
218
218
|
# @see Telnyx::Models::MessagingProfileListAlphanumericSenderIDsParams
|
|
219
219
|
def list_alphanumeric_sender_ids(id, params = {})
|
|
@@ -223,7 +223,7 @@ module Telnyx
|
|
|
223
223
|
path: ["messaging_profiles/%1$s/alphanumeric_sender_ids", id],
|
|
224
224
|
query: parsed.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
225
225
|
page: Telnyx::Internal::DefaultFlatPagination,
|
|
226
|
-
model: Telnyx::
|
|
226
|
+
model: Telnyx::AlphanumericSenderID,
|
|
227
227
|
options: options
|
|
228
228
|
)
|
|
229
229
|
end
|
data/lib/telnyx/version.rb
CHANGED
data/lib/telnyx.rb
CHANGED
|
@@ -369,12 +369,12 @@ require_relative "telnyx/models/ai_retrieve_models_params"
|
|
|
369
369
|
require_relative "telnyx/models/ai_retrieve_models_response"
|
|
370
370
|
require_relative "telnyx/models/ai_summarize_params"
|
|
371
371
|
require_relative "telnyx/models/ai_summarize_response"
|
|
372
|
+
require_relative "telnyx/models/alphanumeric_sender_id"
|
|
372
373
|
require_relative "telnyx/models/alphanumeric_sender_id_create_params"
|
|
373
374
|
require_relative "telnyx/models/alphanumeric_sender_id_create_response"
|
|
374
375
|
require_relative "telnyx/models/alphanumeric_sender_id_delete_params"
|
|
375
376
|
require_relative "telnyx/models/alphanumeric_sender_id_delete_response"
|
|
376
377
|
require_relative "telnyx/models/alphanumeric_sender_id_list_params"
|
|
377
|
-
require_relative "telnyx/models/alphanumeric_sender_id_list_response"
|
|
378
378
|
require_relative "telnyx/models/alphanumeric_sender_id_retrieve_params"
|
|
379
379
|
require_relative "telnyx/models/alphanumeric_sender_id_retrieve_response"
|
|
380
380
|
require_relative "telnyx/models/anchorsite_override"
|
|
@@ -1225,7 +1225,6 @@ require_relative "telnyx/models/messaging_profile_create_response"
|
|
|
1225
1225
|
require_relative "telnyx/models/messaging_profile_delete_params"
|
|
1226
1226
|
require_relative "telnyx/models/messaging_profile_delete_response"
|
|
1227
1227
|
require_relative "telnyx/models/messaging_profile_list_alphanumeric_sender_ids_params"
|
|
1228
|
-
require_relative "telnyx/models/messaging_profile_list_alphanumeric_sender_ids_response"
|
|
1229
1228
|
require_relative "telnyx/models/messaging_profile_list_params"
|
|
1230
1229
|
require_relative "telnyx/models/messaging_profile_list_phone_numbers_params"
|
|
1231
1230
|
require_relative "telnyx/models/messaging_profile_list_short_codes_params"
|
data/rbi/telnyx/models/{alphanumeric_sender_id_list_response.rbi → alphanumeric_sender_id.rbi}
RENAMED
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class AlphanumericSenderID < Telnyx::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Telnyx::Models::AlphanumericSenderIDListResponse,
|
|
10
|
-
Telnyx::Internal::AnyHash
|
|
11
|
-
)
|
|
8
|
+
T.any(Telnyx::AlphanumericSenderID, Telnyx::Internal::AnyHash)
|
|
12
9
|
end
|
|
13
10
|
|
|
14
11
|
# Uniquely identifies the alphanumeric sender ID resource.
|
|
@@ -41,17 +38,14 @@ module Telnyx
|
|
|
41
38
|
|
|
42
39
|
sig do
|
|
43
40
|
returns(
|
|
44
|
-
T.nilable(
|
|
45
|
-
Telnyx::Models::AlphanumericSenderIDListResponse::RecordType::TaggedSymbol
|
|
46
|
-
)
|
|
41
|
+
T.nilable(Telnyx::AlphanumericSenderID::RecordType::TaggedSymbol)
|
|
47
42
|
)
|
|
48
43
|
end
|
|
49
44
|
attr_reader :record_type
|
|
50
45
|
|
|
51
46
|
sig do
|
|
52
47
|
params(
|
|
53
|
-
record_type:
|
|
54
|
-
Telnyx::Models::AlphanumericSenderIDListResponse::RecordType::OrSymbol
|
|
48
|
+
record_type: Telnyx::AlphanumericSenderID::RecordType::OrSymbol
|
|
55
49
|
).void
|
|
56
50
|
end
|
|
57
51
|
attr_writer :record_type
|
|
@@ -69,8 +63,7 @@ module Telnyx
|
|
|
69
63
|
alphanumeric_sender_id: String,
|
|
70
64
|
messaging_profile_id: String,
|
|
71
65
|
organization_id: String,
|
|
72
|
-
record_type:
|
|
73
|
-
Telnyx::Models::AlphanumericSenderIDListResponse::RecordType::OrSymbol,
|
|
66
|
+
record_type: Telnyx::AlphanumericSenderID::RecordType::OrSymbol,
|
|
74
67
|
us_long_code_fallback: String
|
|
75
68
|
).returns(T.attached_class)
|
|
76
69
|
end
|
|
@@ -96,8 +89,7 @@ module Telnyx
|
|
|
96
89
|
alphanumeric_sender_id: String,
|
|
97
90
|
messaging_profile_id: String,
|
|
98
91
|
organization_id: String,
|
|
99
|
-
record_type:
|
|
100
|
-
Telnyx::Models::AlphanumericSenderIDListResponse::RecordType::TaggedSymbol,
|
|
92
|
+
record_type: Telnyx::AlphanumericSenderID::RecordType::TaggedSymbol,
|
|
101
93
|
us_long_code_fallback: String
|
|
102
94
|
}
|
|
103
95
|
)
|
|
@@ -110,24 +102,19 @@ module Telnyx
|
|
|
110
102
|
|
|
111
103
|
TaggedSymbol =
|
|
112
104
|
T.type_alias do
|
|
113
|
-
T.all(
|
|
114
|
-
Symbol,
|
|
115
|
-
Telnyx::Models::AlphanumericSenderIDListResponse::RecordType
|
|
116
|
-
)
|
|
105
|
+
T.all(Symbol, Telnyx::AlphanumericSenderID::RecordType)
|
|
117
106
|
end
|
|
118
107
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
119
108
|
|
|
120
109
|
ALPHANUMERIC_SENDER_ID =
|
|
121
110
|
T.let(
|
|
122
111
|
:alphanumeric_sender_id,
|
|
123
|
-
Telnyx::
|
|
112
|
+
Telnyx::AlphanumericSenderID::RecordType::TaggedSymbol
|
|
124
113
|
)
|
|
125
114
|
|
|
126
115
|
sig do
|
|
127
116
|
override.returns(
|
|
128
|
-
T::Array[
|
|
129
|
-
Telnyx::Models::AlphanumericSenderIDListResponse::RecordType::TaggedSymbol
|
|
130
|
-
]
|
|
117
|
+
T::Array[Telnyx::AlphanumericSenderID::RecordType::TaggedSymbol]
|
|
131
118
|
)
|
|
132
119
|
end
|
|
133
120
|
def self.values
|
|
@@ -11,168 +11,23 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig
|
|
15
|
-
returns(
|
|
16
|
-
T.nilable(Telnyx::Models::AlphanumericSenderIDCreateResponse::Data)
|
|
17
|
-
)
|
|
18
|
-
end
|
|
14
|
+
sig { returns(T.nilable(Telnyx::AlphanumericSenderID)) }
|
|
19
15
|
attr_reader :data
|
|
20
16
|
|
|
21
|
-
sig
|
|
22
|
-
params(
|
|
23
|
-
data: Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::OrHash
|
|
24
|
-
).void
|
|
25
|
-
end
|
|
17
|
+
sig { params(data: Telnyx::AlphanumericSenderID::OrHash).void }
|
|
26
18
|
attr_writer :data
|
|
27
19
|
|
|
28
20
|
sig do
|
|
29
|
-
params(
|
|
30
|
-
|
|
31
|
-
)
|
|
21
|
+
params(data: Telnyx::AlphanumericSenderID::OrHash).returns(
|
|
22
|
+
T.attached_class
|
|
23
|
+
)
|
|
32
24
|
end
|
|
33
25
|
def self.new(data: nil)
|
|
34
26
|
end
|
|
35
27
|
|
|
36
|
-
sig
|
|
37
|
-
override.returns(
|
|
38
|
-
{ data: Telnyx::Models::AlphanumericSenderIDCreateResponse::Data }
|
|
39
|
-
)
|
|
40
|
-
end
|
|
28
|
+
sig { override.returns({ data: Telnyx::AlphanumericSenderID }) }
|
|
41
29
|
def to_hash
|
|
42
30
|
end
|
|
43
|
-
|
|
44
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
45
|
-
OrHash =
|
|
46
|
-
T.type_alias do
|
|
47
|
-
T.any(
|
|
48
|
-
Telnyx::Models::AlphanumericSenderIDCreateResponse::Data,
|
|
49
|
-
Telnyx::Internal::AnyHash
|
|
50
|
-
)
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
# Uniquely identifies the alphanumeric sender ID resource.
|
|
54
|
-
sig { returns(T.nilable(String)) }
|
|
55
|
-
attr_reader :id
|
|
56
|
-
|
|
57
|
-
sig { params(id: String).void }
|
|
58
|
-
attr_writer :id
|
|
59
|
-
|
|
60
|
-
# The alphanumeric sender ID string.
|
|
61
|
-
sig { returns(T.nilable(String)) }
|
|
62
|
-
attr_reader :alphanumeric_sender_id
|
|
63
|
-
|
|
64
|
-
sig { params(alphanumeric_sender_id: String).void }
|
|
65
|
-
attr_writer :alphanumeric_sender_id
|
|
66
|
-
|
|
67
|
-
# The messaging profile this sender ID belongs to.
|
|
68
|
-
sig { returns(T.nilable(String)) }
|
|
69
|
-
attr_reader :messaging_profile_id
|
|
70
|
-
|
|
71
|
-
sig { params(messaging_profile_id: String).void }
|
|
72
|
-
attr_writer :messaging_profile_id
|
|
73
|
-
|
|
74
|
-
# The organization that owns this sender ID.
|
|
75
|
-
sig { returns(T.nilable(String)) }
|
|
76
|
-
attr_reader :organization_id
|
|
77
|
-
|
|
78
|
-
sig { params(organization_id: String).void }
|
|
79
|
-
attr_writer :organization_id
|
|
80
|
-
|
|
81
|
-
sig do
|
|
82
|
-
returns(
|
|
83
|
-
T.nilable(
|
|
84
|
-
Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType::TaggedSymbol
|
|
85
|
-
)
|
|
86
|
-
)
|
|
87
|
-
end
|
|
88
|
-
attr_reader :record_type
|
|
89
|
-
|
|
90
|
-
sig do
|
|
91
|
-
params(
|
|
92
|
-
record_type:
|
|
93
|
-
Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType::OrSymbol
|
|
94
|
-
).void
|
|
95
|
-
end
|
|
96
|
-
attr_writer :record_type
|
|
97
|
-
|
|
98
|
-
# A US long code number to use as fallback when sending to US destinations.
|
|
99
|
-
sig { returns(T.nilable(String)) }
|
|
100
|
-
attr_reader :us_long_code_fallback
|
|
101
|
-
|
|
102
|
-
sig { params(us_long_code_fallback: String).void }
|
|
103
|
-
attr_writer :us_long_code_fallback
|
|
104
|
-
|
|
105
|
-
sig do
|
|
106
|
-
params(
|
|
107
|
-
id: String,
|
|
108
|
-
alphanumeric_sender_id: String,
|
|
109
|
-
messaging_profile_id: String,
|
|
110
|
-
organization_id: String,
|
|
111
|
-
record_type:
|
|
112
|
-
Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType::OrSymbol,
|
|
113
|
-
us_long_code_fallback: String
|
|
114
|
-
).returns(T.attached_class)
|
|
115
|
-
end
|
|
116
|
-
def self.new(
|
|
117
|
-
# Uniquely identifies the alphanumeric sender ID resource.
|
|
118
|
-
id: nil,
|
|
119
|
-
# The alphanumeric sender ID string.
|
|
120
|
-
alphanumeric_sender_id: nil,
|
|
121
|
-
# The messaging profile this sender ID belongs to.
|
|
122
|
-
messaging_profile_id: nil,
|
|
123
|
-
# The organization that owns this sender ID.
|
|
124
|
-
organization_id: nil,
|
|
125
|
-
record_type: nil,
|
|
126
|
-
# A US long code number to use as fallback when sending to US destinations.
|
|
127
|
-
us_long_code_fallback: nil
|
|
128
|
-
)
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
sig do
|
|
132
|
-
override.returns(
|
|
133
|
-
{
|
|
134
|
-
id: String,
|
|
135
|
-
alphanumeric_sender_id: String,
|
|
136
|
-
messaging_profile_id: String,
|
|
137
|
-
organization_id: String,
|
|
138
|
-
record_type:
|
|
139
|
-
Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType::TaggedSymbol,
|
|
140
|
-
us_long_code_fallback: String
|
|
141
|
-
}
|
|
142
|
-
)
|
|
143
|
-
end
|
|
144
|
-
def to_hash
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
module RecordType
|
|
148
|
-
extend Telnyx::Internal::Type::Enum
|
|
149
|
-
|
|
150
|
-
TaggedSymbol =
|
|
151
|
-
T.type_alias do
|
|
152
|
-
T.all(
|
|
153
|
-
Symbol,
|
|
154
|
-
Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType
|
|
155
|
-
)
|
|
156
|
-
end
|
|
157
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
158
|
-
|
|
159
|
-
ALPHANUMERIC_SENDER_ID =
|
|
160
|
-
T.let(
|
|
161
|
-
:alphanumeric_sender_id,
|
|
162
|
-
Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType::TaggedSymbol
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
sig do
|
|
166
|
-
override.returns(
|
|
167
|
-
T::Array[
|
|
168
|
-
Telnyx::Models::AlphanumericSenderIDCreateResponse::Data::RecordType::TaggedSymbol
|
|
169
|
-
]
|
|
170
|
-
)
|
|
171
|
-
end
|
|
172
|
-
def self.values
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
31
|
end
|
|
177
32
|
end
|
|
178
33
|
end
|