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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +10 -1
  4. data/lib/telnyx/models/ai_retrieve_conversation_histories_params.rb +22 -48
  5. data/lib/telnyx/models/ai_retrieve_conversation_histories_response.rb +10 -50
  6. data/lib/telnyx/models/calls/deepgram_nova2_config.rb +23 -1
  7. data/lib/telnyx/models/calls/deepgram_nova3_config.rb +22 -1
  8. data/lib/telnyx/models/calls/transcription_start_request.rb +5 -3
  9. data/lib/telnyx/models/public_internet_gateway.rb +24 -1
  10. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +9 -69
  11. data/lib/telnyx/models/virtual_cross_connect_create.rb +176 -2
  12. data/lib/telnyx/models/wireguard_interface.rb +24 -1
  13. data/lib/telnyx/resources/ai.rb +20 -21
  14. data/lib/telnyx/resources/calls/actions.rb +1 -1
  15. data/lib/telnyx/version.rb +1 -1
  16. data/lib/telnyx.rb +1 -0
  17. data/rbi/telnyx/models/ai_retrieve_conversation_histories_params.rbi +30 -97
  18. data/rbi/telnyx/models/ai_retrieve_conversation_histories_response.rbi +10 -85
  19. data/rbi/telnyx/models/calls/deepgram_nova2_config.rbi +34 -0
  20. data/rbi/telnyx/models/calls/deepgram_nova3_config.rbi +32 -0
  21. data/rbi/telnyx/models/calls/transcription_start_request.rbi +5 -0
  22. data/rbi/telnyx/models/public_internet_gateway.rbi +45 -3
  23. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +12 -189
  24. data/rbi/telnyx/models/virtual_cross_connect_create.rbi +265 -7
  25. data/rbi/telnyx/models/wireguard_interface.rbi +48 -3
  26. data/rbi/telnyx/models.rbi +0 -7
  27. data/rbi/telnyx/resources/ai.rbi +21 -28
  28. data/rbi/telnyx/resources/calls/actions.rbi +1 -0
  29. data/sig/telnyx/models/ai_retrieve_conversation_histories_params.rbs +15 -34
  30. data/sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs +0 -24
  31. data/sig/telnyx/models/calls/deepgram_nova2_config.rbs +14 -0
  32. data/sig/telnyx/models/calls/deepgram_nova3_config.rbs +14 -0
  33. data/sig/telnyx/models/calls/transcription_start_request.rbs +1 -0
  34. data/sig/telnyx/models/public_internet_gateway.rbs +32 -3
  35. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -63
  36. data/sig/telnyx/models/virtual_cross_connect_create.rbs +138 -7
  37. data/sig/telnyx/models/wireguard_interface.rbs +34 -3
  38. data/sig/telnyx/models.rbs +0 -1
  39. data/sig/telnyx/resources/ai.rbs +2 -3
  40. metadata +2 -38
  41. data/lib/telnyx/models/dir/phone_number_create_params.rb +0 -47
  42. data/lib/telnyx/models/dir/phone_number_create_response.rb +0 -32
  43. data/lib/telnyx/models/dir/phone_number_delete_all_params.rb +0 -28
  44. data/lib/telnyx/models/dir/phone_number_delete_all_response.rb +0 -103
  45. data/lib/telnyx/models/dir_loa_params.rb +0 -79
  46. data/lib/telnyx/models/dir_retrieve_document_types_params.rb +0 -14
  47. data/lib/telnyx/models/dir_retrieve_document_types_response.rb +0 -51
  48. data/lib/telnyx/models/dir_retrieve_infringement_claims_params.rb +0 -40
  49. data/lib/telnyx/models/dir_retrieve_infringement_claims_response.rb +0 -30
  50. data/lib/telnyx/models/dir_update_infringement_update_params.rb +0 -134
  51. data/lib/telnyx/models/enterprises/reputation/loa_create_params.rb +0 -146
  52. data/lib/telnyx/models/enterprises/reputation/loa_patch_all_params.rb +0 -38
  53. data/rbi/telnyx/models/dir/phone_number_create_params.rbi +0 -72
  54. data/rbi/telnyx/models/dir/phone_number_create_response.rbi +0 -48
  55. data/rbi/telnyx/models/dir/phone_number_delete_all_params.rbi +0 -48
  56. data/rbi/telnyx/models/dir/phone_number_delete_all_response.rbi +0 -206
  57. data/rbi/telnyx/models/dir_loa_params.rbi +0 -120
  58. data/rbi/telnyx/models/dir_retrieve_document_types_params.rbi +0 -30
  59. data/rbi/telnyx/models/dir_retrieve_document_types_response.rbi +0 -103
  60. data/rbi/telnyx/models/dir_retrieve_infringement_claims_params.rbi +0 -66
  61. data/rbi/telnyx/models/dir_retrieve_infringement_claims_response.rbi +0 -55
  62. data/rbi/telnyx/models/dir_update_infringement_update_params.rbi +0 -256
  63. data/rbi/telnyx/models/enterprises/reputation/loa_create_params.rbi +0 -238
  64. data/rbi/telnyx/models/enterprises/reputation/loa_patch_all_params.rbi +0 -60
  65. data/sig/telnyx/models/dir/phone_number_create_params.rbs +0 -38
  66. data/sig/telnyx/models/dir/phone_number_create_response.rbs +0 -16
  67. data/sig/telnyx/models/dir/phone_number_delete_all_params.rbs +0 -30
  68. data/sig/telnyx/models/dir/phone_number_delete_all_response.rbs +0 -86
  69. data/sig/telnyx/models/dir_loa_params.rbs +0 -61
  70. data/sig/telnyx/models/dir_retrieve_document_types_params.rbs +0 -15
  71. data/sig/telnyx/models/dir_retrieve_document_types_response.rbs +0 -41
  72. data/sig/telnyx/models/dir_retrieve_infringement_claims_params.rbs +0 -36
  73. data/sig/telnyx/models/dir_retrieve_infringement_claims_response.rbs +0 -25
  74. data/sig/telnyx/models/dir_update_infringement_update_params.rbs +0 -111
  75. data/sig/telnyx/models/enterprises/reputation/loa_create_params.rbs +0 -135
  76. data/sig/telnyx/models/enterprises/reputation/loa_patch_all_params.rbs +0 -32
@@ -66,12 +66,12 @@ module Telnyx
66
66
  #
67
67
  # 1. The query text is embedded into a 1024-dimensional vector using the
68
68
  # multilingual-e5-large model.
69
- # 2. The vector is sent to regional OpenSearch clusters for kNN search using HNSW
70
- # cosine similarity.
69
+ # 2. The vector is compared against indexed record chunks using semantic
70
+ # similarity search.
71
71
  # 3. When no region is specified, all regions are queried in parallel (fan-out)
72
72
  # and results are merged by score.
73
- # 4. Results are ranked by cosine similarity score (descending) and truncated to
74
- # `top_k`.
73
+ # 4. Results are ranked by similarity score (descending) and paginated via
74
+ # `page[number]` / `page[size]`.
75
75
  #
76
76
  # **Authentication:** Requires a Telnyx API key via `Authorization: Bearer <key>`.
77
77
  # Results are automatically scoped to the caller's organization —
@@ -85,14 +85,14 @@ module Telnyx
85
85
  # **Filtering:** Use `filter[field][operator]=value` query parameters to narrow
86
86
  # results before vector search.
87
87
  #
88
- # Top-level filterable fields: `user_id`, `record_type`, `region`, `document_id`,
89
- # `record_id`, `record_created_at`, `ingested_at`, `retention`
88
+ # Top-level filterable fields: `user_id`, `region`, `record_id`,
89
+ # `record_created_at`, `ingested_at`, `retention`
90
90
  #
91
91
  # Note: `retention` is filter-only — it can be used to narrow results but is not
92
92
  # returned in the response body.
93
93
  #
94
94
  # Metadata fields: any field not in the list above is resolved to
95
- # `data.metadata.<field>` in OpenSearch (e.g., `filter[language]=en` →
95
+ # `data.metadata.<field>` (e.g., `filter[language]=en` →
96
96
  # `data.metadata.language`).
97
97
  #
98
98
  # Supported filter operators:
@@ -105,18 +105,15 @@ module Telnyx
105
105
  # **Examples:**
106
106
  #
107
107
  # ```
108
- # GET /v2/ai/conversation_histories?q=billing+issue&record_type=voice&top_k=10
109
- # GET /v2/ai/conversation_histories?q=setup+guide&record_type=knowledge_base&region=USA&min_score=0.5
110
- # GET /v2/ai/conversation_histories?q=refund&record_type=voice&filter[record_created_at][gte]=2026-01-01T00:00:00Z
111
- # GET /v2/ai/conversation_histories?q=outage&record_type=voice&filter[region][in]=USA,DEU
112
- # GET /v2/ai/conversation_histories?q=hold+time&record_type=voice&filter[language]=en
108
+ # GET /v2/ai/conversation_histories?q=billing+issue&page[size]=10
109
+ # GET /v2/ai/conversation_histories?q=setup+guide&region=USA&min_score=0.5
110
+ # GET /v2/ai/conversation_histories?q=refund&filter[record_created_at][gte]=2026-01-01T00:00:00Z
111
+ # GET /v2/ai/conversation_histories?q=outage&filter[region][in]=USA,DEU
112
+ # GET /v2/ai/conversation_histories?q=hold+time&filter[language]=en
113
113
  # ```
114
114
  sig do
115
115
  params(
116
116
  q: String,
117
- record_type:
118
- Telnyx::AIRetrieveConversationHistoriesParams::RecordType::OrSymbol,
119
- filter_document_id: String,
120
117
  filter_ingested_at_gte: Time,
121
118
  filter_ingested_at_lte: Time,
122
119
  filter_record_created_at_gte: Time,
@@ -126,22 +123,17 @@ module Telnyx
126
123
  filter_retention: String,
127
124
  filter_user_id: String,
128
125
  min_score: Float,
126
+ page_number: Integer,
127
+ page_size: Integer,
129
128
  region:
130
129
  Telnyx::AIRetrieveConversationHistoriesParams::Region::OrSymbol,
131
- top_k: Integer,
132
130
  request_options: Telnyx::RequestOptions::OrHash
133
131
  ).returns(Telnyx::Models::AIRetrieveConversationHistoriesResponse)
134
132
  end
135
133
  def retrieve_conversation_histories(
136
134
  # Natural language search query. The text is embedded into a 1024-dimensional
137
- # vector and compared against indexed record chunks using kNN cosine similarity.
135
+ # vector and compared against indexed record chunks using semantic similarity.
138
136
  q:,
139
- # The type of records to search. Each record type is stored in a separate vector
140
- # index.
141
- record_type:,
142
- # Filter by document identifier (exact match). Populated for knowledge_base
143
- # records.
144
- filter_document_id: nil,
145
137
  # Only include records ingested (chunked, embedded, and indexed) on or after this
146
138
  # ISO 8601 timestamp.
147
139
  filter_ingested_at_gte: nil,
@@ -168,12 +160,13 @@ module Telnyx
168
160
  # Minimum cosine similarity score threshold (0.0 to 1.0). Results below this
169
161
  # threshold are excluded.
170
162
  min_score: nil,
171
- # Restrict search to a specific region's OpenSearch cluster. When omitted, all
172
- # regions are queried in parallel (fan-out) and results are merged by cosine
173
- # similarity score.
163
+ # Page number to return (1-based). Defaults to 1.
164
+ page_number: nil,
165
+ # Number of results per page. Defaults to 20, maximum 100.
166
+ page_size: nil,
167
+ # Restrict search to a specific region. When omitted, all regions are queried in
168
+ # parallel (fan-out) and results are merged by similarity score.
174
169
  region: nil,
175
- # Maximum number of results to return. Defaults to 20, maximum 100.
176
- top_k: nil,
177
170
  request_options: {}
178
171
  )
179
172
  end
@@ -1839,6 +1839,7 @@ module Telnyx
1839
1839
  Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::OrHash,
1840
1840
  Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::OrHash,
1841
1841
  Telnyx::Calls::TranscriptionEngineSonioxConfig::OrHash,
1842
+ Telnyx::Calls::TranscriptionEngineParakeetConfig::OrHash,
1842
1843
  Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
1843
1844
  Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
1844
1845
  Telnyx::Calls::DeepgramNova2Config::OrHash,
@@ -3,8 +3,6 @@ module Telnyx
3
3
  type ai_retrieve_conversation_histories_params =
4
4
  {
5
5
  q: String,
6
- record_type: Telnyx::Models::AIRetrieveConversationHistoriesParams::record_type,
7
- filter_document_id: String,
8
6
  filter_ingested_at_gte: Time,
9
7
  filter_ingested_at_lte: Time,
10
8
  filter_record_created_at_gte: Time,
@@ -14,8 +12,9 @@ module Telnyx
14
12
  filter_retention: String,
15
13
  filter_user_id: String,
16
14
  min_score: Float,
17
- region: Telnyx::Models::AIRetrieveConversationHistoriesParams::region,
18
- top_k: Integer
15
+ page_number: Integer,
16
+ page_size: Integer,
17
+ region: Telnyx::Models::AIRetrieveConversationHistoriesParams::region
19
18
  }
20
19
  & Telnyx::Internal::Type::request_parameters
21
20
 
@@ -25,12 +24,6 @@ module Telnyx
25
24
 
26
25
  attr_accessor q: String
27
26
 
28
- attr_accessor record_type: Telnyx::Models::AIRetrieveConversationHistoriesParams::record_type
29
-
30
- attr_reader filter_document_id: String?
31
-
32
- def filter_document_id=: (String) -> String
33
-
34
27
  attr_reader filter_ingested_at_gte: Time?
35
28
 
36
29
  def filter_ingested_at_gte=: (Time) -> Time
@@ -67,20 +60,22 @@ module Telnyx
67
60
 
68
61
  def min_score=: (Float) -> Float
69
62
 
63
+ attr_reader page_number: Integer?
64
+
65
+ def page_number=: (Integer) -> Integer
66
+
67
+ attr_reader page_size: Integer?
68
+
69
+ def page_size=: (Integer) -> Integer
70
+
70
71
  attr_reader region: Telnyx::Models::AIRetrieveConversationHistoriesParams::region?
71
72
 
72
73
  def region=: (
73
74
  Telnyx::Models::AIRetrieveConversationHistoriesParams::region
74
75
  ) -> Telnyx::Models::AIRetrieveConversationHistoriesParams::region
75
76
 
76
- attr_reader top_k: Integer?
77
-
78
- def top_k=: (Integer) -> Integer
79
-
80
77
  def initialize: (
81
78
  q: String,
82
- record_type: Telnyx::Models::AIRetrieveConversationHistoriesParams::record_type,
83
- ?filter_document_id: String,
84
79
  ?filter_ingested_at_gte: Time,
85
80
  ?filter_ingested_at_lte: Time,
86
81
  ?filter_record_created_at_gte: Time,
@@ -90,15 +85,14 @@ module Telnyx
90
85
  ?filter_retention: String,
91
86
  ?filter_user_id: String,
92
87
  ?min_score: Float,
88
+ ?page_number: Integer,
89
+ ?page_size: Integer,
93
90
  ?region: Telnyx::Models::AIRetrieveConversationHistoriesParams::region,
94
- ?top_k: Integer,
95
91
  ?request_options: Telnyx::request_opts
96
92
  ) -> void
97
93
 
98
94
  def to_hash: -> {
99
95
  q: String,
100
- record_type: Telnyx::Models::AIRetrieveConversationHistoriesParams::record_type,
101
- filter_document_id: String,
102
96
  filter_ingested_at_gte: Time,
103
97
  filter_ingested_at_lte: Time,
104
98
  filter_record_created_at_gte: Time,
@@ -108,25 +102,12 @@ module Telnyx
108
102
  filter_retention: String,
109
103
  filter_user_id: String,
110
104
  min_score: Float,
105
+ page_number: Integer,
106
+ page_size: Integer,
111
107
  region: Telnyx::Models::AIRetrieveConversationHistoriesParams::region,
112
- top_k: Integer,
113
108
  request_options: Telnyx::RequestOptions
114
109
  }
115
110
 
116
- type record_type =
117
- :voice | :message | :ai_pipeline_storage | :knowledge_base
118
-
119
- module RecordType
120
- extend Telnyx::Internal::Type::Enum
121
-
122
- VOICE: :voice
123
- MESSAGE: :message
124
- AI_PIPELINE_STORAGE: :ai_pipeline_storage
125
- KNOWLEDGE_BASE: :knowledge_base
126
-
127
- def self?.values: -> ::Array[Telnyx::Models::AIRetrieveConversationHistoriesParams::record_type]
128
- end
129
-
130
111
  type region = :USA | :DEU | :AUS | :UAE
131
112
 
132
113
  module Region
@@ -26,12 +26,10 @@ module Telnyx
26
26
  id: String,
27
27
  chunk_index: Integer,
28
28
  chunk_total: Integer,
29
- document_id: String?,
30
29
  ingested_at: Time,
31
30
  organization_id: String,
32
31
  record_created_at: Time,
33
32
  record_id: String,
34
- record_type: Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::record_type,
35
33
  region: Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::region,
36
34
  score: Float,
37
35
  text: String,
@@ -46,8 +44,6 @@ module Telnyx
46
44
 
47
45
  attr_accessor chunk_total: Integer
48
46
 
49
- attr_accessor document_id: String?
50
-
51
47
  attr_accessor ingested_at: Time
52
48
 
53
49
  attr_accessor organization_id: String
@@ -56,8 +52,6 @@ module Telnyx
56
52
 
57
53
  attr_accessor record_id: String
58
54
 
59
- attr_accessor record_type: Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::record_type
60
-
61
55
  attr_accessor region: Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::region
62
56
 
63
57
  attr_accessor score: Float
@@ -74,12 +68,10 @@ module Telnyx
74
68
  id: String,
75
69
  chunk_index: Integer,
76
70
  chunk_total: Integer,
77
- document_id: String?,
78
71
  ingested_at: Time,
79
72
  organization_id: String,
80
73
  record_created_at: Time,
81
74
  record_id: String,
82
- record_type: Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::record_type,
83
75
  region: Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::region,
84
76
  score: Float,
85
77
  text: String,
@@ -91,12 +83,10 @@ module Telnyx
91
83
  id: String,
92
84
  chunk_index: Integer,
93
85
  chunk_total: Integer,
94
- document_id: String?,
95
86
  ingested_at: Time,
96
87
  organization_id: String,
97
88
  record_created_at: Time,
98
89
  record_id: String,
99
- record_type: Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::record_type,
100
90
  region: Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::region,
101
91
  score: Float,
102
92
  text: String,
@@ -104,20 +94,6 @@ module Telnyx
104
94
  metadata: ::Hash[Symbol, top]
105
95
  }
106
96
 
107
- type record_type =
108
- :voice | :message | :ai_pipeline_storage | :knowledge_base
109
-
110
- module RecordType
111
- extend Telnyx::Internal::Type::Enum
112
-
113
- VOICE: :voice
114
- MESSAGE: :message
115
- AI_PIPELINE_STORAGE: :ai_pipeline_storage
116
- KNOWLEDGE_BASE: :knowledge_base
117
-
118
- def self?.values: -> ::Array[Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::record_type]
119
- end
120
-
121
97
  type region = :USA | :DEU | :AUS | :UAE
122
98
 
123
99
  module Region
@@ -5,9 +5,11 @@ module Telnyx
5
5
  {
6
6
  transcription_engine: Telnyx::Models::Calls::DeepgramNova2Config::transcription_engine,
7
7
  transcription_model: Telnyx::Models::Calls::DeepgramNova2Config::transcription_model,
8
+ hints: ::Array[String],
8
9
  interim_results: bool,
9
10
  keywords_boosting: ::Hash[Symbol, Float],
10
11
  language: Telnyx::Models::Calls::DeepgramNova2Config::language,
12
+ smart_format: bool,
11
13
  utterance_end_ms: Integer
12
14
  }
13
15
 
@@ -16,6 +18,10 @@ module Telnyx
16
18
 
17
19
  attr_accessor transcription_model: Telnyx::Models::Calls::DeepgramNova2Config::transcription_model
18
20
 
21
+ attr_reader hints: ::Array[String]?
22
+
23
+ def hints=: (::Array[String]) -> ::Array[String]
24
+
19
25
  attr_reader interim_results: bool?
20
26
 
21
27
  def interim_results=: (bool) -> bool
@@ -30,6 +36,10 @@ module Telnyx
30
36
  Telnyx::Models::Calls::DeepgramNova2Config::language
31
37
  ) -> Telnyx::Models::Calls::DeepgramNova2Config::language
32
38
 
39
+ attr_reader smart_format: bool?
40
+
41
+ def smart_format=: (bool) -> bool
42
+
33
43
  attr_reader utterance_end_ms: Integer?
34
44
 
35
45
  def utterance_end_ms=: (Integer) -> Integer
@@ -37,18 +47,22 @@ module Telnyx
37
47
  def initialize: (
38
48
  transcription_engine: Telnyx::Models::Calls::DeepgramNova2Config::transcription_engine,
39
49
  transcription_model: Telnyx::Models::Calls::DeepgramNova2Config::transcription_model,
50
+ ?hints: ::Array[String],
40
51
  ?interim_results: bool,
41
52
  ?keywords_boosting: ::Hash[Symbol, Float],
42
53
  ?language: Telnyx::Models::Calls::DeepgramNova2Config::language,
54
+ ?smart_format: bool,
43
55
  ?utterance_end_ms: Integer
44
56
  ) -> void
45
57
 
46
58
  def to_hash: -> {
47
59
  transcription_engine: Telnyx::Models::Calls::DeepgramNova2Config::transcription_engine,
48
60
  transcription_model: Telnyx::Models::Calls::DeepgramNova2Config::transcription_model,
61
+ hints: ::Array[String],
49
62
  interim_results: bool,
50
63
  keywords_boosting: ::Hash[Symbol, Float],
51
64
  language: Telnyx::Models::Calls::DeepgramNova2Config::language,
65
+ smart_format: bool,
52
66
  utterance_end_ms: Integer
53
67
  }
54
68
 
@@ -6,8 +6,10 @@ module Telnyx
6
6
  transcription_engine: Telnyx::Models::Calls::DeepgramNova3Config::transcription_engine,
7
7
  transcription_model: Telnyx::Models::Calls::DeepgramNova3Config::transcription_model,
8
8
  interim_results: bool,
9
+ keyterms: ::Array[String],
9
10
  keywords_boosting: ::Hash[Symbol, Float],
10
11
  language: Telnyx::Models::Calls::DeepgramNova3Config::language,
12
+ smart_format: bool,
11
13
  utterance_end_ms: Integer
12
14
  }
13
15
 
@@ -20,6 +22,10 @@ module Telnyx
20
22
 
21
23
  def interim_results=: (bool) -> bool
22
24
 
25
+ attr_reader keyterms: ::Array[String]?
26
+
27
+ def keyterms=: (::Array[String]) -> ::Array[String]
28
+
23
29
  attr_reader keywords_boosting: ::Hash[Symbol, Float]?
24
30
 
25
31
  def keywords_boosting=: (::Hash[Symbol, Float]) -> ::Hash[Symbol, Float]
@@ -30,6 +36,10 @@ module Telnyx
30
36
  Telnyx::Models::Calls::DeepgramNova3Config::language
31
37
  ) -> Telnyx::Models::Calls::DeepgramNova3Config::language
32
38
 
39
+ attr_reader smart_format: bool?
40
+
41
+ def smart_format=: (bool) -> bool
42
+
33
43
  attr_reader utterance_end_ms: Integer?
34
44
 
35
45
  def utterance_end_ms=: (Integer) -> Integer
@@ -38,8 +48,10 @@ module Telnyx
38
48
  transcription_engine: Telnyx::Models::Calls::DeepgramNova3Config::transcription_engine,
39
49
  transcription_model: Telnyx::Models::Calls::DeepgramNova3Config::transcription_model,
40
50
  ?interim_results: bool,
51
+ ?keyterms: ::Array[String],
41
52
  ?keywords_boosting: ::Hash[Symbol, Float],
42
53
  ?language: Telnyx::Models::Calls::DeepgramNova3Config::language,
54
+ ?smart_format: bool,
43
55
  ?utterance_end_ms: Integer
44
56
  ) -> void
45
57
 
@@ -47,8 +59,10 @@ module Telnyx
47
59
  transcription_engine: Telnyx::Models::Calls::DeepgramNova3Config::transcription_engine,
48
60
  transcription_model: Telnyx::Models::Calls::DeepgramNova3Config::transcription_model,
49
61
  interim_results: bool,
62
+ keyterms: ::Array[String],
50
63
  keywords_boosting: ::Hash[Symbol, Float],
51
64
  language: Telnyx::Models::Calls::DeepgramNova3Config::language,
65
+ smart_format: bool,
52
66
  utterance_end_ms: Integer
53
67
  }
54
68
 
@@ -90,6 +90,7 @@ module Telnyx
90
90
  | Telnyx::Calls::TranscriptionEngineAssemblyaiConfig
91
91
  | Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig
92
92
  | Telnyx::Calls::TranscriptionEngineSonioxConfig
93
+ | Telnyx::Calls::TranscriptionEngineParakeetConfig
93
94
  | Telnyx::Calls::TranscriptionEngineAConfig
94
95
  | Telnyx::Calls::TranscriptionEngineBConfig
95
96
  | Telnyx::Calls::DeepgramNova2Config
@@ -1,11 +1,40 @@
1
1
  module Telnyx
2
2
  module Models
3
- type public_internet_gateway = { }
3
+ type public_internet_gateway =
4
+ {
5
+ name: String,
6
+ network_id: String,
7
+ status: Telnyx::Models::interface_status,
8
+ public_ip: String,
9
+ region_code: String
10
+ }
4
11
 
5
12
  class PublicInternetGateway < Telnyx::Models::Record
6
- def initialize: -> void
13
+ def name: -> String?
7
14
 
8
- def to_hash: -> { }
15
+ def name=: (String _) -> String
16
+
17
+ def network_id: -> String?
18
+
19
+ def network_id=: (String _) -> String
20
+
21
+ def region_code: -> String?
22
+
23
+ def region_code=: (String _) -> String
24
+
25
+ def initialize: (
26
+ ?name: String,
27
+ ?network_id: String,
28
+ ?region_code: String
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ name: String,
33
+ network_id: String,
34
+ status: Telnyx::Models::interface_status,
35
+ public_ip: String,
36
+ region_code: String
37
+ }
9
38
  end
10
39
  end
11
40
  end
@@ -74,7 +74,7 @@ module Telnyx
74
74
  sip_auth_username: String,
75
75
  sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region,
76
76
  status_callback: String,
77
- status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event,
77
+ status_callback_event: String,
78
78
  status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method,
79
79
  supervise_call_sid: String,
80
80
  supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role,
@@ -247,11 +247,9 @@ module Telnyx
247
247
 
248
248
  def status_callback=: (String) -> String
249
249
 
250
- attr_reader status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event?
250
+ attr_reader status_callback_event: String?
251
251
 
252
- def status_callback_event=: (
253
- Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event
254
- ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event
252
+ def status_callback_event=: (String) -> String
255
253
 
256
254
  attr_reader status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method?
257
255
 
@@ -331,7 +329,7 @@ module Telnyx
331
329
  ?sip_auth_username: String,
332
330
  ?sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region,
333
331
  ?status_callback: String,
334
- ?status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event,
332
+ ?status_callback_event: String,
335
333
  ?status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method,
336
334
  ?supervise_call_sid: String,
337
335
  ?supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role,
@@ -379,7 +377,7 @@ module Telnyx
379
377
  sip_auth_username: String,
380
378
  sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region,
381
379
  status_callback: String,
382
- status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event,
380
+ status_callback_event: String,
383
381
  status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method,
384
382
  supervise_call_sid: String,
385
383
  supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role,
@@ -520,20 +518,6 @@ module Telnyx
520
518
  def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region]
521
519
  end
522
520
 
523
- type status_callback_event =
524
- :initiated | :ringing | :answered | :completed
525
-
526
- module StatusCallbackEvent
527
- extend Telnyx::Internal::Type::Enum
528
-
529
- INITIATED: :initiated
530
- RINGING: :ringing
531
- ANSWERED: :answered
532
- COMPLETED: :completed
533
-
534
- def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event]
535
- end
536
-
537
521
  type status_callback_method = :GET | :POST
538
522
 
539
523
  module StatusCallbackMethod
@@ -617,7 +601,7 @@ module Telnyx
617
601
  sip_auth_username: String,
618
602
  sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region,
619
603
  status_callback: String,
620
- status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event,
604
+ status_callback_event: String,
621
605
  status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method,
622
606
  supervise_call_sid: String,
623
607
  supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role,
@@ -790,11 +774,9 @@ module Telnyx
790
774
 
791
775
  def status_callback=: (String) -> String
792
776
 
793
- attr_reader status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event?
777
+ attr_reader status_callback_event: String?
794
778
 
795
- def status_callback_event=: (
796
- Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event
797
- ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event
779
+ def status_callback_event=: (String) -> String
798
780
 
799
781
  attr_reader status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method?
800
782
 
@@ -874,7 +856,7 @@ module Telnyx
874
856
  ?sip_auth_username: String,
875
857
  ?sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region,
876
858
  ?status_callback: String,
877
- ?status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event,
859
+ ?status_callback_event: String,
878
860
  ?status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method,
879
861
  ?supervise_call_sid: String,
880
862
  ?supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role,
@@ -922,7 +904,7 @@ module Telnyx
922
904
  sip_auth_username: String,
923
905
  sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region,
924
906
  status_callback: String,
925
- status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event,
907
+ status_callback_event: String,
926
908
  status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method,
927
909
  supervise_call_sid: String,
928
910
  supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role,
@@ -1063,20 +1045,6 @@ module Telnyx
1063
1045
  def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region]
1064
1046
  end
1065
1047
 
1066
- type status_callback_event =
1067
- :initiated | :ringing | :answered | :completed
1068
-
1069
- module StatusCallbackEvent
1070
- extend Telnyx::Internal::Type::Enum
1071
-
1072
- INITIATED: :initiated
1073
- RINGING: :ringing
1074
- ANSWERED: :answered
1075
- COMPLETED: :completed
1076
-
1077
- def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event]
1078
- end
1079
-
1080
1048
  type status_callback_method = :GET | :POST
1081
1049
 
1082
1050
  module StatusCallbackMethod
@@ -1159,7 +1127,7 @@ module Telnyx
1159
1127
  sip_auth_username: String,
1160
1128
  sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region,
1161
1129
  status_callback: String,
1162
- status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event,
1130
+ status_callback_event: String,
1163
1131
  status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method,
1164
1132
  supervise_call_sid: String,
1165
1133
  supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role,
@@ -1331,11 +1299,9 @@ module Telnyx
1331
1299
 
1332
1300
  def status_callback=: (String) -> String
1333
1301
 
1334
- attr_reader status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event?
1302
+ attr_reader status_callback_event: String?
1335
1303
 
1336
- def status_callback_event=: (
1337
- Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event
1338
- ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event
1304
+ def status_callback_event=: (String) -> String
1339
1305
 
1340
1306
  attr_reader status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method?
1341
1307
 
@@ -1416,7 +1382,7 @@ module Telnyx
1416
1382
  ?sip_auth_username: String,
1417
1383
  ?sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region,
1418
1384
  ?status_callback: String,
1419
- ?status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event,
1385
+ ?status_callback_event: String,
1420
1386
  ?status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method,
1421
1387
  ?supervise_call_sid: String,
1422
1388
  ?supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role,
@@ -1464,7 +1430,7 @@ module Telnyx
1464
1430
  sip_auth_username: String,
1465
1431
  sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region,
1466
1432
  status_callback: String,
1467
- status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event,
1433
+ status_callback_event: String,
1468
1434
  status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method,
1469
1435
  supervise_call_sid: String,
1470
1436
  supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role,
@@ -1606,20 +1572,6 @@ module Telnyx
1606
1572
  def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region]
1607
1573
  end
1608
1574
 
1609
- type status_callback_event =
1610
- :initiated | :ringing | :answered | :completed
1611
-
1612
- module StatusCallbackEvent
1613
- extend Telnyx::Internal::Type::Enum
1614
-
1615
- INITIATED: :initiated
1616
- RINGING: :ringing
1617
- ANSWERED: :answered
1618
- COMPLETED: :completed
1619
-
1620
- def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event]
1621
- end
1622
-
1623
1575
  type status_callback_method = :GET | :POST
1624
1576
 
1625
1577
  module StatusCallbackMethod