telnyx 5.59.0 → 5.60.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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -8
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/{traffic_policy_profile_list_response.rb → traffic_policy_profile.rb} +5 -5
  5. data/lib/telnyx/models/traffic_policy_profile_create_response.rb +3 -94
  6. data/lib/telnyx/models/traffic_policy_profile_retrieve_response.rb +3 -94
  7. data/lib/telnyx/models/traffic_policy_profile_update_response.rb +3 -94
  8. data/lib/telnyx/models/voice_clone_create_from_upload_response.rb +3 -121
  9. data/lib/telnyx/models/{voice_clone_list_response.rb → voice_clone_data.rb} +10 -10
  10. data/lib/telnyx/models/voice_clone_update_response.rb +3 -119
  11. data/lib/telnyx/models/voice_design_create_response.rb +3 -101
  12. data/lib/telnyx/models/voice_design_data.rb +102 -0
  13. data/lib/telnyx/models/voice_design_retrieve_response.rb +3 -101
  14. data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_upload_response.rb +3 -99
  15. data/lib/telnyx/models/whatsapp/phone_numbers/profile_retrieve_response.rb +3 -99
  16. data/lib/telnyx/models/whatsapp/phone_numbers/profile_update_response.rb +3 -99
  17. data/lib/telnyx/models/whatsapp/phone_numbers/whatsapp_profile_data.rb +104 -0
  18. data/lib/telnyx/models.rb +6 -0
  19. data/lib/telnyx/resources/traffic_policy_profiles.rb +2 -2
  20. data/lib/telnyx/resources/voice_clones.rb +2 -2
  21. data/lib/telnyx/version.rb +1 -1
  22. data/lib/telnyx.rb +5 -2
  23. data/rbi/telnyx/models/{traffic_policy_profile_list_response.rbi → traffic_policy_profile.rbi} +11 -40
  24. data/rbi/telnyx/models/traffic_policy_profile_create_response.rbi +6 -192
  25. data/rbi/telnyx/models/traffic_policy_profile_retrieve_response.rbi +6 -194
  26. data/rbi/telnyx/models/traffic_policy_profile_update_response.rbi +6 -192
  27. data/rbi/telnyx/models/voice_clone_create_from_upload_response.rbi +4 -238
  28. data/rbi/telnyx/models/{voice_clone_list_response.rbi → voice_clone_data.rbi} +17 -62
  29. data/rbi/telnyx/models/voice_clone_update_response.rbi +4 -234
  30. data/rbi/telnyx/models/voice_design_create_response.rbi +4 -197
  31. data/rbi/telnyx/models/voice_design_data.rbi +167 -0
  32. data/rbi/telnyx/models/voice_design_retrieve_response.rbi +4 -197
  33. data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_upload_response.rbi +4 -155
  34. data/rbi/telnyx/models/whatsapp/phone_numbers/profile_retrieve_response.rbi +4 -157
  35. data/rbi/telnyx/models/whatsapp/phone_numbers/profile_update_response.rbi +4 -157
  36. data/rbi/telnyx/models/whatsapp/phone_numbers/whatsapp_profile_data.rbi +155 -0
  37. data/rbi/telnyx/models.rbi +3 -0
  38. data/rbi/telnyx/resources/traffic_policy_profiles.rbi +1 -3
  39. data/rbi/telnyx/resources/voice_clones.rbi +1 -3
  40. data/sig/telnyx/models/{traffic_policy_profile_list_response.rbs → traffic_policy_profile.rbs} +9 -9
  41. data/sig/telnyx/models/traffic_policy_profile_create_response.rbs +5 -98
  42. data/sig/telnyx/models/traffic_policy_profile_retrieve_response.rbs +5 -98
  43. data/sig/telnyx/models/traffic_policy_profile_update_response.rbs +5 -98
  44. data/sig/telnyx/models/voice_clone_create_from_upload_response.rbs +5 -107
  45. data/sig/telnyx/models/{voice_clone_list_response.rbs → voice_clone_data.rbs} +14 -14
  46. data/sig/telnyx/models/voice_clone_update_response.rbs +5 -106
  47. data/sig/telnyx/models/voice_design_create_response.rbs +5 -104
  48. data/sig/telnyx/models/voice_design_data.rbs +97 -0
  49. data/sig/telnyx/models/voice_design_retrieve_response.rbs +5 -106
  50. data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_upload_response.rbs +6 -111
  51. data/sig/telnyx/models/whatsapp/phone_numbers/profile_retrieve_response.rbs +6 -111
  52. data/sig/telnyx/models/whatsapp/phone_numbers/profile_update_response.rbs +6 -111
  53. data/sig/telnyx/models/whatsapp/phone_numbers/whatsapp_profile_data.rbs +110 -0
  54. data/sig/telnyx/models.rbs +6 -0
  55. data/sig/telnyx/resources/traffic_policy_profiles.rbs +1 -1
  56. data/sig/telnyx/resources/voice_clones.rbs +1 -1
  57. metadata +14 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff2a9579527d16c495311572f44f61609005becc0eb8062bfa342bb97be43ba2
4
- data.tar.gz: 8bd424965e38f9c82c70d083f59addc00b99fc85707b431f5628a4e38e12391c
3
+ metadata.gz: 4cc8ec3afb639cdd0d6f194a42803314ec513af449a648d86e41613a89b16740
4
+ data.tar.gz: 51fbe245b539719cc8940981fa18d1248662c4b1dda908a9c03697cc493e7547
5
5
  SHA512:
6
- metadata.gz: f2775eb95017b5dc9ea81d5e7b69284e6f74ed2ddb342c5235f6b33c2218086406584586ec63b8ebffe6d748a0b3306f66b84333080795bc3d839b941f82b00d
7
- data.tar.gz: ecdac5540274b2dd4acfbf37a09f9954d3f86417a115d950dcea0010dfcec163cfbde3417f71d4a81aa113d7be697f2de66d0d22bb9dc84deb151c81a9ede0c6
6
+ metadata.gz: 31a58bbbc11dc812323d36498c1e9f05b857583af031917f4bc9728fbb5f1dd4f4f5735a40a7ce15ce6f36dd7ecce1206d27133a4300cfcf982784bc23f12150
7
+ data.tar.gz: 2a6138c3e6ed88b972db374114d3790913720896d12947302e42a2f536528854baf70f1fca36154b6e5464b30dc3359dc6b268283ec96963a80c464b215928ee
data/CHANGELOG.md CHANGED
@@ -1,20 +1,17 @@
1
1
  # Changelog
2
2
 
3
- ## 5.59.0 (2026-03-19)
3
+ ## 5.60.0 (2026-03-20)
4
4
 
5
- Full Changelog: [v5.58.0...v5.59.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.58.0...v5.59.0)
5
+ Full Changelog: [v5.59.0...v5.60.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.59.0...v5.60.0)
6
6
 
7
7
  ### Features
8
8
 
9
- * **api:** manual updates ([8105361](https://github.com/team-telnyx/telnyx-ruby/commit/81053613aee31cb01061ad1e55c4997d727ff9e8))
10
- * **api:** manual updates ([bd1eab5](https://github.com/team-telnyx/telnyx-ruby/commit/bd1eab5de098d98d53fc00aefc35dbe825fcd825))
11
- * TELAPPS-5668: Add call.cost webhook event documentation ([ad13577](https://github.com/team-telnyx/telnyx-ruby/commit/ad1357775aeffb088773216f099dc0ba7ac667e9))
12
- * **wireless:** add traffic policy profiles endpoints to OpenAPI spec ([9d09743](https://github.com/team-telnyx/telnyx-ruby/commit/9d09743b1ddd22f8a9c296fc19636a0b07137554))
9
+ * **api:** manual updates ([de7ba26](https://github.com/team-telnyx/telnyx-ruby/commit/de7ba26010eaa0b927c15529f8b3b6227cee0b43))
13
10
 
14
11
 
15
- ### Documentation
12
+ ### Chores
16
13
 
17
- * **tts:** Add Telnyx.Ultra model documentation ([fd748f2](https://github.com/team-telnyx/telnyx-ruby/commit/fd748f289da493776d1c1e35322abd2333e0b650))
14
+ * **internal:** version bump ([b889b09](https://github.com/team-telnyx/telnyx-ruby/commit/b889b0938490b818314eb6eac76f92c112f630bc))
18
15
 
19
16
  ## 5.58.0 (2026-03-18)
20
17
 
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.59.0"
27
+ gem "telnyx", "~> 5.60.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -3,7 +3,7 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  # @see Telnyx::Resources::TrafficPolicyProfiles#list
6
- class TrafficPolicyProfileListResponse < Telnyx::Internal::Type::BaseModel
6
+ class TrafficPolicyProfile < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute domains
8
8
  # Array of domain names.
9
9
  #
@@ -31,8 +31,8 @@ module Telnyx
31
31
  # @!attribute type
32
32
  # The type of the traffic policy profile.
33
33
  #
34
- # @return [Symbol, Telnyx::Models::TrafficPolicyProfileListResponse::Type, nil]
35
- optional :type, enum: -> { Telnyx::Models::TrafficPolicyProfileListResponse::Type }
34
+ # @return [Symbol, Telnyx::Models::TrafficPolicyProfile::Type, nil]
35
+ optional :type, enum: -> { Telnyx::TrafficPolicyProfile::Type }
36
36
 
37
37
  response_only do
38
38
  # @!attribute id
@@ -74,13 +74,13 @@ module Telnyx
74
74
  #
75
75
  # @param services [Array<String>] Array of PCEF service IDs included in the profile.
76
76
  #
77
- # @param type [Symbol, Telnyx::Models::TrafficPolicyProfileListResponse::Type] The type of the traffic policy profile.
77
+ # @param type [Symbol, Telnyx::Models::TrafficPolicyProfile::Type] The type of the traffic policy profile.
78
78
  #
79
79
  # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
80
80
 
81
81
  # The type of the traffic policy profile.
82
82
  #
83
- # @see Telnyx::Models::TrafficPolicyProfileListResponse#type
83
+ # @see Telnyx::Models::TrafficPolicyProfile#type
84
84
  module Type
85
85
  extend Telnyx::Internal::Type::Enum
86
86
 
@@ -6,102 +6,11 @@ module Telnyx
6
6
  class TrafficPolicyProfileCreateResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::TrafficPolicyProfileCreateResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::TrafficPolicyProfileCreateResponse::Data }
9
+ # @return [Telnyx::Models::TrafficPolicyProfile, nil]
10
+ optional :data, -> { Telnyx::TrafficPolicyProfile }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::TrafficPolicyProfileCreateResponse::Data]
14
-
15
- # @see Telnyx::Models::TrafficPolicyProfileCreateResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
17
- # @!attribute domains
18
- # Array of domain names.
19
- #
20
- # @return [Array<String>, nil]
21
- optional :domains, Telnyx::Internal::Type::ArrayOf[String]
22
-
23
- # @!attribute ip_ranges
24
- # Array of IP ranges in CIDR notation.
25
- #
26
- # @return [Array<String>, nil]
27
- optional :ip_ranges, Telnyx::Internal::Type::ArrayOf[String]
28
-
29
- # @!attribute limit_bw_kbps
30
- # Bandwidth limit in kbps.
31
- #
32
- # @return [Integer, nil]
33
- optional :limit_bw_kbps, Integer, nil?: true
34
-
35
- # @!attribute services
36
- # Array of PCEF service IDs included in the profile.
37
- #
38
- # @return [Array<String>, nil]
39
- optional :services, Telnyx::Internal::Type::ArrayOf[String]
40
-
41
- # @!attribute type
42
- # The type of the traffic policy profile.
43
- #
44
- # @return [Symbol, Telnyx::Models::TrafficPolicyProfileCreateResponse::Data::Type, nil]
45
- optional :type, enum: -> { Telnyx::Models::TrafficPolicyProfileCreateResponse::Data::Type }
46
-
47
- response_only do
48
- # @!attribute id
49
- # Identifies the resource.
50
- #
51
- # @return [String, nil]
52
- optional :id, String
53
-
54
- # @!attribute created_at
55
- # ISO 8601 formatted date-time indicating when the resource was created.
56
- #
57
- # @return [String, nil]
58
- optional :created_at, String
59
-
60
- # @!attribute record_type
61
- #
62
- # @return [String, nil]
63
- optional :record_type, String
64
-
65
- # @!attribute updated_at
66
- # ISO 8601 formatted date-time indicating when the resource was updated.
67
- #
68
- # @return [String, nil]
69
- optional :updated_at, String
70
- end
71
-
72
- # @!method initialize(id: nil, created_at: nil, domains: nil, ip_ranges: nil, limit_bw_kbps: nil, record_type: nil, services: nil, type: nil, updated_at: nil)
73
- # @param id [String] Identifies the resource.
74
- #
75
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
76
- #
77
- # @param domains [Array<String>] Array of domain names.
78
- #
79
- # @param ip_ranges [Array<String>] Array of IP ranges in CIDR notation.
80
- #
81
- # @param limit_bw_kbps [Integer, nil] Bandwidth limit in kbps.
82
- #
83
- # @param record_type [String]
84
- #
85
- # @param services [Array<String>] Array of PCEF service IDs included in the profile.
86
- #
87
- # @param type [Symbol, Telnyx::Models::TrafficPolicyProfileCreateResponse::Data::Type] The type of the traffic policy profile.
88
- #
89
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
90
-
91
- # The type of the traffic policy profile.
92
- #
93
- # @see Telnyx::Models::TrafficPolicyProfileCreateResponse::Data#type
94
- module Type
95
- extend Telnyx::Internal::Type::Enum
96
-
97
- WHITELIST = :whitelist
98
- BLACKLIST = :blacklist
99
- THROTTLING = :throttling
100
-
101
- # @!method self.values
102
- # @return [Array<Symbol>]
103
- end
104
- end
13
+ # @param data [Telnyx::Models::TrafficPolicyProfile]
105
14
  end
106
15
  end
107
16
  end
@@ -6,102 +6,11 @@ module Telnyx
6
6
  class TrafficPolicyProfileRetrieveResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::TrafficPolicyProfileRetrieveResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::TrafficPolicyProfileRetrieveResponse::Data }
9
+ # @return [Telnyx::Models::TrafficPolicyProfile, nil]
10
+ optional :data, -> { Telnyx::TrafficPolicyProfile }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::TrafficPolicyProfileRetrieveResponse::Data]
14
-
15
- # @see Telnyx::Models::TrafficPolicyProfileRetrieveResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
17
- # @!attribute domains
18
- # Array of domain names.
19
- #
20
- # @return [Array<String>, nil]
21
- optional :domains, Telnyx::Internal::Type::ArrayOf[String]
22
-
23
- # @!attribute ip_ranges
24
- # Array of IP ranges in CIDR notation.
25
- #
26
- # @return [Array<String>, nil]
27
- optional :ip_ranges, Telnyx::Internal::Type::ArrayOf[String]
28
-
29
- # @!attribute limit_bw_kbps
30
- # Bandwidth limit in kbps.
31
- #
32
- # @return [Integer, nil]
33
- optional :limit_bw_kbps, Integer, nil?: true
34
-
35
- # @!attribute services
36
- # Array of PCEF service IDs included in the profile.
37
- #
38
- # @return [Array<String>, nil]
39
- optional :services, Telnyx::Internal::Type::ArrayOf[String]
40
-
41
- # @!attribute type
42
- # The type of the traffic policy profile.
43
- #
44
- # @return [Symbol, Telnyx::Models::TrafficPolicyProfileRetrieveResponse::Data::Type, nil]
45
- optional :type, enum: -> { Telnyx::Models::TrafficPolicyProfileRetrieveResponse::Data::Type }
46
-
47
- response_only do
48
- # @!attribute id
49
- # Identifies the resource.
50
- #
51
- # @return [String, nil]
52
- optional :id, String
53
-
54
- # @!attribute created_at
55
- # ISO 8601 formatted date-time indicating when the resource was created.
56
- #
57
- # @return [String, nil]
58
- optional :created_at, String
59
-
60
- # @!attribute record_type
61
- #
62
- # @return [String, nil]
63
- optional :record_type, String
64
-
65
- # @!attribute updated_at
66
- # ISO 8601 formatted date-time indicating when the resource was updated.
67
- #
68
- # @return [String, nil]
69
- optional :updated_at, String
70
- end
71
-
72
- # @!method initialize(id: nil, created_at: nil, domains: nil, ip_ranges: nil, limit_bw_kbps: nil, record_type: nil, services: nil, type: nil, updated_at: nil)
73
- # @param id [String] Identifies the resource.
74
- #
75
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
76
- #
77
- # @param domains [Array<String>] Array of domain names.
78
- #
79
- # @param ip_ranges [Array<String>] Array of IP ranges in CIDR notation.
80
- #
81
- # @param limit_bw_kbps [Integer, nil] Bandwidth limit in kbps.
82
- #
83
- # @param record_type [String]
84
- #
85
- # @param services [Array<String>] Array of PCEF service IDs included in the profile.
86
- #
87
- # @param type [Symbol, Telnyx::Models::TrafficPolicyProfileRetrieveResponse::Data::Type] The type of the traffic policy profile.
88
- #
89
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
90
-
91
- # The type of the traffic policy profile.
92
- #
93
- # @see Telnyx::Models::TrafficPolicyProfileRetrieveResponse::Data#type
94
- module Type
95
- extend Telnyx::Internal::Type::Enum
96
-
97
- WHITELIST = :whitelist
98
- BLACKLIST = :blacklist
99
- THROTTLING = :throttling
100
-
101
- # @!method self.values
102
- # @return [Array<Symbol>]
103
- end
104
- end
13
+ # @param data [Telnyx::Models::TrafficPolicyProfile]
105
14
  end
106
15
  end
107
16
  end
@@ -6,102 +6,11 @@ module Telnyx
6
6
  class TrafficPolicyProfileUpdateResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::TrafficPolicyProfileUpdateResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::TrafficPolicyProfileUpdateResponse::Data }
9
+ # @return [Telnyx::Models::TrafficPolicyProfile, nil]
10
+ optional :data, -> { Telnyx::TrafficPolicyProfile }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::TrafficPolicyProfileUpdateResponse::Data]
14
-
15
- # @see Telnyx::Models::TrafficPolicyProfileUpdateResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
17
- # @!attribute domains
18
- # Array of domain names.
19
- #
20
- # @return [Array<String>, nil]
21
- optional :domains, Telnyx::Internal::Type::ArrayOf[String]
22
-
23
- # @!attribute ip_ranges
24
- # Array of IP ranges in CIDR notation.
25
- #
26
- # @return [Array<String>, nil]
27
- optional :ip_ranges, Telnyx::Internal::Type::ArrayOf[String]
28
-
29
- # @!attribute limit_bw_kbps
30
- # Bandwidth limit in kbps.
31
- #
32
- # @return [Integer, nil]
33
- optional :limit_bw_kbps, Integer, nil?: true
34
-
35
- # @!attribute services
36
- # Array of PCEF service IDs included in the profile.
37
- #
38
- # @return [Array<String>, nil]
39
- optional :services, Telnyx::Internal::Type::ArrayOf[String]
40
-
41
- # @!attribute type
42
- # The type of the traffic policy profile.
43
- #
44
- # @return [Symbol, Telnyx::Models::TrafficPolicyProfileUpdateResponse::Data::Type, nil]
45
- optional :type, enum: -> { Telnyx::Models::TrafficPolicyProfileUpdateResponse::Data::Type }
46
-
47
- response_only do
48
- # @!attribute id
49
- # Identifies the resource.
50
- #
51
- # @return [String, nil]
52
- optional :id, String
53
-
54
- # @!attribute created_at
55
- # ISO 8601 formatted date-time indicating when the resource was created.
56
- #
57
- # @return [String, nil]
58
- optional :created_at, String
59
-
60
- # @!attribute record_type
61
- #
62
- # @return [String, nil]
63
- optional :record_type, String
64
-
65
- # @!attribute updated_at
66
- # ISO 8601 formatted date-time indicating when the resource was updated.
67
- #
68
- # @return [String, nil]
69
- optional :updated_at, String
70
- end
71
-
72
- # @!method initialize(id: nil, created_at: nil, domains: nil, ip_ranges: nil, limit_bw_kbps: nil, record_type: nil, services: nil, type: nil, updated_at: nil)
73
- # @param id [String] Identifies the resource.
74
- #
75
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
76
- #
77
- # @param domains [Array<String>] Array of domain names.
78
- #
79
- # @param ip_ranges [Array<String>] Array of IP ranges in CIDR notation.
80
- #
81
- # @param limit_bw_kbps [Integer, nil] Bandwidth limit in kbps.
82
- #
83
- # @param record_type [String]
84
- #
85
- # @param services [Array<String>] Array of PCEF service IDs included in the profile.
86
- #
87
- # @param type [Symbol, Telnyx::Models::TrafficPolicyProfileUpdateResponse::Data::Type] The type of the traffic policy profile.
88
- #
89
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
90
-
91
- # The type of the traffic policy profile.
92
- #
93
- # @see Telnyx::Models::TrafficPolicyProfileUpdateResponse::Data#type
94
- module Type
95
- extend Telnyx::Internal::Type::Enum
96
-
97
- WHITELIST = :whitelist
98
- BLACKLIST = :blacklist
99
- THROTTLING = :throttling
100
-
101
- # @!method self.values
102
- # @return [Array<Symbol>]
103
- end
104
- end
13
+ # @param data [Telnyx::Models::TrafficPolicyProfile]
105
14
  end
106
15
  end
107
16
  end
@@ -7,131 +7,13 @@ module Telnyx
7
7
  # @!attribute data
8
8
  # A voice clone object.
9
9
  #
10
- # @return [Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data, nil]
11
- optional :data, -> { Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data }
10
+ # @return [Telnyx::Models::VoiceCloneData, nil]
11
+ optional :data, -> { Telnyx::VoiceCloneData }
12
12
 
13
13
  # @!method initialize(data: nil)
14
14
  # Response envelope for a single voice clone.
15
15
  #
16
- # @param data [Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data] A voice clone object.
17
-
18
- # @see Telnyx::Models::VoiceCloneCreateFromUploadResponse#data
19
- class Data < Telnyx::Internal::Type::BaseModel
20
- # @!attribute id
21
- # Unique identifier for the voice clone.
22
- #
23
- # @return [String, nil]
24
- optional :id, String
25
-
26
- # @!attribute created_at
27
- # Timestamp when the voice clone was created.
28
- #
29
- # @return [Time, nil]
30
- optional :created_at, Time
31
-
32
- # @!attribute gender
33
- # Gender of the voice clone.
34
- #
35
- # @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data::Gender, nil]
36
- optional :gender,
37
- enum: -> { Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data::Gender },
38
- nil?: true
39
-
40
- # @!attribute label
41
- # Voice style description. If not explicitly set on upload, falls back to the
42
- # source design's prompt text.
43
- #
44
- # @return [String, nil]
45
- optional :label, String, nil?: true
46
-
47
- # @!attribute language
48
- # ISO 639-1 language code of the voice clone.
49
- #
50
- # @return [String, nil]
51
- optional :language, String, nil?: true
52
-
53
- # @!attribute name
54
- # Name of the voice clone.
55
- #
56
- # @return [String, nil]
57
- optional :name, String
58
-
59
- # @!attribute record_type
60
- # Identifies the resource type.
61
- #
62
- # @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data::RecordType, nil]
63
- optional :record_type, enum: -> { Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data::RecordType }
64
-
65
- # @!attribute source_voice_design_id
66
- # UUID of the source voice design. `null` for upload-based clones.
67
- #
68
- # @return [String, nil]
69
- optional :source_voice_design_id, String, nil?: true
70
-
71
- # @!attribute source_voice_design_version
72
- # Version of the source voice design used. `null` for upload-based clones.
73
- #
74
- # @return [Integer, nil]
75
- optional :source_voice_design_version, Integer, nil?: true
76
-
77
- # @!attribute updated_at
78
- # Timestamp when the voice clone was last updated.
79
- #
80
- # @return [Time, nil]
81
- optional :updated_at, Time
82
-
83
- # @!method initialize(id: nil, created_at: nil, gender: nil, label: nil, language: nil, name: nil, record_type: nil, source_voice_design_id: nil, source_voice_design_version: nil, updated_at: nil)
84
- # Some parameter documentations has been truncated, see
85
- # {Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data} for more details.
86
- #
87
- # A voice clone object.
88
- #
89
- # @param id [String] Unique identifier for the voice clone.
90
- #
91
- # @param created_at [Time] Timestamp when the voice clone was created.
92
- #
93
- # @param gender [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data::Gender, nil] Gender of the voice clone.
94
- #
95
- # @param label [String, nil] Voice style description. If not explicitly set on upload, falls back to the sour
96
- #
97
- # @param language [String, nil] ISO 639-1 language code of the voice clone.
98
- #
99
- # @param name [String] Name of the voice clone.
100
- #
101
- # @param record_type [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data::RecordType] Identifies the resource type.
102
- #
103
- # @param source_voice_design_id [String, nil] UUID of the source voice design. `null` for upload-based clones.
104
- #
105
- # @param source_voice_design_version [Integer, nil] Version of the source voice design used. `null` for upload-based clones.
106
- #
107
- # @param updated_at [Time] Timestamp when the voice clone was last updated.
108
-
109
- # Gender of the voice clone.
110
- #
111
- # @see Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data#gender
112
- module Gender
113
- extend Telnyx::Internal::Type::Enum
114
-
115
- MALE = :male
116
- FEMALE = :female
117
- NEUTRAL = :neutral
118
-
119
- # @!method self.values
120
- # @return [Array<Symbol>]
121
- end
122
-
123
- # Identifies the resource type.
124
- #
125
- # @see Telnyx::Models::VoiceCloneCreateFromUploadResponse::Data#record_type
126
- module RecordType
127
- extend Telnyx::Internal::Type::Enum
128
-
129
- VOICE_CLONE = :voice_clone
130
-
131
- # @!method self.values
132
- # @return [Array<Symbol>]
133
- end
134
- end
16
+ # @param data [Telnyx::Models::VoiceCloneData] A voice clone object.
135
17
  end
136
18
  end
137
19
  end
@@ -3,7 +3,7 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  # @see Telnyx::Resources::VoiceClones#list
6
- class VoiceCloneListResponse < Telnyx::Internal::Type::BaseModel
6
+ class VoiceCloneData < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute id
8
8
  # Unique identifier for the voice clone.
9
9
  #
@@ -19,8 +19,8 @@ module Telnyx
19
19
  # @!attribute gender
20
20
  # Gender of the voice clone.
21
21
  #
22
- # @return [Symbol, Telnyx::Models::VoiceCloneListResponse::Gender, nil]
23
- optional :gender, enum: -> { Telnyx::Models::VoiceCloneListResponse::Gender }, nil?: true
22
+ # @return [Symbol, Telnyx::Models::VoiceCloneData::Gender, nil]
23
+ optional :gender, enum: -> { Telnyx::VoiceCloneData::Gender }, nil?: true
24
24
 
25
25
  # @!attribute label
26
26
  # Voice style description. If not explicitly set on upload, falls back to the
@@ -44,8 +44,8 @@ module Telnyx
44
44
  # @!attribute record_type
45
45
  # Identifies the resource type.
46
46
  #
47
- # @return [Symbol, Telnyx::Models::VoiceCloneListResponse::RecordType, nil]
48
- optional :record_type, enum: -> { Telnyx::Models::VoiceCloneListResponse::RecordType }
47
+ # @return [Symbol, Telnyx::Models::VoiceCloneData::RecordType, nil]
48
+ optional :record_type, enum: -> { Telnyx::VoiceCloneData::RecordType }
49
49
 
50
50
  # @!attribute source_voice_design_id
51
51
  # UUID of the source voice design. `null` for upload-based clones.
@@ -67,7 +67,7 @@ module Telnyx
67
67
 
68
68
  # @!method initialize(id: nil, created_at: nil, gender: nil, label: nil, language: nil, name: nil, record_type: nil, source_voice_design_id: nil, source_voice_design_version: nil, updated_at: nil)
69
69
  # Some parameter documentations has been truncated, see
70
- # {Telnyx::Models::VoiceCloneListResponse} for more details.
70
+ # {Telnyx::Models::VoiceCloneData} for more details.
71
71
  #
72
72
  # A voice clone object.
73
73
  #
@@ -75,7 +75,7 @@ module Telnyx
75
75
  #
76
76
  # @param created_at [Time] Timestamp when the voice clone was created.
77
77
  #
78
- # @param gender [Symbol, Telnyx::Models::VoiceCloneListResponse::Gender, nil] Gender of the voice clone.
78
+ # @param gender [Symbol, Telnyx::Models::VoiceCloneData::Gender, nil] Gender of the voice clone.
79
79
  #
80
80
  # @param label [String, nil] Voice style description. If not explicitly set on upload, falls back to the sour
81
81
  #
@@ -83,7 +83,7 @@ module Telnyx
83
83
  #
84
84
  # @param name [String] Name of the voice clone.
85
85
  #
86
- # @param record_type [Symbol, Telnyx::Models::VoiceCloneListResponse::RecordType] Identifies the resource type.
86
+ # @param record_type [Symbol, Telnyx::Models::VoiceCloneData::RecordType] Identifies the resource type.
87
87
  #
88
88
  # @param source_voice_design_id [String, nil] UUID of the source voice design. `null` for upload-based clones.
89
89
  #
@@ -93,7 +93,7 @@ module Telnyx
93
93
 
94
94
  # Gender of the voice clone.
95
95
  #
96
- # @see Telnyx::Models::VoiceCloneListResponse#gender
96
+ # @see Telnyx::Models::VoiceCloneData#gender
97
97
  module Gender
98
98
  extend Telnyx::Internal::Type::Enum
99
99
 
@@ -107,7 +107,7 @@ module Telnyx
107
107
 
108
108
  # Identifies the resource type.
109
109
  #
110
- # @see Telnyx::Models::VoiceCloneListResponse#record_type
110
+ # @see Telnyx::Models::VoiceCloneData#record_type
111
111
  module RecordType
112
112
  extend Telnyx::Internal::Type::Enum
113
113