telnyx 5.129.0 → 5.130.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +5 -5
- data/lib/telnyx/internal/transport/base_client.rb +4 -1
- data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +6 -0
- data/lib/telnyx/models/enterprises/reputation/{remediation_create_params.rb → remediation_submit_params.rb} +3 -3
- data/lib/telnyx/models/enterprises/reputation/{remediation_create_response.rb → remediation_submit_response.rb} +15 -15
- data/lib/telnyx/models/{terms_of_service_retrieve_info_params.rb → terms_of_service_info_params.rb} +5 -5
- data/lib/telnyx/models/{terms_of_service_retrieve_info_response.rb → terms_of_service_info_response.rb} +9 -10
- data/lib/telnyx/models.rb +1 -1
- data/lib/telnyx/resources/enterprises/dir.rb +0 -12
- data/lib/telnyx/resources/enterprises/reputation/remediation.rb +41 -41
- data/lib/telnyx/resources/enterprises.rb +0 -4
- data/lib/telnyx/resources/terms_of_service.rb +7 -7
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +4 -8
- data/rbi/telnyx/client.rbi +4 -4
- data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +30 -0
- data/rbi/telnyx/models/enterprises/reputation/{remediation_create_params.rbi → remediation_submit_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/reputation/{remediation_create_response.rbi → remediation_submit_response.rbi} +22 -22
- data/rbi/telnyx/models/{terms_of_service_retrieve_info_params.rbi → terms_of_service_info_params.rbi} +10 -17
- data/rbi/telnyx/models/{terms_of_service_retrieve_info_response.rbi → terms_of_service_info_response.rbi} +15 -19
- data/rbi/telnyx/models.rbi +1 -2
- data/rbi/telnyx/resources/enterprises/dir.rbi +0 -9
- data/rbi/telnyx/resources/enterprises/reputation/remediation.rbi +36 -36
- data/rbi/telnyx/resources/enterprises.rbi +0 -3
- data/rbi/telnyx/resources/terms_of_service.rbi +3 -4
- data/sig/telnyx/client.rbs +2 -2
- data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +16 -1
- data/sig/telnyx/models/enterprises/reputation/{remediation_create_params.rbs → remediation_submit_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/reputation/{remediation_create_response.rbs → remediation_submit_response.rbs} +15 -15
- data/sig/telnyx/models/{terms_of_service_retrieve_info_params.rbs → terms_of_service_info_params.rbs} +9 -11
- data/sig/telnyx/models/{terms_of_service_retrieve_info_response.rbs → terms_of_service_info_response.rbs} +15 -15
- data/sig/telnyx/models.rbs +1 -1
- data/sig/telnyx/resources/enterprises/dir.rbs +0 -6
- data/sig/telnyx/resources/enterprises/reputation/remediation.rbs +9 -9
- data/sig/telnyx/resources/enterprises.rbs +0 -2
- data/sig/telnyx/resources/terms_of_service.rbs +3 -3
- metadata +13 -25
- data/lib/telnyx/resources/enterprises/dir/comments.rb +0 -18
- data/lib/telnyx/resources/enterprises/dir/phone_number_batches.rb +0 -18
- data/lib/telnyx/resources/enterprises/dir/phone_numbers.rb +0 -18
- data/lib/telnyx/resources/enterprises/usage.rb +0 -16
- data/rbi/telnyx/resources/enterprises/dir/comments.rbi +0 -16
- data/rbi/telnyx/resources/enterprises/dir/phone_number_batches.rbi +0 -16
- data/rbi/telnyx/resources/enterprises/dir/phone_numbers.rbi +0 -16
- data/rbi/telnyx/resources/enterprises/usage.rbi +0 -14
- data/sig/telnyx/resources/enterprises/dir/comments.rbs +0 -11
- data/sig/telnyx/resources/enterprises/dir/phone_number_batches.rbs +0 -11
- data/sig/telnyx/resources/enterprises/dir/phone_numbers.rbs +0 -11
- data/sig/telnyx/resources/enterprises/usage.rbs +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 51550c13df6bdb2bc94a0a5d9b1d548ff7e0480a36761d149b65a2b6c894d3a3
|
|
4
|
+
data.tar.gz: 881fc05caa8799307d877d2272c043d8357ca836ea524ab440c4ecec79256011
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a267cea1e1c57b75159564b3b943fe34a868928797f5c0fa15587a35096ed0efab3d47a0ea560afba2dd33f106c5771ebd51e1fb6eb551b9a9a1a6eb82fb8b65
|
|
7
|
+
data.tar.gz: 96873bab4775fa0b8f50fe791c22608f23dbe7814c62a18e64ba013a6f6eeb7d0fb443d0360bdb4a609f9f64759c9b83ec4e9606406cdc184ebec362ed9ca174
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.130.1 (2026-06-16)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.130.0...v5.130.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.130.0...v5.130.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **client:** send content-type header for requests with an omitted optional body ([b4e3271](https://github.com/team-telnyx/telnyx-ruby/commit/b4e327110e5529b70e53a7437223eee156597f78))
|
|
10
|
+
|
|
11
|
+
## 5.130.0 (2026-06-16)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v5.129.0...v5.130.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.129.0...v5.130.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* ENGDESK-51290: Add Aicoustic NS engines to portal backend ([6ab023b](https://github.com/team-telnyx/telnyx-ruby/commit/6ab023bbed7fbcac79c17e98ccb6af4b326b2ff3))
|
|
18
|
+
|
|
3
19
|
## 5.129.0 (2026-06-16)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v5.128.0...v5.129.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.128.0...v5.129.0)
|
data/README.md
CHANGED
data/lib/telnyx/client.rb
CHANGED
|
@@ -674,10 +674,6 @@ module Telnyx
|
|
|
674
674
|
# @return [Telnyx::Resources::InfringementClaims]
|
|
675
675
|
attr_reader :infringement_claims
|
|
676
676
|
|
|
677
|
-
# UAC connection operations
|
|
678
|
-
# @return [Telnyx::Resources::UacConnections]
|
|
679
|
-
attr_reader :uac_connections
|
|
680
|
-
|
|
681
677
|
# UAC connection operations
|
|
682
678
|
# @return [Telnyx::Resources::SipRegistrationStatus]
|
|
683
679
|
attr_reader :sip_registration_status
|
|
@@ -686,6 +682,10 @@ module Telnyx
|
|
|
686
682
|
# @return [Telnyx::Resources::SpeechToText]
|
|
687
683
|
attr_reader :speech_to_text
|
|
688
684
|
|
|
685
|
+
# UAC connection operations
|
|
686
|
+
# @return [Telnyx::Resources::UacConnections]
|
|
687
|
+
attr_reader :uac_connections
|
|
688
|
+
|
|
689
689
|
# Retrieve raw Voice SDK call report stats payloads for WebRTC call
|
|
690
690
|
# troubleshooting.
|
|
691
691
|
# @return [Telnyx::Resources::VoiceSDKCallReports]
|
|
@@ -966,9 +966,9 @@ module Telnyx
|
|
|
966
966
|
@call_reasons = Telnyx::Resources::CallReasons.new(client: self)
|
|
967
967
|
@dir = Telnyx::Resources::Dir.new(client: self)
|
|
968
968
|
@infringement_claims = Telnyx::Resources::InfringementClaims.new(client: self)
|
|
969
|
-
@uac_connections = Telnyx::Resources::UacConnections.new(client: self)
|
|
970
969
|
@sip_registration_status = Telnyx::Resources::SipRegistrationStatus.new(client: self)
|
|
971
970
|
@speech_to_text = Telnyx::Resources::SpeechToText.new(client: self)
|
|
971
|
+
@uac_connections = Telnyx::Resources::UacConnections.new(client: self)
|
|
972
972
|
@voice_sdk_call_reports = Telnyx::Resources::VoiceSDKCallReports.new(client: self)
|
|
973
973
|
end
|
|
974
974
|
end
|
|
@@ -306,7 +306,10 @@ module Telnyx
|
|
|
306
306
|
Telnyx::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
-
|
|
309
|
+
# Generated methods always pass `req[:body]` for operations that define a
|
|
310
|
+
# request body, so only elide the content-type header when the operation
|
|
311
|
+
# has no body at all, not when an optional body param was omitted.
|
|
312
|
+
headers.delete("content-type") if body.nil? && !req.key?(:body)
|
|
310
313
|
|
|
311
314
|
url = Telnyx::Internal::Util.join_parsed_uri(
|
|
312
315
|
@base_url_components,
|
|
@@ -90,6 +90,12 @@ module Telnyx
|
|
|
90
90
|
DEEP_FILTER_NET = :DeepFilterNet
|
|
91
91
|
KRISP = :Krisp
|
|
92
92
|
AI_COUSTICS = :AiCoustics
|
|
93
|
+
AIC_L_QUAIL = :aic_l_quail
|
|
94
|
+
AIC_L_ROOK = :aic_l_rook
|
|
95
|
+
AIC_S_QUAIL = :aic_s_quail
|
|
96
|
+
AIC_S_ROOK = :aic_s_rook
|
|
97
|
+
QUAIL_VOICE_FOCUS_S = :quail_voice_focus_s
|
|
98
|
+
QUAIL_VOICE_FOCUS_XS = :quail_voice_focus_xs
|
|
93
99
|
|
|
94
100
|
# @!method self.values
|
|
95
101
|
# @return [Array<Symbol>]
|
|
@@ -4,8 +4,8 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
6
|
module Reputation
|
|
7
|
-
# @see Telnyx::Resources::Enterprises::Reputation::Remediation#
|
|
8
|
-
class
|
|
7
|
+
# @see Telnyx::Resources::Enterprises::Reputation::Remediation#submit
|
|
8
|
+
class RemediationSubmitParams < Telnyx::Internal::Type::BaseModel
|
|
9
9
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Telnyx::Internal::Type::RequestParameters
|
|
11
11
|
|
|
@@ -41,7 +41,7 @@ module Telnyx
|
|
|
41
41
|
|
|
42
42
|
# @!method initialize(enterprise_id:, call_purpose:, phone_numbers:, contact_email: nil, webhook_url: nil, request_options: {})
|
|
43
43
|
# Some parameter documentations has been truncated, see
|
|
44
|
-
# {Telnyx::Models::Enterprises::Reputation::
|
|
44
|
+
# {Telnyx::Models::Enterprises::Reputation::RemediationSubmitParams} for more
|
|
45
45
|
# details.
|
|
46
46
|
#
|
|
47
47
|
# @param enterprise_id [String]
|
|
@@ -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#
|
|
8
|
-
class
|
|
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::
|
|
13
|
-
required :data, -> { Telnyx::Models::Enterprises::Reputation::
|
|
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::
|
|
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::
|
|
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::
|
|
58
|
+
# @return [Symbol, Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status]
|
|
59
59
|
required :status,
|
|
60
|
-
enum: -> { Telnyx::Models::Enterprises::Reputation::
|
|
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::
|
|
76
|
+
# @return [Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results, nil]
|
|
77
77
|
optional :results,
|
|
78
|
-
-> { Telnyx::Models::Enterprises::Reputation::
|
|
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::
|
|
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::
|
|
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::
|
|
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::
|
|
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::
|
|
145
|
+
# @see Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data#results
|
|
146
146
|
class Results < Telnyx::Internal::Type::BaseModel
|
|
147
147
|
# @!attribute ineligible
|
|
148
148
|
#
|
data/lib/telnyx/models/{terms_of_service_retrieve_info_params.rb → terms_of_service_info_params.rb}
RENAMED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
# @see Telnyx::Resources::TermsOfService#
|
|
6
|
-
class
|
|
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::
|
|
14
|
-
optional :product_type, enum: -> { Telnyx::
|
|
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::
|
|
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#
|
|
6
|
-
class
|
|
5
|
+
# @see Telnyx::Resources::TermsOfService#info
|
|
6
|
+
class TermsOfServiceInfoResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute agreements
|
|
8
8
|
#
|
|
9
|
-
# @return [Array<Telnyx::Models::
|
|
9
|
+
# @return [Array<Telnyx::Models::TermsOfServiceInfoResponse::Agreement>, nil]
|
|
10
10
|
optional :agreements,
|
|
11
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::
|
|
11
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::TermsOfServiceInfoResponse::Agreement] }
|
|
12
12
|
|
|
13
13
|
# @!method initialize(agreements: nil)
|
|
14
|
-
# @param agreements [Array<Telnyx::Models::
|
|
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::
|
|
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::
|
|
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::
|
|
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
|
-
|
|
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
|
|
27
|
+
# @overload info(product_type: nil, request_options: {})
|
|
28
28
|
#
|
|
29
|
-
# @param product_type [Symbol, Telnyx::Models::
|
|
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::
|
|
33
|
+
# @return [Telnyx::Models::TermsOfServiceInfoResponse]
|
|
34
34
|
#
|
|
35
|
-
# @see Telnyx::Models::
|
|
36
|
-
def
|
|
37
|
-
parsed, options = Telnyx::
|
|
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::
|
|
43
|
+
model: Telnyx::Models::TermsOfServiceInfoResponse,
|
|
44
44
|
options: options
|
|
45
45
|
)
|
|
46
46
|
end
|
data/lib/telnyx/version.rb
CHANGED
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/
|
|
2182
|
-
require_relative "telnyx/models/
|
|
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"
|
data/rbi/telnyx/client.rbi
CHANGED
|
@@ -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) }
|
|
@@ -220,6 +220,36 @@ module Telnyx
|
|
|
220
220
|
:AiCoustics,
|
|
221
221
|
Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
|
|
222
222
|
)
|
|
223
|
+
AIC_L_QUAIL =
|
|
224
|
+
T.let(
|
|
225
|
+
:aic_l_quail,
|
|
226
|
+
Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
|
|
227
|
+
)
|
|
228
|
+
AIC_L_ROOK =
|
|
229
|
+
T.let(
|
|
230
|
+
:aic_l_rook,
|
|
231
|
+
Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
|
|
232
|
+
)
|
|
233
|
+
AIC_S_QUAIL =
|
|
234
|
+
T.let(
|
|
235
|
+
:aic_s_quail,
|
|
236
|
+
Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
|
|
237
|
+
)
|
|
238
|
+
AIC_S_ROOK =
|
|
239
|
+
T.let(
|
|
240
|
+
:aic_s_rook,
|
|
241
|
+
Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
|
|
242
|
+
)
|
|
243
|
+
QUAIL_VOICE_FOCUS_S =
|
|
244
|
+
T.let(
|
|
245
|
+
:quail_voice_focus_s,
|
|
246
|
+
Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
|
|
247
|
+
)
|
|
248
|
+
QUAIL_VOICE_FOCUS_XS =
|
|
249
|
+
T.let(
|
|
250
|
+
:quail_voice_focus_xs,
|
|
251
|
+
Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
|
|
252
|
+
)
|
|
223
253
|
|
|
224
254
|
sig do
|
|
225
255
|
override.returns(
|
|
@@ -4,14 +4,14 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
6
|
module Reputation
|
|
7
|
-
class
|
|
7
|
+
class RemediationSubmitParams < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Telnyx::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
OrHash =
|
|
12
12
|
T.type_alias do
|
|
13
13
|
T.any(
|
|
14
|
-
Telnyx::Enterprises::Reputation::
|
|
14
|
+
Telnyx::Enterprises::Reputation::RemediationSubmitParams,
|
|
15
15
|
Telnyx::Internal::AnyHash
|
|
16
16
|
)
|
|
17
17
|
end
|