telnyx 5.150.0 → 5.151.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 +7 -0
- data/README.md +10 -1
- data/lib/telnyx/models/ai_retrieve_conversation_histories_params.rb +22 -48
- data/lib/telnyx/models/ai_retrieve_conversation_histories_response.rb +10 -50
- data/lib/telnyx/models/calls/deepgram_nova2_config.rb +23 -1
- data/lib/telnyx/models/calls/deepgram_nova3_config.rb +22 -1
- data/lib/telnyx/models/calls/transcription_start_request.rb +5 -3
- data/lib/telnyx/models/public_internet_gateway.rb +24 -1
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +9 -69
- data/lib/telnyx/models/virtual_cross_connect_create.rb +176 -2
- data/lib/telnyx/models/wireguard_interface.rb +24 -1
- data/lib/telnyx/resources/ai.rb +20 -21
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -0
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_params.rbi +30 -97
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_response.rbi +10 -85
- data/rbi/telnyx/models/calls/deepgram_nova2_config.rbi +34 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_config.rbi +32 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +5 -0
- data/rbi/telnyx/models/public_internet_gateway.rbi +45 -3
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +12 -189
- data/rbi/telnyx/models/virtual_cross_connect_create.rbi +265 -7
- data/rbi/telnyx/models/wireguard_interface.rbi +48 -3
- data/rbi/telnyx/models.rbi +0 -7
- data/rbi/telnyx/resources/ai.rbi +21 -28
- data/rbi/telnyx/resources/calls/actions.rbi +1 -0
- data/sig/telnyx/models/ai_retrieve_conversation_histories_params.rbs +15 -34
- data/sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs +0 -24
- data/sig/telnyx/models/calls/deepgram_nova2_config.rbs +14 -0
- data/sig/telnyx/models/calls/deepgram_nova3_config.rbs +14 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +1 -0
- data/sig/telnyx/models/public_internet_gateway.rbs +32 -3
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -63
- data/sig/telnyx/models/virtual_cross_connect_create.rbs +138 -7
- data/sig/telnyx/models/wireguard_interface.rbs +34 -3
- data/sig/telnyx/models.rbs +0 -1
- data/sig/telnyx/resources/ai.rbs +2 -3
- metadata +2 -38
- data/lib/telnyx/models/dir/phone_number_create_params.rb +0 -47
- data/lib/telnyx/models/dir/phone_number_create_response.rb +0 -32
- data/lib/telnyx/models/dir/phone_number_delete_all_params.rb +0 -28
- data/lib/telnyx/models/dir/phone_number_delete_all_response.rb +0 -103
- data/lib/telnyx/models/dir_loa_params.rb +0 -79
- data/lib/telnyx/models/dir_retrieve_document_types_params.rb +0 -14
- data/lib/telnyx/models/dir_retrieve_document_types_response.rb +0 -51
- data/lib/telnyx/models/dir_retrieve_infringement_claims_params.rb +0 -40
- data/lib/telnyx/models/dir_retrieve_infringement_claims_response.rb +0 -30
- data/lib/telnyx/models/dir_update_infringement_update_params.rb +0 -134
- data/lib/telnyx/models/enterprises/reputation/loa_create_params.rb +0 -146
- data/lib/telnyx/models/enterprises/reputation/loa_patch_all_params.rb +0 -38
- data/rbi/telnyx/models/dir/phone_number_create_params.rbi +0 -72
- data/rbi/telnyx/models/dir/phone_number_create_response.rbi +0 -48
- data/rbi/telnyx/models/dir/phone_number_delete_all_params.rbi +0 -48
- data/rbi/telnyx/models/dir/phone_number_delete_all_response.rbi +0 -206
- data/rbi/telnyx/models/dir_loa_params.rbi +0 -120
- data/rbi/telnyx/models/dir_retrieve_document_types_params.rbi +0 -30
- data/rbi/telnyx/models/dir_retrieve_document_types_response.rbi +0 -103
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_params.rbi +0 -66
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_response.rbi +0 -55
- data/rbi/telnyx/models/dir_update_infringement_update_params.rbi +0 -256
- data/rbi/telnyx/models/enterprises/reputation/loa_create_params.rbi +0 -238
- data/rbi/telnyx/models/enterprises/reputation/loa_patch_all_params.rbi +0 -60
- data/sig/telnyx/models/dir/phone_number_create_params.rbs +0 -38
- data/sig/telnyx/models/dir/phone_number_create_response.rbs +0 -16
- data/sig/telnyx/models/dir/phone_number_delete_all_params.rbs +0 -30
- data/sig/telnyx/models/dir/phone_number_delete_all_response.rbs +0 -86
- data/sig/telnyx/models/dir_loa_params.rbs +0 -61
- data/sig/telnyx/models/dir_retrieve_document_types_params.rbs +0 -15
- data/sig/telnyx/models/dir_retrieve_document_types_response.rbs +0 -41
- data/sig/telnyx/models/dir_retrieve_infringement_claims_params.rbs +0 -36
- data/sig/telnyx/models/dir_retrieve_infringement_claims_response.rbs +0 -25
- data/sig/telnyx/models/dir_update_infringement_update_params.rbs +0 -111
- data/sig/telnyx/models/enterprises/reputation/loa_create_params.rbs +0 -135
- data/sig/telnyx/models/enterprises/reputation/loa_patch_all_params.rbs +0 -32
|
@@ -91,11 +91,6 @@ module Telnyx
|
|
|
91
91
|
sig { returns(Integer) }
|
|
92
92
|
attr_accessor :chunk_total
|
|
93
93
|
|
|
94
|
-
# Document identifier. Present only for knowledge_base records; null for all other
|
|
95
|
-
# record types.
|
|
96
|
-
sig { returns(T.nilable(String)) }
|
|
97
|
-
attr_accessor :document_id
|
|
98
|
-
|
|
99
94
|
# When the record was chunked, embedded, and indexed (ISO 8601).
|
|
100
95
|
sig { returns(Time) }
|
|
101
96
|
attr_accessor :ingested_at
|
|
@@ -113,14 +108,6 @@ module Telnyx
|
|
|
113
108
|
sig { returns(String) }
|
|
114
109
|
attr_accessor :record_id
|
|
115
110
|
|
|
116
|
-
# Type of the record.
|
|
117
|
-
sig do
|
|
118
|
-
returns(
|
|
119
|
-
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType::TaggedSymbol
|
|
120
|
-
)
|
|
121
|
-
end
|
|
122
|
-
attr_accessor :record_type
|
|
123
|
-
|
|
124
111
|
# The region where this record is stored.
|
|
125
112
|
sig do
|
|
126
113
|
returns(
|
|
@@ -142,9 +129,8 @@ module Telnyx
|
|
|
142
129
|
sig { returns(String) }
|
|
143
130
|
attr_accessor :user_id
|
|
144
131
|
|
|
145
|
-
# Arbitrary metadata attached to the record at ingestion time.
|
|
146
|
-
#
|
|
147
|
-
# parameters.
|
|
132
|
+
# Arbitrary metadata attached to the record at ingestion time. Filterable via
|
|
133
|
+
# filter[field]=value query parameters.
|
|
148
134
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
149
135
|
attr_reader :metadata
|
|
150
136
|
|
|
@@ -159,13 +145,10 @@ module Telnyx
|
|
|
159
145
|
id: String,
|
|
160
146
|
chunk_index: Integer,
|
|
161
147
|
chunk_total: Integer,
|
|
162
|
-
document_id: T.nilable(String),
|
|
163
148
|
ingested_at: Time,
|
|
164
149
|
organization_id: String,
|
|
165
150
|
record_created_at: Time,
|
|
166
151
|
record_id: String,
|
|
167
|
-
record_type:
|
|
168
|
-
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType::OrSymbol,
|
|
169
152
|
region:
|
|
170
153
|
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::Region::OrSymbol,
|
|
171
154
|
score: Float,
|
|
@@ -181,9 +164,6 @@ module Telnyx
|
|
|
181
164
|
chunk_index:,
|
|
182
165
|
# Total number of chunks the parent record was split into.
|
|
183
166
|
chunk_total:,
|
|
184
|
-
# Document identifier. Present only for knowledge_base records; null for all other
|
|
185
|
-
# record types.
|
|
186
|
-
document_id:,
|
|
187
167
|
# When the record was chunked, embedded, and indexed (ISO 8601).
|
|
188
168
|
ingested_at:,
|
|
189
169
|
# Identifier of the organization that owns this record.
|
|
@@ -193,8 +173,6 @@ module Telnyx
|
|
|
193
173
|
# Identifier of the parent record. Multiple chunks from the same record share this
|
|
194
174
|
# ID.
|
|
195
175
|
record_id:,
|
|
196
|
-
# Type of the record.
|
|
197
|
-
record_type:,
|
|
198
176
|
# The region where this record is stored.
|
|
199
177
|
region:,
|
|
200
178
|
# Cosine similarity score between the query vector and this chunk's vector. Higher
|
|
@@ -204,9 +182,8 @@ module Telnyx
|
|
|
204
182
|
text:,
|
|
205
183
|
# Identifier of the user who owns this record.
|
|
206
184
|
user_id:,
|
|
207
|
-
# Arbitrary metadata attached to the record at ingestion time.
|
|
208
|
-
#
|
|
209
|
-
# parameters.
|
|
185
|
+
# Arbitrary metadata attached to the record at ingestion time. Filterable via
|
|
186
|
+
# filter[field]=value query parameters.
|
|
210
187
|
metadata: nil
|
|
211
188
|
)
|
|
212
189
|
end
|
|
@@ -217,13 +194,10 @@ module Telnyx
|
|
|
217
194
|
id: String,
|
|
218
195
|
chunk_index: Integer,
|
|
219
196
|
chunk_total: Integer,
|
|
220
|
-
document_id: T.nilable(String),
|
|
221
197
|
ingested_at: Time,
|
|
222
198
|
organization_id: String,
|
|
223
199
|
record_created_at: Time,
|
|
224
200
|
record_id: String,
|
|
225
|
-
record_type:
|
|
226
|
-
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType::TaggedSymbol,
|
|
227
201
|
region:
|
|
228
202
|
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::Region::TaggedSymbol,
|
|
229
203
|
score: Float,
|
|
@@ -236,51 +210,6 @@ module Telnyx
|
|
|
236
210
|
def to_hash
|
|
237
211
|
end
|
|
238
212
|
|
|
239
|
-
# Type of the record.
|
|
240
|
-
module RecordType
|
|
241
|
-
extend Telnyx::Internal::Type::Enum
|
|
242
|
-
|
|
243
|
-
TaggedSymbol =
|
|
244
|
-
T.type_alias do
|
|
245
|
-
T.all(
|
|
246
|
-
Symbol,
|
|
247
|
-
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType
|
|
248
|
-
)
|
|
249
|
-
end
|
|
250
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
251
|
-
|
|
252
|
-
VOICE =
|
|
253
|
-
T.let(
|
|
254
|
-
:voice,
|
|
255
|
-
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType::TaggedSymbol
|
|
256
|
-
)
|
|
257
|
-
MESSAGE =
|
|
258
|
-
T.let(
|
|
259
|
-
:message,
|
|
260
|
-
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType::TaggedSymbol
|
|
261
|
-
)
|
|
262
|
-
AI_PIPELINE_STORAGE =
|
|
263
|
-
T.let(
|
|
264
|
-
:ai_pipeline_storage,
|
|
265
|
-
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType::TaggedSymbol
|
|
266
|
-
)
|
|
267
|
-
KNOWLEDGE_BASE =
|
|
268
|
-
T.let(
|
|
269
|
-
:knowledge_base,
|
|
270
|
-
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType::TaggedSymbol
|
|
271
|
-
)
|
|
272
|
-
|
|
273
|
-
sig do
|
|
274
|
-
override.returns(
|
|
275
|
-
T::Array[
|
|
276
|
-
Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType::TaggedSymbol
|
|
277
|
-
]
|
|
278
|
-
)
|
|
279
|
-
end
|
|
280
|
-
def self.values
|
|
281
|
-
end
|
|
282
|
-
end
|
|
283
|
-
|
|
284
213
|
# The region where this record is stored.
|
|
285
214
|
module Region
|
|
286
215
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -336,12 +265,11 @@ module Telnyx
|
|
|
336
265
|
)
|
|
337
266
|
end
|
|
338
267
|
|
|
339
|
-
# Current page number (
|
|
340
|
-
# instead).
|
|
268
|
+
# Current page number (1-based), matching the requested page[number].
|
|
341
269
|
sig { returns(Integer) }
|
|
342
270
|
attr_accessor :page_number
|
|
343
271
|
|
|
344
|
-
# Number of results per page
|
|
272
|
+
# Number of results per page, matching the requested page[size].
|
|
345
273
|
sig { returns(Integer) }
|
|
346
274
|
attr_accessor :page_size
|
|
347
275
|
|
|
@@ -349,8 +277,7 @@ module Telnyx
|
|
|
349
277
|
sig { returns(Integer) }
|
|
350
278
|
attr_accessor :total_pages
|
|
351
279
|
|
|
352
|
-
# Total number of matching results across all queried regions
|
|
353
|
-
# truncation).
|
|
280
|
+
# Total number of matching results across all queried regions.
|
|
354
281
|
sig { returns(Integer) }
|
|
355
282
|
attr_accessor :total_results
|
|
356
283
|
|
|
@@ -364,15 +291,13 @@ module Telnyx
|
|
|
364
291
|
).returns(T.attached_class)
|
|
365
292
|
end
|
|
366
293
|
def self.new(
|
|
367
|
-
# Current page number (
|
|
368
|
-
# instead).
|
|
294
|
+
# Current page number (1-based), matching the requested page[number].
|
|
369
295
|
page_number:,
|
|
370
|
-
# Number of results per page
|
|
296
|
+
# Number of results per page, matching the requested page[size].
|
|
371
297
|
page_size:,
|
|
372
298
|
# Total number of pages.
|
|
373
299
|
total_pages:,
|
|
374
|
-
# Total number of matching results across all queried regions
|
|
375
|
-
# truncation).
|
|
300
|
+
# Total number of matching results across all queried regions.
|
|
376
301
|
total_results:
|
|
377
302
|
)
|
|
378
303
|
end
|
|
@@ -23,6 +23,15 @@ module Telnyx
|
|
|
23
23
|
end
|
|
24
24
|
attr_accessor :transcription_model
|
|
25
25
|
|
|
26
|
+
# Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
27
|
+
# toward. For weighted biasing, use `keywords_boosting` instead. Nova-2-only; use
|
|
28
|
+
# `keyterms` on Nova-3.
|
|
29
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
30
|
+
attr_reader :hints
|
|
31
|
+
|
|
32
|
+
sig { params(hints: T::Array[String]).void }
|
|
33
|
+
attr_writer :hints
|
|
34
|
+
|
|
26
35
|
# Whether to send also interim results. If set to false, only final results will
|
|
27
36
|
# be sent.
|
|
28
37
|
sig { returns(T.nilable(T::Boolean)) }
|
|
@@ -55,6 +64,17 @@ module Telnyx
|
|
|
55
64
|
end
|
|
56
65
|
attr_writer :language
|
|
57
66
|
|
|
67
|
+
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
68
|
+
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
69
|
+
# underlying default of `false` — omit the field to get a smart-formatted
|
|
70
|
+
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
71
|
+
# punctuation.
|
|
72
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
73
|
+
attr_reader :smart_format
|
|
74
|
+
|
|
75
|
+
sig { params(smart_format: T::Boolean).void }
|
|
76
|
+
attr_writer :smart_format
|
|
77
|
+
|
|
58
78
|
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
59
79
|
# to 5000 ms.
|
|
60
80
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -69,15 +89,21 @@ module Telnyx
|
|
|
69
89
|
Telnyx::Calls::DeepgramNova2Config::TranscriptionEngine::OrSymbol,
|
|
70
90
|
transcription_model:
|
|
71
91
|
Telnyx::Calls::DeepgramNova2Config::TranscriptionModel::OrSymbol,
|
|
92
|
+
hints: T::Array[String],
|
|
72
93
|
interim_results: T::Boolean,
|
|
73
94
|
keywords_boosting: T::Hash[Symbol, Float],
|
|
74
95
|
language: Telnyx::Calls::DeepgramNova2Config::Language::OrSymbol,
|
|
96
|
+
smart_format: T::Boolean,
|
|
75
97
|
utterance_end_ms: Integer
|
|
76
98
|
).returns(T.attached_class)
|
|
77
99
|
end
|
|
78
100
|
def self.new(
|
|
79
101
|
transcription_engine:,
|
|
80
102
|
transcription_model:,
|
|
103
|
+
# Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
104
|
+
# toward. For weighted biasing, use `keywords_boosting` instead. Nova-2-only; use
|
|
105
|
+
# `keyterms` on Nova-3.
|
|
106
|
+
hints: nil,
|
|
81
107
|
# Whether to send also interim results. If set to false, only final results will
|
|
82
108
|
# be sent.
|
|
83
109
|
interim_results: nil,
|
|
@@ -87,6 +113,12 @@ module Telnyx
|
|
|
87
113
|
keywords_boosting: nil,
|
|
88
114
|
# Language to use for speech recognition with nova-2 model
|
|
89
115
|
language: nil,
|
|
116
|
+
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
117
|
+
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
118
|
+
# underlying default of `false` — omit the field to get a smart-formatted
|
|
119
|
+
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
120
|
+
# punctuation.
|
|
121
|
+
smart_format: nil,
|
|
90
122
|
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
91
123
|
# to 5000 ms.
|
|
92
124
|
utterance_end_ms: nil
|
|
@@ -100,9 +132,11 @@ module Telnyx
|
|
|
100
132
|
Telnyx::Calls::DeepgramNova2Config::TranscriptionEngine::OrSymbol,
|
|
101
133
|
transcription_model:
|
|
102
134
|
Telnyx::Calls::DeepgramNova2Config::TranscriptionModel::OrSymbol,
|
|
135
|
+
hints: T::Array[String],
|
|
103
136
|
interim_results: T::Boolean,
|
|
104
137
|
keywords_boosting: T::Hash[Symbol, Float],
|
|
105
138
|
language: Telnyx::Calls::DeepgramNova2Config::Language::OrSymbol,
|
|
139
|
+
smart_format: T::Boolean,
|
|
106
140
|
utterance_end_ms: Integer
|
|
107
141
|
}
|
|
108
142
|
)
|
|
@@ -31,6 +31,14 @@ module Telnyx
|
|
|
31
31
|
sig { params(interim_results: T::Boolean).void }
|
|
32
32
|
attr_writer :interim_results
|
|
33
33
|
|
|
34
|
+
# Nova-3 keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
35
|
+
# recognition toward. Nova-3-only; use `hints` on Nova-2.
|
|
36
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
37
|
+
attr_reader :keyterms
|
|
38
|
+
|
|
39
|
+
sig { params(keyterms: T::Array[String]).void }
|
|
40
|
+
attr_writer :keyterms
|
|
41
|
+
|
|
34
42
|
# Keywords and their respective intensifiers (boosting values) to improve
|
|
35
43
|
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
36
44
|
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
@@ -55,6 +63,17 @@ module Telnyx
|
|
|
55
63
|
end
|
|
56
64
|
attr_writer :language
|
|
57
65
|
|
|
66
|
+
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
67
|
+
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
68
|
+
# underlying default of `false` — omit the field to get a smart-formatted
|
|
69
|
+
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
70
|
+
# punctuation.
|
|
71
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
72
|
+
attr_reader :smart_format
|
|
73
|
+
|
|
74
|
+
sig { params(smart_format: T::Boolean).void }
|
|
75
|
+
attr_writer :smart_format
|
|
76
|
+
|
|
58
77
|
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
59
78
|
# to 5000 ms.
|
|
60
79
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -70,8 +89,10 @@ module Telnyx
|
|
|
70
89
|
transcription_model:
|
|
71
90
|
Telnyx::Calls::DeepgramNova3Config::TranscriptionModel::OrSymbol,
|
|
72
91
|
interim_results: T::Boolean,
|
|
92
|
+
keyterms: T::Array[String],
|
|
73
93
|
keywords_boosting: T::Hash[Symbol, Float],
|
|
74
94
|
language: Telnyx::Calls::DeepgramNova3Config::Language::OrSymbol,
|
|
95
|
+
smart_format: T::Boolean,
|
|
75
96
|
utterance_end_ms: Integer
|
|
76
97
|
).returns(T.attached_class)
|
|
77
98
|
end
|
|
@@ -81,12 +102,21 @@ module Telnyx
|
|
|
81
102
|
# Whether to send also interim results. If set to false, only final results will
|
|
82
103
|
# be sent.
|
|
83
104
|
interim_results: nil,
|
|
105
|
+
# Nova-3 keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
106
|
+
# recognition toward. Nova-3-only; use `hints` on Nova-2.
|
|
107
|
+
keyterms: nil,
|
|
84
108
|
# Keywords and their respective intensifiers (boosting values) to improve
|
|
85
109
|
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
86
110
|
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
87
111
|
keywords_boosting: nil,
|
|
88
112
|
# Language to use for speech recognition with nova-3 model
|
|
89
113
|
language: nil,
|
|
114
|
+
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
115
|
+
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
116
|
+
# underlying default of `false` — omit the field to get a smart-formatted
|
|
117
|
+
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
118
|
+
# punctuation.
|
|
119
|
+
smart_format: nil,
|
|
90
120
|
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
91
121
|
# to 5000 ms.
|
|
92
122
|
utterance_end_ms: nil
|
|
@@ -101,8 +131,10 @@ module Telnyx
|
|
|
101
131
|
transcription_model:
|
|
102
132
|
Telnyx::Calls::DeepgramNova3Config::TranscriptionModel::OrSymbol,
|
|
103
133
|
interim_results: T::Boolean,
|
|
134
|
+
keyterms: T::Array[String],
|
|
104
135
|
keywords_boosting: T::Hash[Symbol, Float],
|
|
105
136
|
language: Telnyx::Calls::DeepgramNova3Config::Language::OrSymbol,
|
|
137
|
+
smart_format: T::Boolean,
|
|
106
138
|
utterance_end_ms: Integer
|
|
107
139
|
}
|
|
108
140
|
)
|
|
@@ -58,6 +58,7 @@ module Telnyx
|
|
|
58
58
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
59
59
|
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig,
|
|
60
60
|
Telnyx::Calls::TranscriptionEngineSonioxConfig,
|
|
61
|
+
Telnyx::Calls::TranscriptionEngineParakeetConfig,
|
|
61
62
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
62
63
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
63
64
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -79,6 +80,7 @@ module Telnyx
|
|
|
79
80
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::OrHash,
|
|
80
81
|
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::OrHash,
|
|
81
82
|
Telnyx::Calls::TranscriptionEngineSonioxConfig::OrHash,
|
|
83
|
+
Telnyx::Calls::TranscriptionEngineParakeetConfig::OrHash,
|
|
82
84
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
83
85
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
84
86
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
@@ -112,6 +114,7 @@ module Telnyx
|
|
|
112
114
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::OrHash,
|
|
113
115
|
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::OrHash,
|
|
114
116
|
Telnyx::Calls::TranscriptionEngineSonioxConfig::OrHash,
|
|
117
|
+
Telnyx::Calls::TranscriptionEngineParakeetConfig::OrHash,
|
|
115
118
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
116
119
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
117
120
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
@@ -154,6 +157,7 @@ module Telnyx
|
|
|
154
157
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
155
158
|
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig,
|
|
156
159
|
Telnyx::Calls::TranscriptionEngineSonioxConfig,
|
|
160
|
+
Telnyx::Calls::TranscriptionEngineParakeetConfig,
|
|
157
161
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
158
162
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
159
163
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -260,6 +264,7 @@ module Telnyx
|
|
|
260
264
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
261
265
|
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig,
|
|
262
266
|
Telnyx::Calls::TranscriptionEngineSonioxConfig,
|
|
267
|
+
Telnyx::Calls::TranscriptionEngineParakeetConfig,
|
|
263
268
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
264
269
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
265
270
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -8,11 +8,53 @@ module Telnyx
|
|
|
8
8
|
T.any(Telnyx::PublicInternetGateway, Telnyx::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
# A user specified name for the interface.
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_reader :name
|
|
14
|
+
|
|
15
|
+
sig { params(name: String).void }
|
|
16
|
+
attr_writer :name
|
|
17
|
+
|
|
18
|
+
# The id of the network associated with the interface.
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_reader :network_id
|
|
21
|
+
|
|
22
|
+
sig { params(network_id: String).void }
|
|
23
|
+
attr_writer :network_id
|
|
24
|
+
|
|
25
|
+
# The region interface is deployed to.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :region_code
|
|
28
|
+
|
|
29
|
+
sig { params(region_code: String).void }
|
|
30
|
+
attr_writer :region_code
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(name: String, network_id: String, region_code: String).returns(
|
|
34
|
+
T.attached_class
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def self.new(
|
|
38
|
+
# A user specified name for the interface.
|
|
39
|
+
name: nil,
|
|
40
|
+
# The id of the network associated with the interface.
|
|
41
|
+
network_id: nil,
|
|
42
|
+
# The region interface is deployed to.
|
|
43
|
+
region_code: nil
|
|
44
|
+
)
|
|
13
45
|
end
|
|
14
46
|
|
|
15
|
-
sig
|
|
47
|
+
sig do
|
|
48
|
+
override.returns(
|
|
49
|
+
{
|
|
50
|
+
name: String,
|
|
51
|
+
network_id: String,
|
|
52
|
+
status: Telnyx::InterfaceStatus::OrSymbol,
|
|
53
|
+
public_ip: String,
|
|
54
|
+
region_code: String
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
end
|
|
16
58
|
def to_hash
|
|
17
59
|
end
|
|
18
60
|
end
|