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
@@ -0,0 +1,45 @@
1
+ module Telnyx
2
+ module Models
3
+ type billing_address =
4
+ {
5
+ administrative_area: String,
6
+ city: String,
7
+ country: String,
8
+ postal_code: String,
9
+ street_address: String,
10
+ extended_address: String?
11
+ }
12
+
13
+ class BillingAddress < Telnyx::Internal::Type::BaseModel
14
+ attr_accessor administrative_area: String
15
+
16
+ attr_accessor city: String
17
+
18
+ attr_accessor country: String
19
+
20
+ attr_accessor postal_code: String
21
+
22
+ attr_accessor street_address: String
23
+
24
+ attr_accessor extended_address: String?
25
+
26
+ def initialize: (
27
+ administrative_area: String,
28
+ city: String,
29
+ country: String,
30
+ postal_code: String,
31
+ street_address: String,
32
+ ?extended_address: String?
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ administrative_area: String,
37
+ city: String,
38
+ country: String,
39
+ postal_code: String,
40
+ street_address: String,
41
+ extended_address: String?
42
+ }
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,35 @@
1
+ module Telnyx
2
+ module Models
3
+ type billing_contact =
4
+ {
5
+ email: String,
6
+ first_name: String,
7
+ last_name: String,
8
+ phone_number: String
9
+ }
10
+
11
+ class BillingContact < Telnyx::Internal::Type::BaseModel
12
+ attr_accessor email: String
13
+
14
+ attr_accessor first_name: String
15
+
16
+ attr_accessor last_name: String
17
+
18
+ attr_accessor phone_number: String
19
+
20
+ def initialize: (
21
+ email: String,
22
+ first_name: String,
23
+ last_name: String,
24
+ phone_number: String
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ email: String,
29
+ first_name: String,
30
+ last_name: String,
31
+ phone_number: String
32
+ }
33
+ end
34
+ end
35
+ end
@@ -2,17 +2,17 @@ module Telnyx
2
2
  module Models
3
3
  type enterprise_create_params =
4
4
  {
5
- billing_address: Telnyx::EnterpriseCreateParams::BillingAddress,
6
- billing_contact: Telnyx::EnterpriseCreateParams::BillingContact,
5
+ billing_address: Telnyx::BillingAddress,
6
+ billing_contact: Telnyx::BillingContact,
7
7
  country_code: String,
8
8
  doing_business_as: String,
9
9
  fein: String,
10
10
  industry: String,
11
11
  legal_name: String,
12
12
  number_of_employees: Telnyx::Models::EnterpriseCreateParams::number_of_employees,
13
- organization_contact: Telnyx::EnterpriseCreateParams::OrganizationContact,
13
+ organization_contact: Telnyx::OrganizationContact,
14
14
  organization_legal_type: Telnyx::Models::EnterpriseCreateParams::organization_legal_type,
15
- organization_physical_address: Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress,
15
+ organization_physical_address: Telnyx::PhysicalAddress,
16
16
  organization_type: Telnyx::Models::EnterpriseCreateParams::organization_type,
17
17
  website: String,
18
18
  corporate_registration_number: String,
@@ -28,9 +28,9 @@ module Telnyx
28
28
  extend Telnyx::Internal::Type::RequestParameters::Converter
29
29
  include Telnyx::Internal::Type::RequestParameters
30
30
 
31
- attr_accessor billing_address: Telnyx::EnterpriseCreateParams::BillingAddress
31
+ attr_accessor billing_address: Telnyx::BillingAddress
32
32
 
33
- attr_accessor billing_contact: Telnyx::EnterpriseCreateParams::BillingContact
33
+ attr_accessor billing_contact: Telnyx::BillingContact
34
34
 
35
35
  attr_accessor country_code: String
36
36
 
@@ -44,11 +44,11 @@ module Telnyx
44
44
 
45
45
  attr_accessor number_of_employees: Telnyx::Models::EnterpriseCreateParams::number_of_employees
46
46
 
47
- attr_accessor organization_contact: Telnyx::EnterpriseCreateParams::OrganizationContact
47
+ attr_accessor organization_contact: Telnyx::OrganizationContact
48
48
 
49
49
  attr_accessor organization_legal_type: Telnyx::Models::EnterpriseCreateParams::organization_legal_type
50
50
 
51
- attr_accessor organization_physical_address: Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress
51
+ attr_accessor organization_physical_address: Telnyx::PhysicalAddress
52
52
 
53
53
  attr_accessor organization_type: Telnyx::Models::EnterpriseCreateParams::organization_type
54
54
 
@@ -81,17 +81,17 @@ module Telnyx
81
81
  ) -> Telnyx::Models::EnterpriseCreateParams::role_type
82
82
 
83
83
  def initialize: (
84
- billing_address: Telnyx::EnterpriseCreateParams::BillingAddress,
85
- billing_contact: Telnyx::EnterpriseCreateParams::BillingContact,
84
+ billing_address: Telnyx::BillingAddress,
85
+ billing_contact: Telnyx::BillingContact,
86
86
  country_code: String,
87
87
  doing_business_as: String,
88
88
  fein: String,
89
89
  industry: String,
90
90
  legal_name: String,
91
91
  number_of_employees: Telnyx::Models::EnterpriseCreateParams::number_of_employees,
92
- organization_contact: Telnyx::EnterpriseCreateParams::OrganizationContact,
92
+ organization_contact: Telnyx::OrganizationContact,
93
93
  organization_legal_type: Telnyx::Models::EnterpriseCreateParams::organization_legal_type,
94
- organization_physical_address: Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress,
94
+ organization_physical_address: Telnyx::PhysicalAddress,
95
95
  organization_type: Telnyx::Models::EnterpriseCreateParams::organization_type,
96
96
  website: String,
97
97
  ?corporate_registration_number: String,
@@ -104,17 +104,17 @@ module Telnyx
104
104
  ) -> void
105
105
 
106
106
  def to_hash: -> {
107
- billing_address: Telnyx::EnterpriseCreateParams::BillingAddress,
108
- billing_contact: Telnyx::EnterpriseCreateParams::BillingContact,
107
+ billing_address: Telnyx::BillingAddress,
108
+ billing_contact: Telnyx::BillingContact,
109
109
  country_code: String,
110
110
  doing_business_as: String,
111
111
  fein: String,
112
112
  industry: String,
113
113
  legal_name: String,
114
114
  number_of_employees: Telnyx::Models::EnterpriseCreateParams::number_of_employees,
115
- organization_contact: Telnyx::EnterpriseCreateParams::OrganizationContact,
115
+ organization_contact: Telnyx::OrganizationContact,
116
116
  organization_legal_type: Telnyx::Models::EnterpriseCreateParams::organization_legal_type,
117
- organization_physical_address: Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress,
117
+ organization_physical_address: Telnyx::PhysicalAddress,
118
118
  organization_type: Telnyx::Models::EnterpriseCreateParams::organization_type,
119
119
  website: String,
120
120
  corporate_registration_number: String,
@@ -126,80 +126,6 @@ module Telnyx
126
126
  request_options: Telnyx::RequestOptions
127
127
  }
128
128
 
129
- type billing_address =
130
- {
131
- administrative_area: String,
132
- city: String,
133
- country: String,
134
- postal_code: String,
135
- street_address: String,
136
- extended_address: String?
137
- }
138
-
139
- class BillingAddress < Telnyx::Internal::Type::BaseModel
140
- attr_accessor administrative_area: String
141
-
142
- attr_accessor city: String
143
-
144
- attr_accessor country: String
145
-
146
- attr_accessor postal_code: String
147
-
148
- attr_accessor street_address: String
149
-
150
- attr_accessor extended_address: String?
151
-
152
- def initialize: (
153
- administrative_area: String,
154
- city: String,
155
- country: String,
156
- postal_code: String,
157
- street_address: String,
158
- ?extended_address: String?
159
- ) -> void
160
-
161
- def to_hash: -> {
162
- administrative_area: String,
163
- city: String,
164
- country: String,
165
- postal_code: String,
166
- street_address: String,
167
- extended_address: String?
168
- }
169
- end
170
-
171
- type billing_contact =
172
- {
173
- email: String,
174
- first_name: String,
175
- last_name: String,
176
- phone_number: String
177
- }
178
-
179
- class BillingContact < Telnyx::Internal::Type::BaseModel
180
- attr_accessor email: String
181
-
182
- attr_accessor first_name: String
183
-
184
- attr_accessor last_name: String
185
-
186
- attr_accessor phone_number: String
187
-
188
- def initialize: (
189
- email: String,
190
- first_name: String,
191
- last_name: String,
192
- phone_number: String
193
- ) -> void
194
-
195
- def to_hash: -> {
196
- email: String,
197
- first_name: String,
198
- last_name: String,
199
- phone_number: String
200
- }
201
- end
202
-
203
129
  type number_of_employees =
204
130
  :"1-10"
205
131
  | :"11-50"
@@ -223,43 +149,6 @@ module Telnyx
223
149
  def self?.values: -> ::Array[Telnyx::Models::EnterpriseCreateParams::number_of_employees]
224
150
  end
225
151
 
226
- type organization_contact =
227
- {
228
- email: String,
229
- first_name: String,
230
- job_title: String,
231
- last_name: String,
232
- phone: String
233
- }
234
-
235
- class OrganizationContact < Telnyx::Internal::Type::BaseModel
236
- attr_accessor email: String
237
-
238
- attr_accessor first_name: String
239
-
240
- attr_accessor job_title: String
241
-
242
- attr_accessor last_name: String
243
-
244
- attr_accessor phone: String
245
-
246
- def initialize: (
247
- email: String,
248
- first_name: String,
249
- job_title: String,
250
- last_name: String,
251
- phone: String
252
- ) -> void
253
-
254
- def to_hash: -> {
255
- email: String,
256
- first_name: String,
257
- job_title: String,
258
- last_name: String,
259
- phone: String
260
- }
261
- end
262
-
263
152
  type organization_legal_type =
264
153
  :corporation | :llc | :partnership | :nonprofit | :other
265
154
 
@@ -275,48 +164,6 @@ module Telnyx
275
164
  def self?.values: -> ::Array[Telnyx::Models::EnterpriseCreateParams::organization_legal_type]
276
165
  end
277
166
 
278
- type organization_physical_address =
279
- {
280
- administrative_area: String,
281
- city: String,
282
- country: String,
283
- postal_code: String,
284
- street_address: String,
285
- extended_address: String?
286
- }
287
-
288
- class OrganizationPhysicalAddress < Telnyx::Internal::Type::BaseModel
289
- attr_accessor administrative_area: String
290
-
291
- attr_accessor city: String
292
-
293
- attr_accessor country: String
294
-
295
- attr_accessor postal_code: String
296
-
297
- attr_accessor street_address: String
298
-
299
- attr_accessor extended_address: String?
300
-
301
- def initialize: (
302
- administrative_area: String,
303
- city: String,
304
- country: String,
305
- postal_code: String,
306
- street_address: String,
307
- ?extended_address: String?
308
- ) -> void
309
-
310
- def to_hash: -> {
311
- administrative_area: String,
312
- city: String,
313
- country: String,
314
- postal_code: String,
315
- street_address: String,
316
- extended_address: String?
317
- }
318
- end
319
-
320
167
  type organization_type = :commercial | :government | :non_profit
321
168
 
322
169
  module OrganizationType