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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ba049d00851291d2ec824f6ed8fd7db171fe3a2d51fc6ff349948b067da9b0e
4
- data.tar.gz: f8708187e40fdeba42095437e86d9ec2b3b2b540328299e230d5ce5f88372234
3
+ metadata.gz: 7937e983dc199262cb108da862dd704b6a8c7f5306ea5da575ad917b254da010
4
+ data.tar.gz: a193a7596c7b443a594f81f9aaf4a18d11654b88ecd7a12a9a13a70ae88505cb
5
5
  SHA512:
6
- metadata.gz: f6bc269988933cfb0db182a2ecf67a997ad91e34700bd667f7e92d7710f7cc0522512f374f4238809efa6372bee57f9a67de17a36fb52da019777121ba9027fc
7
- data.tar.gz: 33e5ac5f049a36adcd0bfc9c1f03ace1ecbd5dc0547870609bd4f112884b7075a6e35825f90aefc2ac1fb2fba7fe644f7e98cb78a62d451dd16ce252bebad3fe
6
+ metadata.gz: c48f2e06e0bdec9ebd53c5172a64f1b297583024c8c759cff61b80d786930c9ade67e060f7523e7e8f0df7a634a9c8508d43c58ba1f22965936dba03d2c24148
7
+ data.tar.gz: df0826765a1a7a7549369fc48c268f6f644f3ab85d937d83ccefa08bcd7b56c61d6ae894dd68cd5fad34c55e648fc5edaaba32c34f401bc6e1dbdb8b238af61f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.151.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.150.0...v5.151.0) (2026-07-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * pass SDK_WRITE_TOKEN instead of RELEASE_PLEASE_TOKEN ([#296](https://github.com/team-telnyx/telnyx-ruby/issues/296)) ([a230240](https://github.com/team-telnyx/telnyx-ruby/commit/a230240c8545ebd7e8b33d6de860c5c279e0497d))
9
+
3
10
  ## [5.150.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.149.0...v5.150.0) (2026-06-30)
4
11
 
5
12
 
data/README.md CHANGED
@@ -4,6 +4,15 @@ The Telnyx Ruby library provides convenient access to the Telnyx REST API from a
4
4
 
5
5
  It is generated with [Stainless](https://www.stainless.com/).
6
6
 
7
+ ## MCP Server
8
+
9
+ Use the Telnyx MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
10
+
11
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=telnyx-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInRlbG55eC1tY3AiXSwiZW52Ijp7IlRFTE5ZWF9BUElfS0VZIjoiTXkgQVBJIEtleSIsIlRFTE5ZWF9QVUJMSUNfS0VZIjoiTXkgUHVibGljIEtleSIsIlRFTE5ZWF9DTElFTlRfSUQiOiJNeSBDbGllbnQgSUQiLCJURUxOWVhfQ0xJRU5UX1NFQ1JFVCI6Ik15IENsaWVudCBTZWNyZXQifX0)
12
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22telnyx-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22telnyx-mcp%22%5D%2C%22env%22%3A%7B%22TELNYX_API_KEY%22%3A%22My%20API%20Key%22%2C%22TELNYX_PUBLIC_KEY%22%3A%22My%20Public%20Key%22%2C%22TELNYX_CLIENT_ID%22%3A%22My%20Client%20ID%22%2C%22TELNYX_CLIENT_SECRET%22%3A%22My%20Client%20Secret%22%7D%7D)
13
+
14
+ > Note: You may need to set environment variables in your MCP client.
15
+
7
16
  ## Documentation
8
17
 
9
18
  Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/telnyx).
@@ -15,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
15
24
  <!-- x-release-please-start-version -->
16
25
 
17
26
  ```ruby
18
- gem "telnyx", "~> 5.150.0"
27
+ gem "telnyx", "~> 5.151.0"
19
28
  ```
20
29
 
21
30
  <!-- x-release-please-end -->
@@ -9,25 +9,11 @@ module Telnyx
9
9
 
10
10
  # @!attribute q
11
11
  # Natural language search query. The text is embedded into a 1024-dimensional
12
- # vector and compared against indexed record chunks using kNN cosine similarity.
12
+ # vector and compared against indexed record chunks using semantic similarity.
13
13
  #
14
14
  # @return [String]
15
15
  required :q, String
16
16
 
17
- # @!attribute record_type
18
- # The type of records to search. Each record type is stored in a separate vector
19
- # index.
20
- #
21
- # @return [Symbol, Telnyx::Models::AIRetrieveConversationHistoriesParams::RecordType]
22
- required :record_type, enum: -> { Telnyx::AIRetrieveConversationHistoriesParams::RecordType }
23
-
24
- # @!attribute filter_document_id
25
- # Filter by document identifier (exact match). Populated for knowledge_base
26
- # records.
27
- #
28
- # @return [String, nil]
29
- optional :filter_document_id, String
30
-
31
17
  # @!attribute filter_ingested_at_gte
32
18
  # Only include records ingested (chunked, embedded, and indexed) on or after this
33
19
  # ISO 8601 timestamp.
@@ -90,30 +76,31 @@ module Telnyx
90
76
  # @return [Float, nil]
91
77
  optional :min_score, Float
92
78
 
93
- # @!attribute region
94
- # Restrict search to a specific region's OpenSearch cluster. When omitted, all
95
- # regions are queried in parallel (fan-out) and results are merged by cosine
96
- # similarity score.
79
+ # @!attribute page_number
80
+ # Page number to return (1-based). Defaults to 1.
97
81
  #
98
- # @return [Symbol, Telnyx::Models::AIRetrieveConversationHistoriesParams::Region, nil]
99
- optional :region, enum: -> { Telnyx::AIRetrieveConversationHistoriesParams::Region }
82
+ # @return [Integer, nil]
83
+ optional :page_number, Integer
100
84
 
101
- # @!attribute top_k
102
- # Maximum number of results to return. Defaults to 20, maximum 100.
85
+ # @!attribute page_size
86
+ # Number of results per page. Defaults to 20, maximum 100.
103
87
  #
104
88
  # @return [Integer, nil]
105
- optional :top_k, Integer
89
+ optional :page_size, Integer
90
+
91
+ # @!attribute region
92
+ # Restrict search to a specific region. When omitted, all regions are queried in
93
+ # parallel (fan-out) and results are merged by similarity score.
94
+ #
95
+ # @return [Symbol, Telnyx::Models::AIRetrieveConversationHistoriesParams::Region, nil]
96
+ optional :region, enum: -> { Telnyx::AIRetrieveConversationHistoriesParams::Region }
106
97
 
107
- # @!method initialize(q:, record_type:, filter_document_id: nil, filter_ingested_at_gte: nil, filter_ingested_at_lte: nil, filter_record_created_at_gte: nil, filter_record_created_at_lte: nil, filter_record_id: nil, filter_region_in: nil, filter_retention: nil, filter_user_id: nil, min_score: nil, region: nil, top_k: nil, request_options: {})
98
+ # @!method initialize(q:, filter_ingested_at_gte: nil, filter_ingested_at_lte: nil, filter_record_created_at_gte: nil, filter_record_created_at_lte: nil, filter_record_id: nil, filter_region_in: nil, filter_retention: nil, filter_user_id: nil, min_score: nil, page_number: nil, page_size: nil, region: nil, request_options: {})
108
99
  # Some parameter documentations has been truncated, see
109
100
  # {Telnyx::Models::AIRetrieveConversationHistoriesParams} for more details.
110
101
  #
111
102
  # @param q [String] Natural language search query. The text is embedded into a 1024-dimensional vect
112
103
  #
113
- # @param record_type [Symbol, Telnyx::Models::AIRetrieveConversationHistoriesParams::RecordType] The type of records to search. Each record type is stored in a separate vector i
114
- #
115
- # @param filter_document_id [String] Filter by document identifier (exact match). Populated for knowledge_base record
116
- #
117
104
  # @param filter_ingested_at_gte [Time] Only include records ingested (chunked, embedded, and indexed) on or after this
118
105
  #
119
106
  # @param filter_ingested_at_lte [Time] Only include records ingested (chunked, embedded, and indexed) on or before this
@@ -132,29 +119,16 @@ module Telnyx
132
119
  #
133
120
  # @param min_score [Float] Minimum cosine similarity score threshold (0.0 to 1.0). Results below this thres
134
121
  #
135
- # @param region [Symbol, Telnyx::Models::AIRetrieveConversationHistoriesParams::Region] Restrict search to a specific region's OpenSearch cluster. When omitted, all reg
122
+ # @param page_number [Integer] Page number to return (1-based). Defaults to 1.
123
+ #
124
+ # @param page_size [Integer] Number of results per page. Defaults to 20, maximum 100.
136
125
  #
137
- # @param top_k [Integer] Maximum number of results to return. Defaults to 20, maximum 100.
126
+ # @param region [Symbol, Telnyx::Models::AIRetrieveConversationHistoriesParams::Region] Restrict search to a specific region. When omitted, all regions are queried in p
138
127
  #
139
128
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
140
129
 
141
- # The type of records to search. Each record type is stored in a separate vector
142
- # index.
143
- module RecordType
144
- extend Telnyx::Internal::Type::Enum
145
-
146
- VOICE = :voice
147
- MESSAGE = :message
148
- AI_PIPELINE_STORAGE = :ai_pipeline_storage
149
- KNOWLEDGE_BASE = :knowledge_base
150
-
151
- # @!method self.values
152
- # @return [Array<Symbol>]
153
- end
154
-
155
- # Restrict search to a specific region's OpenSearch cluster. When omitted, all
156
- # regions are queried in parallel (fan-out) and results are merged by cosine
157
- # similarity score.
130
+ # Restrict search to a specific region. When omitted, all regions are queried in
131
+ # parallel (fan-out) and results are merged by similarity score.
158
132
  module Region
159
133
  extend Telnyx::Internal::Type::Enum
160
134
 
@@ -47,13 +47,6 @@ module Telnyx
47
47
  # @return [Integer]
48
48
  required :chunk_total, Integer
49
49
 
50
- # @!attribute document_id
51
- # Document identifier. Present only for knowledge_base records; null for all other
52
- # record types.
53
- #
54
- # @return [String, nil]
55
- required :document_id, String, nil?: true
56
-
57
50
  # @!attribute ingested_at
58
51
  # When the record was chunked, embedded, and indexed (ISO 8601).
59
52
  #
@@ -79,13 +72,6 @@ module Telnyx
79
72
  # @return [String]
80
73
  required :record_id, String
81
74
 
82
- # @!attribute record_type
83
- # Type of the record.
84
- #
85
- # @return [Symbol, Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType]
86
- required :record_type,
87
- enum: -> { Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType }
88
-
89
75
  # @!attribute region
90
76
  # The region where this record is stored.
91
77
  #
@@ -112,14 +98,13 @@ module Telnyx
112
98
  required :user_id, String
113
99
 
114
100
  # @!attribute metadata
115
- # Arbitrary metadata attached to the record at ingestion time. Stored as a
116
- # flat_object in OpenSearch and filterable via filter[field]=value query
117
- # parameters.
101
+ # Arbitrary metadata attached to the record at ingestion time. Filterable via
102
+ # filter[field]=value query parameters.
118
103
  #
119
104
  # @return [Hash{Symbol=>Object}, nil]
120
105
  optional :metadata, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
121
106
 
122
- # @!method initialize(id:, chunk_index:, chunk_total:, document_id:, ingested_at:, organization_id:, record_created_at:, record_id:, record_type:, region:, score:, text:, user_id:, metadata: nil)
107
+ # @!method initialize(id:, chunk_index:, chunk_total:, ingested_at:, organization_id:, record_created_at:, record_id:, region:, score:, text:, user_id:, metadata: nil)
123
108
  # Some parameter documentations has been truncated, see
124
109
  # {Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data} for more
125
110
  # details.
@@ -134,8 +119,6 @@ module Telnyx
134
119
  #
135
120
  # @param chunk_total [Integer] Total number of chunks the parent record was split into.
136
121
  #
137
- # @param document_id [String, nil] Document identifier. Present only for knowledge_base records; null for all other
138
- #
139
122
  # @param ingested_at [Time] When the record was chunked, embedded, and indexed (ISO 8601).
140
123
  #
141
124
  # @param organization_id [String] Identifier of the organization that owns this record.
@@ -144,8 +127,6 @@ module Telnyx
144
127
  #
145
128
  # @param record_id [String] Identifier of the parent record. Multiple chunks from the same record share this
146
129
  #
147
- # @param record_type [Symbol, Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::RecordType] Type of the record.
148
- #
149
130
  # @param region [Symbol, Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data::Region] The region where this record is stored.
150
131
  #
151
132
  # @param score [Float] Cosine similarity score between the query vector and this chunk's vector. Higher
@@ -154,22 +135,7 @@ module Telnyx
154
135
  #
155
136
  # @param user_id [String] Identifier of the user who owns this record.
156
137
  #
157
- # @param metadata [Hash{Symbol=>Object}] Arbitrary metadata attached to the record at ingestion time. Stored as a flat_ob
158
-
159
- # Type of the record.
160
- #
161
- # @see Telnyx::Models::AIRetrieveConversationHistoriesResponse::Data#record_type
162
- module RecordType
163
- extend Telnyx::Internal::Type::Enum
164
-
165
- VOICE = :voice
166
- MESSAGE = :message
167
- AI_PIPELINE_STORAGE = :ai_pipeline_storage
168
- KNOWLEDGE_BASE = :knowledge_base
169
-
170
- # @!method self.values
171
- # @return [Array<Symbol>]
172
- end
138
+ # @param metadata [Hash{Symbol=>Object}] Arbitrary metadata attached to the record at ingestion time. Filterable via filt
173
139
 
174
140
  # The region where this record is stored.
175
141
  #
@@ -190,14 +156,13 @@ module Telnyx
190
156
  # @see Telnyx::Models::AIRetrieveConversationHistoriesResponse#meta
191
157
  class Meta < Telnyx::Internal::Type::BaseModel
192
158
  # @!attribute page_number
193
- # Current page number (always 1 this API does not support pagination, use top_k
194
- # instead).
159
+ # Current page number (1-based), matching the requested page[number].
195
160
  #
196
161
  # @return [Integer]
197
162
  required :page_number, Integer
198
163
 
199
164
  # @!attribute page_size
200
- # Number of results per page (equals the effective top_k value).
165
+ # Number of results per page, matching the requested page[size].
201
166
  #
202
167
  # @return [Integer]
203
168
  required :page_size, Integer
@@ -209,26 +174,21 @@ module Telnyx
209
174
  required :total_pages, Integer
210
175
 
211
176
  # @!attribute total_results
212
- # Total number of matching results across all queried regions (before top_k
213
- # truncation).
177
+ # Total number of matching results across all queried regions.
214
178
  #
215
179
  # @return [Integer]
216
180
  required :total_results, Integer
217
181
 
218
182
  # @!method initialize(page_number:, page_size:, total_pages:, total_results:)
219
- # Some parameter documentations has been truncated, see
220
- # {Telnyx::Models::AIRetrieveConversationHistoriesResponse::Meta} for more
221
- # details.
222
- #
223
183
  # Pagination metadata following the standard Telnyx V2 API format.
224
184
  #
225
- # @param page_number [Integer] Current page number (always 1 this API does not support pagination, use top_k
185
+ # @param page_number [Integer] Current page number (1-based), matching the requested page[number].
226
186
  #
227
- # @param page_size [Integer] Number of results per page (equals the effective top_k value).
187
+ # @param page_size [Integer] Number of results per page, matching the requested page[size].
228
188
  #
229
189
  # @param total_pages [Integer] Total number of pages.
230
190
  #
231
- # @param total_results [Integer] Total number of matching results across all queried regions (before top_k trunca
191
+ # @param total_results [Integer] Total number of matching results across all queried regions.
232
192
  end
233
193
  end
234
194
  end
@@ -14,6 +14,14 @@ module Telnyx
14
14
  # @return [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::TranscriptionModel]
15
15
  required :transcription_model, enum: -> { Telnyx::Calls::DeepgramNova2Config::TranscriptionModel }
16
16
 
17
+ # @!attribute hints
18
+ # Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
19
+ # toward. For weighted biasing, use `keywords_boosting` instead. Nova-2-only; use
20
+ # `keyterms` on Nova-3.
21
+ #
22
+ # @return [Array<String>, nil]
23
+ optional :hints, Telnyx::Internal::Type::ArrayOf[String]
24
+
17
25
  # @!attribute interim_results
18
26
  # Whether to send also interim results. If set to false, only final results will
19
27
  # be sent.
@@ -35,6 +43,16 @@ module Telnyx
35
43
  # @return [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::Language, nil]
36
44
  optional :language, enum: -> { Telnyx::Calls::DeepgramNova2Config::Language }
37
45
 
46
+ # @!attribute smart_format
47
+ # Enable Deepgram's smart formatting (capitalization, punctuation, and digit
48
+ # normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
49
+ # underlying default of `false` — omit the field to get a smart-formatted
50
+ # transcript, or set it to `false` to receive the raw lowercase transcript without
51
+ # punctuation.
52
+ #
53
+ # @return [Boolean, nil]
54
+ optional :smart_format, Telnyx::Internal::Type::Boolean
55
+
38
56
  # @!attribute utterance_end_ms
39
57
  # Number of milliseconds of silence to consider an utterance ended. Ranges from 0
40
58
  # to 5000 ms.
@@ -42,7 +60,7 @@ module Telnyx
42
60
  # @return [Integer, nil]
43
61
  optional :utterance_end_ms, Integer
44
62
 
45
- # @!method initialize(transcription_engine:, transcription_model:, interim_results: nil, keywords_boosting: nil, language: nil, utterance_end_ms: nil)
63
+ # @!method initialize(transcription_engine:, transcription_model:, hints: nil, interim_results: nil, keywords_boosting: nil, language: nil, smart_format: nil, utterance_end_ms: nil)
46
64
  # Some parameter documentations has been truncated, see
47
65
  # {Telnyx::Models::Calls::DeepgramNova2Config} for more details.
48
66
  #
@@ -50,12 +68,16 @@ module Telnyx
50
68
  #
51
69
  # @param transcription_model [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::TranscriptionModel]
52
70
  #
71
+ # @param hints [Array<String>] Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
72
+ #
53
73
  # @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
54
74
  #
55
75
  # @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
56
76
  #
57
77
  # @param language [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::Language] Language to use for speech recognition with nova-2 model
58
78
  #
79
+ # @param smart_format [Boolean] Enable Deepgram's smart formatting (capitalization, punctuation, and digit norma
80
+ #
59
81
  # @param utterance_end_ms [Integer] Number of milliseconds of silence to consider an utterance ended. Ranges from 0
60
82
 
61
83
  # @see Telnyx::Models::Calls::DeepgramNova2Config#transcription_engine
@@ -21,6 +21,13 @@ module Telnyx
21
21
  # @return [Boolean, nil]
22
22
  optional :interim_results, Telnyx::Internal::Type::Boolean
23
23
 
24
+ # @!attribute keyterms
25
+ # Nova-3 keyterm prompting. Up to 100 domain-specific terms or brand names to bias
26
+ # recognition toward. Nova-3-only; use `hints` on Nova-2.
27
+ #
28
+ # @return [Array<String>, nil]
29
+ optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
30
+
24
31
  # @!attribute keywords_boosting
25
32
  # Keywords and their respective intensifiers (boosting values) to improve
26
33
  # transcription accuracy for specific words or phrases. The intensifier should be
@@ -35,6 +42,16 @@ module Telnyx
35
42
  # @return [Symbol, Telnyx::Models::Calls::DeepgramNova3Config::Language, nil]
36
43
  optional :language, enum: -> { Telnyx::Calls::DeepgramNova3Config::Language }
37
44
 
45
+ # @!attribute smart_format
46
+ # Enable Deepgram's smart formatting (capitalization, punctuation, and digit
47
+ # normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
48
+ # underlying default of `false` — omit the field to get a smart-formatted
49
+ # transcript, or set it to `false` to receive the raw lowercase transcript without
50
+ # punctuation.
51
+ #
52
+ # @return [Boolean, nil]
53
+ optional :smart_format, Telnyx::Internal::Type::Boolean
54
+
38
55
  # @!attribute utterance_end_ms
39
56
  # Number of milliseconds of silence to consider an utterance ended. Ranges from 0
40
57
  # to 5000 ms.
@@ -42,7 +59,7 @@ module Telnyx
42
59
  # @return [Integer, nil]
43
60
  optional :utterance_end_ms, Integer
44
61
 
45
- # @!method initialize(transcription_engine:, transcription_model:, interim_results: nil, keywords_boosting: nil, language: nil, utterance_end_ms: nil)
62
+ # @!method initialize(transcription_engine:, transcription_model:, interim_results: nil, keyterms: nil, keywords_boosting: nil, language: nil, smart_format: nil, utterance_end_ms: nil)
46
63
  # Some parameter documentations has been truncated, see
47
64
  # {Telnyx::Models::Calls::DeepgramNova3Config} for more details.
48
65
  #
@@ -52,10 +69,14 @@ module Telnyx
52
69
  #
53
70
  # @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
54
71
  #
72
+ # @param keyterms [Array<String>] Nova-3 keyterm prompting. Up to 100 domain-specific terms or brand names to bias
73
+ #
55
74
  # @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
56
75
  #
57
76
  # @param language [Symbol, Telnyx::Models::Calls::DeepgramNova3Config::Language] Language to use for speech recognition with nova-3 model
58
77
  #
78
+ # @param smart_format [Boolean] Enable Deepgram's smart formatting (capitalization, punctuation, and digit norma
79
+ #
59
80
  # @param utterance_end_ms [Integer] Number of milliseconds of silence to consider an utterance ended. Ranges from 0
60
81
 
61
82
  # @see Telnyx::Models::Calls::DeepgramNova3Config#transcription_engine
@@ -27,7 +27,7 @@ module Telnyx
27
27
 
28
28
  # @!attribute transcription_engine_config
29
29
  #
30
- # @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineSonioxConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config, nil]
30
+ # @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineSonioxConfig, Telnyx::Models::Calls::TranscriptionEngineParakeetConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config, nil]
31
31
  optional :transcription_engine_config,
32
32
  union: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig }
33
33
 
@@ -49,7 +49,7 @@ module Telnyx
49
49
  #
50
50
  # @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
51
51
  #
52
- # @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineSonioxConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
52
+ # @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineSonioxConfig, Telnyx::Models::Calls::TranscriptionEngineParakeetConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
53
53
  #
54
54
  # @param transcription_tracks [String] Indicates which leg of the call will be transcribed. Use `inbound` for the leg t
55
55
 
@@ -96,6 +96,8 @@ module Telnyx
96
96
 
97
97
  variant :Soniox, -> { Telnyx::Calls::TranscriptionEngineSonioxConfig }
98
98
 
99
+ variant :Parakeet, -> { Telnyx::Calls::TranscriptionEngineParakeetConfig }
100
+
99
101
  variant :A, -> { Telnyx::Calls::TranscriptionEngineAConfig }
100
102
 
101
103
  variant :B, -> { Telnyx::Calls::TranscriptionEngineBConfig }
@@ -105,7 +107,7 @@ module Telnyx
105
107
  variant :"deepgram/nova-3", -> { Telnyx::Calls::DeepgramNova3Config }
106
108
 
107
109
  # @!method self.variants
108
- # @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineSonioxConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config)]
110
+ # @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineSonioxConfig, Telnyx::Models::Calls::TranscriptionEngineParakeetConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config)]
109
111
  end
110
112
  end
111
113
  end
@@ -3,7 +3,30 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  class PublicInternetGateway < Telnyx::Models::Record
6
- # @!method initialize
6
+ # @!attribute name
7
+ # A user specified name for the interface.
8
+ #
9
+ # @return [String, nil]
10
+ optional :name, String
11
+
12
+ # @!attribute network_id
13
+ # The id of the network associated with the interface.
14
+ #
15
+ # @return [String, nil]
16
+ optional :network_id, String
17
+
18
+ # @!attribute region_code
19
+ # The region interface is deployed to.
20
+ #
21
+ # @return [String, nil]
22
+ optional :region_code, String
23
+
24
+ # @!method initialize(name: nil, network_id: nil, region_code: nil)
25
+ # @param name [String] A user specified name for the interface.
26
+ #
27
+ # @param network_id [String] The id of the network associated with the interface.
28
+ #
29
+ # @param region_code [String] The region interface is deployed to.
7
30
  end
8
31
  end
9
32
  end
@@ -320,12 +320,8 @@ module Telnyx
320
320
  # The call events for which Telnyx should send a webhook. Multiple events can be
321
321
  # defined when separated by a space.
322
322
  #
323
- # @return [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent, nil]
324
- optional :status_callback_event,
325
- enum: -> {
326
- Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent
327
- },
328
- api_name: :StatusCallbackEvent
323
+ # @return [String, nil]
324
+ optional :status_callback_event, String, api_name: :StatusCallbackEvent
329
325
 
330
326
  # @!attribute status_callback_method
331
327
  # HTTP request type used for `StatusCallback`.
@@ -475,7 +471,7 @@ module Telnyx
475
471
  #
476
472
  # @param status_callback [String] URL destination for Telnyx to send status callback events to for the call.
477
473
  #
478
- # @param status_callback_event [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent] The call events for which Telnyx should send a webhook. Multiple events can be d
474
+ # @param status_callback_event [String] The call events for which Telnyx should send a webhook. Multiple events can be d
479
475
  #
480
476
  # @param status_callback_method [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackMethod] HTTP request type used for `StatusCallback`.
481
477
  #
@@ -658,22 +654,6 @@ module Telnyx
658
654
  # @return [Array<Symbol>]
659
655
  end
660
656
 
661
- # The call events for which Telnyx should send a webhook. Multiple events can be
662
- # defined when separated by a space.
663
- #
664
- # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL#status_callback_event
665
- module StatusCallbackEvent
666
- extend Telnyx::Internal::Type::Enum
667
-
668
- INITIATED = :initiated
669
- RINGING = :ringing
670
- ANSWERED = :answered
671
- COMPLETED = :completed
672
-
673
- # @!method self.values
674
- # @return [Array<Symbol>]
675
- end
676
-
677
657
  # HTTP request type used for `StatusCallback`.
678
658
  #
679
659
  # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL#status_callback_method
@@ -1022,12 +1002,8 @@ module Telnyx
1022
1002
  # The call events for which Telnyx should send a webhook. Multiple events can be
1023
1003
  # defined when separated by a space.
1024
1004
  #
1025
- # @return [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent, nil]
1026
- optional :status_callback_event,
1027
- enum: -> {
1028
- Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent
1029
- },
1030
- api_name: :StatusCallbackEvent
1005
+ # @return [String, nil]
1006
+ optional :status_callback_event, String, api_name: :StatusCallbackEvent
1031
1007
 
1032
1008
  # @!attribute status_callback_method
1033
1009
  # HTTP request type used for `StatusCallback`.
@@ -1179,7 +1155,7 @@ module Telnyx
1179
1155
  #
1180
1156
  # @param status_callback [String] URL destination for Telnyx to send status callback events to for the call.
1181
1157
  #
1182
- # @param status_callback_event [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent] The call events for which Telnyx should send a webhook. Multiple events can be d
1158
+ # @param status_callback_event [String] The call events for which Telnyx should send a webhook. Multiple events can be d
1183
1159
  #
1184
1160
  # @param status_callback_method [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackMethod] HTTP request type used for `StatusCallback`.
1185
1161
  #
@@ -1362,22 +1338,6 @@ module Telnyx
1362
1338
  # @return [Array<Symbol>]
1363
1339
  end
1364
1340
 
1365
- # The call events for which Telnyx should send a webhook. Multiple events can be
1366
- # defined when separated by a space.
1367
- #
1368
- # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml#status_callback_event
1369
- module StatusCallbackEvent
1370
- extend Telnyx::Internal::Type::Enum
1371
-
1372
- INITIATED = :initiated
1373
- RINGING = :ringing
1374
- ANSWERED = :answered
1375
- COMPLETED = :completed
1376
-
1377
- # @!method self.values
1378
- # @return [Array<Symbol>]
1379
- end
1380
-
1381
1341
  # HTTP request type used for `StatusCallback`.
1382
1342
  #
1383
1343
  # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml#status_callback_method
@@ -1725,12 +1685,8 @@ module Telnyx
1725
1685
  # The call events for which Telnyx should send a webhook. Multiple events can be
1726
1686
  # defined when separated by a space.
1727
1687
  #
1728
- # @return [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent, nil]
1729
- optional :status_callback_event,
1730
- enum: -> {
1731
- Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent
1732
- },
1733
- api_name: :StatusCallbackEvent
1688
+ # @return [String, nil]
1689
+ optional :status_callback_event, String, api_name: :StatusCallbackEvent
1734
1690
 
1735
1691
  # @!attribute status_callback_method
1736
1692
  # HTTP request type used for `StatusCallback`.
@@ -1887,7 +1843,7 @@ module Telnyx
1887
1843
  #
1888
1844
  # @param status_callback [String] URL destination for Telnyx to send status callback events to for the call.
1889
1845
  #
1890
- # @param status_callback_event [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent] The call events for which Telnyx should send a webhook. Multiple events can be d
1846
+ # @param status_callback_event [String] The call events for which Telnyx should send a webhook. Multiple events can be d
1891
1847
  #
1892
1848
  # @param status_callback_method [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackMethod] HTTP request type used for `StatusCallback`.
1893
1849
  #
@@ -2072,22 +2028,6 @@ module Telnyx
2072
2028
  # @return [Array<Symbol>]
2073
2029
  end
2074
2030
 
2075
- # The call events for which Telnyx should send a webhook. Multiple events can be
2076
- # defined when separated by a space.
2077
- #
2078
- # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault#status_callback_event
2079
- module StatusCallbackEvent
2080
- extend Telnyx::Internal::Type::Enum
2081
-
2082
- INITIATED = :initiated
2083
- RINGING = :ringing
2084
- ANSWERED = :answered
2085
- COMPLETED = :completed
2086
-
2087
- # @!method self.values
2088
- # @return [Array<Symbol>]
2089
- end
2090
-
2091
2031
  # HTTP request type used for `StatusCallback`.
2092
2032
  #
2093
2033
  # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault#status_callback_method