telnyx 5.68.2 → 5.69.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 (114) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +7 -0
  5. data/lib/telnyx/internal/util.rb +18 -4
  6. data/lib/telnyx/models/ai/assistant_create_params.rb +47 -1
  7. data/lib/telnyx/models/ai/assistant_tool.rb +25 -5
  8. data/lib/telnyx/models/ai/assistant_update_params.rb +47 -1
  9. data/lib/telnyx/models/ai/assistants/update_assistant.rb +48 -1
  10. data/lib/telnyx/models/ai/audio_transcribe_response.rb +70 -7
  11. data/lib/telnyx/models/ai/inference_embedding.rb +48 -1
  12. data/lib/telnyx/models/ai/telephony_settings.rb +13 -1
  13. data/lib/telnyx/models/pronunciation_dict_create_params.rb +141 -0
  14. data/lib/telnyx/models/pronunciation_dict_create_response.rb +207 -0
  15. data/lib/telnyx/models/pronunciation_dict_delete_params.rb +20 -0
  16. data/lib/telnyx/models/pronunciation_dict_list_params.rb +30 -0
  17. data/lib/telnyx/models/pronunciation_dict_list_response.rb +190 -0
  18. data/lib/telnyx/models/pronunciation_dict_retrieve_params.rb +20 -0
  19. data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +207 -0
  20. data/lib/telnyx/models/pronunciation_dict_update_params.rb +144 -0
  21. data/lib/telnyx/models/pronunciation_dict_update_response.rb +207 -0
  22. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +1893 -547
  23. data/lib/telnyx/models/texml_initiate_ai_call_params.rb +514 -0
  24. data/lib/telnyx/models/texml_initiate_ai_call_response.rb +34 -0
  25. data/lib/telnyx/models/verification.rb +1 -0
  26. data/lib/telnyx/models/verification_trigger_whatsapp_verification_params.rb +46 -0
  27. data/lib/telnyx/models/verify_profile_create_params.rb +43 -1
  28. data/lib/telnyx/models/verify_profile_update_params.rb +43 -1
  29. data/lib/telnyx/models/whatsapp_message_content.rb +196 -1
  30. data/lib/telnyx/models/wireless_blocklist_update_params.rb +8 -21
  31. data/lib/telnyx/models.rb +15 -0
  32. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
  33. data/lib/telnyx/resources/ai/assistants.rb +6 -2
  34. data/lib/telnyx/resources/pronunciation_dicts.rb +156 -0
  35. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -84
  36. data/lib/telnyx/resources/texml.rb +106 -0
  37. data/lib/telnyx/resources/verifications.rb +28 -0
  38. data/lib/telnyx/resources/verify_profiles.rb +5 -2
  39. data/lib/telnyx/resources/wireless_blocklists.rb +5 -5
  40. data/lib/telnyx/version.rb +1 -1
  41. data/lib/telnyx.rb +13 -0
  42. data/rbi/telnyx/client.rbi +6 -0
  43. data/rbi/telnyx/internal/util.rbi +8 -0
  44. data/rbi/telnyx/models/ai/assistant_create_params.rbi +130 -0
  45. data/rbi/telnyx/models/ai/assistant_tool.rbi +56 -5
  46. data/rbi/telnyx/models/ai/assistant_update_params.rbi +130 -0
  47. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +132 -0
  48. data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +123 -10
  49. data/rbi/telnyx/models/ai/inference_embedding.rbi +130 -0
  50. data/rbi/telnyx/models/ai/telephony_settings.rbi +13 -0
  51. data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +246 -0
  52. data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +398 -0
  53. data/rbi/telnyx/models/pronunciation_dict_delete_params.rbi +38 -0
  54. data/rbi/telnyx/models/pronunciation_dict_list_params.rbi +57 -0
  55. data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +353 -0
  56. data/rbi/telnyx/models/pronunciation_dict_retrieve_params.rbi +38 -0
  57. data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +398 -0
  58. data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +268 -0
  59. data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +398 -0
  60. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +3719 -1011
  61. data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +1010 -0
  62. data/rbi/telnyx/models/texml_initiate_ai_call_response.rbi +58 -0
  63. data/rbi/telnyx/models/verification.rbi +1 -0
  64. data/rbi/telnyx/models/verification_trigger_whatsapp_verification_params.rbi +73 -0
  65. data/rbi/telnyx/models/verify_profile_create_params.rbi +85 -0
  66. data/rbi/telnyx/models/verify_profile_update_params.rbi +85 -0
  67. data/rbi/telnyx/models/whatsapp_message_content.rbi +492 -0
  68. data/rbi/telnyx/models/wireless_blocklist_update_params.rbi +6 -49
  69. data/rbi/telnyx/models.rbi +19 -10
  70. data/rbi/telnyx/resources/ai/assistants/versions.rbi +4 -0
  71. data/rbi/telnyx/resources/ai/assistants.rbi +6 -0
  72. data/rbi/telnyx/resources/pronunciation_dicts.rbi +131 -0
  73. data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -163
  74. data/rbi/telnyx/resources/texml.rbi +164 -0
  75. data/rbi/telnyx/resources/verifications.rbi +23 -0
  76. data/rbi/telnyx/resources/verify_profiles.rbi +4 -0
  77. data/rbi/telnyx/resources/wireless_blocklists.rbi +3 -3
  78. data/sig/telnyx/client.rbs +2 -0
  79. data/sig/telnyx/internal/util.rbs +4 -0
  80. data/sig/telnyx/models/ai/assistant_create_params.rbs +62 -0
  81. data/sig/telnyx/models/ai/assistant_tool.rbs +17 -4
  82. data/sig/telnyx/models/ai/assistant_update_params.rbs +62 -0
  83. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +62 -0
  84. data/sig/telnyx/models/ai/audio_transcribe_response.rbs +53 -3
  85. data/sig/telnyx/models/ai/inference_embedding.rbs +62 -0
  86. data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
  87. data/sig/telnyx/models/pronunciation_dict_create_params.rbs +97 -0
  88. data/sig/telnyx/models/pronunciation_dict_create_response.rbs +167 -0
  89. data/sig/telnyx/models/pronunciation_dict_delete_params.rbs +20 -0
  90. data/sig/telnyx/models/pronunciation_dict_list_params.rbs +32 -0
  91. data/sig/telnyx/models/pronunciation_dict_list_response.rbs +144 -0
  92. data/sig/telnyx/models/pronunciation_dict_retrieve_params.rbs +20 -0
  93. data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +167 -0
  94. data/sig/telnyx/models/pronunciation_dict_update_params.rbs +108 -0
  95. data/sig/telnyx/models/pronunciation_dict_update_response.rbs +167 -0
  96. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +1368 -331
  97. data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +444 -0
  98. data/sig/telnyx/models/texml_initiate_ai_call_response.rbs +38 -0
  99. data/sig/telnyx/models/verification.rbs +2 -1
  100. data/sig/telnyx/models/verification_trigger_whatsapp_verification_params.rbs +43 -0
  101. data/sig/telnyx/models/verify_profile_create_params.rbs +43 -1
  102. data/sig/telnyx/models/verify_profile_update_params.rbs +43 -1
  103. data/sig/telnyx/models/whatsapp_message_content.rbs +205 -0
  104. data/sig/telnyx/models/wireless_blocklist_update_params.rbs +5 -25
  105. data/sig/telnyx/models.rbs +14 -0
  106. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
  107. data/sig/telnyx/resources/ai/assistants.rbs +2 -0
  108. data/sig/telnyx/resources/pronunciation_dicts.rbs +33 -0
  109. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -40
  110. data/sig/telnyx/resources/texml.rbs +44 -0
  111. data/sig/telnyx/resources/verifications.rbs +8 -0
  112. data/sig/telnyx/resources/verify_profiles.rbs +2 -0
  113. data/sig/telnyx/resources/wireless_blocklists.rbs +1 -1
  114. metadata +41 -2
@@ -11,6 +11,8 @@ module Telnyx
11
11
  location: Telnyx::WhatsappLocation,
12
12
  reaction: Telnyx::WhatsappReaction,
13
13
  sticker: Telnyx::WhatsappMedia,
14
+ template: Telnyx::WhatsappMessageContent::Template,
15
+ text: Telnyx::WhatsappMessageContent::Text,
14
16
  type: Telnyx::Models::WhatsappMessageContent::type_,
15
17
  video: Telnyx::WhatsappMedia
16
18
  }
@@ -56,6 +58,18 @@ module Telnyx
56
58
 
57
59
  def sticker=: (Telnyx::WhatsappMedia) -> Telnyx::WhatsappMedia
58
60
 
61
+ attr_reader template: Telnyx::WhatsappMessageContent::Template?
62
+
63
+ def template=: (
64
+ Telnyx::WhatsappMessageContent::Template
65
+ ) -> Telnyx::WhatsappMessageContent::Template
66
+
67
+ attr_reader text: Telnyx::WhatsappMessageContent::Text?
68
+
69
+ def text=: (
70
+ Telnyx::WhatsappMessageContent::Text
71
+ ) -> Telnyx::WhatsappMessageContent::Text
72
+
59
73
  attr_reader type: Telnyx::Models::WhatsappMessageContent::type_?
60
74
 
61
75
  def type=: (
@@ -76,6 +90,8 @@ module Telnyx
76
90
  ?location: Telnyx::WhatsappLocation,
77
91
  ?reaction: Telnyx::WhatsappReaction,
78
92
  ?sticker: Telnyx::WhatsappMedia,
93
+ ?template: Telnyx::WhatsappMessageContent::Template,
94
+ ?text: Telnyx::WhatsappMessageContent::Text,
79
95
  ?type: Telnyx::Models::WhatsappMessageContent::type_,
80
96
  ?video: Telnyx::WhatsappMedia
81
97
  ) -> void
@@ -90,10 +106,197 @@ module Telnyx
90
106
  location: Telnyx::WhatsappLocation,
91
107
  reaction: Telnyx::WhatsappReaction,
92
108
  sticker: Telnyx::WhatsappMedia,
109
+ template: Telnyx::WhatsappMessageContent::Template,
110
+ text: Telnyx::WhatsappMessageContent::Text,
93
111
  type: Telnyx::Models::WhatsappMessageContent::type_,
94
112
  video: Telnyx::WhatsappMedia
95
113
  }
96
114
 
115
+ type template =
116
+ {
117
+ components: ::Array[Telnyx::WhatsappMessageContent::Template::Component],
118
+ language: Telnyx::WhatsappMessageContent::Template::Language,
119
+ name: String,
120
+ template_id: String
121
+ }
122
+
123
+ class Template < Telnyx::Internal::Type::BaseModel
124
+ attr_reader components: ::Array[Telnyx::WhatsappMessageContent::Template::Component]?
125
+
126
+ def components=: (
127
+ ::Array[Telnyx::WhatsappMessageContent::Template::Component]
128
+ ) -> ::Array[Telnyx::WhatsappMessageContent::Template::Component]
129
+
130
+ attr_reader language: Telnyx::WhatsappMessageContent::Template::Language?
131
+
132
+ def language=: (
133
+ Telnyx::WhatsappMessageContent::Template::Language
134
+ ) -> Telnyx::WhatsappMessageContent::Template::Language
135
+
136
+ attr_reader name: String?
137
+
138
+ def name=: (String) -> String
139
+
140
+ attr_reader template_id: String?
141
+
142
+ def template_id=: (String) -> String
143
+
144
+ def initialize: (
145
+ ?components: ::Array[Telnyx::WhatsappMessageContent::Template::Component],
146
+ ?language: Telnyx::WhatsappMessageContent::Template::Language,
147
+ ?name: String,
148
+ ?template_id: String
149
+ ) -> void
150
+
151
+ def to_hash: -> {
152
+ components: ::Array[Telnyx::WhatsappMessageContent::Template::Component],
153
+ language: Telnyx::WhatsappMessageContent::Template::Language,
154
+ name: String,
155
+ template_id: String
156
+ }
157
+
158
+ type component =
159
+ {
160
+ index: Integer,
161
+ parameters: ::Array[Telnyx::WhatsappMessageContent::Template::Component::Parameter],
162
+ sub_type: Telnyx::Models::WhatsappMessageContent::Template::Component::sub_type,
163
+ type: Telnyx::Models::WhatsappMessageContent::Template::Component::type_
164
+ }
165
+
166
+ class Component < Telnyx::Internal::Type::BaseModel
167
+ attr_reader index: Integer?
168
+
169
+ def index=: (Integer) -> Integer
170
+
171
+ attr_reader parameters: ::Array[Telnyx::WhatsappMessageContent::Template::Component::Parameter]?
172
+
173
+ def parameters=: (
174
+ ::Array[Telnyx::WhatsappMessageContent::Template::Component::Parameter]
175
+ ) -> ::Array[Telnyx::WhatsappMessageContent::Template::Component::Parameter]
176
+
177
+ attr_reader sub_type: Telnyx::Models::WhatsappMessageContent::Template::Component::sub_type?
178
+
179
+ def sub_type=: (
180
+ Telnyx::Models::WhatsappMessageContent::Template::Component::sub_type
181
+ ) -> Telnyx::Models::WhatsappMessageContent::Template::Component::sub_type
182
+
183
+ attr_reader type: Telnyx::Models::WhatsappMessageContent::Template::Component::type_?
184
+
185
+ def type=: (
186
+ Telnyx::Models::WhatsappMessageContent::Template::Component::type_
187
+ ) -> Telnyx::Models::WhatsappMessageContent::Template::Component::type_
188
+
189
+ def initialize: (
190
+ ?index: Integer,
191
+ ?parameters: ::Array[Telnyx::WhatsappMessageContent::Template::Component::Parameter],
192
+ ?sub_type: Telnyx::Models::WhatsappMessageContent::Template::Component::sub_type,
193
+ ?type: Telnyx::Models::WhatsappMessageContent::Template::Component::type_
194
+ ) -> void
195
+
196
+ def to_hash: -> {
197
+ index: Integer,
198
+ parameters: ::Array[Telnyx::WhatsappMessageContent::Template::Component::Parameter],
199
+ sub_type: Telnyx::Models::WhatsappMessageContent::Template::Component::sub_type,
200
+ type: Telnyx::Models::WhatsappMessageContent::Template::Component::type_
201
+ }
202
+
203
+ type parameter =
204
+ {
205
+ text: String,
206
+ type: Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter::type_
207
+ }
208
+
209
+ class Parameter < Telnyx::Internal::Type::BaseModel
210
+ attr_reader text: String?
211
+
212
+ def text=: (String) -> String
213
+
214
+ attr_reader type: Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter::type_?
215
+
216
+ def type=: (
217
+ Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter::type_
218
+ ) -> Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter::type_
219
+
220
+ def initialize: (
221
+ ?text: String,
222
+ ?type: Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter::type_
223
+ ) -> void
224
+
225
+ def to_hash: -> {
226
+ text: String,
227
+ type: Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter::type_
228
+ }
229
+
230
+ type type_ =
231
+ :text | :image | :video | :document | :currency | :date_time
232
+
233
+ module Type
234
+ extend Telnyx::Internal::Type::Enum
235
+
236
+ TEXT: :text
237
+ IMAGE: :image
238
+ VIDEO: :video
239
+ DOCUMENT: :document
240
+ CURRENCY: :currency
241
+ DATE_TIME: :date_time
242
+
243
+ def self?.values: -> ::Array[Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter::type_]
244
+ end
245
+ end
246
+
247
+ type sub_type = :quick_reply | :url
248
+
249
+ module SubType
250
+ extend Telnyx::Internal::Type::Enum
251
+
252
+ QUICK_REPLY: :quick_reply
253
+ URL: :url
254
+
255
+ def self?.values: -> ::Array[Telnyx::Models::WhatsappMessageContent::Template::Component::sub_type]
256
+ end
257
+
258
+ type type_ = :header | :body | :button
259
+
260
+ module Type
261
+ extend Telnyx::Internal::Type::Enum
262
+
263
+ HEADER: :header
264
+ BODY: :body
265
+ BUTTON: :button
266
+
267
+ def self?.values: -> ::Array[Telnyx::Models::WhatsappMessageContent::Template::Component::type_]
268
+ end
269
+ end
270
+
271
+ type language = { code: String, policy: String }
272
+
273
+ class Language < Telnyx::Internal::Type::BaseModel
274
+ attr_accessor code: String
275
+
276
+ attr_reader policy: String?
277
+
278
+ def policy=: (String) -> String
279
+
280
+ def initialize: (code: String, ?policy: String) -> void
281
+
282
+ def to_hash: -> { code: String, policy: String }
283
+ end
284
+ end
285
+
286
+ type text = { body: String, preview_url: bool }
287
+
288
+ class Text < Telnyx::Internal::Type::BaseModel
289
+ attr_accessor body: String
290
+
291
+ attr_reader preview_url: bool?
292
+
293
+ def preview_url=: (bool) -> bool
294
+
295
+ def initialize: (body: String, ?preview_url: bool) -> void
296
+
297
+ def to_hash: -> { body: String, preview_url: bool }
298
+ end
299
+
97
300
  type type_ =
98
301
  :audio
99
302
  | :document
@@ -105,6 +308,7 @@ module Telnyx
105
308
  | :template
106
309
  | :reaction
107
310
  | :contacts
311
+ | :text
108
312
 
109
313
  module Type
110
314
  extend Telnyx::Internal::Type::Enum
@@ -119,6 +323,7 @@ module Telnyx
119
323
  TEMPLATE: :template
120
324
  REACTION: :reaction
121
325
  CONTACTS: :contacts
326
+ TEXT: :text
122
327
 
123
328
  def self?.values: -> ::Array[Telnyx::Models::WhatsappMessageContent::type_]
124
329
  end
@@ -1,56 +1,36 @@
1
1
  module Telnyx
2
2
  module Models
3
3
  type wireless_blocklist_update_params =
4
- {
5
- name: String,
6
- type: Telnyx::Models::WirelessBlocklistUpdateParams::type_,
7
- values: ::Array[String]
8
- }
4
+ { id: String, name: String, values: ::Array[String] }
9
5
  & Telnyx::Internal::Type::request_parameters
10
6
 
11
7
  class WirelessBlocklistUpdateParams < Telnyx::Internal::Type::BaseModel
12
8
  extend Telnyx::Internal::Type::RequestParameters::Converter
13
9
  include Telnyx::Internal::Type::RequestParameters
14
10
 
11
+ attr_accessor id: String
12
+
15
13
  attr_reader name: String?
16
14
 
17
15
  def name=: (String) -> String
18
16
 
19
- attr_reader type: Telnyx::Models::WirelessBlocklistUpdateParams::type_?
20
-
21
- def type=: (
22
- Telnyx::Models::WirelessBlocklistUpdateParams::type_
23
- ) -> Telnyx::Models::WirelessBlocklistUpdateParams::type_
24
-
25
17
  attr_reader values: ::Array[String]?
26
18
 
27
19
  def values=: (::Array[String]) -> ::Array[String]
28
20
 
29
21
  def initialize: (
22
+ id: String,
30
23
  ?name: String,
31
- ?type: Telnyx::Models::WirelessBlocklistUpdateParams::type_,
32
24
  ?values: ::Array[String],
33
25
  ?request_options: Telnyx::request_opts
34
26
  ) -> void
35
27
 
36
28
  def to_hash: -> {
29
+ id: String,
37
30
  name: String,
38
- type: Telnyx::Models::WirelessBlocklistUpdateParams::type_,
39
31
  values: ::Array[String],
40
32
  request_options: Telnyx::RequestOptions
41
33
  }
42
-
43
- type type_ = :country | :mcc | :plmn
44
-
45
- module Type
46
- extend Telnyx::Internal::Type::Enum
47
-
48
- COUNTRY: :country
49
- MCC: :mcc
50
- PLMN: :plmn
51
-
52
- def self?.values: -> ::Array[Telnyx::Models::WirelessBlocklistUpdateParams::type_]
53
- end
54
34
  end
55
35
  end
56
36
  end
@@ -1183,6 +1183,16 @@ module Telnyx
1183
1183
 
1184
1184
  class PrivateWirelessGatewayStatus = Telnyx::Models::PrivateWirelessGatewayStatus
1185
1185
 
1186
+ class PronunciationDictCreateParams = Telnyx::Models::PronunciationDictCreateParams
1187
+
1188
+ class PronunciationDictDeleteParams = Telnyx::Models::PronunciationDictDeleteParams
1189
+
1190
+ class PronunciationDictListParams = Telnyx::Models::PronunciationDictListParams
1191
+
1192
+ class PronunciationDictRetrieveParams = Telnyx::Models::PronunciationDictRetrieveParams
1193
+
1194
+ class PronunciationDictUpdateParams = Telnyx::Models::PronunciationDictUpdateParams
1195
+
1186
1196
  class PublicInternetGatewayCreateParams = Telnyx::Models::PublicInternetGatewayCreateParams
1187
1197
 
1188
1198
  class PublicInternetGatewayDeleteParams = Telnyx::Models::PublicInternetGatewayDeleteParams
@@ -1497,6 +1507,8 @@ module Telnyx
1497
1507
 
1498
1508
  class TexmlApplicationUpdateParams = Telnyx::Models::TexmlApplicationUpdateParams
1499
1509
 
1510
+ class TexmlInitiateAICallParams = Telnyx::Models::TexmlInitiateAICallParams
1511
+
1500
1512
  class TexmlSecretsParams = Telnyx::Models::TexmlSecretsParams
1501
1513
 
1502
1514
  class TextToSpeechGenerateParams = Telnyx::Models::TextToSpeechGenerateParams
@@ -1565,6 +1577,8 @@ module Telnyx
1565
1577
 
1566
1578
  class VerificationTriggerSMSParams = Telnyx::Models::VerificationTriggerSMSParams
1567
1579
 
1580
+ class VerificationTriggerWhatsappVerificationParams = Telnyx::Models::VerificationTriggerWhatsappVerificationParams
1581
+
1568
1582
  class VerifiedNumber = Telnyx::Models::VerifiedNumber
1569
1583
 
1570
1584
  class VerifiedNumberCreateParams = Telnyx::Models::VerifiedNumberCreateParams
@@ -24,6 +24,7 @@ module Telnyx
24
24
  ?messaging_settings: Telnyx::AI::MessagingSettings,
25
25
  ?model: String,
26
26
  ?name: String,
27
+ ?observability_settings: Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings,
27
28
  ?privacy_settings: Telnyx::AI::PrivacySettings,
28
29
  ?telephony_settings: Telnyx::AI::TelephonySettings,
29
30
  ?tool_ids: ::Array[String],
@@ -26,6 +26,7 @@ module Telnyx
26
26
  ?insight_settings: Telnyx::AI::InsightSettings,
27
27
  ?llm_api_key_ref: String,
28
28
  ?messaging_settings: Telnyx::AI::MessagingSettings,
29
+ ?observability_settings: Telnyx::AI::AssistantCreateParams::ObservabilitySettings,
29
30
  ?privacy_settings: Telnyx::AI::PrivacySettings,
30
31
  ?telephony_settings: Telnyx::AI::TelephonySettings,
31
32
  ?tool_ids: ::Array[String],
@@ -58,6 +59,7 @@ module Telnyx
58
59
  ?messaging_settings: Telnyx::AI::MessagingSettings,
59
60
  ?model: String,
60
61
  ?name: String,
62
+ ?observability_settings: Telnyx::AI::AssistantUpdateParams::ObservabilitySettings,
61
63
  ?privacy_settings: Telnyx::AI::PrivacySettings,
62
64
  ?promote_to_main: bool,
63
65
  ?telephony_settings: Telnyx::AI::TelephonySettings,
@@ -0,0 +1,33 @@
1
+ module Telnyx
2
+ module Resources
3
+ class PronunciationDicts
4
+ def create: (
5
+ items: ::Array[Telnyx::Models::PronunciationDictCreateParams::item],
6
+ name: String,
7
+ ?request_options: Telnyx::request_opts
8
+ ) -> Telnyx::Models::PronunciationDictCreateResponse
9
+
10
+ def retrieve: (
11
+ String id,
12
+ ?request_options: Telnyx::request_opts
13
+ ) -> Telnyx::Models::PronunciationDictRetrieveResponse
14
+
15
+ def update: (
16
+ String id,
17
+ ?items: ::Array[Telnyx::Models::PronunciationDictUpdateParams::item],
18
+ ?name: String,
19
+ ?request_options: Telnyx::request_opts
20
+ ) -> Telnyx::Models::PronunciationDictUpdateResponse
21
+
22
+ def list: (
23
+ ?page_number: Integer,
24
+ ?page_size: Integer,
25
+ ?request_options: Telnyx::request_opts
26
+ ) -> Telnyx::Internal::DefaultFlatPagination[Telnyx::Models::PronunciationDictListResponse]
27
+
28
+ def delete: (String id, ?request_options: Telnyx::request_opts) -> nil
29
+
30
+ def initialize: (client: Telnyx::Client) -> void
31
+ end
32
+ end
33
+ end
@@ -33,46 +33,7 @@ module Telnyx
33
33
 
34
34
  def calls: (
35
35
  String account_sid,
36
- application_sid: String,
37
- from: String,
38
- to: String,
39
- ?async_amd: bool,
40
- ?async_amd_status_callback: String,
41
- ?async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::async_amd_status_callback_method,
42
- ?caller_id: String,
43
- ?cancel_playback_on_detect_message_end: bool,
44
- ?cancel_playback_on_machine_detection: bool,
45
- ?custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::CustomHeader],
46
- ?detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::detection_mode,
47
- ?fallback_url: String,
48
- ?machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::machine_detection,
49
- ?machine_detection_silence_timeout: Integer,
50
- ?machine_detection_speech_end_threshold: Integer,
51
- ?machine_detection_speech_threshold: Integer,
52
- ?machine_detection_timeout: Integer,
53
- ?preferred_codecs: String,
54
- ?record: bool,
55
- ?recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_channels,
56
- ?recording_status_callback: String,
57
- ?recording_status_callback_event: String,
58
- ?recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_status_callback_method,
59
- ?recording_timeout: Integer,
60
- ?recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_track,
61
- ?send_recording_url: bool,
62
- ?sip_auth_password: String,
63
- ?sip_auth_username: String,
64
- ?sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::sip_region,
65
- ?status_callback: String,
66
- ?status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_event,
67
- ?status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_method,
68
- ?supervise_call_sid: String,
69
- ?supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::supervising_role,
70
- ?texml: String,
71
- ?time_limit: Integer,
72
- ?timeout_seconds: Integer,
73
- ?trim: Telnyx::Models::Texml::Accounts::CallCallsParams::trim,
74
- ?url: String,
75
- ?url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::url_method,
36
+ body: Telnyx::Models::Texml::Accounts::CallCallsParams::body,
76
37
  ?request_options: Telnyx::request_opts
77
38
  ) -> Telnyx::Models::Texml::Accounts::CallCallsResponse
78
39
 
@@ -3,6 +3,50 @@ module Telnyx
3
3
  class Texml
4
4
  attr_reader accounts: Telnyx::Resources::Texml::Accounts
5
5
 
6
+ def initiate_ai_call: (
7
+ String connection_id,
8
+ ai_assistant_id: String,
9
+ from: String,
10
+ to: String,
11
+ ?ai_assistant_dynamic_variables: ::Hash[Symbol, String],
12
+ ?ai_assistant_version: String,
13
+ ?async_amd: bool,
14
+ ?async_amd_status_callback: String,
15
+ ?async_amd_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::async_amd_status_callback_method,
16
+ ?caller_id: String,
17
+ ?conversation_callback: String,
18
+ ?conversation_callback_method: Telnyx::Models::TexmlInitiateAICallParams::conversation_callback_method,
19
+ ?conversation_callbacks: ::Array[String],
20
+ ?custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
21
+ ?detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
22
+ ?machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
23
+ ?machine_detection_silence_timeout: Integer,
24
+ ?machine_detection_speech_end_threshold: Integer,
25
+ ?machine_detection_speech_threshold: Integer,
26
+ ?machine_detection_timeout: Integer,
27
+ ?passports: String,
28
+ ?preferred_codecs: String,
29
+ ?record: bool,
30
+ ?recording_channels: Telnyx::Models::TexmlInitiateAICallParams::recording_channels,
31
+ ?recording_status_callback: String,
32
+ ?recording_status_callback_event: String,
33
+ ?recording_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::recording_status_callback_method,
34
+ ?recording_timeout: Integer,
35
+ ?recording_track: Telnyx::Models::TexmlInitiateAICallParams::recording_track,
36
+ ?send_recording_url: bool,
37
+ ?sip_auth_password: String,
38
+ ?sip_auth_username: String,
39
+ ?sip_region: Telnyx::Models::TexmlInitiateAICallParams::sip_region,
40
+ ?status_callback: String,
41
+ ?status_callback_event: String,
42
+ ?status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::status_callback_method,
43
+ ?status_callbacks: ::Array[String],
44
+ ?time_limit: Integer,
45
+ ?timeout_seconds: Integer,
46
+ ?trim: Telnyx::Models::TexmlInitiateAICallParams::trim,
47
+ ?request_options: Telnyx::request_opts
48
+ ) -> Telnyx::Models::TexmlInitiateAICallResponse
49
+
6
50
  def secrets: (
7
51
  name: String,
8
52
  value: String,
@@ -34,6 +34,14 @@ module Telnyx
34
34
  ?request_options: Telnyx::request_opts
35
35
  ) -> Telnyx::CreateVerificationResponse
36
36
 
37
+ def trigger_whatsapp_verification: (
38
+ phone_number: String,
39
+ verify_profile_id: String,
40
+ ?custom_code: String?,
41
+ ?timeout_secs: Integer,
42
+ ?request_options: Telnyx::request_opts
43
+ ) -> Telnyx::CreateVerificationResponse
44
+
37
45
  def initialize: (client: Telnyx::Client) -> void
38
46
  end
39
47
  end
@@ -10,6 +10,7 @@ module Telnyx
10
10
  ?sms: Telnyx::VerifyProfileCreateParams::SMS,
11
11
  ?webhook_failover_url: String,
12
12
  ?webhook_url: String,
13
+ ?whatsapp: Telnyx::VerifyProfileCreateParams::Whatsapp,
13
14
  ?request_options: Telnyx::request_opts
14
15
  ) -> Telnyx::VerifyProfileData
15
16
 
@@ -28,6 +29,7 @@ module Telnyx
28
29
  ?sms: Telnyx::VerifyProfileUpdateParams::SMS,
29
30
  ?webhook_failover_url: String,
30
31
  ?webhook_url: String,
32
+ ?whatsapp: Telnyx::VerifyProfileUpdateParams::Whatsapp,
31
33
  ?request_options: Telnyx::request_opts
32
34
  ) -> Telnyx::VerifyProfileData
33
35
 
@@ -14,8 +14,8 @@ module Telnyx
14
14
  ) -> Telnyx::Models::WirelessBlocklistRetrieveResponse
15
15
 
16
16
  def update: (
17
+ String id,
17
18
  ?name: String,
18
- ?type: Telnyx::Models::WirelessBlocklistUpdateParams::type_,
19
19
  ?values: ::Array[String],
20
20
  ?request_options: Telnyx::request_opts
21
21
  ) -> Telnyx::Models::WirelessBlocklistUpdateResponse