telnyx 5.128.0 → 5.130.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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +5 -5
  5. data/lib/telnyx/models/call_dial_params.rb +70 -3
  6. data/lib/telnyx/models/calls/action_answer_params.rb +70 -3
  7. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +2 -1
  8. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +37 -2
  9. data/lib/telnyx/models/calls/action_speak_params.rb +37 -2
  10. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +2 -1
  11. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +104 -4
  12. data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +6 -0
  13. data/lib/telnyx/models/conferences/action_speak_params.rb +37 -2
  14. data/lib/telnyx/models/enterprises/reputation/{remediation_create_params.rb → remediation_submit_params.rb} +3 -3
  15. data/lib/telnyx/models/enterprises/reputation/{remediation_create_response.rb → remediation_submit_response.rb} +15 -15
  16. data/lib/telnyx/models/{terms_of_service_retrieve_info_params.rb → terms_of_service_info_params.rb} +5 -5
  17. data/lib/telnyx/models/{terms_of_service_retrieve_info_response.rb → terms_of_service_info_response.rb} +9 -10
  18. data/lib/telnyx/models.rb +1 -1
  19. data/lib/telnyx/resources/enterprises/dir.rb +0 -12
  20. data/lib/telnyx/resources/enterprises/reputation/remediation.rb +41 -41
  21. data/lib/telnyx/resources/enterprises.rb +0 -4
  22. data/lib/telnyx/resources/terms_of_service.rb +7 -7
  23. data/lib/telnyx/version.rb +1 -1
  24. data/lib/telnyx.rb +4 -8
  25. data/rbi/telnyx/client.rbi +4 -4
  26. data/rbi/telnyx/models/call_dial_params.rbi +174 -6
  27. data/rbi/telnyx/models/calls/action_answer_params.rbi +174 -6
  28. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +4 -2
  29. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +91 -4
  30. data/rbi/telnyx/models/calls/action_speak_params.rbi +91 -4
  31. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +4 -2
  32. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +259 -8
  33. data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +30 -0
  34. data/rbi/telnyx/models/conferences/action_speak_params.rbi +91 -4
  35. data/rbi/telnyx/models/enterprises/reputation/{remediation_create_params.rbi → remediation_submit_params.rbi} +2 -2
  36. data/rbi/telnyx/models/enterprises/reputation/{remediation_create_response.rbi → remediation_submit_response.rbi} +22 -22
  37. data/rbi/telnyx/models/{terms_of_service_retrieve_info_params.rbi → terms_of_service_info_params.rbi} +10 -17
  38. data/rbi/telnyx/models/{terms_of_service_retrieve_info_response.rbi → terms_of_service_info_response.rbi} +15 -19
  39. data/rbi/telnyx/models.rbi +1 -2
  40. data/rbi/telnyx/resources/calls/actions.rbi +12 -5
  41. data/rbi/telnyx/resources/conferences/actions.rbi +3 -1
  42. data/rbi/telnyx/resources/enterprises/dir.rbi +0 -9
  43. data/rbi/telnyx/resources/enterprises/reputation/remediation.rbi +36 -36
  44. data/rbi/telnyx/resources/enterprises.rbi +0 -3
  45. data/rbi/telnyx/resources/terms_of_service.rbi +3 -4
  46. data/sig/telnyx/client.rbs +2 -2
  47. data/sig/telnyx/models/call_dial_params.rbs +62 -6
  48. data/sig/telnyx/models/calls/action_answer_params.rbs +62 -6
  49. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +31 -3
  50. data/sig/telnyx/models/calls/action_speak_params.rbs +31 -3
  51. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +93 -9
  52. data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +16 -1
  53. data/sig/telnyx/models/conferences/action_speak_params.rbs +31 -3
  54. data/sig/telnyx/models/enterprises/reputation/{remediation_create_params.rbs → remediation_submit_params.rbs} +2 -2
  55. data/sig/telnyx/models/enterprises/reputation/{remediation_create_response.rbs → remediation_submit_response.rbs} +15 -15
  56. data/sig/telnyx/models/{terms_of_service_retrieve_info_params.rbs → terms_of_service_info_params.rbs} +9 -11
  57. data/sig/telnyx/models/{terms_of_service_retrieve_info_response.rbs → terms_of_service_info_response.rbs} +15 -15
  58. data/sig/telnyx/models.rbs +1 -1
  59. data/sig/telnyx/resources/enterprises/dir.rbs +0 -6
  60. data/sig/telnyx/resources/enterprises/reputation/remediation.rbs +9 -9
  61. data/sig/telnyx/resources/enterprises.rbs +0 -2
  62. data/sig/telnyx/resources/terms_of_service.rbs +3 -3
  63. metadata +14 -26
  64. data/lib/telnyx/resources/enterprises/dir/comments.rb +0 -18
  65. data/lib/telnyx/resources/enterprises/dir/phone_number_batches.rb +0 -18
  66. data/lib/telnyx/resources/enterprises/dir/phone_numbers.rb +0 -18
  67. data/lib/telnyx/resources/enterprises/usage.rb +0 -16
  68. data/rbi/telnyx/resources/enterprises/dir/comments.rbi +0 -16
  69. data/rbi/telnyx/resources/enterprises/dir/phone_number_batches.rbi +0 -16
  70. data/rbi/telnyx/resources/enterprises/dir/phone_numbers.rbi +0 -16
  71. data/rbi/telnyx/resources/enterprises/usage.rbi +0 -14
  72. data/sig/telnyx/resources/enterprises/dir/comments.rbs +0 -11
  73. data/sig/telnyx/resources/enterprises/dir/phone_number_batches.rbs +0 -11
  74. data/sig/telnyx/resources/enterprises/dir/phone_numbers.rbs +0 -11
  75. data/sig/telnyx/resources/enterprises/usage.rbs +0 -9
@@ -4,18 +4,18 @@ module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
6
  module Reputation
7
- # @see Telnyx::Resources::Enterprises::Reputation::Remediation#create
8
- class RemediationCreateResponse < Telnyx::Internal::Type::BaseModel
7
+ # @see Telnyx::Resources::Enterprises::Reputation::Remediation#submit
8
+ class RemediationSubmitResponse < Telnyx::Internal::Type::BaseModel
9
9
  # @!attribute data
10
10
  # Full detail of a remediation request, returned on submit and GET by id.
11
11
  #
12
- # @return [Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data]
13
- required :data, -> { Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data }
12
+ # @return [Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data]
13
+ required :data, -> { Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data }
14
14
 
15
15
  # @!method initialize(data:)
16
- # @param data [Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data] Full detail of a remediation request, returned on submit and GET by id.
16
+ # @param data [Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data] Full detail of a remediation request, returned on submit and GET by id.
17
17
 
18
- # @see Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse#data
18
+ # @see Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse#data
19
19
  class Data < Telnyx::Internal::Type::BaseModel
20
20
  # @!attribute id
21
21
  #
@@ -55,9 +55,9 @@ module Telnyx
55
55
  # @!attribute status
56
56
  # Customer-facing status of a remediation request.
57
57
  #
58
- # @return [Symbol, Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status]
58
+ # @return [Symbol, Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status]
59
59
  required :status,
60
- enum: -> { Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status }
60
+ enum: -> { Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status }
61
61
 
62
62
  # @!attribute updated_at
63
63
  #
@@ -73,9 +73,9 @@ module Telnyx
73
73
  # Per-category buckets. Populated once results are available. Null while the
74
74
  # request is still pending.
75
75
  #
76
- # @return [Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Results, nil]
76
+ # @return [Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results, nil]
77
77
  optional :results,
78
- -> { Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Results },
78
+ -> { Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results },
79
79
  nil?: true
80
80
 
81
81
  # @!attribute tier1_completed_at
@@ -95,7 +95,7 @@ module Telnyx
95
95
 
96
96
  # @!method initialize(id:, call_purpose:, created_at:, phone_numbers_count:, phone_numbers_ineligible:, phone_numbers_submitted:, status:, updated_at:, contact_email: nil, results: nil, tier1_completed_at: nil, tier2_completed_at: nil, webhook_url: nil)
97
97
  # Some parameter documentations has been truncated, see
98
- # {Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data} for
98
+ # {Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data} for
99
99
  # more details.
100
100
  #
101
101
  # Full detail of a remediation request, returned on submit and GET by id.
@@ -112,13 +112,13 @@ module Telnyx
112
112
  #
113
113
  # @param phone_numbers_submitted [Integer] Numbers accepted for remediation, i.e. not rejected as ineligible. Counts number
114
114
  #
115
- # @param status [Symbol, Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status] Customer-facing status of a remediation request.
115
+ # @param status [Symbol, Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status] Customer-facing status of a remediation request.
116
116
  #
117
117
  # @param updated_at [Time]
118
118
  #
119
119
  # @param contact_email [String, nil]
120
120
  #
121
- # @param results [Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Results, nil] Per-category buckets. Populated once results are available. Null while the reque
121
+ # @param results [Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results, nil] Per-category buckets. Populated once results are available. Null while the reque
122
122
  #
123
123
  # @param tier1_completed_at [Time, nil]
124
124
  #
@@ -128,7 +128,7 @@ module Telnyx
128
128
 
129
129
  # Customer-facing status of a remediation request.
130
130
  #
131
- # @see Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data#status
131
+ # @see Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data#status
132
132
  module Status
133
133
  extend Telnyx::Internal::Type::Enum
134
134
 
@@ -142,7 +142,7 @@ module Telnyx
142
142
  # @return [Array<Symbol>]
143
143
  end
144
144
 
145
- # @see Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data#results
145
+ # @see Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data#results
146
146
  class Results < Telnyx::Internal::Type::BaseModel
147
147
  # @!attribute ineligible
148
148
  #
@@ -2,19 +2,19 @@
2
2
 
3
3
  module Telnyx
4
4
  module Models
5
- # @see Telnyx::Resources::TermsOfService#retrieve_info
6
- class TermsOfServiceRetrieveInfoParams < Telnyx::Internal::Type::BaseModel
5
+ # @see Telnyx::Resources::TermsOfService#info
6
+ class TermsOfServiceInfoParams < Telnyx::Internal::Type::BaseModel
7
7
  extend Telnyx::Internal::Type::RequestParameters::Converter
8
8
  include Telnyx::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute product_type
11
11
  # Optional product filter. Omit to return info for all products.
12
12
  #
13
- # @return [Symbol, Telnyx::Models::TermsOfServiceRetrieveInfoParams::ProductType, nil]
14
- optional :product_type, enum: -> { Telnyx::TermsOfServiceRetrieveInfoParams::ProductType }
13
+ # @return [Symbol, Telnyx::Models::TermsOfServiceInfoParams::ProductType, nil]
14
+ optional :product_type, enum: -> { Telnyx::TermsOfServiceInfoParams::ProductType }
15
15
 
16
16
  # @!method initialize(product_type: nil, request_options: {})
17
- # @param product_type [Symbol, Telnyx::Models::TermsOfServiceRetrieveInfoParams::ProductType] Optional product filter. Omit to return info for all products.
17
+ # @param product_type [Symbol, Telnyx::Models::TermsOfServiceInfoParams::ProductType] Optional product filter. Omit to return info for all products.
18
18
  #
19
19
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
20
20
 
@@ -2,16 +2,16 @@
2
2
 
3
3
  module Telnyx
4
4
  module Models
5
- # @see Telnyx::Resources::TermsOfService#retrieve_info
6
- class TermsOfServiceRetrieveInfoResponse < Telnyx::Internal::Type::BaseModel
5
+ # @see Telnyx::Resources::TermsOfService#info
6
+ class TermsOfServiceInfoResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute agreements
8
8
  #
9
- # @return [Array<Telnyx::Models::TermsOfServiceRetrieveInfoResponse::Agreement>, nil]
9
+ # @return [Array<Telnyx::Models::TermsOfServiceInfoResponse::Agreement>, nil]
10
10
  optional :agreements,
11
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::TermsOfServiceRetrieveInfoResponse::Agreement] }
11
+ -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::TermsOfServiceInfoResponse::Agreement] }
12
12
 
13
13
  # @!method initialize(agreements: nil)
14
- # @param agreements [Array<Telnyx::Models::TermsOfServiceRetrieveInfoResponse::Agreement>]
14
+ # @param agreements [Array<Telnyx::Models::TermsOfServiceInfoResponse::Agreement>]
15
15
 
16
16
  class Agreement < Telnyx::Internal::Type::BaseModel
17
17
  # @!attribute current_version
@@ -32,9 +32,8 @@ module Telnyx
32
32
  # @!attribute product_type
33
33
  # Telnyx product the Terms of Service apply to.
34
34
  #
35
- # @return [Symbol, Telnyx::Models::TermsOfServiceRetrieveInfoResponse::Agreement::ProductType, nil]
36
- optional :product_type,
37
- enum: -> { Telnyx::Models::TermsOfServiceRetrieveInfoResponse::Agreement::ProductType }
35
+ # @return [Symbol, Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType, nil]
36
+ optional :product_type, enum: -> { Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType }
38
37
 
39
38
  # @!attribute terms_url
40
39
  #
@@ -48,13 +47,13 @@ module Telnyx
48
47
  #
49
48
  # @param effective_date [Date]
50
49
  #
51
- # @param product_type [Symbol, Telnyx::Models::TermsOfServiceRetrieveInfoResponse::Agreement::ProductType] Telnyx product the Terms of Service apply to.
50
+ # @param product_type [Symbol, Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType] Telnyx product the Terms of Service apply to.
52
51
  #
53
52
  # @param terms_url [String]
54
53
 
55
54
  # Telnyx product the Terms of Service apply to.
56
55
  #
57
- # @see Telnyx::Models::TermsOfServiceRetrieveInfoResponse::Agreement#product_type
56
+ # @see Telnyx::Models::TermsOfServiceInfoResponse::Agreement#product_type
58
57
  module ProductType
59
58
  extend Telnyx::Internal::Type::Enum
60
59
 
data/lib/telnyx/models.rb CHANGED
@@ -1612,7 +1612,7 @@ module Telnyx
1612
1612
 
1613
1613
  TermsOfService = Telnyx::Models::TermsOfService
1614
1614
 
1615
- TermsOfServiceRetrieveInfoParams = Telnyx::Models::TermsOfServiceRetrieveInfoParams
1615
+ TermsOfServiceInfoParams = Telnyx::Models::TermsOfServiceInfoParams
1616
1616
 
1617
1617
  TermsOfServiceStatusParams = Telnyx::Models::TermsOfServiceStatusParams
1618
1618
 
@@ -6,15 +6,6 @@ module Telnyx
6
6
  # A Display Identity Record (DIR) is the verified calling identity (display name,
7
7
  # logo, call reasons) shown to recipients on outbound calls.
8
8
  class Dir
9
- # @return [Telnyx::Resources::Enterprises::Dir::Comments]
10
- attr_reader :comments
11
-
12
- # @return [Telnyx::Resources::Enterprises::Dir::PhoneNumberBatches]
13
- attr_reader :phone_number_batches
14
-
15
- # @return [Telnyx::Resources::Enterprises::Dir::PhoneNumbers]
16
- attr_reader :phone_numbers
17
-
18
9
  # Some parameter documentations has been truncated, see
19
10
  # {Telnyx::Models::Enterprises::DirCreateParams} for more details.
20
11
  #
@@ -151,9 +142,6 @@ module Telnyx
151
142
  # @param client [Telnyx::Client]
152
143
  def initialize(client:)
153
144
  @client = client
154
- @comments = Telnyx::Resources::Enterprises::Dir::Comments.new(client: client)
155
- @phone_number_batches = Telnyx::Resources::Enterprises::Dir::PhoneNumberBatches.new(client: client)
156
- @phone_numbers = Telnyx::Resources::Enterprises::Dir::PhoneNumbers.new(client: client)
157
145
  end
158
146
  end
159
147
  end
@@ -6,47 +6,6 @@ module Telnyx
6
6
  class Reputation
7
7
  # Phone-number reputation monitoring (spam-score lookup and tracking).
8
8
  class Remediation
9
- # Some parameter documentations has been truncated, see
10
- # {Telnyx::Models::Enterprises::Reputation::RemediationCreateParams} for more
11
- # details.
12
- #
13
- # Submit a batch of phone numbers belonging to this enterprise for reputation
14
- # remediation. The request is accepted asynchronously: this endpoint returns `202`
15
- # with the persisted request id, then the request transitions through processing
16
- # states until completion. Use the GET endpoints to poll status and per-number
17
- # results.
18
- #
19
- # Each phone number must be in E.164 format and belong to this enterprise. A
20
- # number that already has an in-flight remediation request is rejected.
21
- #
22
- # @overload create(enterprise_id, call_purpose:, phone_numbers:, contact_email: nil, webhook_url: nil, request_options: {})
23
- #
24
- # @param enterprise_id [String] The enterprise id. Lowercase UUID.
25
- #
26
- # @param call_purpose [String] How the numbers are used (free text).
27
- #
28
- # @param phone_numbers [Array<String>] Phone numbers in E.164 format. Each must belong to this enterprise. Maximum 2,00
29
- #
30
- # @param contact_email [String] Optional contact email for this remediation request.
31
- #
32
- # @param webhook_url [String] Optional https:// URL for status notifications.
33
- #
34
- # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
35
- #
36
- # @return [Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse]
37
- #
38
- # @see Telnyx::Models::Enterprises::Reputation::RemediationCreateParams
39
- def create(enterprise_id, params)
40
- parsed, options = Telnyx::Enterprises::Reputation::RemediationCreateParams.dump_request(params)
41
- @client.request(
42
- method: :post,
43
- path: ["enterprises/%1$s/reputation/remediation", enterprise_id],
44
- body: parsed,
45
- model: Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse,
46
- options: options
47
- )
48
- end
49
-
50
9
  # Retrieve the full detail of a remediation request, including current status,
51
10
  # per-number results (once available), and submission metadata.
52
11
  #
@@ -122,6 +81,47 @@ module Telnyx
122
81
  )
123
82
  end
124
83
 
84
+ # Some parameter documentations has been truncated, see
85
+ # {Telnyx::Models::Enterprises::Reputation::RemediationSubmitParams} for more
86
+ # details.
87
+ #
88
+ # Submit a batch of phone numbers belonging to this enterprise for reputation
89
+ # remediation. The request is accepted asynchronously: this endpoint returns `202`
90
+ # with the persisted request id, then the request transitions through processing
91
+ # states until completion. Use the GET endpoints to poll status and per-number
92
+ # results.
93
+ #
94
+ # Each phone number must be in E.164 format and belong to this enterprise. A
95
+ # number that already has an in-flight remediation request is rejected.
96
+ #
97
+ # @overload submit(enterprise_id, call_purpose:, phone_numbers:, contact_email: nil, webhook_url: nil, request_options: {})
98
+ #
99
+ # @param enterprise_id [String] The enterprise id. Lowercase UUID.
100
+ #
101
+ # @param call_purpose [String] How the numbers are used (free text).
102
+ #
103
+ # @param phone_numbers [Array<String>] Phone numbers in E.164 format. Each must belong to this enterprise. Maximum 2,00
104
+ #
105
+ # @param contact_email [String] Optional contact email for this remediation request.
106
+ #
107
+ # @param webhook_url [String] Optional https:// URL for status notifications.
108
+ #
109
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
110
+ #
111
+ # @return [Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse]
112
+ #
113
+ # @see Telnyx::Models::Enterprises::Reputation::RemediationSubmitParams
114
+ def submit(enterprise_id, params)
115
+ parsed, options = Telnyx::Enterprises::Reputation::RemediationSubmitParams.dump_request(params)
116
+ @client.request(
117
+ method: :post,
118
+ path: ["enterprises/%1$s/reputation/remediation", enterprise_id],
119
+ body: parsed,
120
+ model: Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse,
121
+ options: options
122
+ )
123
+ end
124
+
125
125
  # @api private
126
126
  #
127
127
  # @param client [Telnyx::Client]
@@ -13,9 +13,6 @@ module Telnyx
13
13
  # @return [Telnyx::Resources::Enterprises::Dir]
14
14
  attr_reader :dir
15
15
 
16
- # @return [Telnyx::Resources::Enterprises::Usage]
17
- attr_reader :usage
18
-
19
16
  # Some parameter documentations has been truncated, see
20
17
  # {Telnyx::Models::EnterpriseCreateParams} for more details.
21
18
  #
@@ -285,7 +282,6 @@ module Telnyx
285
282
  @client = client
286
283
  @reputation = Telnyx::Resources::Enterprises::Reputation.new(client: client)
287
284
  @dir = Telnyx::Resources::Enterprises::Dir.new(client: client)
288
- @usage = Telnyx::Resources::Enterprises::Usage.new(client: client)
289
285
  end
290
286
  end
291
287
  end
@@ -24,23 +24,23 @@ module Telnyx
24
24
  # terms URL, effective date). Omit `product_type` to return all products; pass it
25
25
  # to scope to one.
26
26
  #
27
- # @overload retrieve_info(product_type: nil, request_options: {})
27
+ # @overload info(product_type: nil, request_options: {})
28
28
  #
29
- # @param product_type [Symbol, Telnyx::Models::TermsOfServiceRetrieveInfoParams::ProductType] Optional product filter. Omit to return info for all products.
29
+ # @param product_type [Symbol, Telnyx::Models::TermsOfServiceInfoParams::ProductType] Optional product filter. Omit to return info for all products.
30
30
  #
31
31
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
32
32
  #
33
- # @return [Telnyx::Models::TermsOfServiceRetrieveInfoResponse]
33
+ # @return [Telnyx::Models::TermsOfServiceInfoResponse]
34
34
  #
35
- # @see Telnyx::Models::TermsOfServiceRetrieveInfoParams
36
- def retrieve_info(params = {})
37
- parsed, options = Telnyx::TermsOfServiceRetrieveInfoParams.dump_request(params)
35
+ # @see Telnyx::Models::TermsOfServiceInfoParams
36
+ def info(params = {})
37
+ parsed, options = Telnyx::TermsOfServiceInfoParams.dump_request(params)
38
38
  query = Telnyx::Internal::Util.encode_query_params(parsed)
39
39
  @client.request(
40
40
  method: :get,
41
41
  path: "terms_of_service/info",
42
42
  query: query,
43
- model: Telnyx::Models::TermsOfServiceRetrieveInfoResponse,
43
+ model: Telnyx::Models::TermsOfServiceInfoResponse,
44
44
  options: options
45
45
  )
46
46
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.128.0"
4
+ VERSION = "5.130.0"
5
5
  end
data/lib/telnyx.rb CHANGED
@@ -916,12 +916,12 @@ require_relative "telnyx/models/enterprises/reputation/number_refresh_params"
916
916
  require_relative "telnyx/models/enterprises/reputation/number_refresh_response"
917
917
  require_relative "telnyx/models/enterprises/reputation/number_retrieve_params"
918
918
  require_relative "telnyx/models/enterprises/reputation/number_retrieve_response"
919
- require_relative "telnyx/models/enterprises/reputation/remediation_create_params"
920
- require_relative "telnyx/models/enterprises/reputation/remediation_create_response"
921
919
  require_relative "telnyx/models/enterprises/reputation/remediation_list_params"
922
920
  require_relative "telnyx/models/enterprises/reputation/remediation_list_response"
923
921
  require_relative "telnyx/models/enterprises/reputation/remediation_retrieve_params"
924
922
  require_relative "telnyx/models/enterprises/reputation/remediation_retrieve_response"
923
+ require_relative "telnyx/models/enterprises/reputation/remediation_submit_params"
924
+ require_relative "telnyx/models/enterprises/reputation/remediation_submit_response"
925
925
  require_relative "telnyx/models/enterprises/reputation_disable_params"
926
926
  require_relative "telnyx/models/enterprises/reputation_enable_params"
927
927
  require_relative "telnyx/models/enterprises/reputation_enable_response"
@@ -2178,8 +2178,8 @@ require_relative "telnyx/models/terms_of_service/branded_calling_agree_params"
2178
2178
  require_relative "telnyx/models/terms_of_service/branded_calling_agree_response"
2179
2179
  require_relative "telnyx/models/terms_of_service/number_reputation_agree_params"
2180
2180
  require_relative "telnyx/models/terms_of_service/number_reputation_agree_response"
2181
- require_relative "telnyx/models/terms_of_service_retrieve_info_params"
2182
- require_relative "telnyx/models/terms_of_service_retrieve_info_response"
2181
+ require_relative "telnyx/models/terms_of_service_info_params"
2182
+ require_relative "telnyx/models/terms_of_service_info_response"
2183
2183
  require_relative "telnyx/models/terms_of_service_status_params"
2184
2184
  require_relative "telnyx/models/terms_of_service_status_response"
2185
2185
  require_relative "telnyx/models/texml/account_retrieve_recordings_json_params"
@@ -2579,14 +2579,10 @@ require_relative "telnyx/resources/dynamic_emergency_addresses"
2579
2579
  require_relative "telnyx/resources/dynamic_emergency_endpoints"
2580
2580
  require_relative "telnyx/resources/enterprises"
2581
2581
  require_relative "telnyx/resources/enterprises/dir"
2582
- require_relative "telnyx/resources/enterprises/dir/comments"
2583
- require_relative "telnyx/resources/enterprises/dir/phone_number_batches"
2584
- require_relative "telnyx/resources/enterprises/dir/phone_numbers"
2585
2582
  require_relative "telnyx/resources/enterprises/reputation"
2586
2583
  require_relative "telnyx/resources/enterprises/reputation/loa"
2587
2584
  require_relative "telnyx/resources/enterprises/reputation/numbers"
2588
2585
  require_relative "telnyx/resources/enterprises/reputation/remediation"
2589
- require_relative "telnyx/resources/enterprises/usage"
2590
2586
  require_relative "telnyx/resources/external_connections"
2591
2587
  require_relative "telnyx/resources/external_connections/civic_addresses"
2592
2588
  require_relative "telnyx/resources/external_connections/log_messages"
@@ -669,10 +669,6 @@ module Telnyx
669
669
  sig { returns(Telnyx::Resources::InfringementClaims) }
670
670
  attr_reader :infringement_claims
671
671
 
672
- # UAC connection operations
673
- sig { returns(Telnyx::Resources::UacConnections) }
674
- attr_reader :uac_connections
675
-
676
672
  # UAC connection operations
677
673
  sig { returns(Telnyx::Resources::SipRegistrationStatus) }
678
674
  attr_reader :sip_registration_status
@@ -681,6 +677,10 @@ module Telnyx
681
677
  sig { returns(Telnyx::Resources::SpeechToText) }
682
678
  attr_reader :speech_to_text
683
679
 
680
+ # UAC connection operations
681
+ sig { returns(Telnyx::Resources::UacConnections) }
682
+ attr_reader :uac_connections
683
+
684
684
  # Retrieve raw Voice SDK call report stats payloads for WebRTC call
685
685
  # troubleshooting.
686
686
  sig { returns(Telnyx::Resources::VoiceSDKCallReports) }
@@ -1869,7 +1869,8 @@ module Telnyx
1869
1869
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
1870
1870
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
1871
1871
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1872
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
1872
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1873
+ # `Max`, `TTS2`.
1873
1874
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1874
1875
  # `ara`, `rex`, `sal`, `leo`.
1875
1876
  sig { returns(T.nilable(String)) }
@@ -2027,7 +2028,8 @@ module Telnyx
2027
2028
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
2028
2029
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
2029
2030
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
2030
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
2031
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
2032
+ # `Max`, `TTS2`.
2031
2033
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
2032
2034
  # `ara`, `rex`, `sal`, `leo`.
2033
2035
  voice: nil,
@@ -2751,16 +2753,99 @@ module Telnyx
2751
2753
  sig { returns(Symbol) }
2752
2754
  attr_accessor :type
2753
2755
 
2754
- sig { params(type: Symbol).returns(T.attached_class) }
2756
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2757
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2758
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2759
+ # supported by `TTS2`; when omitted, the provider default applies.
2760
+ sig do
2761
+ returns(
2762
+ T.nilable(
2763
+ Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2764
+ )
2765
+ )
2766
+ end
2767
+ attr_reader :delivery_mode
2768
+
2769
+ sig do
2770
+ params(
2771
+ delivery_mode:
2772
+ Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2773
+ ).void
2774
+ end
2775
+ attr_writer :delivery_mode
2776
+
2777
+ sig do
2778
+ params(
2779
+ delivery_mode:
2780
+ Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
2781
+ type: Symbol
2782
+ ).returns(T.attached_class)
2783
+ end
2755
2784
  def self.new(
2785
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2786
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2787
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2788
+ # supported by `TTS2`; when omitted, the provider default applies.
2789
+ delivery_mode: nil,
2756
2790
  # Voice settings provider type
2757
2791
  type: :inworld
2758
2792
  )
2759
2793
  end
2760
2794
 
2761
- sig { override.returns({ type: Symbol }) }
2795
+ sig do
2796
+ override.returns(
2797
+ {
2798
+ type: Symbol,
2799
+ delivery_mode:
2800
+ Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2801
+ }
2802
+ )
2803
+ end
2762
2804
  def to_hash
2763
2805
  end
2806
+
2807
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2808
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2809
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2810
+ # supported by `TTS2`; when omitted, the provider default applies.
2811
+ module DeliveryMode
2812
+ extend Telnyx::Internal::Type::Enum
2813
+
2814
+ TaggedSymbol =
2815
+ T.type_alias do
2816
+ T.all(
2817
+ Symbol,
2818
+ Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode
2819
+ )
2820
+ end
2821
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2822
+
2823
+ STABLE =
2824
+ T.let(
2825
+ :STABLE,
2826
+ Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2827
+ )
2828
+ BALANCED =
2829
+ T.let(
2830
+ :BALANCED,
2831
+ Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2832
+ )
2833
+ CREATIVE =
2834
+ T.let(
2835
+ :CREATIVE,
2836
+ Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2837
+ )
2838
+
2839
+ sig do
2840
+ override.returns(
2841
+ T::Array[
2842
+ Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2843
+ ]
2844
+ )
2845
+ end
2846
+ def self.values
2847
+ end
2848
+ end
2764
2849
  end
2765
2850
 
2766
2851
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -2921,16 +3006,99 @@ module Telnyx
2921
3006
  sig { returns(Symbol) }
2922
3007
  attr_accessor :type
2923
3008
 
2924
- sig { params(type: Symbol).returns(T.attached_class) }
3009
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
3010
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
3011
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
3012
+ # supported by `TTS2`; when omitted, the provider default applies.
3013
+ sig do
3014
+ returns(
3015
+ T.nilable(
3016
+ Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::OrSymbol
3017
+ )
3018
+ )
3019
+ end
3020
+ attr_reader :delivery_mode
3021
+
3022
+ sig do
3023
+ params(
3024
+ delivery_mode:
3025
+ Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::OrSymbol
3026
+ ).void
3027
+ end
3028
+ attr_writer :delivery_mode
3029
+
3030
+ sig do
3031
+ params(
3032
+ delivery_mode:
3033
+ Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
3034
+ type: Symbol
3035
+ ).returns(T.attached_class)
3036
+ end
2925
3037
  def self.new(
3038
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
3039
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
3040
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
3041
+ # supported by `TTS2`; when omitted, the provider default applies.
3042
+ delivery_mode: nil,
2926
3043
  # Voice settings provider type
2927
3044
  type: :inworld
2928
3045
  )
2929
3046
  end
2930
3047
 
2931
- sig { override.returns({ type: Symbol }) }
3048
+ sig do
3049
+ override.returns(
3050
+ {
3051
+ type: Symbol,
3052
+ delivery_mode:
3053
+ Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::OrSymbol
3054
+ }
3055
+ )
3056
+ end
2932
3057
  def to_hash
2933
3058
  end
3059
+
3060
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
3061
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
3062
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
3063
+ # supported by `TTS2`; when omitted, the provider default applies.
3064
+ module DeliveryMode
3065
+ extend Telnyx::Internal::Type::Enum
3066
+
3067
+ TaggedSymbol =
3068
+ T.type_alias do
3069
+ T.all(
3070
+ Symbol,
3071
+ Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode
3072
+ )
3073
+ end
3074
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3075
+
3076
+ STABLE =
3077
+ T.let(
3078
+ :STABLE,
3079
+ Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
3080
+ )
3081
+ BALANCED =
3082
+ T.let(
3083
+ :BALANCED,
3084
+ Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
3085
+ )
3086
+ CREATIVE =
3087
+ T.let(
3088
+ :CREATIVE,
3089
+ Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
3090
+ )
3091
+
3092
+ sig do
3093
+ override.returns(
3094
+ T::Array[
3095
+ Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
3096
+ ]
3097
+ )
3098
+ end
3099
+ def self.values
3100
+ end
3101
+ end
2934
3102
  end
2935
3103
 
2936
3104
  class Xai < Telnyx::Internal::Type::BaseModel