telnyx 5.122.0 → 5.124.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 +28 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +5 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +780 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +780 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +785 -1
- data/lib/telnyx/models/ai/inference_embedding.rb +767 -1
- data/lib/telnyx/models/{ai_create_response_params.rb → ai_create_response_deprecated_params.rb} +2 -2
- data/lib/telnyx/models/{ai_create_response_response.rb → ai_create_response_deprecated_response.rb} +1 -1
- data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
- data/lib/telnyx/models/sip_registration_status_retrieve_params.rb +45 -0
- data/lib/telnyx/models/sip_registration_status_retrieve_response.rb +160 -0
- data/lib/telnyx/models/speech_to_text_list_providers_params.rb +16 -5
- data/lib/telnyx/models/speech_to_text_list_providers_response.rb +55 -23
- data/lib/telnyx/models.rb +3 -1
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/ai.rb +4 -4
- data/lib/telnyx/resources/messaging_profiles.rb +3 -1
- data/lib/telnyx/resources/sip_registration_status.rb +45 -0
- data/lib/telnyx/resources/speech_to_text.rb +6 -5
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +5 -2
- data/rbi/telnyx/client.rbi +4 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +1411 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +1411 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +1417 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +1454 -0
- data/rbi/telnyx/models/{ai_create_response_params.rbi → ai_create_response_deprecated_params.rbi} +5 -2
- data/rbi/telnyx/models/{ai_create_response_response.rbi → ai_create_response_deprecated_response.rbi} +1 -1
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +8 -0
- data/rbi/telnyx/models/sip_registration_status_retrieve_params.rbi +93 -0
- data/rbi/telnyx/models/sip_registration_status_retrieve_response.rbi +343 -0
- data/rbi/telnyx/models/speech_to_text_list_providers_params.rbi +27 -7
- data/rbi/telnyx/models/speech_to_text_list_providers_response.rbi +107 -43
- data/rbi/telnyx/models.rbi +5 -1
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +8 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +16 -0
- data/rbi/telnyx/resources/ai.rbi +1 -1
- data/rbi/telnyx/resources/messaging_profiles.rbi +3 -0
- data/rbi/telnyx/resources/sip_registration_status.rbi +34 -0
- data/rbi/telnyx/resources/speech_to_text.rbi +11 -5
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +508 -0
- data/sig/telnyx/models/ai/assistant_update_params.rbs +508 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +511 -0
- data/sig/telnyx/models/ai/inference_embedding.rbs +526 -0
- data/sig/telnyx/models/{ai_create_response_params.rbs → ai_create_response_deprecated_params.rbs} +2 -2
- data/sig/telnyx/models/ai_create_response_deprecated_response.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +5 -0
- data/sig/telnyx/models/sip_registration_status_retrieve_params.rbs +41 -0
- data/sig/telnyx/models/sip_registration_status_retrieve_response.rbs +164 -0
- data/sig/telnyx/models/speech_to_text_list_providers_params.rbs +4 -4
- data/sig/telnyx/models/speech_to_text_list_providers_response.rbs +33 -16
- data/sig/telnyx/models.rbs +3 -1
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai.rbs +2 -2
- data/sig/telnyx/resources/messaging_profiles.rbs +1 -0
- data/sig/telnyx/resources/sip_registration_status.rbs +13 -0
- metadata +17 -8
- data/sig/telnyx/models/ai_create_response_response.rbs +0 -7
data/rbi/telnyx/models/{ai_create_response_params.rbi → ai_create_response_deprecated_params.rbi}
RENAMED
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class AICreateResponseDeprecatedParams < 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(
|
|
11
|
+
T.any(
|
|
12
|
+
Telnyx::AICreateResponseDeprecatedParams,
|
|
13
|
+
Telnyx::Internal::AnyHash
|
|
14
|
+
)
|
|
12
15
|
end
|
|
13
16
|
|
|
14
17
|
sig { returns(T::Hash[Symbol, T.anything]) }
|
|
@@ -14,6 +14,10 @@ module Telnyx
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :messaging_profile_id
|
|
16
16
|
|
|
17
|
+
# The ID of the AI assistant associated with this messaging profile.
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_accessor :ai_assistant_id
|
|
20
|
+
|
|
17
21
|
# The alphanumeric sender ID to use when sending to destinations that require an
|
|
18
22
|
# alphanumeric sender ID.
|
|
19
23
|
sig { returns(T.nilable(String)) }
|
|
@@ -160,6 +164,7 @@ module Telnyx
|
|
|
160
164
|
sig do
|
|
161
165
|
params(
|
|
162
166
|
messaging_profile_id: String,
|
|
167
|
+
ai_assistant_id: T.nilable(String),
|
|
163
168
|
alpha_sender: T.nilable(String),
|
|
164
169
|
daily_spend_limit: String,
|
|
165
170
|
daily_spend_limit_enabled: T::Boolean,
|
|
@@ -183,6 +188,8 @@ module Telnyx
|
|
|
183
188
|
end
|
|
184
189
|
def self.new(
|
|
185
190
|
messaging_profile_id:,
|
|
191
|
+
# The ID of the AI assistant associated with this messaging profile.
|
|
192
|
+
ai_assistant_id: nil,
|
|
186
193
|
# The alphanumeric sender ID to use when sending to destinations that require an
|
|
187
194
|
# alphanumeric sender ID.
|
|
188
195
|
alpha_sender: nil,
|
|
@@ -243,6 +250,7 @@ module Telnyx
|
|
|
243
250
|
override.returns(
|
|
244
251
|
{
|
|
245
252
|
messaging_profile_id: String,
|
|
253
|
+
ai_assistant_id: T.nilable(String),
|
|
246
254
|
alpha_sender: T.nilable(String),
|
|
247
255
|
daily_spend_limit: String,
|
|
248
256
|
daily_spend_limit_enabled: T::Boolean,
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class SipRegistrationStatusRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Telnyx::SipRegistrationStatusRetrieveParams,
|
|
13
|
+
Telnyx::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Identifier of the UAC connection to look up.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :connection_id
|
|
20
|
+
|
|
21
|
+
# The kind of credential to look up. Only `uac_external_credential` is supported
|
|
22
|
+
# today.
|
|
23
|
+
sig do
|
|
24
|
+
returns(
|
|
25
|
+
Telnyx::SipRegistrationStatusRetrieveParams::CredentialType::OrSymbol
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
attr_accessor :credential_type
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
connection_id: String,
|
|
33
|
+
credential_type:
|
|
34
|
+
Telnyx::SipRegistrationStatusRetrieveParams::CredentialType::OrSymbol,
|
|
35
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
36
|
+
).returns(T.attached_class)
|
|
37
|
+
end
|
|
38
|
+
def self.new(
|
|
39
|
+
# Identifier of the UAC connection to look up.
|
|
40
|
+
connection_id:,
|
|
41
|
+
# The kind of credential to look up. Only `uac_external_credential` is supported
|
|
42
|
+
# today.
|
|
43
|
+
credential_type:,
|
|
44
|
+
request_options: {}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
sig do
|
|
49
|
+
override.returns(
|
|
50
|
+
{
|
|
51
|
+
connection_id: String,
|
|
52
|
+
credential_type:
|
|
53
|
+
Telnyx::SipRegistrationStatusRetrieveParams::CredentialType::OrSymbol,
|
|
54
|
+
request_options: Telnyx::RequestOptions
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
def to_hash
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# The kind of credential to look up. Only `uac_external_credential` is supported
|
|
62
|
+
# today.
|
|
63
|
+
module CredentialType
|
|
64
|
+
extend Telnyx::Internal::Type::Enum
|
|
65
|
+
|
|
66
|
+
TaggedSymbol =
|
|
67
|
+
T.type_alias do
|
|
68
|
+
T.all(
|
|
69
|
+
Symbol,
|
|
70
|
+
Telnyx::SipRegistrationStatusRetrieveParams::CredentialType
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
74
|
+
|
|
75
|
+
UAC_EXTERNAL_CREDENTIAL =
|
|
76
|
+
T.let(
|
|
77
|
+
:uac_external_credential,
|
|
78
|
+
Telnyx::SipRegistrationStatusRetrieveParams::CredentialType::TaggedSymbol
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
sig do
|
|
82
|
+
override.returns(
|
|
83
|
+
T::Array[
|
|
84
|
+
Telnyx::SipRegistrationStatusRetrieveParams::CredentialType::TaggedSymbol
|
|
85
|
+
]
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
def self.values
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class SipRegistrationStatusRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse,
|
|
10
|
+
Telnyx::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Identifier of the UAC connection.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_reader :connection_id
|
|
17
|
+
|
|
18
|
+
sig { params(connection_id: String).void }
|
|
19
|
+
attr_writer :connection_id
|
|
20
|
+
|
|
21
|
+
# Human-readable connection name.
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
|
+
attr_reader :connection_name
|
|
24
|
+
|
|
25
|
+
sig { params(connection_name: String).void }
|
|
26
|
+
attr_writer :connection_name
|
|
27
|
+
|
|
28
|
+
# The credential type that was looked up.
|
|
29
|
+
sig do
|
|
30
|
+
returns(
|
|
31
|
+
T.nilable(
|
|
32
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::CredentialType::TaggedSymbol
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
attr_reader :credential_type
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
credential_type:
|
|
41
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::CredentialType::OrSymbol
|
|
42
|
+
).void
|
|
43
|
+
end
|
|
44
|
+
attr_writer :credential_type
|
|
45
|
+
|
|
46
|
+
# SIP username used for the registration.
|
|
47
|
+
sig { returns(T.nilable(String)) }
|
|
48
|
+
attr_reader :credential_username
|
|
49
|
+
|
|
50
|
+
sig { params(credential_username: String).void }
|
|
51
|
+
attr_writer :credential_username
|
|
52
|
+
|
|
53
|
+
# SIP response from the last registration attempt.
|
|
54
|
+
sig { returns(T.nilable(String)) }
|
|
55
|
+
attr_reader :last_registration_response
|
|
56
|
+
|
|
57
|
+
sig { params(last_registration_response: String).void }
|
|
58
|
+
attr_writer :last_registration_response
|
|
59
|
+
|
|
60
|
+
# True if the endpoint is currently registered.
|
|
61
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
62
|
+
attr_reader :registered
|
|
63
|
+
|
|
64
|
+
sig { params(registered: T::Boolean).void }
|
|
65
|
+
attr_writer :registered
|
|
66
|
+
|
|
67
|
+
# Detailed registration information reported by the registrar.
|
|
68
|
+
sig do
|
|
69
|
+
returns(
|
|
70
|
+
T.nilable(
|
|
71
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationDetails
|
|
72
|
+
)
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
attr_reader :sip_registration_details
|
|
76
|
+
|
|
77
|
+
sig do
|
|
78
|
+
params(
|
|
79
|
+
sip_registration_details:
|
|
80
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationDetails::OrHash
|
|
81
|
+
).void
|
|
82
|
+
end
|
|
83
|
+
attr_writer :sip_registration_details
|
|
84
|
+
|
|
85
|
+
# Human-readable registration status derived from the registrar state.
|
|
86
|
+
sig do
|
|
87
|
+
returns(
|
|
88
|
+
T.nilable(
|
|
89
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
90
|
+
)
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
attr_reader :sip_registration_status
|
|
94
|
+
|
|
95
|
+
sig do
|
|
96
|
+
params(
|
|
97
|
+
sip_registration_status:
|
|
98
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::OrSymbol
|
|
99
|
+
).void
|
|
100
|
+
end
|
|
101
|
+
attr_writer :sip_registration_status
|
|
102
|
+
|
|
103
|
+
sig do
|
|
104
|
+
params(
|
|
105
|
+
connection_id: String,
|
|
106
|
+
connection_name: String,
|
|
107
|
+
credential_type:
|
|
108
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::CredentialType::OrSymbol,
|
|
109
|
+
credential_username: String,
|
|
110
|
+
last_registration_response: String,
|
|
111
|
+
registered: T::Boolean,
|
|
112
|
+
sip_registration_details:
|
|
113
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationDetails::OrHash,
|
|
114
|
+
sip_registration_status:
|
|
115
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::OrSymbol
|
|
116
|
+
).returns(T.attached_class)
|
|
117
|
+
end
|
|
118
|
+
def self.new(
|
|
119
|
+
# Identifier of the UAC connection.
|
|
120
|
+
connection_id: nil,
|
|
121
|
+
# Human-readable connection name.
|
|
122
|
+
connection_name: nil,
|
|
123
|
+
# The credential type that was looked up.
|
|
124
|
+
credential_type: nil,
|
|
125
|
+
# SIP username used for the registration.
|
|
126
|
+
credential_username: nil,
|
|
127
|
+
# SIP response from the last registration attempt.
|
|
128
|
+
last_registration_response: nil,
|
|
129
|
+
# True if the endpoint is currently registered.
|
|
130
|
+
registered: nil,
|
|
131
|
+
# Detailed registration information reported by the registrar.
|
|
132
|
+
sip_registration_details: nil,
|
|
133
|
+
# Human-readable registration status derived from the registrar state.
|
|
134
|
+
sip_registration_status: nil
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
sig do
|
|
139
|
+
override.returns(
|
|
140
|
+
{
|
|
141
|
+
connection_id: String,
|
|
142
|
+
connection_name: String,
|
|
143
|
+
credential_type:
|
|
144
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::CredentialType::TaggedSymbol,
|
|
145
|
+
credential_username: String,
|
|
146
|
+
last_registration_response: String,
|
|
147
|
+
registered: T::Boolean,
|
|
148
|
+
sip_registration_details:
|
|
149
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationDetails,
|
|
150
|
+
sip_registration_status:
|
|
151
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
def to_hash
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# The credential type that was looked up.
|
|
159
|
+
module CredentialType
|
|
160
|
+
extend Telnyx::Internal::Type::Enum
|
|
161
|
+
|
|
162
|
+
TaggedSymbol =
|
|
163
|
+
T.type_alias do
|
|
164
|
+
T.all(
|
|
165
|
+
Symbol,
|
|
166
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::CredentialType
|
|
167
|
+
)
|
|
168
|
+
end
|
|
169
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
170
|
+
|
|
171
|
+
UAC_EXTERNAL_CREDENTIAL =
|
|
172
|
+
T.let(
|
|
173
|
+
:uac_external_credential,
|
|
174
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::CredentialType::TaggedSymbol
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
sig do
|
|
178
|
+
override.returns(
|
|
179
|
+
T::Array[
|
|
180
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::CredentialType::TaggedSymbol
|
|
181
|
+
]
|
|
182
|
+
)
|
|
183
|
+
end
|
|
184
|
+
def self.values
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
class SipRegistrationDetails < Telnyx::Internal::Type::BaseModel
|
|
189
|
+
OrHash =
|
|
190
|
+
T.type_alias do
|
|
191
|
+
T.any(
|
|
192
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationDetails,
|
|
193
|
+
Telnyx::Internal::AnyHash
|
|
194
|
+
)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Number of authentication retries on the last attempt.
|
|
198
|
+
sig { returns(T.nilable(Integer)) }
|
|
199
|
+
attr_reader :auth_retries
|
|
200
|
+
|
|
201
|
+
sig { params(auth_retries: Integer).void }
|
|
202
|
+
attr_writer :auth_retries
|
|
203
|
+
|
|
204
|
+
# Unix timestamp when the current registration expires.
|
|
205
|
+
sig { returns(T.nilable(Integer)) }
|
|
206
|
+
attr_reader :expires
|
|
207
|
+
|
|
208
|
+
sig { params(expires: Integer).void }
|
|
209
|
+
attr_writer :expires
|
|
210
|
+
|
|
211
|
+
# Count of consecutive registration failures.
|
|
212
|
+
sig { returns(T.nilable(Integer)) }
|
|
213
|
+
attr_reader :failures
|
|
214
|
+
|
|
215
|
+
sig { params(failures: Integer).void }
|
|
216
|
+
attr_writer :failures
|
|
217
|
+
|
|
218
|
+
# Unix timestamp of the next scheduled registration action.
|
|
219
|
+
sig { returns(T.nilable(Integer)) }
|
|
220
|
+
attr_reader :next_action_at
|
|
221
|
+
|
|
222
|
+
sig { params(next_action_at: Integer).void }
|
|
223
|
+
attr_writer :next_action_at
|
|
224
|
+
|
|
225
|
+
# SIP URI user@host of the registered contact.
|
|
226
|
+
sig { returns(T.nilable(String)) }
|
|
227
|
+
attr_reader :sip_uri_user_host
|
|
228
|
+
|
|
229
|
+
sig { params(sip_uri_user_host: String).void }
|
|
230
|
+
attr_writer :sip_uri_user_host
|
|
231
|
+
|
|
232
|
+
# Registration uptime reported by the registrar.
|
|
233
|
+
sig { returns(T.nilable(Integer)) }
|
|
234
|
+
attr_reader :uptime
|
|
235
|
+
|
|
236
|
+
sig { params(uptime: Integer).void }
|
|
237
|
+
attr_writer :uptime
|
|
238
|
+
|
|
239
|
+
# Detailed registration information reported by the registrar.
|
|
240
|
+
sig do
|
|
241
|
+
params(
|
|
242
|
+
auth_retries: Integer,
|
|
243
|
+
expires: Integer,
|
|
244
|
+
failures: Integer,
|
|
245
|
+
next_action_at: Integer,
|
|
246
|
+
sip_uri_user_host: String,
|
|
247
|
+
uptime: Integer
|
|
248
|
+
).returns(T.attached_class)
|
|
249
|
+
end
|
|
250
|
+
def self.new(
|
|
251
|
+
# Number of authentication retries on the last attempt.
|
|
252
|
+
auth_retries: nil,
|
|
253
|
+
# Unix timestamp when the current registration expires.
|
|
254
|
+
expires: nil,
|
|
255
|
+
# Count of consecutive registration failures.
|
|
256
|
+
failures: nil,
|
|
257
|
+
# Unix timestamp of the next scheduled registration action.
|
|
258
|
+
next_action_at: nil,
|
|
259
|
+
# SIP URI user@host of the registered contact.
|
|
260
|
+
sip_uri_user_host: nil,
|
|
261
|
+
# Registration uptime reported by the registrar.
|
|
262
|
+
uptime: nil
|
|
263
|
+
)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
sig do
|
|
267
|
+
override.returns(
|
|
268
|
+
{
|
|
269
|
+
auth_retries: Integer,
|
|
270
|
+
expires: Integer,
|
|
271
|
+
failures: Integer,
|
|
272
|
+
next_action_at: Integer,
|
|
273
|
+
sip_uri_user_host: String,
|
|
274
|
+
uptime: Integer
|
|
275
|
+
}
|
|
276
|
+
)
|
|
277
|
+
end
|
|
278
|
+
def to_hash
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Human-readable registration status derived from the registrar state.
|
|
283
|
+
module SipRegistrationStatus
|
|
284
|
+
extend Telnyx::Internal::Type::Enum
|
|
285
|
+
|
|
286
|
+
TaggedSymbol =
|
|
287
|
+
T.type_alias do
|
|
288
|
+
T.all(
|
|
289
|
+
Symbol,
|
|
290
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus
|
|
291
|
+
)
|
|
292
|
+
end
|
|
293
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
294
|
+
|
|
295
|
+
UNREGISTERING =
|
|
296
|
+
T.let(
|
|
297
|
+
:unregistering,
|
|
298
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
299
|
+
)
|
|
300
|
+
CONNECTION_DISABLED =
|
|
301
|
+
T.let(
|
|
302
|
+
:connection_disabled,
|
|
303
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
304
|
+
)
|
|
305
|
+
STANDBY =
|
|
306
|
+
T.let(
|
|
307
|
+
:standby,
|
|
308
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
309
|
+
)
|
|
310
|
+
FAILED =
|
|
311
|
+
T.let(
|
|
312
|
+
:failed,
|
|
313
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
314
|
+
)
|
|
315
|
+
TRYING =
|
|
316
|
+
T.let(
|
|
317
|
+
:trying,
|
|
318
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
319
|
+
)
|
|
320
|
+
REGISTERED =
|
|
321
|
+
T.let(
|
|
322
|
+
:registered,
|
|
323
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
324
|
+
)
|
|
325
|
+
UNKNOWN =
|
|
326
|
+
T.let(
|
|
327
|
+
:unknown,
|
|
328
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
329
|
+
)
|
|
330
|
+
|
|
331
|
+
sig do
|
|
332
|
+
override.returns(
|
|
333
|
+
T::Array[
|
|
334
|
+
Telnyx::Models::SipRegistrationStatusRetrieveResponse::SipRegistrationStatus::TaggedSymbol
|
|
335
|
+
]
|
|
336
|
+
)
|
|
337
|
+
end
|
|
338
|
+
def self.values
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
end
|
|
@@ -33,7 +33,12 @@ module Telnyx
|
|
|
33
33
|
end
|
|
34
34
|
attr_writer :provider
|
|
35
35
|
|
|
36
|
-
# Filter to entries that support the given service type.
|
|
36
|
+
# Filter to entries that support the given service type. For backward
|
|
37
|
+
# compatibility with the values that briefly shipped before the product-aligned
|
|
38
|
+
# rename, the legacy aliases `file_transcription`, `in_call_transcription`, and
|
|
39
|
+
# `ai_assistant_transcription` are silently accepted and normalized to
|
|
40
|
+
# `file_based`, `in_call`, and `ai_assistant` respectively. The response always
|
|
41
|
+
# emits the canonical (post-rename) values.
|
|
37
42
|
sig do
|
|
38
43
|
returns(
|
|
39
44
|
T.nilable(
|
|
@@ -66,7 +71,12 @@ module Telnyx
|
|
|
66
71
|
# models currently registered for any service type will return an empty `data`
|
|
67
72
|
# array rather than an error.
|
|
68
73
|
provider: nil,
|
|
69
|
-
# Filter to entries that support the given service type.
|
|
74
|
+
# Filter to entries that support the given service type. For backward
|
|
75
|
+
# compatibility with the values that briefly shipped before the product-aligned
|
|
76
|
+
# rename, the legacy aliases `file_transcription`, `in_call_transcription`, and
|
|
77
|
+
# `ai_assistant_transcription` are silently accepted and normalized to
|
|
78
|
+
# `file_based`, `in_call`, and `ai_assistant` respectively. The response always
|
|
79
|
+
# emits the canonical (post-rename) values.
|
|
70
80
|
service_type: nil,
|
|
71
81
|
request_options: {}
|
|
72
82
|
)
|
|
@@ -157,7 +167,12 @@ module Telnyx
|
|
|
157
167
|
end
|
|
158
168
|
end
|
|
159
169
|
|
|
160
|
-
# Filter to entries that support the given service type.
|
|
170
|
+
# Filter to entries that support the given service type. For backward
|
|
171
|
+
# compatibility with the values that briefly shipped before the product-aligned
|
|
172
|
+
# rename, the legacy aliases `file_transcription`, `in_call_transcription`, and
|
|
173
|
+
# `ai_assistant_transcription` are silently accepted and normalized to
|
|
174
|
+
# `file_based`, `in_call`, and `ai_assistant` respectively. The response always
|
|
175
|
+
# emits the canonical (post-rename) values.
|
|
161
176
|
module ServiceType
|
|
162
177
|
extend Telnyx::Internal::Type::Enum
|
|
163
178
|
|
|
@@ -172,14 +187,19 @@ module Telnyx
|
|
|
172
187
|
:streaming,
|
|
173
188
|
Telnyx::SpeechToTextListProvidersParams::ServiceType::TaggedSymbol
|
|
174
189
|
)
|
|
175
|
-
|
|
190
|
+
FILE_BASED =
|
|
176
191
|
T.let(
|
|
177
|
-
:
|
|
192
|
+
:file_based,
|
|
178
193
|
Telnyx::SpeechToTextListProvidersParams::ServiceType::TaggedSymbol
|
|
179
194
|
)
|
|
180
|
-
|
|
195
|
+
IN_CALL =
|
|
181
196
|
T.let(
|
|
182
|
-
:
|
|
197
|
+
:in_call,
|
|
198
|
+
Telnyx::SpeechToTextListProvidersParams::ServiceType::TaggedSymbol
|
|
199
|
+
)
|
|
200
|
+
AI_ASSISTANT =
|
|
201
|
+
T.let(
|
|
202
|
+
:ai_assistant,
|
|
183
203
|
Telnyx::SpeechToTextListProvidersParams::ServiceType::TaggedSymbol
|
|
184
204
|
)
|
|
185
205
|
|