telnyx 5.69.0 → 5.70.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 (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/util.rb +3 -1
  5. data/lib/telnyx/models/ai/assistant_create_params.rb +3 -42
  6. data/lib/telnyx/models/ai/assistant_update_params.rb +3 -42
  7. data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -43
  8. data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
  9. data/lib/telnyx/models/ai/inference_embedding.rb +3 -43
  10. data/lib/telnyx/models/ai/observability.rb +46 -0
  11. data/lib/telnyx/models/ai/observability_req.rb +46 -0
  12. data/lib/telnyx/models/call_dial_params.rb +24 -1
  13. data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
  14. data/lib/telnyx/models/enterprise_create_params.rb +1 -1
  15. data/lib/telnyx/models/enterprise_public.rb +1 -1
  16. data/lib/telnyx/models/enterprise_update_params.rb +1 -1
  17. data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
  18. data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
  19. data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
  20. data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
  21. data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
  22. data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
  23. data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
  24. data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
  25. data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
  26. data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +364 -71
  27. data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
  28. data/lib/telnyx/models/voice_clone_data.rb +51 -4
  29. data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
  30. data/lib/telnyx/resources/ai/assistants.rb +2 -2
  31. data/lib/telnyx/resources/calls/actions.rb +3 -1
  32. data/lib/telnyx/resources/calls.rb +3 -1
  33. data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
  34. data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
  35. data/lib/telnyx/resources/voice_clones.rb +7 -27
  36. data/lib/telnyx/version.rb +1 -1
  37. data/lib/telnyx.rb +10 -8
  38. data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -121
  39. data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -121
  40. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -123
  41. data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
  42. data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -123
  43. data/rbi/telnyx/models/ai/observability.rbi +90 -0
  44. data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
  45. data/rbi/telnyx/models/call_dial_params.rbi +37 -0
  46. data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -0
  47. data/rbi/telnyx/models/enterprise_create_params.rbi +1 -1
  48. data/rbi/telnyx/models/enterprise_public.rbi +1 -1
  49. data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
  50. data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
  51. data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
  52. data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
  53. data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
  54. data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
  55. data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
  56. data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
  57. data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
  58. data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
  59. data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +711 -136
  60. data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
  61. data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
  62. data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
  63. data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
  64. data/rbi/telnyx/resources/calls/actions.rbi +5 -0
  65. data/rbi/telnyx/resources/calls.rbi +5 -0
  66. data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
  67. data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
  68. data/rbi/telnyx/resources/voice_clones.rbi +17 -41
  69. data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -59
  70. data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -59
  71. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -59
  72. data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
  73. data/sig/telnyx/models/ai/inference_embedding.rbs +6 -59
  74. data/sig/telnyx/models/ai/observability.rbs +58 -0
  75. data/sig/telnyx/models/ai/observability_req.rbs +58 -0
  76. data/sig/telnyx/models/call_dial_params.rbs +20 -0
  77. data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
  78. data/sig/telnyx/models/enterprise_create_params.rbs +1 -1
  79. data/sig/telnyx/models/enterprise_public.rbs +1 -1
  80. data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
  81. data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
  82. data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
  83. data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
  84. data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
  85. data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
  86. data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
  87. data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
  88. data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
  89. data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
  90. data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +269 -58
  91. data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
  92. data/sig/telnyx/models/voice_clone_data.rbs +43 -0
  93. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
  94. data/sig/telnyx/resources/ai/assistants.rbs +2 -2
  95. data/sig/telnyx/resources/calls/actions.rbs +1 -0
  96. data/sig/telnyx/resources/calls.rbs +1 -0
  97. data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
  98. data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
  99. data/sig/telnyx/resources/voice_clones.rbs +2 -12
  100. metadata +31 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1acb28734cb5b652f6aa6cd7242b7bd6b89cfd0c41e044a16946a607b8797d52
4
- data.tar.gz: 8202e48caa11f4357ab68b9f605ceddc3083989cb5c6eaff943655c87ab85401
3
+ metadata.gz: 0ac9a07c8a853ece2ee38dc9271bc8aede4cdc909f634b11f547d24a01906726
4
+ data.tar.gz: 6ad873c682fd93b981dbca7a48f83bef3c1b43e29a6722c2e72bf46f6b20b79a
5
5
  SHA512:
6
- metadata.gz: 0f98808e691b61e96aaa0fe8395c80d8b6d262287d186b5a9603aa8f3b6cda92b0dd2f0333470d1e4e2ab9b98099c03121ab7050e8ed0e53ce2575ba8d5a18cb
7
- data.tar.gz: 5ba5fa1a40066e1c73e848ed539b3955be3ee6b08d1976198f6899ec76de14153558b5a87b371d62f3e1657eba26d9caf1eee9eef52fa808eca5f7698405ab91
6
+ metadata.gz: 7cd372e02874a4654b037003c200e382104128701fb6e521882853e81a7671d6faa00e51e8dc28f9d58f69a38a2edcbcb1c473642e1ddcf979d6cf9718aaf3c9
7
+ data.tar.gz: 71b0c0af94329048ed0920882d23d0cd41c8e5d231e7004de41196dc05f08c1231ce8ec3a4e6f8f4f4cae7a223a5c93a756acd68bcc4ea406844ac62b7c41f82
data/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.70.0 (2026-04-08)
4
+
5
+ Full Changelog: [v5.69.0...v5.70.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.69.0...v5.70.0)
6
+
7
+ ### Features
8
+
9
+ * TELAPPS-5707: Add privacy parameter to Call Control dial and transfer ([d366c32](https://github.com/team-telnyx/telnyx-ruby/commit/d366c32c5d00373f8bbdfc60eb2100bdd31d63d3))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * multipart encoding for file arrays ([39e2f28](https://github.com/team-telnyx/telnyx-ruby/commit/39e2f28bebb8c82c4baf25eccbc369719bf2db9a))
15
+
16
+
17
+ ### Reverts
18
+
19
+ * revert stainless.yml changes from 9c5e8d8 ([d689c9d](https://github.com/team-telnyx/telnyx-ruby/commit/d689c9dee43bc62106808be66328c1e9d91f5376))
20
+ * revert stainless.yml changes from pronunciation dictionaries commit ([8b34c3b](https://github.com/team-telnyx/telnyx-ruby/commit/8b34c3b821f8a0418c7faa1c7f63ecd1d2565cbf))
21
+
22
+
23
+ ### Documentation
24
+
25
+ * update voice clone schemas to match Ultra/model_id implementation ([cce4793](https://github.com/team-telnyx/telnyx-ruby/commit/cce4793cbdf1990e6ce83d9bcc674bc45a20e0fa))
26
+
3
27
  ## 5.69.0 (2026-04-08)
4
28
 
5
29
  Full Changelog: [v5.68.2...v5.69.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.68.2...v5.69.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.69.0"
27
+ gem "telnyx", "~> 5.70.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -610,6 +610,7 @@ module Telnyx
610
610
  #
611
611
  # @return [Array(String, Enumerable<String>)]
612
612
  private def encode_multipart_streaming(body)
613
+ # rubocop:disable Style/CaseEquality
613
614
  # RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
614
615
  boundary = SecureRandom.urlsafe_base64(46)
615
616
 
@@ -619,7 +620,7 @@ module Telnyx
619
620
  in Hash
620
621
  body.each do |key, val|
621
622
  case val
622
- in Array if val.all? { primitive?(_1) }
623
+ in Array if val.all? { primitive?(_1) || Telnyx::Internal::Type::FileInput === _1 }
623
624
  val.each do |v|
624
625
  write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
625
626
  end
@@ -635,6 +636,7 @@ module Telnyx
635
636
 
636
637
  fused_io = fused_enum(strio) { closing.each(&:call) }
637
638
  [boundary, fused_io]
639
+ # rubocop:enable Style/CaseEquality
638
640
  end
639
641
 
640
642
  # @api private
@@ -86,8 +86,8 @@ module Telnyx
86
86
 
87
87
  # @!attribute observability_settings
88
88
  #
89
- # @return [Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings, nil]
90
- optional :observability_settings, -> { Telnyx::AI::AssistantCreateParams::ObservabilitySettings }
89
+ # @return [Telnyx::Models::AI::ObservabilityReq, nil]
90
+ optional :observability_settings, -> { Telnyx::AI::ObservabilityReq }
91
91
 
92
92
  # @!attribute privacy_settings
93
93
  #
@@ -153,7 +153,7 @@ module Telnyx
153
153
  #
154
154
  # @param messaging_settings [Telnyx::Models::AI::MessagingSettings]
155
155
  #
156
- # @param observability_settings [Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings]
156
+ # @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
157
157
  #
158
158
  # @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
159
159
  #
@@ -170,45 +170,6 @@ module Telnyx
170
170
  # @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
171
171
  #
172
172
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
173
-
174
- class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
175
- # @!attribute host
176
- #
177
- # @return [String, nil]
178
- optional :host, String
179
-
180
- # @!attribute public_key_ref
181
- #
182
- # @return [String, nil]
183
- optional :public_key_ref, String
184
-
185
- # @!attribute secret_key_ref
186
- #
187
- # @return [String, nil]
188
- optional :secret_key_ref, String
189
-
190
- # @!attribute status
191
- #
192
- # @return [Symbol, Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::Status, nil]
193
- optional :status, enum: -> { Telnyx::AI::AssistantCreateParams::ObservabilitySettings::Status }
194
-
195
- # @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
196
- # @param host [String]
197
- # @param public_key_ref [String]
198
- # @param secret_key_ref [String]
199
- # @param status [Symbol, Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::Status]
200
-
201
- # @see Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings#status
202
- module Status
203
- extend Telnyx::Internal::Type::Enum
204
-
205
- ENABLED = :enabled
206
- DISABLED = :disabled
207
-
208
- # @!method self.values
209
- # @return [Array<Symbol>]
210
- end
211
- end
212
173
  end
213
174
  end
214
175
  end
@@ -91,8 +91,8 @@ module Telnyx
91
91
 
92
92
  # @!attribute observability_settings
93
93
  #
94
- # @return [Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings, nil]
95
- optional :observability_settings, -> { Telnyx::AI::AssistantUpdateParams::ObservabilitySettings }
94
+ # @return [Telnyx::Models::AI::ObservabilityReq, nil]
95
+ optional :observability_settings, -> { Telnyx::AI::ObservabilityReq }
96
96
 
97
97
  # @!attribute privacy_settings
98
98
  #
@@ -167,7 +167,7 @@ module Telnyx
167
167
  #
168
168
  # @param name [String]
169
169
  #
170
- # @param observability_settings [Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings]
170
+ # @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
171
171
  #
172
172
  # @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
173
173
  #
@@ -186,45 +186,6 @@ module Telnyx
186
186
  # @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
187
187
  #
188
188
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
189
-
190
- class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
191
- # @!attribute host
192
- #
193
- # @return [String, nil]
194
- optional :host, String
195
-
196
- # @!attribute public_key_ref
197
- #
198
- # @return [String, nil]
199
- optional :public_key_ref, String
200
-
201
- # @!attribute secret_key_ref
202
- #
203
- # @return [String, nil]
204
- optional :secret_key_ref, String
205
-
206
- # @!attribute status
207
- #
208
- # @return [Symbol, Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::Status, nil]
209
- optional :status, enum: -> { Telnyx::AI::AssistantUpdateParams::ObservabilitySettings::Status }
210
-
211
- # @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
212
- # @param host [String]
213
- # @param public_key_ref [String]
214
- # @param secret_key_ref [String]
215
- # @param status [Symbol, Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::Status]
216
-
217
- # @see Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings#status
218
- module Status
219
- extend Telnyx::Internal::Type::Enum
220
-
221
- ENABLED = :enabled
222
- DISABLED = :disabled
223
-
224
- # @!method self.values
225
- # @return [Array<Symbol>]
226
- end
227
- end
228
189
  end
229
190
  end
230
191
  end
@@ -83,8 +83,8 @@ module Telnyx
83
83
 
84
84
  # @!attribute observability_settings
85
85
  #
86
- # @return [Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings, nil]
87
- optional :observability_settings, -> { Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings }
86
+ # @return [Telnyx::Models::AI::ObservabilityReq, nil]
87
+ optional :observability_settings, -> { Telnyx::AI::ObservabilityReq }
88
88
 
89
89
  # @!attribute privacy_settings
90
90
  #
@@ -150,7 +150,7 @@ module Telnyx
150
150
  #
151
151
  # @param name [String]
152
152
  #
153
- # @param observability_settings [Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings]
153
+ # @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
154
154
  #
155
155
  # @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
156
156
  #
@@ -165,46 +165,6 @@ module Telnyx
165
165
  # @param voice_settings [Telnyx::Models::AI::VoiceSettings]
166
166
  #
167
167
  # @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
168
-
169
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant#observability_settings
170
- class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
171
- # @!attribute host
172
- #
173
- # @return [String, nil]
174
- optional :host, String
175
-
176
- # @!attribute public_key_ref
177
- #
178
- # @return [String, nil]
179
- optional :public_key_ref, String
180
-
181
- # @!attribute secret_key_ref
182
- #
183
- # @return [String, nil]
184
- optional :secret_key_ref, String
185
-
186
- # @!attribute status
187
- #
188
- # @return [Symbol, Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status, nil]
189
- optional :status, enum: -> { Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status }
190
-
191
- # @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
192
- # @param host [String]
193
- # @param public_key_ref [String]
194
- # @param secret_key_ref [String]
195
- # @param status [Symbol, Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status]
196
-
197
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings#status
198
- module Status
199
- extend Telnyx::Internal::Type::Enum
200
-
201
- ENABLED = :enabled
202
- DISABLED = :disabled
203
-
204
- # @!method self.values
205
- # @return [Array<Symbol>]
206
- end
207
- end
208
168
  end
209
169
  end
210
170
 
@@ -86,9 +86,9 @@ module Telnyx
86
86
 
87
87
  variant Telnyx::Internal::Type::Boolean
88
88
 
89
- variant -> { Telnyx::Models::AI::ConversationAddMessageParams::Metadata::UnionMember3Array }
89
+ variant -> { Telnyx::Models::AI::ConversationAddMessageParams::Metadata::MetadataArrayValueArray }
90
90
 
91
- module UnionMember3
91
+ module MetadataArrayValue
92
92
  extend Telnyx::Internal::Type::Union
93
93
 
94
94
  variant String
@@ -105,9 +105,9 @@ module Telnyx
105
105
  # @return [Array(String, Integer, Boolean, Array<String, Integer, Boolean>)]
106
106
 
107
107
  # @type [Telnyx::Internal::Type::Converter]
108
- UnionMember3Array =
108
+ MetadataArrayValueArray =
109
109
  Telnyx::Internal::Type::ArrayOf[union: -> {
110
- Telnyx::AI::ConversationAddMessageParams::Metadata::UnionMember3
110
+ Telnyx::AI::ConversationAddMessageParams::Metadata::MetadataArrayValue
111
111
  }]
112
112
  end
113
113
 
@@ -98,8 +98,8 @@ module Telnyx
98
98
 
99
99
  # @!attribute observability_settings
100
100
  #
101
- # @return [Telnyx::Models::AI::InferenceEmbedding::ObservabilitySettings, nil]
102
- optional :observability_settings, -> { Telnyx::AI::InferenceEmbedding::ObservabilitySettings }
101
+ # @return [Telnyx::Models::AI::Observability, nil]
102
+ optional :observability_settings, -> { Telnyx::AI::Observability }
103
103
 
104
104
  # @!attribute privacy_settings
105
105
  #
@@ -166,7 +166,7 @@ module Telnyx
166
166
  #
167
167
  # @param messaging_settings [Telnyx::Models::AI::MessagingSettings]
168
168
  #
169
- # @param observability_settings [Telnyx::Models::AI::InferenceEmbedding::ObservabilitySettings]
169
+ # @param observability_settings [Telnyx::Models::AI::Observability]
170
170
  #
171
171
  # @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
172
172
  #
@@ -179,46 +179,6 @@ module Telnyx
179
179
  # @param voice_settings [Telnyx::Models::AI::VoiceSettings]
180
180
  #
181
181
  # @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
182
-
183
- # @see Telnyx::Models::AI::InferenceEmbedding#observability_settings
184
- class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
185
- # @!attribute host
186
- #
187
- # @return [String, nil]
188
- optional :host, String
189
-
190
- # @!attribute public_key_ref
191
- #
192
- # @return [String, nil]
193
- optional :public_key_ref, String
194
-
195
- # @!attribute secret_key_ref
196
- #
197
- # @return [String, nil]
198
- optional :secret_key_ref, String
199
-
200
- # @!attribute status
201
- #
202
- # @return [Symbol, Telnyx::Models::AI::InferenceEmbedding::ObservabilitySettings::Status, nil]
203
- optional :status, enum: -> { Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status }
204
-
205
- # @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
206
- # @param host [String]
207
- # @param public_key_ref [String]
208
- # @param secret_key_ref [String]
209
- # @param status [Symbol, Telnyx::Models::AI::InferenceEmbedding::ObservabilitySettings::Status]
210
-
211
- # @see Telnyx::Models::AI::InferenceEmbedding::ObservabilitySettings#status
212
- module Status
213
- extend Telnyx::Internal::Type::Enum
214
-
215
- ENABLED = :enabled
216
- DISABLED = :disabled
217
-
218
- # @!method self.values
219
- # @return [Array<Symbol>]
220
- end
221
- end
222
182
  end
223
183
  end
224
184
  end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class Observability < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute host
8
+ #
9
+ # @return [String, nil]
10
+ optional :host, String
11
+
12
+ # @!attribute public_key_ref
13
+ #
14
+ # @return [String, nil]
15
+ optional :public_key_ref, String
16
+
17
+ # @!attribute secret_key_ref
18
+ #
19
+ # @return [String, nil]
20
+ optional :secret_key_ref, String
21
+
22
+ # @!attribute status
23
+ #
24
+ # @return [Symbol, Telnyx::Models::AI::Observability::Status, nil]
25
+ optional :status, enum: -> { Telnyx::AI::Observability::Status }
26
+
27
+ # @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
28
+ # @param host [String]
29
+ # @param public_key_ref [String]
30
+ # @param secret_key_ref [String]
31
+ # @param status [Symbol, Telnyx::Models::AI::Observability::Status]
32
+
33
+ # @see Telnyx::Models::AI::Observability#status
34
+ module Status
35
+ extend Telnyx::Internal::Type::Enum
36
+
37
+ ENABLED = :enabled
38
+ DISABLED = :disabled
39
+
40
+ # @!method self.values
41
+ # @return [Array<Symbol>]
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class ObservabilityReq < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute host
8
+ #
9
+ # @return [String, nil]
10
+ optional :host, String
11
+
12
+ # @!attribute public_key_ref
13
+ #
14
+ # @return [String, nil]
15
+ optional :public_key_ref, String
16
+
17
+ # @!attribute secret_key_ref
18
+ #
19
+ # @return [String, nil]
20
+ optional :secret_key_ref, String
21
+
22
+ # @!attribute status
23
+ #
24
+ # @return [Symbol, Telnyx::Models::AI::ObservabilityReq::Status, nil]
25
+ optional :status, enum: -> { Telnyx::AI::ObservabilityReq::Status }
26
+
27
+ # @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
28
+ # @param host [String]
29
+ # @param public_key_ref [String]
30
+ # @param secret_key_ref [String]
31
+ # @param status [Symbol, Telnyx::Models::AI::ObservabilityReq::Status]
32
+
33
+ # @see Telnyx::Models::AI::ObservabilityReq#status
34
+ module Status
35
+ extend Telnyx::Internal::Type::Enum
36
+
37
+ ENABLED = :enabled
38
+ DISABLED = :disabled
39
+
40
+ # @!method self.values
41
+ # @return [Array<Symbol>]
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -178,6 +178,14 @@ module Telnyx
178
178
  # @return [Boolean, nil]
179
179
  optional :prevent_double_bridge, Telnyx::Internal::Type::Boolean
180
180
 
181
+ # @!attribute privacy
182
+ # Indicates the privacy level to be used for the call. When set to `id`, caller ID
183
+ # information (name and number) will be hidden from the called party. When set to
184
+ # `none` or omitted, caller ID will be shown normally.
185
+ #
186
+ # @return [Symbol, Telnyx::Models::CallDialParams::Privacy, nil]
187
+ optional :privacy, enum: -> { Telnyx::CallDialParams::Privacy }
188
+
181
189
  # @!attribute record
182
190
  # Start recording automatically after an event. Disabled by default.
183
191
  #
@@ -399,7 +407,7 @@ module Telnyx
399
407
  # @return [Symbol, Telnyx::Models::CallDialParams::WebhookURLMethod, nil]
400
408
  optional :webhook_url_method, enum: -> { Telnyx::CallDialParams::WebhookURLMethod }
401
409
 
402
- # @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_url: nil, webhook_url_method: nil, request_options: {})
410
+ # @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_url: nil, webhook_url_method: nil, request_options: {})
403
411
  # Some parameter documentations has been truncated, see
404
412
  # {Telnyx::Models::CallDialParams} for more details.
405
413
  #
@@ -447,6 +455,8 @@ module Telnyx
447
455
  #
448
456
  # @param prevent_double_bridge [Boolean] Prevents bridging and hangs up the call if the target is already bridged. Disabl
449
457
  #
458
+ # @param privacy [Symbol, Telnyx::Models::CallDialParams::Privacy] Indicates the privacy level to be used for the call. When set to `id`, caller ID
459
+ #
450
460
  # @param record [Symbol, Telnyx::Models::CallDialParams::Record] Start recording automatically after an event. Disabled by default.
451
461
  #
452
462
  # @param record_channels [Symbol, Telnyx::Models::CallDialParams::RecordChannels] Defines which channel should be recorded ('single' or 'dual') when `record` is s
@@ -848,6 +858,19 @@ module Telnyx
848
858
  # @return [Array<Symbol>]
849
859
  end
850
860
 
861
+ # Indicates the privacy level to be used for the call. When set to `id`, caller ID
862
+ # information (name and number) will be hidden from the called party. When set to
863
+ # `none` or omitted, caller ID will be shown normally.
864
+ module Privacy
865
+ extend Telnyx::Internal::Type::Enum
866
+
867
+ ID = :id
868
+ NONE = :none
869
+
870
+ # @!method self.values
871
+ # @return [Array<Symbol>]
872
+ end
873
+
851
874
  # Start recording automatically after an event. Disabled by default.
852
875
  module Record
853
876
  extend Telnyx::Internal::Type::Enum
@@ -130,6 +130,14 @@ module Telnyx
130
130
  # @return [String, nil]
131
131
  optional :preferred_codecs, String
132
132
 
133
+ # @!attribute privacy
134
+ # Indicates the privacy level to be used for the call. When set to `id`, caller ID
135
+ # information (name and number) will be hidden from the called party. When set to
136
+ # `none` or omitted, caller ID will be shown normally.
137
+ #
138
+ # @return [Symbol, Telnyx::Models::Calls::ActionTransferParams::Privacy, nil]
139
+ optional :privacy, enum: -> { Telnyx::Calls::ActionTransferParams::Privacy }
140
+
133
141
  # @!attribute record
134
142
  # Start recording automatically after an event. Disabled by default.
135
143
  #
@@ -290,7 +298,7 @@ module Telnyx
290
298
  # @return [Symbol, Telnyx::Models::Calls::ActionTransferParams::WebhookURLsMethod, nil]
291
299
  optional :webhook_urls_method, enum: -> { Telnyx::Calls::ActionTransferParams::WebhookURLsMethod }
292
300
 
293
- # @!method initialize(call_control_id:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, client_state: nil, command_id: nil, custom_headers: nil, early_media: nil, from: nil, from_display_name: nil, media_encryption: nil, media_name: nil, mute_dtmf: nil, park_after_unbridge: nil, preferred_codecs: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, target_leg_client_state: nil, time_limit_secs: nil, timeout_secs: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
301
+ # @!method initialize(call_control_id:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, client_state: nil, command_id: nil, custom_headers: nil, early_media: nil, from: nil, from_display_name: nil, media_encryption: nil, media_name: nil, mute_dtmf: nil, park_after_unbridge: nil, preferred_codecs: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, target_leg_client_state: nil, time_limit_secs: nil, timeout_secs: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
294
302
  # Some parameter documentations has been truncated, see
295
303
  # {Telnyx::Models::Calls::ActionTransferParams} for more details.
296
304
  #
@@ -326,6 +334,8 @@ module Telnyx
326
334
  #
327
335
  # @param preferred_codecs [String] The list of comma-separated codecs in order of preference to be used during the
328
336
  #
337
+ # @param privacy [Symbol, Telnyx::Models::Calls::ActionTransferParams::Privacy] Indicates the privacy level to be used for the call. When set to `id`, caller ID
338
+ #
329
339
  # @param record [Symbol, Telnyx::Models::Calls::ActionTransferParams::Record] Start recording automatically after an event. Disabled by default.
330
340
  #
331
341
  # @param record_channels [Symbol, Telnyx::Models::Calls::ActionTransferParams::RecordChannels] Defines which channel should be recorded ('single' or 'dual') when `record` is s
@@ -513,6 +523,19 @@ module Telnyx
513
523
  # @return [Array<Symbol>]
514
524
  end
515
525
 
526
+ # Indicates the privacy level to be used for the call. When set to `id`, caller ID
527
+ # information (name and number) will be hidden from the called party. When set to
528
+ # `none` or omitted, caller ID will be shown normally.
529
+ module Privacy
530
+ extend Telnyx::Internal::Type::Enum
531
+
532
+ ID = :id
533
+ NONE = :none
534
+
535
+ # @!method self.values
536
+ # @return [Array<Symbol>]
537
+ end
538
+
516
539
  # Start recording automatically after an event. Disabled by default.
517
540
  module Record
518
541
  extend Telnyx::Internal::Type::Enum
@@ -180,7 +180,7 @@ module Telnyx
180
180
  NUMBER_OF_EMPLOYEES_201_500 = :"201-500"
181
181
  NUMBER_OF_EMPLOYEES_501_2000 = :"501-2000"
182
182
  NUMBER_OF_EMPLOYEES_2001_10000 = :"2001-10000"
183
- NUMBER_OF_EMPLOYEES_10001 = :"10001+"
183
+ NUMBER_OF_EMPLOYEES_10001_PLUS = :"10001+"
184
184
 
185
185
  # @!method self.values
186
186
  # @return [Array<Symbol>]
@@ -196,7 +196,7 @@ module Telnyx
196
196
  NUMBER_OF_EMPLOYEES_201_500 = :"201-500"
197
197
  NUMBER_OF_EMPLOYEES_501_2000 = :"501-2000"
198
198
  NUMBER_OF_EMPLOYEES_2001_10000 = :"2001-10000"
199
- NUMBER_OF_EMPLOYEES_10001 = :"10001+"
199
+ NUMBER_OF_EMPLOYEES_10001_PLUS = :"10001+"
200
200
 
201
201
  # @!method self.values
202
202
  # @return [Array<Symbol>]
@@ -156,7 +156,7 @@ module Telnyx
156
156
  NUMBER_OF_EMPLOYEES_201_500 = :"201-500"
157
157
  NUMBER_OF_EMPLOYEES_501_2000 = :"501-2000"
158
158
  NUMBER_OF_EMPLOYEES_2001_10000 = :"2001-10000"
159
- NUMBER_OF_EMPLOYEES_10001 = :"10001+"
159
+ NUMBER_OF_EMPLOYEES_10001_PLUS = :"10001+"
160
160
 
161
161
  # @!method self.values
162
162
  # @return [Array<Symbol>]
@@ -4,8 +4,8 @@ module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
6
  module Reputation
7
- # @see Telnyx::Resources::Enterprises::Reputation::Numbers#create
8
- class NumberCreateParams < Telnyx::Internal::Type::BaseModel
7
+ # @see Telnyx::Resources::Enterprises::Reputation::Numbers#associate
8
+ class NumberAssociateParams < Telnyx::Internal::Type::BaseModel
9
9
  extend Telnyx::Internal::Type::RequestParameters::Converter
10
10
  include Telnyx::Internal::Type::RequestParameters
11
11
 
@@ -4,13 +4,13 @@ module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
6
  module Reputation
7
- # @see Telnyx::Resources::Enterprises::Reputation::Numbers#create
8
- class NumberCreateResponse < Telnyx::Internal::Type::BaseModel
7
+ # @see Telnyx::Resources::Enterprises::Reputation::Numbers#associate
8
+ class NumberAssociateResponse < Telnyx::Internal::Type::BaseModel
9
9
  # @!attribute data
10
10
  #
11
- # @return [Array<Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data>, nil]
11
+ # @return [Array<Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data>, nil]
12
12
  optional :data,
13
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data] }
13
+ -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data] }
14
14
 
15
15
  # @!attribute meta
16
16
  #
@@ -18,7 +18,7 @@ module Telnyx
18
18
  optional :meta, -> { Telnyx::MetaInfo }
19
19
 
20
20
  # @!method initialize(data: nil, meta: nil)
21
- # @param data [Array<Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data>]
21
+ # @param data [Array<Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data>]
22
22
  # @param meta [Telnyx::Models::MetaInfo]
23
23
 
24
24
  class Data < Telnyx::Internal::Type::BaseModel
@@ -4,8 +4,8 @@ module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
6
  module Reputation
7
- # @see Telnyx::Resources::Enterprises::Reputation::Numbers#delete
8
- class NumberDeleteParams < Telnyx::Internal::Type::BaseModel
7
+ # @see Telnyx::Resources::Enterprises::Reputation::Numbers#disassociate
8
+ class NumberDisassociateParams < Telnyx::Internal::Type::BaseModel
9
9
  extend Telnyx::Internal::Type::RequestParameters::Converter
10
10
  include Telnyx::Internal::Type::RequestParameters
11
11