telnyx 5.67.0 → 5.67.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 (88) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/util.rb +1 -2
  5. data/lib/telnyx/models/billing_address.rb +56 -0
  6. data/lib/telnyx/models/billing_contact.rb +40 -0
  7. data/lib/telnyx/models/enterprise_create_params.rb +12 -196
  8. data/lib/telnyx/models/enterprise_create_response.rb +3 -437
  9. data/lib/telnyx/models/enterprise_public.rb +249 -0
  10. data/lib/telnyx/models/enterprise_retrieve_response.rb +3 -439
  11. data/lib/telnyx/models/enterprise_update_params.rb +12 -196
  12. data/lib/telnyx/models/enterprise_update_response.rb +3 -437
  13. data/lib/telnyx/models/enterprises/enterprise_reputation_public.rb +100 -0
  14. data/lib/telnyx/models/enterprises/reputation/number_create_response.rb +3 -39
  15. data/lib/telnyx/models/enterprises/reputation/number_retrieve_response.rb +3 -148
  16. data/lib/telnyx/models/enterprises/reputation_create_response.rb +3 -96
  17. data/lib/telnyx/models/enterprises/reputation_list_response.rb +3 -96
  18. data/lib/telnyx/models/enterprises/reputation_update_frequency_response.rb +3 -97
  19. data/lib/telnyx/models/meta_info.rb +40 -0
  20. data/lib/telnyx/models/organization_contact.rb +51 -0
  21. data/lib/telnyx/models/physical_address.rb +56 -0
  22. data/lib/telnyx/models/reputation/number_retrieve_response.rb +3 -148
  23. data/lib/telnyx/models/reputation_data.rb +80 -0
  24. data/lib/telnyx/models/reputation_phone_number_with_reputation_data.rb +74 -0
  25. data/lib/telnyx/models.rb +16 -0
  26. data/lib/telnyx/resources/enterprises/reputation/numbers.rb +2 -2
  27. data/lib/telnyx/resources/enterprises.rb +10 -10
  28. data/lib/telnyx/resources/reputation/numbers.rb +2 -2
  29. data/lib/telnyx/version.rb +1 -1
  30. data/lib/telnyx.rb +9 -3
  31. data/rbi/telnyx/models/billing_address.rbi +77 -0
  32. data/rbi/telnyx/models/billing_contact.rbi +61 -0
  33. data/rbi/telnyx/models/enterprise_create_params.rbi +16 -316
  34. data/rbi/telnyx/models/enterprise_create_response.rbi +4 -814
  35. data/rbi/telnyx/models/enterprise_public.rbi +436 -0
  36. data/rbi/telnyx/models/enterprise_retrieve_response.rbi +4 -816
  37. data/rbi/telnyx/models/enterprise_update_params.rbi +16 -320
  38. data/rbi/telnyx/models/enterprise_update_response.rbi +4 -814
  39. data/rbi/telnyx/models/enterprises/enterprise_reputation_public.rbi +233 -0
  40. data/rbi/telnyx/models/enterprises/reputation/number_create_response.rbi +4 -88
  41. data/rbi/telnyx/models/enterprises/reputation/number_retrieve_response.rbi +4 -292
  42. data/rbi/telnyx/models/enterprises/reputation_create_response.rbi +4 -236
  43. data/rbi/telnyx/models/enterprises/reputation_list_response.rbi +4 -232
  44. data/rbi/telnyx/models/enterprises/reputation_update_frequency_response.rbi +4 -237
  45. data/rbi/telnyx/models/meta_info.rbi +71 -0
  46. data/rbi/telnyx/models/organization_contact.rbi +71 -0
  47. data/rbi/telnyx/models/physical_address.rbi +77 -0
  48. data/rbi/telnyx/models/reputation/number_retrieve_response.rbi +4 -287
  49. data/rbi/telnyx/models/reputation_data.rbi +107 -0
  50. data/rbi/telnyx/models/reputation_phone_number_with_reputation_data.rbi +145 -0
  51. data/rbi/telnyx/models.rbi +17 -0
  52. data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +1 -1
  53. data/rbi/telnyx/resources/enterprises.rbi +9 -19
  54. data/rbi/telnyx/resources/reputation/numbers.rbi +1 -1
  55. data/sig/telnyx/models/billing_address.rbs +45 -0
  56. data/sig/telnyx/models/billing_contact.rbs +35 -0
  57. data/sig/telnyx/models/enterprise_create_params.rbs +16 -169
  58. data/sig/telnyx/models/enterprise_create_response.rbs +5 -382
  59. data/sig/telnyx/models/enterprise_public.rbs +218 -0
  60. data/sig/telnyx/models/enterprise_retrieve_response.rbs +5 -382
  61. data/sig/telnyx/models/enterprise_update_params.rbs +22 -179
  62. data/sig/telnyx/models/enterprise_update_response.rbs +5 -382
  63. data/sig/telnyx/models/enterprises/enterprise_reputation_public.rbs +97 -0
  64. data/sig/telnyx/models/enterprises/reputation/number_create_response.rbs +5 -47
  65. data/sig/telnyx/models/enterprises/reputation/number_retrieve_response.rbs +6 -133
  66. data/sig/telnyx/models/enterprises/reputation_create_response.rbs +6 -96
  67. data/sig/telnyx/models/enterprises/reputation_list_response.rbs +6 -96
  68. data/sig/telnyx/models/enterprises/reputation_update_frequency_response.rbs +6 -98
  69. data/sig/telnyx/models/meta_info.rbs +43 -0
  70. data/sig/telnyx/models/organization_contact.rbs +40 -0
  71. data/sig/telnyx/models/physical_address.rbs +45 -0
  72. data/sig/telnyx/models/reputation/number_retrieve_response.rbs +6 -131
  73. data/sig/telnyx/models/reputation_data.rbs +62 -0
  74. data/sig/telnyx/models/reputation_phone_number_with_reputation_data.rbs +69 -0
  75. data/sig/telnyx/models.rbs +16 -0
  76. data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +1 -1
  77. data/sig/telnyx/resources/enterprises.rbs +9 -9
  78. data/sig/telnyx/resources/reputation/numbers.rbs +1 -1
  79. metadata +28 -10
  80. data/lib/telnyx/models/enterprise_list_response.rb +0 -439
  81. data/lib/telnyx/models/enterprises/reputation/number_list_response.rb +0 -154
  82. data/lib/telnyx/models/reputation/number_list_response.rb +0 -151
  83. data/rbi/telnyx/models/enterprise_list_response.rbi +0 -794
  84. data/rbi/telnyx/models/enterprises/reputation/number_list_response.rbi +0 -288
  85. data/rbi/telnyx/models/reputation/number_list_response.rbi +0 -286
  86. data/sig/telnyx/models/enterprise_list_response.rbs +0 -375
  87. data/sig/telnyx/models/enterprises/reputation/number_list_response.rbs +0 -132
  88. data/sig/telnyx/models/reputation/number_list_response.rbs +0 -130
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f156eac95b70864a77dfaeb5e8db6538f52eaf60d1184e3a4c08164115307a20
4
- data.tar.gz: 191552e0d38c629677b3def057d01f314743af6f354799741d225acdb9d2ce0d
3
+ metadata.gz: 7f3b8590740640397076c7f6b1eab628663e927e9406aadf908189a76b33b4e3
4
+ data.tar.gz: 4ec8911776298b27482444aa517fd7afd894c98280f6a4ba70413f2b634762cf
5
5
  SHA512:
6
- metadata.gz: 3a8471f199d00dec4d4c8d4222b89dc870075ff07605396e13ad77b0b379b171ff2ba6ea1011804e57b6882d98223bb1278138151eeff0fa5e0ac76ce07d2a15
7
- data.tar.gz: 3a4fa036e4c042ddea3c68fa8687ca51040730dd6695d192782e9928b482ce70b18ab94f7f4b3db2815e4a404ebe12001c23214d730ac90cf2f9445ccc4f6f64
6
+ metadata.gz: 81b41872a3170843489bc1e5216daaa329653e63d9622623456da81786649861dab07f285eb7ce020990e32f35b0c343e7692212f8086bcab4187a8e0657bb8f
7
+ data.tar.gz: 2a8dccdbf0cc5466d6a4eddc59857abb6e80142cd1c0695dbf444efc7e477a535247e78cc9b16bfebcc7e6de37b78d9807afed67524c8cc44fa5aaea60a381bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.67.1 (2026-03-26)
4
+
5
+ Full Changelog: [v5.67.0...v5.67.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.67.0...v5.67.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **internal:** correct multipart form field name encoding ([af64e39](https://github.com/team-telnyx/telnyx-ruby/commit/af64e39b5752e0960ad60aaa3fd7fff809ae7ef6))
10
+
3
11
  ## 5.67.0 (2026-03-26)
4
12
 
5
13
  Full Changelog: [v5.66.1...v5.67.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.66.1...v5.67.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.67.0"
27
+ gem "telnyx", "~> 5.67.1"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -571,8 +571,7 @@ module Telnyx
571
571
  y << "Content-Disposition: form-data"
572
572
 
573
573
  unless key.nil?
574
- name = ERB::Util.url_encode(key.to_s)
575
- y << "; name=\"#{name}\""
574
+ y << "; name=\"#{key}\""
576
575
  end
577
576
 
578
577
  case val
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ class BillingAddress < Telnyx::Internal::Type::BaseModel
6
+ # @!attribute administrative_area
7
+ # State or province
8
+ #
9
+ # @return [String]
10
+ required :administrative_area, String
11
+
12
+ # @!attribute city
13
+ # City name
14
+ #
15
+ # @return [String]
16
+ required :city, String
17
+
18
+ # @!attribute country
19
+ # Country name (e.g., United States)
20
+ #
21
+ # @return [String]
22
+ required :country, String
23
+
24
+ # @!attribute postal_code
25
+ # ZIP or postal code
26
+ #
27
+ # @return [String]
28
+ required :postal_code, String
29
+
30
+ # @!attribute street_address
31
+ # Street address
32
+ #
33
+ # @return [String]
34
+ required :street_address, String
35
+
36
+ # @!attribute extended_address
37
+ # Additional address line (suite, apt, etc.)
38
+ #
39
+ # @return [String, nil]
40
+ optional :extended_address, String, nil?: true
41
+
42
+ # @!method initialize(administrative_area:, city:, country:, postal_code:, street_address:, extended_address: nil)
43
+ # @param administrative_area [String] State or province
44
+ #
45
+ # @param city [String] City name
46
+ #
47
+ # @param country [String] Country name (e.g., United States)
48
+ #
49
+ # @param postal_code [String] ZIP or postal code
50
+ #
51
+ # @param street_address [String] Street address
52
+ #
53
+ # @param extended_address [String, nil] Additional address line (suite, apt, etc.)
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ class BillingContact < Telnyx::Internal::Type::BaseModel
6
+ # @!attribute email
7
+ # Contact's email address
8
+ #
9
+ # @return [String]
10
+ required :email, String
11
+
12
+ # @!attribute first_name
13
+ # Contact's first name
14
+ #
15
+ # @return [String]
16
+ required :first_name, String
17
+
18
+ # @!attribute last_name
19
+ # Contact's last name
20
+ #
21
+ # @return [String]
22
+ required :last_name, String
23
+
24
+ # @!attribute phone_number
25
+ # Contact's phone number (10-15 digits)
26
+ #
27
+ # @return [String]
28
+ required :phone_number, String
29
+
30
+ # @!method initialize(email:, first_name:, last_name:, phone_number:)
31
+ # @param email [String] Contact's email address
32
+ #
33
+ # @param first_name [String] Contact's first name
34
+ #
35
+ # @param last_name [String] Contact's last name
36
+ #
37
+ # @param phone_number [String] Contact's phone number (10-15 digits)
38
+ end
39
+ end
40
+ end
@@ -9,13 +9,13 @@ module Telnyx
9
9
 
10
10
  # @!attribute billing_address
11
11
  #
12
- # @return [Telnyx::Models::EnterpriseCreateParams::BillingAddress]
13
- required :billing_address, -> { Telnyx::EnterpriseCreateParams::BillingAddress }
12
+ # @return [Telnyx::Models::BillingAddress]
13
+ required :billing_address, -> { Telnyx::BillingAddress }
14
14
 
15
15
  # @!attribute billing_contact
16
16
  #
17
- # @return [Telnyx::Models::EnterpriseCreateParams::BillingContact]
18
- required :billing_contact, -> { Telnyx::EnterpriseCreateParams::BillingContact }
17
+ # @return [Telnyx::Models::BillingContact]
18
+ required :billing_contact, -> { Telnyx::BillingContact }
19
19
 
20
20
  # @!attribute country_code
21
21
  # Country code. Currently only 'US' is accepted.
@@ -64,8 +64,8 @@ module Telnyx
64
64
  # Organization contact information. Note: the response returns this object with
65
65
  # the phone field as 'phone' (not 'phone_number').
66
66
  #
67
- # @return [Telnyx::Models::EnterpriseCreateParams::OrganizationContact]
68
- required :organization_contact, -> { Telnyx::EnterpriseCreateParams::OrganizationContact }
67
+ # @return [Telnyx::Models::OrganizationContact]
68
+ required :organization_contact, -> { Telnyx::OrganizationContact }
69
69
 
70
70
  # @!attribute organization_legal_type
71
71
  # Legal structure type
@@ -75,9 +75,8 @@ module Telnyx
75
75
 
76
76
  # @!attribute organization_physical_address
77
77
  #
78
- # @return [Telnyx::Models::EnterpriseCreateParams::OrganizationPhysicalAddress]
79
- required :organization_physical_address,
80
- -> { Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress }
78
+ # @return [Telnyx::Models::PhysicalAddress]
79
+ required :organization_physical_address, -> { Telnyx::PhysicalAddress }
81
80
 
82
81
  # @!attribute organization_type
83
82
  # Type of organization
@@ -131,9 +130,9 @@ module Telnyx
131
130
  # Some parameter documentations has been truncated, see
132
131
  # {Telnyx::Models::EnterpriseCreateParams} for more details.
133
132
  #
134
- # @param billing_address [Telnyx::Models::EnterpriseCreateParams::BillingAddress]
133
+ # @param billing_address [Telnyx::Models::BillingAddress]
135
134
  #
136
- # @param billing_contact [Telnyx::Models::EnterpriseCreateParams::BillingContact]
135
+ # @param billing_contact [Telnyx::Models::BillingContact]
137
136
  #
138
137
  # @param country_code [String] Country code. Currently only 'US' is accepted.
139
138
  #
@@ -147,11 +146,11 @@ module Telnyx
147
146
  #
148
147
  # @param number_of_employees [Symbol, Telnyx::Models::EnterpriseCreateParams::NumberOfEmployees] Employee count range
149
148
  #
150
- # @param organization_contact [Telnyx::Models::EnterpriseCreateParams::OrganizationContact] Organization contact information. Note: the response returns this object with th
149
+ # @param organization_contact [Telnyx::Models::OrganizationContact] Organization contact information. Note: the response returns this object with th
151
150
  #
152
151
  # @param organization_legal_type [Symbol, Telnyx::Models::EnterpriseCreateParams::OrganizationLegalType] Legal structure type
153
152
  #
154
- # @param organization_physical_address [Telnyx::Models::EnterpriseCreateParams::OrganizationPhysicalAddress]
153
+ # @param organization_physical_address [Telnyx::Models::PhysicalAddress]
155
154
  #
156
155
  # @param organization_type [Symbol, Telnyx::Models::EnterpriseCreateParams::OrganizationType] Type of organization
157
156
  #
@@ -171,92 +170,6 @@ module Telnyx
171
170
  #
172
171
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
173
172
 
174
- class BillingAddress < Telnyx::Internal::Type::BaseModel
175
- # @!attribute administrative_area
176
- # State or province
177
- #
178
- # @return [String]
179
- required :administrative_area, String
180
-
181
- # @!attribute city
182
- # City name
183
- #
184
- # @return [String]
185
- required :city, String
186
-
187
- # @!attribute country
188
- # Country name (e.g., United States)
189
- #
190
- # @return [String]
191
- required :country, String
192
-
193
- # @!attribute postal_code
194
- # ZIP or postal code
195
- #
196
- # @return [String]
197
- required :postal_code, String
198
-
199
- # @!attribute street_address
200
- # Street address
201
- #
202
- # @return [String]
203
- required :street_address, String
204
-
205
- # @!attribute extended_address
206
- # Additional address line (suite, apt, etc.)
207
- #
208
- # @return [String, nil]
209
- optional :extended_address, String, nil?: true
210
-
211
- # @!method initialize(administrative_area:, city:, country:, postal_code:, street_address:, extended_address: nil)
212
- # @param administrative_area [String] State or province
213
- #
214
- # @param city [String] City name
215
- #
216
- # @param country [String] Country name (e.g., United States)
217
- #
218
- # @param postal_code [String] ZIP or postal code
219
- #
220
- # @param street_address [String] Street address
221
- #
222
- # @param extended_address [String, nil] Additional address line (suite, apt, etc.)
223
- end
224
-
225
- class BillingContact < Telnyx::Internal::Type::BaseModel
226
- # @!attribute email
227
- # Contact's email address
228
- #
229
- # @return [String]
230
- required :email, String
231
-
232
- # @!attribute first_name
233
- # Contact's first name
234
- #
235
- # @return [String]
236
- required :first_name, String
237
-
238
- # @!attribute last_name
239
- # Contact's last name
240
- #
241
- # @return [String]
242
- required :last_name, String
243
-
244
- # @!attribute phone_number
245
- # Contact's phone number (10-15 digits)
246
- #
247
- # @return [String]
248
- required :phone_number, String
249
-
250
- # @!method initialize(email:, first_name:, last_name:, phone_number:)
251
- # @param email [String] Contact's email address
252
- #
253
- # @param first_name [String] Contact's first name
254
- #
255
- # @param last_name [String] Contact's last name
256
- #
257
- # @param phone_number [String] Contact's phone number (10-15 digits)
258
- end
259
-
260
173
  # Employee count range
261
174
  module NumberOfEmployees
262
175
  extend Telnyx::Internal::Type::Enum
@@ -273,52 +186,6 @@ module Telnyx
273
186
  # @return [Array<Symbol>]
274
187
  end
275
188
 
276
- class OrganizationContact < Telnyx::Internal::Type::BaseModel
277
- # @!attribute email
278
- # Contact's email address
279
- #
280
- # @return [String]
281
- required :email, String
282
-
283
- # @!attribute first_name
284
- # Contact's first name
285
- #
286
- # @return [String]
287
- required :first_name, String
288
-
289
- # @!attribute job_title
290
- # Contact's job title (required)
291
- #
292
- # @return [String]
293
- required :job_title, String
294
-
295
- # @!attribute last_name
296
- # Contact's last name
297
- #
298
- # @return [String]
299
- required :last_name, String
300
-
301
- # @!attribute phone
302
- # Contact's phone number in E.164 format
303
- #
304
- # @return [String]
305
- required :phone, String
306
-
307
- # @!method initialize(email:, first_name:, job_title:, last_name:, phone:)
308
- # Organization contact information. Note: the response returns this object with
309
- # the phone field as 'phone' (not 'phone_number').
310
- #
311
- # @param email [String] Contact's email address
312
- #
313
- # @param first_name [String] Contact's first name
314
- #
315
- # @param job_title [String] Contact's job title (required)
316
- #
317
- # @param last_name [String] Contact's last name
318
- #
319
- # @param phone [String] Contact's phone number in E.164 format
320
- end
321
-
322
189
  # Legal structure type
323
190
  module OrganizationLegalType
324
191
  extend Telnyx::Internal::Type::Enum
@@ -333,57 +200,6 @@ module Telnyx
333
200
  # @return [Array<Symbol>]
334
201
  end
335
202
 
336
- class OrganizationPhysicalAddress < Telnyx::Internal::Type::BaseModel
337
- # @!attribute administrative_area
338
- # State or province
339
- #
340
- # @return [String]
341
- required :administrative_area, String
342
-
343
- # @!attribute city
344
- # City name
345
- #
346
- # @return [String]
347
- required :city, String
348
-
349
- # @!attribute country
350
- # Country name (e.g., United States)
351
- #
352
- # @return [String]
353
- required :country, String
354
-
355
- # @!attribute postal_code
356
- # ZIP or postal code
357
- #
358
- # @return [String]
359
- required :postal_code, String
360
-
361
- # @!attribute street_address
362
- # Street address
363
- #
364
- # @return [String]
365
- required :street_address, String
366
-
367
- # @!attribute extended_address
368
- # Additional address line (suite, apt, etc.)
369
- #
370
- # @return [String, nil]
371
- optional :extended_address, String, nil?: true
372
-
373
- # @!method initialize(administrative_area:, city:, country:, postal_code:, street_address:, extended_address: nil)
374
- # @param administrative_area [String] State or province
375
- #
376
- # @param city [String] City name
377
- #
378
- # @param country [String] Country name (e.g., United States)
379
- #
380
- # @param postal_code [String] ZIP or postal code
381
- #
382
- # @param street_address [String] Street address
383
- #
384
- # @param extended_address [String, nil] Additional address line (suite, apt, etc.)
385
- end
386
-
387
203
  # Type of organization
388
204
  module OrganizationType
389
205
  extend Telnyx::Internal::Type::Enum