telnyx 5.98.0 → 5.100.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 +21 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +5 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -231
- data/lib/telnyx/models/ai/assistant_update_params.rb +9 -231
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +128 -7
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +131 -7
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -236
- data/lib/telnyx/models/ai/external_llm.rb +89 -0
- data/lib/telnyx/models/ai/external_llm_req.rb +89 -0
- data/lib/telnyx/models/ai/fallback_config.rb +37 -0
- data/lib/telnyx/models/ai/fallback_config_req.rb +37 -0
- data/lib/telnyx/models/ai/inference_embedding.rb +9 -234
- data/lib/telnyx/models/ai/post_conversation_settings.rb +30 -0
- data/lib/telnyx/models/ai/post_conversation_settings_req.rb +30 -0
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +26 -3
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +26 -3
- data/lib/telnyx/models/calls/action_speak_params.rb +26 -3
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +26 -3
- data/lib/telnyx/models/conferences/action_speak_params.rb +26 -3
- data/lib/telnyx/models/uac_connection_create_params.rb +738 -0
- data/lib/telnyx/models/uac_connection_create_response.rb +898 -0
- data/lib/telnyx/models/uac_connection_delete_params.rb +20 -0
- data/lib/telnyx/models/uac_connection_delete_response.rb +898 -0
- data/lib/telnyx/models/uac_connection_list_params.rb +143 -0
- data/lib/telnyx/models/uac_connection_list_response.rb +876 -0
- data/lib/telnyx/models/uac_connection_retrieve_params.rb +20 -0
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +899 -0
- data/lib/telnyx/models/uac_connection_update_params.rb +740 -0
- data/lib/telnyx/models/uac_connection_update_response.rb +898 -0
- data/lib/telnyx/models/uac_connections/action_check_registration_status_params.rb +22 -0
- data/lib/telnyx/models/uac_connections/action_check_registration_status_response.rb +104 -0
- data/lib/telnyx/models.rb +12 -0
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +6 -10
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/calls/actions.rb +4 -4
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/uac_connections/actions.rb +39 -0
- data/lib/telnyx/resources/uac_connections.rb +256 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -1
- data/rbi/telnyx/client.rbi +4 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -463
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -463
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +303 -10
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +309 -9
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -469
- data/rbi/telnyx/models/ai/external_llm.rbi +161 -0
- data/rbi/telnyx/models/ai/external_llm_req.rbi +161 -0
- data/rbi/telnyx/models/ai/fallback_config.rbi +64 -0
- data/rbi/telnyx/models/ai/fallback_config_req.rbi +64 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -460
- data/rbi/telnyx/models/ai/post_conversation_settings.rbi +45 -0
- data/rbi/telnyx/models/ai/post_conversation_settings_req.rbi +45 -0
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +50 -5
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +50 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +50 -5
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +50 -5
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +50 -5
- data/rbi/telnyx/models/uac_connection_create_params.rbi +1465 -0
- data/rbi/telnyx/models/uac_connection_create_response.rbi +1793 -0
- data/rbi/telnyx/models/uac_connection_delete_params.rbi +35 -0
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +1793 -0
- data/rbi/telnyx/models/uac_connection_list_params.rbi +261 -0
- data/rbi/telnyx/models/uac_connection_list_response.rbi +1727 -0
- data/rbi/telnyx/models/uac_connection_retrieve_params.rbi +35 -0
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +1793 -0
- data/rbi/telnyx/models/uac_connection_update_params.rbi +1463 -0
- data/rbi/telnyx/models/uac_connection_update_response.rbi +1793 -0
- data/rbi/telnyx/models/uac_connections/action_check_registration_status_params.rbi +40 -0
- data/rbi/telnyx/models/uac_connections/action_check_registration_status_response.rbi +237 -0
- data/rbi/telnyx/models.rbi +12 -0
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +6 -14
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -5
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
- data/rbi/telnyx/resources/calls/actions.rbi +16 -4
- data/rbi/telnyx/resources/conferences/actions.rbi +4 -1
- data/rbi/telnyx/resources/uac_connections/actions.rbi +33 -0
- data/rbi/telnyx/resources/uac_connections.rbi +348 -0
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -205
- data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -205
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +113 -4
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +113 -8
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -205
- data/sig/telnyx/models/ai/external_llm.rbs +75 -0
- data/sig/telnyx/models/ai/external_llm_req.rbs +75 -0
- data/sig/telnyx/models/ai/fallback_config.rbs +38 -0
- data/sig/telnyx/models/ai/fallback_config_req.rbs +40 -0
- data/sig/telnyx/models/ai/inference_embedding.rbs +17 -206
- data/sig/telnyx/models/ai/post_conversation_settings.rbs +17 -0
- data/sig/telnyx/models/ai/post_conversation_settings_req.rbs +17 -0
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -0
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -0
- data/sig/telnyx/models/calls/action_speak_params.rbs +15 -0
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -0
- data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -0
- data/sig/telnyx/models/uac_connection_create_params.rbs +609 -0
- data/sig/telnyx/models/uac_connection_create_response.rbs +741 -0
- data/sig/telnyx/models/uac_connection_delete_params.rbs +20 -0
- data/sig/telnyx/models/uac_connection_delete_response.rbs +741 -0
- data/sig/telnyx/models/uac_connection_list_params.rbs +112 -0
- data/sig/telnyx/models/uac_connection_list_response.rbs +722 -0
- data/sig/telnyx/models/uac_connection_retrieve_params.rbs +20 -0
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +741 -0
- data/sig/telnyx/models/uac_connection_update_params.rbs +615 -0
- data/sig/telnyx/models/uac_connection_update_response.rbs +741 -0
- data/sig/telnyx/models/uac_connections/action_check_registration_status_params.rbs +22 -0
- data/sig/telnyx/models/uac_connections/action_check_registration_status_response.rbs +117 -0
- data/sig/telnyx/models.rbs +12 -0
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/uac_connections/actions.rbs +14 -0
- data/sig/telnyx/resources/uac_connections.rbs +90 -0
- metadata +62 -5
- data/lib/telnyx/models/ai/assistants/version_config.rb +0 -30
- data/rbi/telnyx/models/ai/assistants/version_config.rbi +0 -45
- data/sig/telnyx/models/ai/assistants/version_config.rbs +0 -19
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module UacConnections
|
|
6
|
+
class ActionCheckRegistrationStatusParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::UacConnections::ActionCheckRegistrationStatusParams,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
id: String,
|
|
24
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(id:, request_options: {})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ id: String, request_options: Telnyx::RequestOptions }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
def to_hash
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module UacConnections
|
|
6
|
+
class ActionCheckRegistrationStatusResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
T.nilable(
|
|
18
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data
|
|
19
|
+
)
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
attr_reader :data
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
data:
|
|
27
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::OrHash
|
|
28
|
+
).void
|
|
29
|
+
end
|
|
30
|
+
attr_writer :data
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
data:
|
|
35
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::OrHash
|
|
36
|
+
).returns(T.attached_class)
|
|
37
|
+
end
|
|
38
|
+
def self.new(data: nil)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{
|
|
44
|
+
data:
|
|
45
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
def to_hash
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
53
|
+
OrHash =
|
|
54
|
+
T.type_alias do
|
|
55
|
+
T.any(
|
|
56
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data,
|
|
57
|
+
Telnyx::Internal::AnyHash
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# The ip used during the SIP connection
|
|
62
|
+
sig { returns(T.nilable(String)) }
|
|
63
|
+
attr_reader :ip_address
|
|
64
|
+
|
|
65
|
+
sig { params(ip_address: String).void }
|
|
66
|
+
attr_writer :ip_address
|
|
67
|
+
|
|
68
|
+
# ISO 8601 formatted date indicating when the resource was last updated.
|
|
69
|
+
sig { returns(T.nilable(String)) }
|
|
70
|
+
attr_reader :last_registration
|
|
71
|
+
|
|
72
|
+
sig { params(last_registration: String).void }
|
|
73
|
+
attr_writer :last_registration
|
|
74
|
+
|
|
75
|
+
# The port of the SIP connection
|
|
76
|
+
sig { returns(T.nilable(Integer)) }
|
|
77
|
+
attr_reader :port
|
|
78
|
+
|
|
79
|
+
sig { params(port: Integer).void }
|
|
80
|
+
attr_writer :port
|
|
81
|
+
|
|
82
|
+
# Identifies the type of the resource.
|
|
83
|
+
sig { returns(T.nilable(String)) }
|
|
84
|
+
attr_reader :record_type
|
|
85
|
+
|
|
86
|
+
sig { params(record_type: String).void }
|
|
87
|
+
attr_writer :record_type
|
|
88
|
+
|
|
89
|
+
# The user name of the SIP connection
|
|
90
|
+
sig { returns(T.nilable(String)) }
|
|
91
|
+
attr_reader :sip_username
|
|
92
|
+
|
|
93
|
+
sig { params(sip_username: String).void }
|
|
94
|
+
attr_writer :sip_username
|
|
95
|
+
|
|
96
|
+
# The current registration status of your SIP connection
|
|
97
|
+
sig do
|
|
98
|
+
returns(
|
|
99
|
+
T.nilable(
|
|
100
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol
|
|
101
|
+
)
|
|
102
|
+
)
|
|
103
|
+
end
|
|
104
|
+
attr_reader :status
|
|
105
|
+
|
|
106
|
+
sig do
|
|
107
|
+
params(
|
|
108
|
+
status:
|
|
109
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::OrSymbol
|
|
110
|
+
).void
|
|
111
|
+
end
|
|
112
|
+
attr_writer :status
|
|
113
|
+
|
|
114
|
+
# The protocol of the SIP connection
|
|
115
|
+
sig { returns(T.nilable(String)) }
|
|
116
|
+
attr_reader :transport
|
|
117
|
+
|
|
118
|
+
sig { params(transport: String).void }
|
|
119
|
+
attr_writer :transport
|
|
120
|
+
|
|
121
|
+
# The user agent of the SIP connection
|
|
122
|
+
sig { returns(T.nilable(String)) }
|
|
123
|
+
attr_reader :user_agent
|
|
124
|
+
|
|
125
|
+
sig { params(user_agent: String).void }
|
|
126
|
+
attr_writer :user_agent
|
|
127
|
+
|
|
128
|
+
sig do
|
|
129
|
+
params(
|
|
130
|
+
ip_address: String,
|
|
131
|
+
last_registration: String,
|
|
132
|
+
port: Integer,
|
|
133
|
+
record_type: String,
|
|
134
|
+
sip_username: String,
|
|
135
|
+
status:
|
|
136
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::OrSymbol,
|
|
137
|
+
transport: String,
|
|
138
|
+
user_agent: String
|
|
139
|
+
).returns(T.attached_class)
|
|
140
|
+
end
|
|
141
|
+
def self.new(
|
|
142
|
+
# The ip used during the SIP connection
|
|
143
|
+
ip_address: nil,
|
|
144
|
+
# ISO 8601 formatted date indicating when the resource was last updated.
|
|
145
|
+
last_registration: nil,
|
|
146
|
+
# The port of the SIP connection
|
|
147
|
+
port: nil,
|
|
148
|
+
# Identifies the type of the resource.
|
|
149
|
+
record_type: nil,
|
|
150
|
+
# The user name of the SIP connection
|
|
151
|
+
sip_username: nil,
|
|
152
|
+
# The current registration status of your SIP connection
|
|
153
|
+
status: nil,
|
|
154
|
+
# The protocol of the SIP connection
|
|
155
|
+
transport: nil,
|
|
156
|
+
# The user agent of the SIP connection
|
|
157
|
+
user_agent: nil
|
|
158
|
+
)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
sig do
|
|
162
|
+
override.returns(
|
|
163
|
+
{
|
|
164
|
+
ip_address: String,
|
|
165
|
+
last_registration: String,
|
|
166
|
+
port: Integer,
|
|
167
|
+
record_type: String,
|
|
168
|
+
sip_username: String,
|
|
169
|
+
status:
|
|
170
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol,
|
|
171
|
+
transport: String,
|
|
172
|
+
user_agent: String
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
end
|
|
176
|
+
def to_hash
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# The current registration status of your SIP connection
|
|
180
|
+
module Status
|
|
181
|
+
extend Telnyx::Internal::Type::Enum
|
|
182
|
+
|
|
183
|
+
TaggedSymbol =
|
|
184
|
+
T.type_alias do
|
|
185
|
+
T.all(
|
|
186
|
+
Symbol,
|
|
187
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status
|
|
188
|
+
)
|
|
189
|
+
end
|
|
190
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
191
|
+
|
|
192
|
+
NOT_APPLICABLE =
|
|
193
|
+
T.let(
|
|
194
|
+
:"Not Applicable",
|
|
195
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol
|
|
196
|
+
)
|
|
197
|
+
NOT_REGISTERED =
|
|
198
|
+
T.let(
|
|
199
|
+
:"Not Registered",
|
|
200
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol
|
|
201
|
+
)
|
|
202
|
+
FAILED =
|
|
203
|
+
T.let(
|
|
204
|
+
:Failed,
|
|
205
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol
|
|
206
|
+
)
|
|
207
|
+
EXPIRED =
|
|
208
|
+
T.let(
|
|
209
|
+
:Expired,
|
|
210
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol
|
|
211
|
+
)
|
|
212
|
+
REGISTERED =
|
|
213
|
+
T.let(
|
|
214
|
+
:Registered,
|
|
215
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol
|
|
216
|
+
)
|
|
217
|
+
UNREGISTERED =
|
|
218
|
+
T.let(
|
|
219
|
+
:Unregistered,
|
|
220
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
sig do
|
|
224
|
+
override.returns(
|
|
225
|
+
T::Array[
|
|
226
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol
|
|
227
|
+
]
|
|
228
|
+
)
|
|
229
|
+
end
|
|
230
|
+
def self.values
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -1798,6 +1798,18 @@ module Telnyx
|
|
|
1798
1798
|
|
|
1799
1799
|
TransportProtocol = Telnyx::Models::TransportProtocol
|
|
1800
1800
|
|
|
1801
|
+
UacConnectionCreateParams = Telnyx::Models::UacConnectionCreateParams
|
|
1802
|
+
|
|
1803
|
+
UacConnectionDeleteParams = Telnyx::Models::UacConnectionDeleteParams
|
|
1804
|
+
|
|
1805
|
+
UacConnectionListParams = Telnyx::Models::UacConnectionListParams
|
|
1806
|
+
|
|
1807
|
+
UacConnectionRetrieveParams = Telnyx::Models::UacConnectionRetrieveParams
|
|
1808
|
+
|
|
1809
|
+
UacConnections = Telnyx::Models::UacConnections
|
|
1810
|
+
|
|
1811
|
+
UacConnectionUpdateParams = Telnyx::Models::UacConnectionUpdateParams
|
|
1812
|
+
|
|
1801
1813
|
UnsafeUnwrapWebhookEvent = Telnyx::Models::UnsafeUnwrapWebhookEvent
|
|
1802
1814
|
|
|
1803
1815
|
UnwrapWebhookEvent = Telnyx::Models::UnwrapWebhookEvent
|
|
@@ -13,16 +13,12 @@ module Telnyx
|
|
|
13
13
|
sig do
|
|
14
14
|
params(
|
|
15
15
|
assistant_id: String,
|
|
16
|
-
|
|
16
|
+
rules:
|
|
17
|
+
T::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::OrHash],
|
|
17
18
|
request_options: Telnyx::RequestOptions::OrHash
|
|
18
19
|
).returns(Telnyx::AI::Assistants::CanaryDeployResponse)
|
|
19
20
|
end
|
|
20
|
-
def create(
|
|
21
|
-
assistant_id,
|
|
22
|
-
# List of version configurations
|
|
23
|
-
versions:,
|
|
24
|
-
request_options: {}
|
|
25
|
-
)
|
|
21
|
+
def create(assistant_id, rules: nil, request_options: {})
|
|
26
22
|
end
|
|
27
23
|
|
|
28
24
|
# Endpoint to get a canary deploy configuration for an assistant.
|
|
@@ -46,16 +42,12 @@ module Telnyx
|
|
|
46
42
|
sig do
|
|
47
43
|
params(
|
|
48
44
|
assistant_id: String,
|
|
49
|
-
|
|
45
|
+
rules:
|
|
46
|
+
T::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::OrHash],
|
|
50
47
|
request_options: Telnyx::RequestOptions::OrHash
|
|
51
48
|
).returns(Telnyx::AI::Assistants::CanaryDeployResponse)
|
|
52
49
|
end
|
|
53
|
-
def update(
|
|
54
|
-
assistant_id,
|
|
55
|
-
# List of version configurations
|
|
56
|
-
versions:,
|
|
57
|
-
request_options: {}
|
|
58
|
-
)
|
|
50
|
+
def update(assistant_id, rules: nil, request_options: {})
|
|
59
51
|
end
|
|
60
52
|
|
|
61
53
|
# Endpoint to delete a canary deploy configuration for an assistant.
|
|
@@ -37,10 +37,8 @@ module Telnyx
|
|
|
37
37
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
38
38
|
dynamic_variables_webhook_url: String,
|
|
39
39
|
enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
|
|
40
|
-
external_llm:
|
|
41
|
-
|
|
42
|
-
fallback_config:
|
|
43
|
-
Telnyx::AI::Assistants::UpdateAssistant::FallbackConfig::OrHash,
|
|
40
|
+
external_llm: Telnyx::AI::ExternalLlmReq::OrHash,
|
|
41
|
+
fallback_config: Telnyx::AI::FallbackConfigReq::OrHash,
|
|
44
42
|
greeting: String,
|
|
45
43
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
46
44
|
instructions: String,
|
|
@@ -60,7 +58,7 @@ module Telnyx
|
|
|
60
58
|
name: String,
|
|
61
59
|
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
62
60
|
post_conversation_settings:
|
|
63
|
-
Telnyx::AI::
|
|
61
|
+
Telnyx::AI::PostConversationSettingsReq::OrHash,
|
|
64
62
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
65
63
|
tags: T::Array[String],
|
|
66
64
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
@@ -39,10 +39,8 @@ module Telnyx
|
|
|
39
39
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
40
40
|
dynamic_variables_webhook_url: String,
|
|
41
41
|
enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
|
|
42
|
-
external_llm:
|
|
43
|
-
|
|
44
|
-
fallback_config:
|
|
45
|
-
Telnyx::AI::AssistantCreateParams::FallbackConfig::OrHash,
|
|
42
|
+
external_llm: Telnyx::AI::ExternalLlmReq::OrHash,
|
|
43
|
+
fallback_config: Telnyx::AI::FallbackConfigReq::OrHash,
|
|
46
44
|
greeting: String,
|
|
47
45
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
48
46
|
integrations:
|
|
@@ -56,7 +54,7 @@ module Telnyx
|
|
|
56
54
|
model: String,
|
|
57
55
|
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
58
56
|
post_conversation_settings:
|
|
59
|
-
Telnyx::AI::
|
|
57
|
+
Telnyx::AI::PostConversationSettingsReq::OrHash,
|
|
60
58
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
61
59
|
tags: T::Array[String],
|
|
62
60
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
@@ -202,10 +200,8 @@ module Telnyx
|
|
|
202
200
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
203
201
|
dynamic_variables_webhook_url: String,
|
|
204
202
|
enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
|
|
205
|
-
external_llm:
|
|
206
|
-
|
|
207
|
-
fallback_config:
|
|
208
|
-
Telnyx::AI::AssistantUpdateParams::FallbackConfig::OrHash,
|
|
203
|
+
external_llm: Telnyx::AI::ExternalLlmReq::OrHash,
|
|
204
|
+
fallback_config: Telnyx::AI::FallbackConfigReq::OrHash,
|
|
209
205
|
greeting: String,
|
|
210
206
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
211
207
|
instructions: String,
|
|
@@ -221,7 +217,7 @@ module Telnyx
|
|
|
221
217
|
name: String,
|
|
222
218
|
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
223
219
|
post_conversation_settings:
|
|
224
|
-
Telnyx::AI::
|
|
220
|
+
Telnyx::AI::PostConversationSettingsReq::OrHash,
|
|
225
221
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
226
222
|
promote_to_main: T::Boolean,
|
|
227
223
|
tags: T::Array[String],
|
|
@@ -450,7 +450,8 @@ module Telnyx
|
|
|
450
450
|
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
451
451
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
452
452
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
453
|
-
Telnyx::ResembleVoiceSettings::OrHash
|
|
453
|
+
Telnyx::ResembleVoiceSettings::OrHash,
|
|
454
|
+
Telnyx::Calls::ActionGatherUsingAIParams::VoiceSettings::Xai::OrHash
|
|
454
455
|
),
|
|
455
456
|
request_options: Telnyx::RequestOptions::OrHash
|
|
456
457
|
).returns(Telnyx::Models::Calls::ActionGatherUsingAIResponse)
|
|
@@ -526,6 +527,8 @@ module Telnyx
|
|
|
526
527
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
527
528
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
528
529
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
530
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
531
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
529
532
|
voice: nil,
|
|
530
533
|
# The settings associated with the voice selected
|
|
531
534
|
voice_settings: nil,
|
|
@@ -658,7 +661,8 @@ module Telnyx
|
|
|
658
661
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
659
662
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
660
663
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
661
|
-
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::OrHash
|
|
664
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
665
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Xai::OrHash
|
|
662
666
|
),
|
|
663
667
|
request_options: Telnyx::RequestOptions::OrHash
|
|
664
668
|
).returns(Telnyx::Models::Calls::ActionGatherUsingSpeakResponse)
|
|
@@ -707,6 +711,8 @@ module Telnyx
|
|
|
707
711
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
708
712
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
709
713
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
714
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
715
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
710
716
|
#
|
|
711
717
|
# For service_level basic, you may define the gender of the speaker (male or
|
|
712
718
|
# female).
|
|
@@ -1068,7 +1074,8 @@ module Telnyx
|
|
|
1068
1074
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
1069
1075
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
1070
1076
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
1071
|
-
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::OrHash
|
|
1077
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
1078
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Xai::OrHash
|
|
1072
1079
|
),
|
|
1073
1080
|
request_options: Telnyx::RequestOptions::OrHash
|
|
1074
1081
|
).returns(Telnyx::Models::Calls::ActionSpeakResponse)
|
|
@@ -1117,6 +1124,8 @@ module Telnyx
|
|
|
1117
1124
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
1118
1125
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
1119
1126
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
1127
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
1128
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
1120
1129
|
#
|
|
1121
1130
|
# For service_level basic, you may define the gender of the speaker (male or
|
|
1122
1131
|
# female).
|
|
@@ -1190,7 +1199,8 @@ module Telnyx
|
|
|
1190
1199
|
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
1191
1200
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
1192
1201
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
1193
|
-
Telnyx::ResembleVoiceSettings::OrHash
|
|
1202
|
+
Telnyx::ResembleVoiceSettings::OrHash,
|
|
1203
|
+
Telnyx::Calls::ActionStartAIAssistantParams::VoiceSettings::Xai::OrHash
|
|
1194
1204
|
),
|
|
1195
1205
|
request_options: Telnyx::RequestOptions::OrHash
|
|
1196
1206
|
).returns(Telnyx::Models::Calls::ActionStartAIAssistantResponse)
|
|
@@ -1251,6 +1261,8 @@ module Telnyx
|
|
|
1251
1261
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
1252
1262
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
1253
1263
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
1264
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
1265
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
1254
1266
|
voice: nil,
|
|
1255
1267
|
# The settings associated with the voice selected
|
|
1256
1268
|
voice_settings: nil,
|
|
@@ -534,7 +534,8 @@ module Telnyx
|
|
|
534
534
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
535
535
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
536
536
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
537
|
-
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash
|
|
537
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
538
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai::OrHash
|
|
538
539
|
),
|
|
539
540
|
request_options: Telnyx::RequestOptions::OrHash
|
|
540
541
|
).returns(Telnyx::Models::Conferences::ActionSpeakResponse)
|
|
@@ -583,6 +584,8 @@ module Telnyx
|
|
|
583
584
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
584
585
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
585
586
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
587
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
588
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
586
589
|
#
|
|
587
590
|
# For service_level basic, you may define the gender of the speaker (male or
|
|
588
591
|
# female).
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class UacConnections
|
|
6
|
+
# UAC connection operations
|
|
7
|
+
class Actions
|
|
8
|
+
# Checks the registration status for a UAC connection (`registration_status`) as
|
|
9
|
+
# well as the timestamp for the last SIP registration event
|
|
10
|
+
# (`registration_status_updated_at`).
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
id: String,
|
|
14
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
15
|
+
).returns(
|
|
16
|
+
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def check_registration_status(
|
|
20
|
+
# Identifies the resource.
|
|
21
|
+
id,
|
|
22
|
+
request_options: {}
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# @api private
|
|
27
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
28
|
+
def self.new(client:)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|