telnyx 5.67.0 → 5.68.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.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/util.rb +1 -2
  5. data/lib/telnyx/models/ai/voice_settings.rb +1 -1
  6. data/lib/telnyx/models/billing_address.rb +56 -0
  7. data/lib/telnyx/models/billing_contact.rb +40 -0
  8. data/lib/telnyx/models/enterprise_create_params.rb +12 -196
  9. data/lib/telnyx/models/enterprise_create_response.rb +3 -437
  10. data/lib/telnyx/models/enterprise_public.rb +249 -0
  11. data/lib/telnyx/models/enterprise_retrieve_response.rb +3 -439
  12. data/lib/telnyx/models/enterprise_update_params.rb +12 -196
  13. data/lib/telnyx/models/enterprise_update_response.rb +3 -437
  14. data/lib/telnyx/models/enterprises/enterprise_reputation_public.rb +100 -0
  15. data/lib/telnyx/models/enterprises/reputation/number_create_response.rb +3 -39
  16. data/lib/telnyx/models/enterprises/reputation/number_retrieve_response.rb +3 -148
  17. data/lib/telnyx/models/enterprises/reputation_create_response.rb +3 -96
  18. data/lib/telnyx/models/enterprises/reputation_list_response.rb +3 -96
  19. data/lib/telnyx/models/enterprises/reputation_update_frequency_response.rb +3 -97
  20. data/lib/telnyx/models/meta_info.rb +40 -0
  21. data/lib/telnyx/models/organization_contact.rb +51 -0
  22. data/lib/telnyx/models/physical_address.rb +56 -0
  23. data/lib/telnyx/models/reputation/number_retrieve_response.rb +3 -148
  24. data/lib/telnyx/models/reputation_data.rb +80 -0
  25. data/lib/telnyx/models/reputation_phone_number_with_reputation_data.rb +56 -0
  26. data/lib/telnyx/models.rb +16 -0
  27. data/lib/telnyx/resources/enterprises/reputation/numbers.rb +2 -2
  28. data/lib/telnyx/resources/enterprises.rb +10 -10
  29. data/lib/telnyx/resources/reputation/numbers.rb +2 -2
  30. data/lib/telnyx/version.rb +1 -1
  31. data/lib/telnyx.rb +9 -3
  32. data/rbi/telnyx/models/ai/voice_settings.rbi +2 -2
  33. data/rbi/telnyx/models/billing_address.rbi +77 -0
  34. data/rbi/telnyx/models/billing_contact.rbi +61 -0
  35. data/rbi/telnyx/models/enterprise_create_params.rbi +16 -316
  36. data/rbi/telnyx/models/enterprise_create_response.rbi +4 -814
  37. data/rbi/telnyx/models/enterprise_public.rbi +436 -0
  38. data/rbi/telnyx/models/enterprise_retrieve_response.rbi +4 -816
  39. data/rbi/telnyx/models/enterprise_update_params.rbi +16 -320
  40. data/rbi/telnyx/models/enterprise_update_response.rbi +4 -814
  41. data/rbi/telnyx/models/enterprises/enterprise_reputation_public.rbi +233 -0
  42. data/rbi/telnyx/models/enterprises/reputation/number_create_response.rbi +4 -88
  43. data/rbi/telnyx/models/enterprises/reputation/number_retrieve_response.rbi +4 -292
  44. data/rbi/telnyx/models/enterprises/reputation_create_response.rbi +4 -236
  45. data/rbi/telnyx/models/enterprises/reputation_list_response.rbi +4 -232
  46. data/rbi/telnyx/models/enterprises/reputation_update_frequency_response.rbi +4 -237
  47. data/rbi/telnyx/models/meta_info.rbi +71 -0
  48. data/rbi/telnyx/models/organization_contact.rbi +71 -0
  49. data/rbi/telnyx/models/physical_address.rbi +77 -0
  50. data/rbi/telnyx/models/reputation/number_retrieve_response.rbi +4 -287
  51. data/rbi/telnyx/models/reputation_data.rbi +107 -0
  52. data/rbi/telnyx/models/reputation_phone_number_with_reputation_data.rbi +98 -0
  53. data/rbi/telnyx/models.rbi +17 -0
  54. data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +1 -1
  55. data/rbi/telnyx/resources/enterprises.rbi +9 -19
  56. data/rbi/telnyx/resources/reputation/numbers.rbi +1 -1
  57. data/sig/telnyx/models/billing_address.rbs +45 -0
  58. data/sig/telnyx/models/billing_contact.rbs +35 -0
  59. data/sig/telnyx/models/enterprise_create_params.rbs +16 -169
  60. data/sig/telnyx/models/enterprise_create_response.rbs +5 -382
  61. data/sig/telnyx/models/enterprise_public.rbs +218 -0
  62. data/sig/telnyx/models/enterprise_retrieve_response.rbs +5 -382
  63. data/sig/telnyx/models/enterprise_update_params.rbs +22 -179
  64. data/sig/telnyx/models/enterprise_update_response.rbs +5 -382
  65. data/sig/telnyx/models/enterprises/enterprise_reputation_public.rbs +97 -0
  66. data/sig/telnyx/models/enterprises/reputation/number_create_response.rbs +5 -47
  67. data/sig/telnyx/models/enterprises/reputation/number_retrieve_response.rbs +6 -133
  68. data/sig/telnyx/models/enterprises/reputation_create_response.rbs +6 -96
  69. data/sig/telnyx/models/enterprises/reputation_list_response.rbs +6 -96
  70. data/sig/telnyx/models/enterprises/reputation_update_frequency_response.rbs +6 -98
  71. data/sig/telnyx/models/meta_info.rbs +43 -0
  72. data/sig/telnyx/models/organization_contact.rbs +40 -0
  73. data/sig/telnyx/models/physical_address.rbs +45 -0
  74. data/sig/telnyx/models/reputation/number_retrieve_response.rbs +6 -131
  75. data/sig/telnyx/models/reputation_data.rbs +62 -0
  76. data/sig/telnyx/models/reputation_phone_number_with_reputation_data.rbs +57 -0
  77. data/sig/telnyx/models.rbs +16 -0
  78. data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +1 -1
  79. data/sig/telnyx/resources/enterprises.rbs +9 -9
  80. data/sig/telnyx/resources/reputation/numbers.rbs +1 -1
  81. metadata +29 -11
  82. data/lib/telnyx/models/enterprise_list_response.rb +0 -439
  83. data/lib/telnyx/models/enterprises/reputation/number_list_response.rb +0 -154
  84. data/lib/telnyx/models/reputation/number_list_response.rb +0 -151
  85. data/rbi/telnyx/models/enterprise_list_response.rbi +0 -794
  86. data/rbi/telnyx/models/enterprises/reputation/number_list_response.rbi +0 -288
  87. data/rbi/telnyx/models/reputation/number_list_response.rbi +0 -286
  88. data/sig/telnyx/models/enterprise_list_response.rbs +0 -375
  89. data/sig/telnyx/models/enterprises/reputation/number_list_response.rbs +0 -132
  90. data/sig/telnyx/models/reputation/number_list_response.rbs +0 -130
@@ -7,156 +7,11 @@ module Telnyx
7
7
  class NumberRetrieveResponse < Telnyx::Internal::Type::BaseModel
8
8
  # @!attribute data
9
9
  #
10
- # @return [Telnyx::Models::Reputation::NumberRetrieveResponse::Data, nil]
11
- optional :data, -> { Telnyx::Models::Reputation::NumberRetrieveResponse::Data }
10
+ # @return [Telnyx::Models::ReputationPhoneNumberWithReputationData, nil]
11
+ optional :data, -> { Telnyx::ReputationPhoneNumberWithReputationData }
12
12
 
13
13
  # @!method initialize(data: nil)
14
- # @param data [Telnyx::Models::Reputation::NumberRetrieveResponse::Data]
15
-
16
- # @see Telnyx::Models::Reputation::NumberRetrieveResponse#data
17
- class Data < Telnyx::Internal::Type::BaseModel
18
- # @!attribute id
19
- # Unique identifier
20
- #
21
- # @return [String, nil]
22
- optional :id, String
23
-
24
- # @!attribute created_at
25
- # When the number was associated
26
- #
27
- # @return [Time, nil]
28
- optional :created_at, Time
29
-
30
- # @!attribute enterprise_id
31
- # ID of the associated enterprise
32
- #
33
- # @return [String, nil]
34
- optional :enterprise_id, String
35
-
36
- # @!attribute phone_number
37
- # Phone number in E.164 format
38
- #
39
- # @return [String, nil]
40
- optional :phone_number, String
41
-
42
- # @!attribute reputation_data
43
- # Reputation metrics (null if not yet fetched)
44
- #
45
- # @return [Telnyx::Models::Reputation::NumberRetrieveResponse::Data::ReputationData::ReputationData, Object, nil]
46
- optional :reputation_data,
47
- union: -> { Telnyx::Models::Reputation::NumberRetrieveResponse::Data::ReputationData }
48
-
49
- # @!attribute updated_at
50
- # When the record was last updated
51
- #
52
- # @return [Time, nil]
53
- optional :updated_at, Time
54
-
55
- # @!method initialize(id: nil, created_at: nil, enterprise_id: nil, phone_number: nil, reputation_data: nil, updated_at: nil)
56
- # @param id [String] Unique identifier
57
- #
58
- # @param created_at [Time] When the number was associated
59
- #
60
- # @param enterprise_id [String] ID of the associated enterprise
61
- #
62
- # @param phone_number [String] Phone number in E.164 format
63
- #
64
- # @param reputation_data [Telnyx::Models::Reputation::NumberRetrieveResponse::Data::ReputationData::ReputationData, Object, nil] Reputation metrics (null if not yet fetched)
65
- #
66
- # @param updated_at [Time] When the record was last updated
67
-
68
- # Reputation metrics (null if not yet fetched)
69
- #
70
- # @see Telnyx::Models::Reputation::NumberRetrieveResponse::Data#reputation_data
71
- module ReputationData
72
- extend Telnyx::Internal::Type::Union
73
-
74
- # Reputation metrics
75
- variant -> { Telnyx::Models::Reputation::NumberRetrieveResponse::Data::ReputationData::ReputationData }
76
-
77
- variant Telnyx::Internal::Type::Unknown
78
-
79
- class ReputationData < Telnyx::Internal::Type::BaseModel
80
- # @!attribute connection_score
81
- # Connection quality metric (0–100)
82
- #
83
- # @return [Integer, nil]
84
- optional :connection_score, Integer, nil?: true
85
-
86
- # @!attribute engagement_score
87
- # Engagement metric (0–100). Higher = more positive engagement
88
- #
89
- # @return [Integer, nil]
90
- optional :engagement_score, Integer, nil?: true
91
-
92
- # @!attribute last_refreshed_at
93
- # Timestamp of the last reputation data refresh
94
- #
95
- # @return [Time, nil]
96
- optional :last_refreshed_at, Time, nil?: true
97
-
98
- # @!attribute maturity_score
99
- # Maturity metric (0–100). Higher = more established number
100
- #
101
- # @return [Integer, nil]
102
- optional :maturity_score, Integer, nil?: true
103
-
104
- # @!attribute sentiment_score
105
- # Sentiment metric (0–100). Higher = more positive sentiment
106
- #
107
- # @return [Integer, nil]
108
- optional :sentiment_score, Integer, nil?: true
109
-
110
- # @!attribute spam_category
111
- # Spam category classification (e.g., Telemarketing, Debt Collector)
112
- #
113
- # @return [String, nil]
114
- optional :spam_category, String, nil?: true
115
-
116
- # @!attribute spam_risk
117
- # Overall spam risk level
118
- #
119
- # @return [Symbol, Telnyx::Models::Reputation::NumberRetrieveResponse::Data::ReputationData::ReputationData::SpamRisk, nil]
120
- optional :spam_risk,
121
- enum: -> { Telnyx::Models::Reputation::NumberRetrieveResponse::Data::ReputationData::ReputationData::SpamRisk },
122
- nil?: true
123
-
124
- # @!method initialize(connection_score: nil, engagement_score: nil, last_refreshed_at: nil, maturity_score: nil, sentiment_score: nil, spam_category: nil, spam_risk: nil)
125
- # Reputation metrics
126
- #
127
- # @param connection_score [Integer, nil] Connection quality metric (0–100)
128
- #
129
- # @param engagement_score [Integer, nil] Engagement metric (0–100). Higher = more positive engagement
130
- #
131
- # @param last_refreshed_at [Time, nil] Timestamp of the last reputation data refresh
132
- #
133
- # @param maturity_score [Integer, nil] Maturity metric (0–100). Higher = more established number
134
- #
135
- # @param sentiment_score [Integer, nil] Sentiment metric (0–100). Higher = more positive sentiment
136
- #
137
- # @param spam_category [String, nil] Spam category classification (e.g., Telemarketing, Debt Collector)
138
- #
139
- # @param spam_risk [Symbol, Telnyx::Models::Reputation::NumberRetrieveResponse::Data::ReputationData::ReputationData::SpamRisk, nil] Overall spam risk level
140
-
141
- # Overall spam risk level
142
- #
143
- # @see Telnyx::Models::Reputation::NumberRetrieveResponse::Data::ReputationData::ReputationData#spam_risk
144
- module SpamRisk
145
- extend Telnyx::Internal::Type::Enum
146
-
147
- LOW = :low
148
- MEDIUM = :medium
149
- HIGH = :high
150
-
151
- # @!method self.values
152
- # @return [Array<Symbol>]
153
- end
154
- end
155
-
156
- # @!method self.variants
157
- # @return [Array(Telnyx::Models::Reputation::NumberRetrieveResponse::Data::ReputationData::ReputationData, Object)]
158
- end
159
- end
14
+ # @param data [Telnyx::Models::ReputationPhoneNumberWithReputationData]
160
15
  end
161
16
  end
162
17
  end
@@ -0,0 +1,80 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ class ReputationData < Telnyx::Internal::Type::BaseModel
6
+ # @!attribute connection_score
7
+ # Connection quality metric (0–100)
8
+ #
9
+ # @return [Integer, nil]
10
+ optional :connection_score, Integer, nil?: true
11
+
12
+ # @!attribute engagement_score
13
+ # Engagement metric (0–100). Higher = more positive engagement
14
+ #
15
+ # @return [Integer, nil]
16
+ optional :engagement_score, Integer, nil?: true
17
+
18
+ # @!attribute last_refreshed_at
19
+ # Timestamp of the last reputation data refresh
20
+ #
21
+ # @return [Time, nil]
22
+ optional :last_refreshed_at, Time, nil?: true
23
+
24
+ # @!attribute maturity_score
25
+ # Maturity metric (0–100). Higher = more established number
26
+ #
27
+ # @return [Integer, nil]
28
+ optional :maturity_score, Integer, nil?: true
29
+
30
+ # @!attribute sentiment_score
31
+ # Sentiment metric (0–100). Higher = more positive sentiment
32
+ #
33
+ # @return [Integer, nil]
34
+ optional :sentiment_score, Integer, nil?: true
35
+
36
+ # @!attribute spam_category
37
+ # Spam category classification (e.g., Telemarketing, Debt Collector)
38
+ #
39
+ # @return [String, nil]
40
+ optional :spam_category, String, nil?: true
41
+
42
+ # @!attribute spam_risk
43
+ # Overall spam risk level
44
+ #
45
+ # @return [Symbol, Telnyx::Models::ReputationData::SpamRisk, nil]
46
+ optional :spam_risk, enum: -> { Telnyx::ReputationData::SpamRisk }, nil?: true
47
+
48
+ # @!method initialize(connection_score: nil, engagement_score: nil, last_refreshed_at: nil, maturity_score: nil, sentiment_score: nil, spam_category: nil, spam_risk: nil)
49
+ # Reputation metrics
50
+ #
51
+ # @param connection_score [Integer, nil] Connection quality metric (0–100)
52
+ #
53
+ # @param engagement_score [Integer, nil] Engagement metric (0–100). Higher = more positive engagement
54
+ #
55
+ # @param last_refreshed_at [Time, nil] Timestamp of the last reputation data refresh
56
+ #
57
+ # @param maturity_score [Integer, nil] Maturity metric (0–100). Higher = more established number
58
+ #
59
+ # @param sentiment_score [Integer, nil] Sentiment metric (0–100). Higher = more positive sentiment
60
+ #
61
+ # @param spam_category [String, nil] Spam category classification (e.g., Telemarketing, Debt Collector)
62
+ #
63
+ # @param spam_risk [Symbol, Telnyx::Models::ReputationData::SpamRisk, nil] Overall spam risk level
64
+
65
+ # Overall spam risk level
66
+ #
67
+ # @see Telnyx::Models::ReputationData#spam_risk
68
+ module SpamRisk
69
+ extend Telnyx::Internal::Type::Enum
70
+
71
+ LOW = :low
72
+ MEDIUM = :medium
73
+ HIGH = :high
74
+
75
+ # @!method self.values
76
+ # @return [Array<Symbol>]
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ class ReputationPhoneNumberWithReputationData < Telnyx::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # Unique identifier
8
+ #
9
+ # @return [String, nil]
10
+ optional :id, String
11
+
12
+ # @!attribute created_at
13
+ # When the number was associated
14
+ #
15
+ # @return [Time, nil]
16
+ optional :created_at, Time
17
+
18
+ # @!attribute enterprise_id
19
+ # ID of the associated enterprise
20
+ #
21
+ # @return [String, nil]
22
+ optional :enterprise_id, String
23
+
24
+ # @!attribute phone_number
25
+ # Phone number in E.164 format
26
+ #
27
+ # @return [String, nil]
28
+ optional :phone_number, String
29
+
30
+ # @!attribute reputation_data
31
+ # Reputation metrics
32
+ #
33
+ # @return [Telnyx::Models::ReputationData, nil]
34
+ optional :reputation_data, -> { Telnyx::ReputationData }
35
+
36
+ # @!attribute updated_at
37
+ # When the record was last updated
38
+ #
39
+ # @return [Time, nil]
40
+ optional :updated_at, Time
41
+
42
+ # @!method initialize(id: nil, created_at: nil, enterprise_id: nil, phone_number: nil, reputation_data: nil, updated_at: nil)
43
+ # @param id [String] Unique identifier
44
+ #
45
+ # @param created_at [Time] When the number was associated
46
+ #
47
+ # @param enterprise_id [String] ID of the associated enterprise
48
+ #
49
+ # @param phone_number [String] Phone number in E.164 format
50
+ #
51
+ # @param reputation_data [Telnyx::Models::ReputationData] Reputation metrics
52
+ #
53
+ # @param updated_at [Time] When the record was last updated
54
+ end
55
+ end
56
+ end
data/lib/telnyx/models.rb CHANGED
@@ -131,6 +131,10 @@ module Telnyx
131
131
 
132
132
  BalanceRetrieveParams = Telnyx::Models::BalanceRetrieveParams
133
133
 
134
+ BillingAddress = Telnyx::Models::BillingAddress
135
+
136
+ BillingContact = Telnyx::Models::BillingContact
137
+
134
138
  BillingGroup = Telnyx::Models::BillingGroup
135
139
 
136
140
  BillingGroupCreateParams = Telnyx::Models::BillingGroupCreateParams
@@ -552,6 +556,8 @@ module Telnyx
552
556
 
553
557
  EnterpriseListParams = Telnyx::Models::EnterpriseListParams
554
558
 
559
+ EnterprisePublic = Telnyx::Models::EnterprisePublic
560
+
555
561
  EnterpriseRetrieveParams = Telnyx::Models::EnterpriseRetrieveParams
556
562
 
557
563
  Enterprises = Telnyx::Models::Enterprises
@@ -898,6 +904,8 @@ module Telnyx
898
904
 
899
905
  Metadata = Telnyx::Models::Metadata
900
906
 
907
+ MetaInfo = Telnyx::Models::MetaInfo
908
+
901
909
  MinimaxVoiceSettings = Telnyx::Models::MinimaxVoiceSettings
902
910
 
903
911
  MobileNetworkOperatorListParams = Telnyx::Models::MobileNetworkOperatorListParams
@@ -1080,6 +1088,8 @@ module Telnyx
1080
1088
 
1081
1089
  OperatorConnect = Telnyx::Models::OperatorConnect
1082
1090
 
1091
+ OrganizationContact = Telnyx::Models::OrganizationContact
1092
+
1083
1093
  Organizations = Telnyx::Models::Organizations
1084
1094
 
1085
1095
  OtaUpdateListParams = Telnyx::Models::OtaUpdateListParams
@@ -1143,6 +1153,8 @@ module Telnyx
1143
1153
 
1144
1154
  PhoneNumberWithMessagingSettings = Telnyx::Models::PhoneNumberWithMessagingSettings
1145
1155
 
1156
+ PhysicalAddress = Telnyx::Models::PhysicalAddress
1157
+
1146
1158
  PortabilityCheckRunParams = Telnyx::Models::PortabilityCheckRunParams
1147
1159
 
1148
1160
  Porting = Telnyx::Models::Porting
@@ -1307,6 +1319,10 @@ module Telnyx
1307
1319
 
1308
1320
  Reputation = Telnyx::Models::Reputation
1309
1321
 
1322
+ ReputationData = Telnyx::Models::ReputationData
1323
+
1324
+ ReputationPhoneNumberWithReputationData = Telnyx::Models::ReputationPhoneNumberWithReputationData
1325
+
1310
1326
  RequirementGroup = Telnyx::Models::RequirementGroup
1311
1327
 
1312
1328
  RequirementGroupCreateParams = Telnyx::Models::RequirementGroupCreateParams
@@ -115,7 +115,7 @@ module Telnyx
115
115
  #
116
116
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
117
117
  #
118
- # @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Enterprises::Reputation::NumberListResponse>]
118
+ # @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::ReputationPhoneNumberWithReputationData>]
119
119
  #
120
120
  # @see Telnyx::Models::Enterprises::Reputation::NumberListParams
121
121
  def list(enterprise_id, params = {})
@@ -126,7 +126,7 @@ module Telnyx
126
126
  path: ["enterprises/%1$s/reputation/numbers", enterprise_id],
127
127
  query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"),
128
128
  page: Telnyx::Internal::DefaultFlatPagination,
129
- model: Telnyx::Models::Enterprises::Reputation::NumberListResponse,
129
+ model: Telnyx::ReputationPhoneNumberWithReputationData,
130
130
  options: options
131
131
  )
132
132
  end
@@ -25,9 +25,9 @@ module Telnyx
25
25
  #
26
26
  # @overload create(billing_address:, billing_contact:, country_code:, doing_business_as:, fein:, industry:, legal_name:, number_of_employees:, organization_contact:, organization_legal_type:, organization_physical_address:, organization_type:, website:, corporate_registration_number: nil, customer_reference: nil, dun_bradstreet_number: nil, primary_business_domain_sic_code: nil, professional_license_number: nil, role_type: nil, request_options: {})
27
27
  #
28
- # @param billing_address [Telnyx::Models::EnterpriseCreateParams::BillingAddress]
28
+ # @param billing_address [Telnyx::Models::BillingAddress]
29
29
  #
30
- # @param billing_contact [Telnyx::Models::EnterpriseCreateParams::BillingContact]
30
+ # @param billing_contact [Telnyx::Models::BillingContact]
31
31
  #
32
32
  # @param country_code [String] Country code. Currently only 'US' is accepted.
33
33
  #
@@ -41,11 +41,11 @@ module Telnyx
41
41
  #
42
42
  # @param number_of_employees [Symbol, Telnyx::Models::EnterpriseCreateParams::NumberOfEmployees] Employee count range
43
43
  #
44
- # @param organization_contact [Telnyx::Models::EnterpriseCreateParams::OrganizationContact] Organization contact information. Note: the response returns this object with th
44
+ # @param organization_contact [Telnyx::Models::OrganizationContact] Organization contact information. Note: the response returns this object with th
45
45
  #
46
46
  # @param organization_legal_type [Symbol, Telnyx::Models::EnterpriseCreateParams::OrganizationLegalType] Legal structure type
47
47
  #
48
- # @param organization_physical_address [Telnyx::Models::EnterpriseCreateParams::OrganizationPhysicalAddress]
48
+ # @param organization_physical_address [Telnyx::Models::PhysicalAddress]
49
49
  #
50
50
  # @param organization_type [Symbol, Telnyx::Models::EnterpriseCreateParams::OrganizationType] Type of organization
51
51
  #
@@ -109,9 +109,9 @@ module Telnyx
109
109
  #
110
110
  # @param enterprise_id [String] Unique identifier of the enterprise (UUID)
111
111
  #
112
- # @param billing_address [Telnyx::Models::EnterpriseUpdateParams::BillingAddress]
112
+ # @param billing_address [Telnyx::Models::BillingAddress]
113
113
  #
114
- # @param billing_contact [Telnyx::Models::EnterpriseUpdateParams::BillingContact]
114
+ # @param billing_contact [Telnyx::Models::BillingContact]
115
115
  #
116
116
  # @param corporate_registration_number [String] Corporate registration number
117
117
  #
@@ -129,11 +129,11 @@ module Telnyx
129
129
  #
130
130
  # @param number_of_employees [Symbol, Telnyx::Models::EnterpriseUpdateParams::NumberOfEmployees] Employee count range
131
131
  #
132
- # @param organization_contact [Telnyx::Models::EnterpriseUpdateParams::OrganizationContact] Organization contact information. Note: the response returns this object with th
132
+ # @param organization_contact [Telnyx::Models::OrganizationContact] Organization contact information. Note: the response returns this object with th
133
133
  #
134
134
  # @param organization_legal_type [Symbol, Telnyx::Models::EnterpriseUpdateParams::OrganizationLegalType] Legal structure type
135
135
  #
136
- # @param organization_physical_address [Telnyx::Models::EnterpriseUpdateParams::OrganizationPhysicalAddress]
136
+ # @param organization_physical_address [Telnyx::Models::PhysicalAddress]
137
137
  #
138
138
  # @param primary_business_domain_sic_code [String] SIC Code
139
139
  #
@@ -169,7 +169,7 @@ module Telnyx
169
169
  #
170
170
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
171
171
  #
172
- # @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::EnterpriseListResponse>]
172
+ # @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::EnterprisePublic>]
173
173
  #
174
174
  # @see Telnyx::Models::EnterpriseListParams
175
175
  def list(params = {})
@@ -180,7 +180,7 @@ module Telnyx
180
180
  path: "enterprises",
181
181
  query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"),
182
182
  page: Telnyx::Internal::DefaultFlatPagination,
183
- model: Telnyx::Models::EnterpriseListResponse,
183
+ model: Telnyx::EnterprisePublic,
184
184
  options: options
185
185
  )
186
186
  end
@@ -53,7 +53,7 @@ module Telnyx
53
53
  #
54
54
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
55
55
  #
56
- # @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Reputation::NumberListResponse>]
56
+ # @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::ReputationPhoneNumberWithReputationData>]
57
57
  #
58
58
  # @see Telnyx::Models::Reputation::NumberListParams
59
59
  def list(params = {})
@@ -64,7 +64,7 @@ module Telnyx
64
64
  path: "reputation/numbers",
65
65
  query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"),
66
66
  page: Telnyx::Internal::DefaultFlatPagination,
67
- model: Telnyx::Models::Reputation::NumberListResponse,
67
+ model: Telnyx::ReputationPhoneNumberWithReputationData,
68
68
  options: options
69
69
  )
70
70
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.67.0"
4
+ VERSION = "5.68.1"
5
5
  end
data/lib/telnyx.rb CHANGED
@@ -426,6 +426,8 @@ require_relative "telnyx/models/azure_configuration_data"
426
426
  require_relative "telnyx/models/azure_voice_settings"
427
427
  require_relative "telnyx/models/balance_retrieve_params"
428
428
  require_relative "telnyx/models/balance_retrieve_response"
429
+ require_relative "telnyx/models/billing_address"
430
+ require_relative "telnyx/models/billing_contact"
429
431
  require_relative "telnyx/models/billing_group"
430
432
  require_relative "telnyx/models/billing_group_create_params"
431
433
  require_relative "telnyx/models/billing_group_create_response"
@@ -832,14 +834,14 @@ require_relative "telnyx/models/enterprise_create_params"
832
834
  require_relative "telnyx/models/enterprise_create_response"
833
835
  require_relative "telnyx/models/enterprise_delete_params"
834
836
  require_relative "telnyx/models/enterprise_list_params"
835
- require_relative "telnyx/models/enterprise_list_response"
837
+ require_relative "telnyx/models/enterprise_public"
836
838
  require_relative "telnyx/models/enterprise_retrieve_params"
837
839
  require_relative "telnyx/models/enterprise_retrieve_response"
840
+ require_relative "telnyx/models/enterprises/enterprise_reputation_public"
838
841
  require_relative "telnyx/models/enterprises/reputation/number_create_params"
839
842
  require_relative "telnyx/models/enterprises/reputation/number_create_response"
840
843
  require_relative "telnyx/models/enterprises/reputation/number_delete_params"
841
844
  require_relative "telnyx/models/enterprises/reputation/number_list_params"
842
- require_relative "telnyx/models/enterprises/reputation/number_list_response"
843
845
  require_relative "telnyx/models/enterprises/reputation/number_retrieve_params"
844
846
  require_relative "telnyx/models/enterprises/reputation/number_retrieve_response"
845
847
  require_relative "telnyx/models/enterprises/reputation_create_params"
@@ -1331,6 +1333,7 @@ require_relative "telnyx/models/messaging_tollfree/verification/volume"
1331
1333
  require_relative "telnyx/models/messaging_url_domain_list_params"
1332
1334
  require_relative "telnyx/models/messaging_url_domain_list_response"
1333
1335
  require_relative "telnyx/models/metadata"
1336
+ require_relative "telnyx/models/meta_info"
1334
1337
  require_relative "telnyx/models/minimax_voice_settings"
1335
1338
  require_relative "telnyx/models/mobile_network_operator_list_params"
1336
1339
  require_relative "telnyx/models/mobile_network_operator_list_response"
@@ -1479,6 +1482,7 @@ require_relative "telnyx/models/oauth_token_params"
1479
1482
  require_relative "telnyx/models/oauth_token_response"
1480
1483
  require_relative "telnyx/models/operator_connect/action_refresh_params"
1481
1484
  require_relative "telnyx/models/operator_connect/action_refresh_response"
1485
+ require_relative "telnyx/models/organization_contact"
1482
1486
  require_relative "telnyx/models/organizations/organization_user"
1483
1487
  require_relative "telnyx/models/organizations/user_get_groups_report_params"
1484
1488
  require_relative "telnyx/models/organizations/user_get_groups_report_response"
@@ -1583,6 +1587,7 @@ require_relative "telnyx/models/phone_numbers_regulatory_requirement_retrieve_re
1583
1587
  require_relative "telnyx/models/phone_number_update_params"
1584
1588
  require_relative "telnyx/models/phone_number_update_response"
1585
1589
  require_relative "telnyx/models/phone_number_with_messaging_settings"
1590
+ require_relative "telnyx/models/physical_address"
1586
1591
  require_relative "telnyx/models/portability_check_run_params"
1587
1592
  require_relative "telnyx/models/portability_check_run_response"
1588
1593
  require_relative "telnyx/models/porting/event_list_params"
@@ -1819,9 +1824,10 @@ require_relative "telnyx/models/reports/mdr_usage_report_retrieve_response"
1819
1824
  require_relative "telnyx/models/reports/pagination_meta_reporting"
1820
1825
  require_relative "telnyx/models/reputation/number_delete_params"
1821
1826
  require_relative "telnyx/models/reputation/number_list_params"
1822
- require_relative "telnyx/models/reputation/number_list_response"
1823
1827
  require_relative "telnyx/models/reputation/number_retrieve_params"
1824
1828
  require_relative "telnyx/models/reputation/number_retrieve_response"
1829
+ require_relative "telnyx/models/reputation_data"
1830
+ require_relative "telnyx/models/reputation_phone_number_with_reputation_data"
1825
1831
  require_relative "telnyx/models/requirement_group"
1826
1832
  require_relative "telnyx/models/requirement_group_create_params"
1827
1833
  require_relative "telnyx/models/requirement_group_delete_params"
@@ -10,7 +10,7 @@ module Telnyx
10
10
  end
11
11
 
12
12
  # The voice to be used by the voice assistant. Check the full list of
13
- # [available voices](https://developers.telnyx.com/api/call-control/list-text-to-speech-voices)
13
+ # [available voices](https://developers.telnyx.com/docs/tts-stt/tts-available-voices)
14
14
  # via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
15
15
  # key as an integration secret under the `api_key_ref` field. See
16
16
  # [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
@@ -148,7 +148,7 @@ module Telnyx
148
148
  end
149
149
  def self.new(
150
150
  # The voice to be used by the voice assistant. Check the full list of
151
- # [available voices](https://developers.telnyx.com/api/call-control/list-text-to-speech-voices)
151
+ # [available voices](https://developers.telnyx.com/docs/tts-stt/tts-available-voices)
152
152
  # via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
153
153
  # key as an integration secret under the `api_key_ref` field. See
154
154
  # [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
@@ -0,0 +1,77 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ class BillingAddress < Telnyx::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Telnyx::BillingAddress, Telnyx::Internal::AnyHash)
9
+ end
10
+
11
+ # State or province
12
+ sig { returns(String) }
13
+ attr_accessor :administrative_area
14
+
15
+ # City name
16
+ sig { returns(String) }
17
+ attr_accessor :city
18
+
19
+ # Country name (e.g., United States)
20
+ sig { returns(String) }
21
+ attr_accessor :country
22
+
23
+ # ZIP or postal code
24
+ sig { returns(String) }
25
+ attr_accessor :postal_code
26
+
27
+ # Street address
28
+ sig { returns(String) }
29
+ attr_accessor :street_address
30
+
31
+ # Additional address line (suite, apt, etc.)
32
+ sig { returns(T.nilable(String)) }
33
+ attr_accessor :extended_address
34
+
35
+ sig do
36
+ params(
37
+ administrative_area: String,
38
+ city: String,
39
+ country: String,
40
+ postal_code: String,
41
+ street_address: String,
42
+ extended_address: T.nilable(String)
43
+ ).returns(T.attached_class)
44
+ end
45
+ def self.new(
46
+ # State or province
47
+ administrative_area:,
48
+ # City name
49
+ city:,
50
+ # Country name (e.g., United States)
51
+ country:,
52
+ # ZIP or postal code
53
+ postal_code:,
54
+ # Street address
55
+ street_address:,
56
+ # Additional address line (suite, apt, etc.)
57
+ extended_address: nil
58
+ )
59
+ end
60
+
61
+ sig do
62
+ override.returns(
63
+ {
64
+ administrative_area: String,
65
+ city: String,
66
+ country: String,
67
+ postal_code: String,
68
+ street_address: String,
69
+ extended_address: T.nilable(String)
70
+ }
71
+ )
72
+ end
73
+ def to_hash
74
+ end
75
+ end
76
+ end
77
+ end