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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +5 -5
- data/lib/telnyx/models/call_dial_params.rb +70 -3
- data/lib/telnyx/models/calls/action_answer_params.rb +70 -3
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +2 -1
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +37 -2
- data/lib/telnyx/models/calls/action_speak_params.rb +37 -2
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +2 -1
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +104 -4
- data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +6 -0
- data/lib/telnyx/models/conferences/action_speak_params.rb +37 -2
- 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/call_dial_params.rbi +174 -6
- data/rbi/telnyx/models/calls/action_answer_params.rbi +174 -6
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +4 -2
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +91 -4
- data/rbi/telnyx/models/calls/action_speak_params.rbi +91 -4
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +4 -2
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +259 -8
- data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +30 -0
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +91 -4
- 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/calls/actions.rbi +12 -5
- data/rbi/telnyx/resources/conferences/actions.rbi +3 -1
- 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/call_dial_params.rbs +62 -6
- data/sig/telnyx/models/calls/action_answer_params.rbs +62 -6
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +31 -3
- data/sig/telnyx/models/calls/action_speak_params.rbs +31 -3
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +93 -9
- data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +16 -1
- data/sig/telnyx/models/conferences/action_speak_params.rbs +31 -3
- 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 +14 -26
- 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
|
@@ -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
|
|
|
@@ -535,7 +535,8 @@ module Telnyx
|
|
|
535
535
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
536
536
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
537
537
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
538
|
-
# `Inworld.Max.Oliver`). Supported models: `Mini`,
|
|
538
|
+
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
539
|
+
# `Max`, `TTS2`.
|
|
539
540
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
540
541
|
# `ara`, `rex`, `sal`, `leo`.
|
|
541
542
|
voice: nil,
|
|
@@ -719,7 +720,9 @@ module Telnyx
|
|
|
719
720
|
# `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
|
|
720
721
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
721
722
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
722
|
-
# `Inworld.Max.Oliver`). Supported models: `Mini`,
|
|
723
|
+
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
724
|
+
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
725
|
+
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
723
726
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
724
727
|
# `ara`, `rex`, `sal`, `leo`.
|
|
725
728
|
#
|
|
@@ -1132,7 +1135,9 @@ module Telnyx
|
|
|
1132
1135
|
# `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
|
|
1133
1136
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
1134
1137
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
1135
|
-
# `Inworld.Max.Oliver`). Supported models: `Mini`,
|
|
1138
|
+
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
1139
|
+
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
1140
|
+
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
1136
1141
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
1137
1142
|
# `ara`, `rex`, `sal`, `leo`.
|
|
1138
1143
|
#
|
|
@@ -1269,7 +1274,8 @@ module Telnyx
|
|
|
1269
1274
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
1270
1275
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
1271
1276
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
1272
|
-
# `Inworld.Max.Oliver`). Supported models: `Mini`,
|
|
1277
|
+
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
1278
|
+
# `Max`, `TTS2`.
|
|
1273
1279
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
1274
1280
|
# `ara`, `rex`, `sal`, `leo`.
|
|
1275
1281
|
voice: nil,
|
|
@@ -1432,7 +1438,8 @@ module Telnyx
|
|
|
1432
1438
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
1433
1439
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
1434
1440
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
1435
|
-
# `Inworld.Max.Oliver`). Supported models: `Mini`,
|
|
1441
|
+
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
1442
|
+
# `Max`, `TTS2`.
|
|
1436
1443
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
1437
1444
|
# `ara`, `rex`, `sal`, `leo`.
|
|
1438
1445
|
voice: nil,
|
|
@@ -583,7 +583,9 @@ module Telnyx
|
|
|
583
583
|
# `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
|
|
584
584
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
585
585
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
586
|
-
# `Inworld.Max.Oliver`). Supported models: `Mini`,
|
|
586
|
+
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
587
|
+
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
588
|
+
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
587
589
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
588
590
|
# `ara`, `rex`, `sal`, `leo`.
|
|
589
591
|
#
|
|
@@ -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]
|
|
@@ -1118,14 +1118,42 @@ module Telnyx
|
|
|
1118
1118
|
module VoiceSettings
|
|
1119
1119
|
extend Telnyx::Internal::Type::Union
|
|
1120
1120
|
|
|
1121
|
-
type inworld =
|
|
1121
|
+
type inworld =
|
|
1122
|
+
{
|
|
1123
|
+
type: :inworld,
|
|
1124
|
+
delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
|
|
1125
|
+
}
|
|
1122
1126
|
|
|
1123
1127
|
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
1124
1128
|
attr_accessor type: :inworld
|
|
1125
1129
|
|
|
1126
|
-
|
|
1130
|
+
attr_reader delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode?
|
|
1127
1131
|
|
|
1128
|
-
def
|
|
1132
|
+
def delivery_mode=: (
|
|
1133
|
+
Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
|
|
1134
|
+
) -> Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
|
|
1135
|
+
|
|
1136
|
+
def initialize: (
|
|
1137
|
+
?delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode,
|
|
1138
|
+
?type: :inworld
|
|
1139
|
+
) -> void
|
|
1140
|
+
|
|
1141
|
+
def to_hash: -> {
|
|
1142
|
+
type: :inworld,
|
|
1143
|
+
delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
type delivery_mode = :STABLE | :BALANCED | :CREATIVE
|
|
1147
|
+
|
|
1148
|
+
module DeliveryMode
|
|
1149
|
+
extend Telnyx::Internal::Type::Enum
|
|
1150
|
+
|
|
1151
|
+
STABLE: :STABLE
|
|
1152
|
+
BALANCED: :BALANCED
|
|
1153
|
+
CREATIVE: :CREATIVE
|
|
1154
|
+
|
|
1155
|
+
def self?.values: -> ::Array[Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode]
|
|
1156
|
+
end
|
|
1129
1157
|
end
|
|
1130
1158
|
|
|
1131
1159
|
type xai = { type: :xai, language: String }
|
|
@@ -1189,14 +1217,42 @@ module Telnyx
|
|
|
1189
1217
|
module VoiceSettings
|
|
1190
1218
|
extend Telnyx::Internal::Type::Union
|
|
1191
1219
|
|
|
1192
|
-
type inworld =
|
|
1220
|
+
type inworld =
|
|
1221
|
+
{
|
|
1222
|
+
type: :inworld,
|
|
1223
|
+
delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
|
|
1224
|
+
}
|
|
1193
1225
|
|
|
1194
1226
|
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
1195
1227
|
attr_accessor type: :inworld
|
|
1196
1228
|
|
|
1197
|
-
|
|
1229
|
+
attr_reader delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode?
|
|
1230
|
+
|
|
1231
|
+
def delivery_mode=: (
|
|
1232
|
+
Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
|
|
1233
|
+
) -> Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
|
|
1198
1234
|
|
|
1199
|
-
def
|
|
1235
|
+
def initialize: (
|
|
1236
|
+
?delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode,
|
|
1237
|
+
?type: :inworld
|
|
1238
|
+
) -> void
|
|
1239
|
+
|
|
1240
|
+
def to_hash: -> {
|
|
1241
|
+
type: :inworld,
|
|
1242
|
+
delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
type delivery_mode = :STABLE | :BALANCED | :CREATIVE
|
|
1246
|
+
|
|
1247
|
+
module DeliveryMode
|
|
1248
|
+
extend Telnyx::Internal::Type::Enum
|
|
1249
|
+
|
|
1250
|
+
STABLE: :STABLE
|
|
1251
|
+
BALANCED: :BALANCED
|
|
1252
|
+
CREATIVE: :CREATIVE
|
|
1253
|
+
|
|
1254
|
+
def self?.values: -> ::Array[Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode]
|
|
1255
|
+
end
|
|
1200
1256
|
end
|
|
1201
1257
|
|
|
1202
1258
|
type xai = { type: :xai, language: String }
|
|
@@ -649,14 +649,42 @@ module Telnyx
|
|
|
649
649
|
module VoiceSettings
|
|
650
650
|
extend Telnyx::Internal::Type::Union
|
|
651
651
|
|
|
652
|
-
type inworld =
|
|
652
|
+
type inworld =
|
|
653
|
+
{
|
|
654
|
+
type: :inworld,
|
|
655
|
+
delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
|
|
656
|
+
}
|
|
653
657
|
|
|
654
658
|
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
655
659
|
attr_accessor type: :inworld
|
|
656
660
|
|
|
657
|
-
|
|
661
|
+
attr_reader delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode?
|
|
658
662
|
|
|
659
|
-
def
|
|
663
|
+
def delivery_mode=: (
|
|
664
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
|
|
665
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
|
|
666
|
+
|
|
667
|
+
def initialize: (
|
|
668
|
+
?delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode,
|
|
669
|
+
?type: :inworld
|
|
670
|
+
) -> void
|
|
671
|
+
|
|
672
|
+
def to_hash: -> {
|
|
673
|
+
type: :inworld,
|
|
674
|
+
delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
type delivery_mode = :STABLE | :BALANCED | :CREATIVE
|
|
678
|
+
|
|
679
|
+
module DeliveryMode
|
|
680
|
+
extend Telnyx::Internal::Type::Enum
|
|
681
|
+
|
|
682
|
+
STABLE: :STABLE
|
|
683
|
+
BALANCED: :BALANCED
|
|
684
|
+
CREATIVE: :CREATIVE
|
|
685
|
+
|
|
686
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode]
|
|
687
|
+
end
|
|
660
688
|
end
|
|
661
689
|
|
|
662
690
|
type xai = { type: :xai, language: String }
|
|
@@ -720,14 +748,42 @@ module Telnyx
|
|
|
720
748
|
module VoiceSettings
|
|
721
749
|
extend Telnyx::Internal::Type::Union
|
|
722
750
|
|
|
723
|
-
type inworld =
|
|
751
|
+
type inworld =
|
|
752
|
+
{
|
|
753
|
+
type: :inworld,
|
|
754
|
+
delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
|
|
755
|
+
}
|
|
724
756
|
|
|
725
757
|
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
726
758
|
attr_accessor type: :inworld
|
|
727
759
|
|
|
728
|
-
|
|
760
|
+
attr_reader delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode?
|
|
761
|
+
|
|
762
|
+
def delivery_mode=: (
|
|
763
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
|
|
764
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
|
|
729
765
|
|
|
730
|
-
def
|
|
766
|
+
def initialize: (
|
|
767
|
+
?delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode,
|
|
768
|
+
?type: :inworld
|
|
769
|
+
) -> void
|
|
770
|
+
|
|
771
|
+
def to_hash: -> {
|
|
772
|
+
type: :inworld,
|
|
773
|
+
delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
type delivery_mode = :STABLE | :BALANCED | :CREATIVE
|
|
777
|
+
|
|
778
|
+
module DeliveryMode
|
|
779
|
+
extend Telnyx::Internal::Type::Enum
|
|
780
|
+
|
|
781
|
+
STABLE: :STABLE
|
|
782
|
+
BALANCED: :BALANCED
|
|
783
|
+
CREATIVE: :CREATIVE
|
|
784
|
+
|
|
785
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode]
|
|
786
|
+
end
|
|
731
787
|
end
|
|
732
788
|
|
|
733
789
|
type xai = { type: :xai, language: String }
|
|
@@ -242,14 +242,42 @@ module Telnyx
|
|
|
242
242
|
module VoiceSettings
|
|
243
243
|
extend Telnyx::Internal::Type::Union
|
|
244
244
|
|
|
245
|
-
type inworld =
|
|
245
|
+
type inworld =
|
|
246
|
+
{
|
|
247
|
+
type: :inworld,
|
|
248
|
+
delivery_mode: Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode
|
|
249
|
+
}
|
|
246
250
|
|
|
247
251
|
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
248
252
|
attr_accessor type: :inworld
|
|
249
253
|
|
|
250
|
-
|
|
254
|
+
attr_reader delivery_mode: Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode?
|
|
251
255
|
|
|
252
|
-
def
|
|
256
|
+
def delivery_mode=: (
|
|
257
|
+
Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode
|
|
258
|
+
) -> Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode
|
|
259
|
+
|
|
260
|
+
def initialize: (
|
|
261
|
+
?delivery_mode: Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode,
|
|
262
|
+
?type: :inworld
|
|
263
|
+
) -> void
|
|
264
|
+
|
|
265
|
+
def to_hash: -> {
|
|
266
|
+
type: :inworld,
|
|
267
|
+
delivery_mode: Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
type delivery_mode = :STABLE | :BALANCED | :CREATIVE
|
|
271
|
+
|
|
272
|
+
module DeliveryMode
|
|
273
|
+
extend Telnyx::Internal::Type::Enum
|
|
274
|
+
|
|
275
|
+
STABLE: :STABLE
|
|
276
|
+
BALANCED: :BALANCED
|
|
277
|
+
CREATIVE: :CREATIVE
|
|
278
|
+
|
|
279
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode]
|
|
280
|
+
end
|
|
253
281
|
end
|
|
254
282
|
|
|
255
283
|
type xai = { type: :xai, language: String }
|