telnyx 5.129.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +5 -5
- 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
|
@@ -4,11 +4,11 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
6
|
module Reputation
|
|
7
|
-
class
|
|
7
|
+
class RemediationSubmitResponse < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
OrHash =
|
|
9
9
|
T.type_alias do
|
|
10
10
|
T.any(
|
|
11
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
11
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse,
|
|
12
12
|
Telnyx::Internal::AnyHash
|
|
13
13
|
)
|
|
14
14
|
end
|
|
@@ -16,7 +16,7 @@ module Telnyx
|
|
|
16
16
|
# Full detail of a remediation request, returned on submit and GET by id.
|
|
17
17
|
sig do
|
|
18
18
|
returns(
|
|
19
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
19
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data
|
|
20
20
|
)
|
|
21
21
|
end
|
|
22
22
|
attr_reader :data
|
|
@@ -24,7 +24,7 @@ module Telnyx
|
|
|
24
24
|
sig do
|
|
25
25
|
params(
|
|
26
26
|
data:
|
|
27
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
27
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::OrHash
|
|
28
28
|
).void
|
|
29
29
|
end
|
|
30
30
|
attr_writer :data
|
|
@@ -32,7 +32,7 @@ module Telnyx
|
|
|
32
32
|
sig do
|
|
33
33
|
params(
|
|
34
34
|
data:
|
|
35
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
35
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::OrHash
|
|
36
36
|
).returns(T.attached_class)
|
|
37
37
|
end
|
|
38
38
|
def self.new(
|
|
@@ -45,7 +45,7 @@ module Telnyx
|
|
|
45
45
|
override.returns(
|
|
46
46
|
{
|
|
47
47
|
data:
|
|
48
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
48
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
end
|
|
@@ -56,7 +56,7 @@ module Telnyx
|
|
|
56
56
|
OrHash =
|
|
57
57
|
T.type_alias do
|
|
58
58
|
T.any(
|
|
59
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
59
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data,
|
|
60
60
|
Telnyx::Internal::AnyHash
|
|
61
61
|
)
|
|
62
62
|
end
|
|
@@ -87,7 +87,7 @@ module Telnyx
|
|
|
87
87
|
# Customer-facing status of a remediation request.
|
|
88
88
|
sig do
|
|
89
89
|
returns(
|
|
90
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
90
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
|
|
91
91
|
)
|
|
92
92
|
end
|
|
93
93
|
attr_accessor :status
|
|
@@ -103,7 +103,7 @@ module Telnyx
|
|
|
103
103
|
sig do
|
|
104
104
|
returns(
|
|
105
105
|
T.nilable(
|
|
106
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
106
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results
|
|
107
107
|
)
|
|
108
108
|
)
|
|
109
109
|
end
|
|
@@ -113,7 +113,7 @@ module Telnyx
|
|
|
113
113
|
params(
|
|
114
114
|
results:
|
|
115
115
|
T.nilable(
|
|
116
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
116
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results::OrHash
|
|
117
117
|
)
|
|
118
118
|
).void
|
|
119
119
|
end
|
|
@@ -138,12 +138,12 @@ module Telnyx
|
|
|
138
138
|
phone_numbers_ineligible: Integer,
|
|
139
139
|
phone_numbers_submitted: Integer,
|
|
140
140
|
status:
|
|
141
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
141
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::OrSymbol,
|
|
142
142
|
updated_at: Time,
|
|
143
143
|
contact_email: T.nilable(String),
|
|
144
144
|
results:
|
|
145
145
|
T.nilable(
|
|
146
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
146
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results::OrHash
|
|
147
147
|
),
|
|
148
148
|
tier1_completed_at: T.nilable(Time),
|
|
149
149
|
tier2_completed_at: T.nilable(Time),
|
|
@@ -185,12 +185,12 @@ module Telnyx
|
|
|
185
185
|
phone_numbers_ineligible: Integer,
|
|
186
186
|
phone_numbers_submitted: Integer,
|
|
187
187
|
status:
|
|
188
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
188
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol,
|
|
189
189
|
updated_at: Time,
|
|
190
190
|
contact_email: T.nilable(String),
|
|
191
191
|
results:
|
|
192
192
|
T.nilable(
|
|
193
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
193
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results
|
|
194
194
|
),
|
|
195
195
|
tier1_completed_at: T.nilable(Time),
|
|
196
196
|
tier2_completed_at: T.nilable(Time),
|
|
@@ -209,7 +209,7 @@ module Telnyx
|
|
|
209
209
|
T.type_alias do
|
|
210
210
|
T.all(
|
|
211
211
|
Symbol,
|
|
212
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
212
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status
|
|
213
213
|
)
|
|
214
214
|
end
|
|
215
215
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -217,33 +217,33 @@ module Telnyx
|
|
|
217
217
|
PENDING =
|
|
218
218
|
T.let(
|
|
219
219
|
:pending,
|
|
220
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
220
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
|
|
221
221
|
)
|
|
222
222
|
IN_PROGRESS =
|
|
223
223
|
T.let(
|
|
224
224
|
:in_progress,
|
|
225
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
225
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
|
|
226
226
|
)
|
|
227
227
|
COMPLETED =
|
|
228
228
|
T.let(
|
|
229
229
|
:completed,
|
|
230
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
230
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
|
|
231
231
|
)
|
|
232
232
|
FAILED =
|
|
233
233
|
T.let(
|
|
234
234
|
:failed,
|
|
235
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
235
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
|
|
236
236
|
)
|
|
237
237
|
CANCELLED =
|
|
238
238
|
T.let(
|
|
239
239
|
:cancelled,
|
|
240
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
240
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
|
|
241
241
|
)
|
|
242
242
|
|
|
243
243
|
sig do
|
|
244
244
|
override.returns(
|
|
245
245
|
T::Array[
|
|
246
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
246
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
|
|
247
247
|
]
|
|
248
248
|
)
|
|
249
249
|
end
|
|
@@ -255,7 +255,7 @@ module Telnyx
|
|
|
255
255
|
OrHash =
|
|
256
256
|
T.type_alias do
|
|
257
257
|
T.any(
|
|
258
|
-
Telnyx::Models::Enterprises::Reputation::
|
|
258
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results,
|
|
259
259
|
Telnyx::Internal::AnyHash
|
|
260
260
|
)
|
|
261
261
|
end
|
|
@@ -2,40 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class TermsOfServiceInfoParams < Telnyx::Internal::Type::BaseModel
|
|
6
6
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
7
|
include Telnyx::Internal::Type::RequestParameters
|
|
8
8
|
|
|
9
9
|
OrHash =
|
|
10
10
|
T.type_alias do
|
|
11
|
-
T.any(
|
|
12
|
-
Telnyx::TermsOfServiceRetrieveInfoParams,
|
|
13
|
-
Telnyx::Internal::AnyHash
|
|
14
|
-
)
|
|
11
|
+
T.any(Telnyx::TermsOfServiceInfoParams, Telnyx::Internal::AnyHash)
|
|
15
12
|
end
|
|
16
13
|
|
|
17
14
|
# Optional product filter. Omit to return info for all products.
|
|
18
15
|
sig do
|
|
19
16
|
returns(
|
|
20
|
-
T.nilable(
|
|
21
|
-
Telnyx::TermsOfServiceRetrieveInfoParams::ProductType::OrSymbol
|
|
22
|
-
)
|
|
17
|
+
T.nilable(Telnyx::TermsOfServiceInfoParams::ProductType::OrSymbol)
|
|
23
18
|
)
|
|
24
19
|
end
|
|
25
20
|
attr_reader :product_type
|
|
26
21
|
|
|
27
22
|
sig do
|
|
28
23
|
params(
|
|
29
|
-
product_type:
|
|
30
|
-
Telnyx::TermsOfServiceRetrieveInfoParams::ProductType::OrSymbol
|
|
24
|
+
product_type: Telnyx::TermsOfServiceInfoParams::ProductType::OrSymbol
|
|
31
25
|
).void
|
|
32
26
|
end
|
|
33
27
|
attr_writer :product_type
|
|
34
28
|
|
|
35
29
|
sig do
|
|
36
30
|
params(
|
|
37
|
-
product_type:
|
|
38
|
-
Telnyx::TermsOfServiceRetrieveInfoParams::ProductType::OrSymbol,
|
|
31
|
+
product_type: Telnyx::TermsOfServiceInfoParams::ProductType::OrSymbol,
|
|
39
32
|
request_options: Telnyx::RequestOptions::OrHash
|
|
40
33
|
).returns(T.attached_class)
|
|
41
34
|
end
|
|
@@ -50,7 +43,7 @@ module Telnyx
|
|
|
50
43
|
override.returns(
|
|
51
44
|
{
|
|
52
45
|
product_type:
|
|
53
|
-
Telnyx::
|
|
46
|
+
Telnyx::TermsOfServiceInfoParams::ProductType::OrSymbol,
|
|
54
47
|
request_options: Telnyx::RequestOptions
|
|
55
48
|
}
|
|
56
49
|
)
|
|
@@ -64,25 +57,25 @@ module Telnyx
|
|
|
64
57
|
|
|
65
58
|
TaggedSymbol =
|
|
66
59
|
T.type_alias do
|
|
67
|
-
T.all(Symbol, Telnyx::
|
|
60
|
+
T.all(Symbol, Telnyx::TermsOfServiceInfoParams::ProductType)
|
|
68
61
|
end
|
|
69
62
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
70
63
|
|
|
71
64
|
BRANDED_CALLING =
|
|
72
65
|
T.let(
|
|
73
66
|
:branded_calling,
|
|
74
|
-
Telnyx::
|
|
67
|
+
Telnyx::TermsOfServiceInfoParams::ProductType::TaggedSymbol
|
|
75
68
|
)
|
|
76
69
|
NUMBER_REPUTATION =
|
|
77
70
|
T.let(
|
|
78
71
|
:number_reputation,
|
|
79
|
-
Telnyx::
|
|
72
|
+
Telnyx::TermsOfServiceInfoParams::ProductType::TaggedSymbol
|
|
80
73
|
)
|
|
81
74
|
|
|
82
75
|
sig do
|
|
83
76
|
override.returns(
|
|
84
77
|
T::Array[
|
|
85
|
-
Telnyx::
|
|
78
|
+
Telnyx::TermsOfServiceInfoParams::ProductType::TaggedSymbol
|
|
86
79
|
]
|
|
87
80
|
)
|
|
88
81
|
end
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class TermsOfServiceInfoResponse < Telnyx::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
8
|
T.any(
|
|
9
|
-
Telnyx::Models::
|
|
9
|
+
Telnyx::Models::TermsOfServiceInfoResponse,
|
|
10
10
|
Telnyx::Internal::AnyHash
|
|
11
11
|
)
|
|
12
12
|
end
|
|
@@ -14,9 +14,7 @@ module Telnyx
|
|
|
14
14
|
sig do
|
|
15
15
|
returns(
|
|
16
16
|
T.nilable(
|
|
17
|
-
T::Array[
|
|
18
|
-
Telnyx::Models::TermsOfServiceRetrieveInfoResponse::Agreement
|
|
19
|
-
]
|
|
17
|
+
T::Array[Telnyx::Models::TermsOfServiceInfoResponse::Agreement]
|
|
20
18
|
)
|
|
21
19
|
)
|
|
22
20
|
end
|
|
@@ -26,7 +24,7 @@ module Telnyx
|
|
|
26
24
|
params(
|
|
27
25
|
agreements:
|
|
28
26
|
T::Array[
|
|
29
|
-
Telnyx::Models::
|
|
27
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::OrHash
|
|
30
28
|
]
|
|
31
29
|
).void
|
|
32
30
|
end
|
|
@@ -36,7 +34,7 @@ module Telnyx
|
|
|
36
34
|
params(
|
|
37
35
|
agreements:
|
|
38
36
|
T::Array[
|
|
39
|
-
Telnyx::Models::
|
|
37
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::OrHash
|
|
40
38
|
]
|
|
41
39
|
).returns(T.attached_class)
|
|
42
40
|
end
|
|
@@ -47,9 +45,7 @@ module Telnyx
|
|
|
47
45
|
override.returns(
|
|
48
46
|
{
|
|
49
47
|
agreements:
|
|
50
|
-
T::Array[
|
|
51
|
-
Telnyx::Models::TermsOfServiceRetrieveInfoResponse::Agreement
|
|
52
|
-
]
|
|
48
|
+
T::Array[Telnyx::Models::TermsOfServiceInfoResponse::Agreement]
|
|
53
49
|
}
|
|
54
50
|
)
|
|
55
51
|
end
|
|
@@ -60,7 +56,7 @@ module Telnyx
|
|
|
60
56
|
OrHash =
|
|
61
57
|
T.type_alias do
|
|
62
58
|
T.any(
|
|
63
|
-
Telnyx::Models::
|
|
59
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement,
|
|
64
60
|
Telnyx::Internal::AnyHash
|
|
65
61
|
)
|
|
66
62
|
end
|
|
@@ -87,7 +83,7 @@ module Telnyx
|
|
|
87
83
|
sig do
|
|
88
84
|
returns(
|
|
89
85
|
T.nilable(
|
|
90
|
-
Telnyx::Models::
|
|
86
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType::TaggedSymbol
|
|
91
87
|
)
|
|
92
88
|
)
|
|
93
89
|
end
|
|
@@ -96,7 +92,7 @@ module Telnyx
|
|
|
96
92
|
sig do
|
|
97
93
|
params(
|
|
98
94
|
product_type:
|
|
99
|
-
Telnyx::Models::
|
|
95
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType::OrSymbol
|
|
100
96
|
).void
|
|
101
97
|
end
|
|
102
98
|
attr_writer :product_type
|
|
@@ -113,7 +109,7 @@ module Telnyx
|
|
|
113
109
|
description: String,
|
|
114
110
|
effective_date: Date,
|
|
115
111
|
product_type:
|
|
116
|
-
Telnyx::Models::
|
|
112
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType::OrSymbol,
|
|
117
113
|
terms_url: String
|
|
118
114
|
).returns(T.attached_class)
|
|
119
115
|
end
|
|
@@ -134,7 +130,7 @@ module Telnyx
|
|
|
134
130
|
description: String,
|
|
135
131
|
effective_date: Date,
|
|
136
132
|
product_type:
|
|
137
|
-
Telnyx::Models::
|
|
133
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType::TaggedSymbol,
|
|
138
134
|
terms_url: String
|
|
139
135
|
}
|
|
140
136
|
)
|
|
@@ -150,7 +146,7 @@ module Telnyx
|
|
|
150
146
|
T.type_alias do
|
|
151
147
|
T.all(
|
|
152
148
|
Symbol,
|
|
153
|
-
Telnyx::Models::
|
|
149
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType
|
|
154
150
|
)
|
|
155
151
|
end
|
|
156
152
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -158,18 +154,18 @@ module Telnyx
|
|
|
158
154
|
BRANDED_CALLING =
|
|
159
155
|
T.let(
|
|
160
156
|
:branded_calling,
|
|
161
|
-
Telnyx::Models::
|
|
157
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType::TaggedSymbol
|
|
162
158
|
)
|
|
163
159
|
NUMBER_REPUTATION =
|
|
164
160
|
T.let(
|
|
165
161
|
:number_reputation,
|
|
166
|
-
Telnyx::Models::
|
|
162
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType::TaggedSymbol
|
|
167
163
|
)
|
|
168
164
|
|
|
169
165
|
sig do
|
|
170
166
|
override.returns(
|
|
171
167
|
T::Array[
|
|
172
|
-
Telnyx::Models::
|
|
168
|
+
Telnyx::Models::TermsOfServiceInfoResponse::Agreement::ProductType::TaggedSymbol
|
|
173
169
|
]
|
|
174
170
|
)
|
|
175
171
|
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -1783,8 +1783,7 @@ module Telnyx
|
|
|
1783
1783
|
|
|
1784
1784
|
TermsOfService = Telnyx::Models::TermsOfService
|
|
1785
1785
|
|
|
1786
|
-
|
|
1787
|
-
Telnyx::Models::TermsOfServiceRetrieveInfoParams
|
|
1786
|
+
TermsOfServiceInfoParams = Telnyx::Models::TermsOfServiceInfoParams
|
|
1788
1787
|
|
|
1789
1788
|
TermsOfServiceStatusParams = Telnyx::Models::TermsOfServiceStatusParams
|
|
1790
1789
|
|
|
@@ -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
|
-
sig { returns(Telnyx::Resources::Enterprises::Dir::Comments) }
|
|
10
|
-
attr_reader :comments
|
|
11
|
-
|
|
12
|
-
sig { returns(Telnyx::Resources::Enterprises::Dir::PhoneNumberBatches) }
|
|
13
|
-
attr_reader :phone_number_batches
|
|
14
|
-
|
|
15
|
-
sig { returns(Telnyx::Resources::Enterprises::Dir::PhoneNumbers) }
|
|
16
|
-
attr_reader :phone_numbers
|
|
17
|
-
|
|
18
9
|
# Create a new DIR under the given enterprise. The DIR starts in `draft` status;
|
|
19
10
|
# it must be submitted (`POST .../submit`) and approved by Telnyx before any phone
|
|
20
11
|
# number can be attached.
|
|
@@ -6,42 +6,6 @@ module Telnyx
|
|
|
6
6
|
class Reputation
|
|
7
7
|
# Phone-number reputation monitoring (spam-score lookup and tracking).
|
|
8
8
|
class Remediation
|
|
9
|
-
# Submit a batch of phone numbers belonging to this enterprise for reputation
|
|
10
|
-
# remediation. The request is accepted asynchronously: this endpoint returns `202`
|
|
11
|
-
# with the persisted request id, then the request transitions through processing
|
|
12
|
-
# states until completion. Use the GET endpoints to poll status and per-number
|
|
13
|
-
# results.
|
|
14
|
-
#
|
|
15
|
-
# Each phone number must be in E.164 format and belong to this enterprise. A
|
|
16
|
-
# number that already has an in-flight remediation request is rejected.
|
|
17
|
-
sig do
|
|
18
|
-
params(
|
|
19
|
-
enterprise_id: String,
|
|
20
|
-
call_purpose: String,
|
|
21
|
-
phone_numbers: T::Array[String],
|
|
22
|
-
contact_email: String,
|
|
23
|
-
webhook_url: String,
|
|
24
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
25
|
-
).returns(
|
|
26
|
-
Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
def create(
|
|
30
|
-
# The enterprise id. Lowercase UUID.
|
|
31
|
-
enterprise_id,
|
|
32
|
-
# How the numbers are used (free text).
|
|
33
|
-
call_purpose:,
|
|
34
|
-
# Phone numbers in E.164 format. Each must belong to this enterprise. Maximum
|
|
35
|
-
# 2,000 per request.
|
|
36
|
-
phone_numbers:,
|
|
37
|
-
# Optional contact email for this remediation request.
|
|
38
|
-
contact_email: nil,
|
|
39
|
-
# Optional https:// URL for status notifications.
|
|
40
|
-
webhook_url: nil,
|
|
41
|
-
request_options: {}
|
|
42
|
-
)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
9
|
# Retrieve the full detail of a remediation request, including current status,
|
|
46
10
|
# per-number results (once available), and submission metadata.
|
|
47
11
|
sig do
|
|
@@ -99,6 +63,42 @@ module Telnyx
|
|
|
99
63
|
)
|
|
100
64
|
end
|
|
101
65
|
|
|
66
|
+
# Submit a batch of phone numbers belonging to this enterprise for reputation
|
|
67
|
+
# remediation. The request is accepted asynchronously: this endpoint returns `202`
|
|
68
|
+
# with the persisted request id, then the request transitions through processing
|
|
69
|
+
# states until completion. Use the GET endpoints to poll status and per-number
|
|
70
|
+
# results.
|
|
71
|
+
#
|
|
72
|
+
# Each phone number must be in E.164 format and belong to this enterprise. A
|
|
73
|
+
# number that already has an in-flight remediation request is rejected.
|
|
74
|
+
sig do
|
|
75
|
+
params(
|
|
76
|
+
enterprise_id: String,
|
|
77
|
+
call_purpose: String,
|
|
78
|
+
phone_numbers: T::Array[String],
|
|
79
|
+
contact_email: String,
|
|
80
|
+
webhook_url: String,
|
|
81
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
82
|
+
).returns(
|
|
83
|
+
Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
def submit(
|
|
87
|
+
# The enterprise id. Lowercase UUID.
|
|
88
|
+
enterprise_id,
|
|
89
|
+
# How the numbers are used (free text).
|
|
90
|
+
call_purpose:,
|
|
91
|
+
# Phone numbers in E.164 format. Each must belong to this enterprise. Maximum
|
|
92
|
+
# 2,000 per request.
|
|
93
|
+
phone_numbers:,
|
|
94
|
+
# Optional contact email for this remediation request.
|
|
95
|
+
contact_email: nil,
|
|
96
|
+
# Optional https:// URL for status notifications.
|
|
97
|
+
webhook_url: nil,
|
|
98
|
+
request_options: {}
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
102
|
# @api private
|
|
103
103
|
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
104
104
|
def self.new(client:)
|
|
@@ -13,9 +13,6 @@ module Telnyx
|
|
|
13
13
|
sig { returns(Telnyx::Resources::Enterprises::Dir) }
|
|
14
14
|
attr_reader :dir
|
|
15
15
|
|
|
16
|
-
sig { returns(Telnyx::Resources::Enterprises::Usage) }
|
|
17
|
-
attr_reader :usage
|
|
18
|
-
|
|
19
16
|
# Create the legal entity (enterprise) that represents your business on the Telnyx
|
|
20
17
|
# platform.
|
|
21
18
|
#
|
|
@@ -25,12 +25,11 @@ module Telnyx
|
|
|
25
25
|
# to scope to one.
|
|
26
26
|
sig do
|
|
27
27
|
params(
|
|
28
|
-
product_type:
|
|
29
|
-
Telnyx::TermsOfServiceRetrieveInfoParams::ProductType::OrSymbol,
|
|
28
|
+
product_type: Telnyx::TermsOfServiceInfoParams::ProductType::OrSymbol,
|
|
30
29
|
request_options: Telnyx::RequestOptions::OrHash
|
|
31
|
-
).returns(Telnyx::Models::
|
|
30
|
+
).returns(Telnyx::Models::TermsOfServiceInfoResponse)
|
|
32
31
|
end
|
|
33
|
-
def
|
|
32
|
+
def info(
|
|
34
33
|
# Optional product filter. Omit to return info for all products.
|
|
35
34
|
product_type: nil,
|
|
36
35
|
request_options: {}
|
data/sig/telnyx/client.rbs
CHANGED
|
@@ -348,12 +348,12 @@ module Telnyx
|
|
|
348
348
|
|
|
349
349
|
attr_reader infringement_claims: Telnyx::Resources::InfringementClaims
|
|
350
350
|
|
|
351
|
-
attr_reader uac_connections: Telnyx::Resources::UacConnections
|
|
352
|
-
|
|
353
351
|
attr_reader sip_registration_status: Telnyx::Resources::SipRegistrationStatus
|
|
354
352
|
|
|
355
353
|
attr_reader speech_to_text: Telnyx::Resources::SpeechToText
|
|
356
354
|
|
|
355
|
+
attr_reader uac_connections: Telnyx::Resources::UacConnections
|
|
356
|
+
|
|
357
357
|
attr_reader voice_sdk_call_reports: Telnyx::Resources::VoiceSDKCallReports
|
|
358
358
|
|
|
359
359
|
private def auth_headers: -> ::Hash[String, String]
|
|
@@ -77,7 +77,16 @@ module Telnyx
|
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
type noise_suppression_engine =
|
|
80
|
-
:Denoiser
|
|
80
|
+
:Denoiser
|
|
81
|
+
| :DeepFilterNet
|
|
82
|
+
| :Krisp
|
|
83
|
+
| :AiCoustics
|
|
84
|
+
| :aic_l_quail
|
|
85
|
+
| :aic_l_rook
|
|
86
|
+
| :aic_s_quail
|
|
87
|
+
| :aic_s_rook
|
|
88
|
+
| :quail_voice_focus_s
|
|
89
|
+
| :quail_voice_focus_xs
|
|
81
90
|
|
|
82
91
|
module NoiseSuppressionEngine
|
|
83
92
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -86,6 +95,12 @@ module Telnyx
|
|
|
86
95
|
DEEP_FILTER_NET: :DeepFilterNet
|
|
87
96
|
KRISP: :Krisp
|
|
88
97
|
AI_COUSTICS: :AiCoustics
|
|
98
|
+
AIC_L_QUAIL: :aic_l_quail
|
|
99
|
+
AIC_L_ROOK: :aic_l_rook
|
|
100
|
+
AIC_S_QUAIL: :aic_s_quail
|
|
101
|
+
AIC_S_ROOK: :aic_s_rook
|
|
102
|
+
QUAIL_VOICE_FOCUS_S: :quail_voice_focus_s
|
|
103
|
+
QUAIL_VOICE_FOCUS_XS: :quail_voice_focus_xs
|
|
89
104
|
|
|
90
105
|
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionStartNoiseSuppressionParams::noise_suppression_engine]
|
|
91
106
|
end
|
|
@@ -2,7 +2,7 @@ module Telnyx
|
|
|
2
2
|
module Models
|
|
3
3
|
module Enterprises
|
|
4
4
|
module Reputation
|
|
5
|
-
type
|
|
5
|
+
type remediation_submit_params =
|
|
6
6
|
{
|
|
7
7
|
enterprise_id: String,
|
|
8
8
|
call_purpose: String,
|
|
@@ -12,7 +12,7 @@ module Telnyx
|
|
|
12
12
|
}
|
|
13
13
|
& Telnyx::Internal::Type::request_parameters
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class RemediationSubmitParams < Telnyx::Internal::Type::BaseModel
|
|
16
16
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
17
17
|
include Telnyx::Internal::Type::RequestParameters
|
|
18
18
|
|