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
@@ -63,6 +63,23 @@ module Telnyx
63
63
  sig { params(sticker: Telnyx::WhatsappMedia::OrHash).void }
64
64
  attr_writer :sticker
65
65
 
66
+ # Template message object. Provide either template_id or name + language to
67
+ # identify the template.
68
+ sig { returns(T.nilable(Telnyx::WhatsappMessageContent::Template)) }
69
+ attr_reader :template
70
+
71
+ sig do
72
+ params(template: Telnyx::WhatsappMessageContent::Template::OrHash).void
73
+ end
74
+ attr_writer :template
75
+
76
+ # Text message content. Can only be sent within a 24-hour customer service window.
77
+ sig { returns(T.nilable(Telnyx::WhatsappMessageContent::Text)) }
78
+ attr_reader :text
79
+
80
+ sig { params(text: Telnyx::WhatsappMessageContent::Text::OrHash).void }
81
+ attr_writer :text
82
+
66
83
  sig { returns(T.nilable(Telnyx::WhatsappMessageContent::Type::OrSymbol)) }
67
84
  attr_reader :type
68
85
 
@@ -86,6 +103,8 @@ module Telnyx
86
103
  location: Telnyx::WhatsappLocation::OrHash,
87
104
  reaction: Telnyx::WhatsappReaction::OrHash,
88
105
  sticker: Telnyx::WhatsappMedia::OrHash,
106
+ template: Telnyx::WhatsappMessageContent::Template::OrHash,
107
+ text: Telnyx::WhatsappMessageContent::Text::OrHash,
89
108
  type: Telnyx::WhatsappMessageContent::Type::OrSymbol,
90
109
  video: Telnyx::WhatsappMedia::OrHash
91
110
  ).returns(T.attached_class)
@@ -101,6 +120,11 @@ module Telnyx
101
120
  location: nil,
102
121
  reaction: nil,
103
122
  sticker: nil,
123
+ # Template message object. Provide either template_id or name + language to
124
+ # identify the template.
125
+ template: nil,
126
+ # Text message content. Can only be sent within a 24-hour customer service window.
127
+ text: nil,
104
128
  type: nil,
105
129
  video: nil
106
130
  )
@@ -118,6 +142,8 @@ module Telnyx
118
142
  location: Telnyx::WhatsappLocation,
119
143
  reaction: Telnyx::WhatsappReaction,
120
144
  sticker: Telnyx::WhatsappMedia,
145
+ template: Telnyx::WhatsappMessageContent::Template,
146
+ text: Telnyx::WhatsappMessageContent::Text,
121
147
  type: Telnyx::WhatsappMessageContent::Type::OrSymbol,
122
148
  video: Telnyx::WhatsappMedia
123
149
  }
@@ -126,6 +152,471 @@ module Telnyx
126
152
  def to_hash
127
153
  end
128
154
 
155
+ class Template < Telnyx::Internal::Type::BaseModel
156
+ OrHash =
157
+ T.type_alias do
158
+ T.any(
159
+ Telnyx::WhatsappMessageContent::Template,
160
+ Telnyx::Internal::AnyHash
161
+ )
162
+ end
163
+
164
+ # Template parameter values for header, body, and button components.
165
+ sig do
166
+ returns(
167
+ T.nilable(
168
+ T::Array[Telnyx::WhatsappMessageContent::Template::Component]
169
+ )
170
+ )
171
+ end
172
+ attr_reader :components
173
+
174
+ sig do
175
+ params(
176
+ components:
177
+ T::Array[
178
+ Telnyx::WhatsappMessageContent::Template::Component::OrHash
179
+ ]
180
+ ).void
181
+ end
182
+ attr_writer :components
183
+
184
+ # Template language. Required unless template_id is provided.
185
+ sig do
186
+ returns(T.nilable(Telnyx::WhatsappMessageContent::Template::Language))
187
+ end
188
+ attr_reader :language
189
+
190
+ sig do
191
+ params(
192
+ language: Telnyx::WhatsappMessageContent::Template::Language::OrHash
193
+ ).void
194
+ end
195
+ attr_writer :language
196
+
197
+ # Template name as registered with Meta. Required unless template_id is provided.
198
+ sig { returns(T.nilable(String)) }
199
+ attr_reader :name
200
+
201
+ sig { params(name: String).void }
202
+ attr_writer :name
203
+
204
+ # Telnyx template ID (the id field from template list/get responses). When
205
+ # provided, name and language are resolved automatically.
206
+ sig { returns(T.nilable(String)) }
207
+ attr_reader :template_id
208
+
209
+ sig { params(template_id: String).void }
210
+ attr_writer :template_id
211
+
212
+ # Template message object. Provide either template_id or name + language to
213
+ # identify the template.
214
+ sig do
215
+ params(
216
+ components:
217
+ T::Array[
218
+ Telnyx::WhatsappMessageContent::Template::Component::OrHash
219
+ ],
220
+ language:
221
+ Telnyx::WhatsappMessageContent::Template::Language::OrHash,
222
+ name: String,
223
+ template_id: String
224
+ ).returns(T.attached_class)
225
+ end
226
+ def self.new(
227
+ # Template parameter values for header, body, and button components.
228
+ components: nil,
229
+ # Template language. Required unless template_id is provided.
230
+ language: nil,
231
+ # Template name as registered with Meta. Required unless template_id is provided.
232
+ name: nil,
233
+ # Telnyx template ID (the id field from template list/get responses). When
234
+ # provided, name and language are resolved automatically.
235
+ template_id: nil
236
+ )
237
+ end
238
+
239
+ sig do
240
+ override.returns(
241
+ {
242
+ components:
243
+ T::Array[Telnyx::WhatsappMessageContent::Template::Component],
244
+ language: Telnyx::WhatsappMessageContent::Template::Language,
245
+ name: String,
246
+ template_id: String
247
+ }
248
+ )
249
+ end
250
+ def to_hash
251
+ end
252
+
253
+ class Component < Telnyx::Internal::Type::BaseModel
254
+ OrHash =
255
+ T.type_alias do
256
+ T.any(
257
+ Telnyx::WhatsappMessageContent::Template::Component,
258
+ Telnyx::Internal::AnyHash
259
+ )
260
+ end
261
+
262
+ # Button index (required for button components)
263
+ sig { returns(T.nilable(Integer)) }
264
+ attr_reader :index
265
+
266
+ sig { params(index: Integer).void }
267
+ attr_writer :index
268
+
269
+ sig do
270
+ returns(
271
+ T.nilable(
272
+ T::Array[
273
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter
274
+ ]
275
+ )
276
+ )
277
+ end
278
+ attr_reader :parameters
279
+
280
+ sig do
281
+ params(
282
+ parameters:
283
+ T::Array[
284
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::OrHash
285
+ ]
286
+ ).void
287
+ end
288
+ attr_writer :parameters
289
+
290
+ sig do
291
+ returns(
292
+ T.nilable(
293
+ Telnyx::WhatsappMessageContent::Template::Component::SubType::OrSymbol
294
+ )
295
+ )
296
+ end
297
+ attr_reader :sub_type
298
+
299
+ sig do
300
+ params(
301
+ sub_type:
302
+ Telnyx::WhatsappMessageContent::Template::Component::SubType::OrSymbol
303
+ ).void
304
+ end
305
+ attr_writer :sub_type
306
+
307
+ sig do
308
+ returns(
309
+ T.nilable(
310
+ Telnyx::WhatsappMessageContent::Template::Component::Type::OrSymbol
311
+ )
312
+ )
313
+ end
314
+ attr_reader :type
315
+
316
+ sig do
317
+ params(
318
+ type:
319
+ Telnyx::WhatsappMessageContent::Template::Component::Type::OrSymbol
320
+ ).void
321
+ end
322
+ attr_writer :type
323
+
324
+ sig do
325
+ params(
326
+ index: Integer,
327
+ parameters:
328
+ T::Array[
329
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::OrHash
330
+ ],
331
+ sub_type:
332
+ Telnyx::WhatsappMessageContent::Template::Component::SubType::OrSymbol,
333
+ type:
334
+ Telnyx::WhatsappMessageContent::Template::Component::Type::OrSymbol
335
+ ).returns(T.attached_class)
336
+ end
337
+ def self.new(
338
+ # Button index (required for button components)
339
+ index: nil,
340
+ parameters: nil,
341
+ sub_type: nil,
342
+ type: nil
343
+ )
344
+ end
345
+
346
+ sig do
347
+ override.returns(
348
+ {
349
+ index: Integer,
350
+ parameters:
351
+ T::Array[
352
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter
353
+ ],
354
+ sub_type:
355
+ Telnyx::WhatsappMessageContent::Template::Component::SubType::OrSymbol,
356
+ type:
357
+ Telnyx::WhatsappMessageContent::Template::Component::Type::OrSymbol
358
+ }
359
+ )
360
+ end
361
+ def to_hash
362
+ end
363
+
364
+ class Parameter < Telnyx::Internal::Type::BaseModel
365
+ OrHash =
366
+ T.type_alias do
367
+ T.any(
368
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter,
369
+ Telnyx::Internal::AnyHash
370
+ )
371
+ end
372
+
373
+ sig { returns(T.nilable(String)) }
374
+ attr_reader :text
375
+
376
+ sig { params(text: String).void }
377
+ attr_writer :text
378
+
379
+ sig do
380
+ returns(
381
+ T.nilable(
382
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::OrSymbol
383
+ )
384
+ )
385
+ end
386
+ attr_reader :type
387
+
388
+ sig do
389
+ params(
390
+ type:
391
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::OrSymbol
392
+ ).void
393
+ end
394
+ attr_writer :type
395
+
396
+ sig do
397
+ params(
398
+ text: String,
399
+ type:
400
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::OrSymbol
401
+ ).returns(T.attached_class)
402
+ end
403
+ def self.new(text: nil, type: nil)
404
+ end
405
+
406
+ sig do
407
+ override.returns(
408
+ {
409
+ text: String,
410
+ type:
411
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::OrSymbol
412
+ }
413
+ )
414
+ end
415
+ def to_hash
416
+ end
417
+
418
+ module Type
419
+ extend Telnyx::Internal::Type::Enum
420
+
421
+ TaggedSymbol =
422
+ T.type_alias do
423
+ T.all(
424
+ Symbol,
425
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type
426
+ )
427
+ end
428
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
429
+
430
+ TEXT =
431
+ T.let(
432
+ :text,
433
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::TaggedSymbol
434
+ )
435
+ IMAGE =
436
+ T.let(
437
+ :image,
438
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::TaggedSymbol
439
+ )
440
+ VIDEO =
441
+ T.let(
442
+ :video,
443
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::TaggedSymbol
444
+ )
445
+ DOCUMENT =
446
+ T.let(
447
+ :document,
448
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::TaggedSymbol
449
+ )
450
+ CURRENCY =
451
+ T.let(
452
+ :currency,
453
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::TaggedSymbol
454
+ )
455
+ DATE_TIME =
456
+ T.let(
457
+ :date_time,
458
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::TaggedSymbol
459
+ )
460
+
461
+ sig do
462
+ override.returns(
463
+ T::Array[
464
+ Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type::TaggedSymbol
465
+ ]
466
+ )
467
+ end
468
+ def self.values
469
+ end
470
+ end
471
+ end
472
+
473
+ module SubType
474
+ extend Telnyx::Internal::Type::Enum
475
+
476
+ TaggedSymbol =
477
+ T.type_alias do
478
+ T.all(
479
+ Symbol,
480
+ Telnyx::WhatsappMessageContent::Template::Component::SubType
481
+ )
482
+ end
483
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
484
+
485
+ QUICK_REPLY =
486
+ T.let(
487
+ :quick_reply,
488
+ Telnyx::WhatsappMessageContent::Template::Component::SubType::TaggedSymbol
489
+ )
490
+ URL =
491
+ T.let(
492
+ :url,
493
+ Telnyx::WhatsappMessageContent::Template::Component::SubType::TaggedSymbol
494
+ )
495
+
496
+ sig do
497
+ override.returns(
498
+ T::Array[
499
+ Telnyx::WhatsappMessageContent::Template::Component::SubType::TaggedSymbol
500
+ ]
501
+ )
502
+ end
503
+ def self.values
504
+ end
505
+ end
506
+
507
+ module Type
508
+ extend Telnyx::Internal::Type::Enum
509
+
510
+ TaggedSymbol =
511
+ T.type_alias do
512
+ T.all(
513
+ Symbol,
514
+ Telnyx::WhatsappMessageContent::Template::Component::Type
515
+ )
516
+ end
517
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
518
+
519
+ HEADER =
520
+ T.let(
521
+ :header,
522
+ Telnyx::WhatsappMessageContent::Template::Component::Type::TaggedSymbol
523
+ )
524
+ BODY =
525
+ T.let(
526
+ :body,
527
+ Telnyx::WhatsappMessageContent::Template::Component::Type::TaggedSymbol
528
+ )
529
+ BUTTON =
530
+ T.let(
531
+ :button,
532
+ Telnyx::WhatsappMessageContent::Template::Component::Type::TaggedSymbol
533
+ )
534
+
535
+ sig do
536
+ override.returns(
537
+ T::Array[
538
+ Telnyx::WhatsappMessageContent::Template::Component::Type::TaggedSymbol
539
+ ]
540
+ )
541
+ end
542
+ def self.values
543
+ end
544
+ end
545
+ end
546
+
547
+ class Language < Telnyx::Internal::Type::BaseModel
548
+ OrHash =
549
+ T.type_alias do
550
+ T.any(
551
+ Telnyx::WhatsappMessageContent::Template::Language,
552
+ Telnyx::Internal::AnyHash
553
+ )
554
+ end
555
+
556
+ # Language code (e.g. en_US)
557
+ sig { returns(String) }
558
+ attr_accessor :code
559
+
560
+ sig { returns(T.nilable(String)) }
561
+ attr_reader :policy
562
+
563
+ sig { params(policy: String).void }
564
+ attr_writer :policy
565
+
566
+ # Template language. Required unless template_id is provided.
567
+ sig { params(code: String, policy: String).returns(T.attached_class) }
568
+ def self.new(
569
+ # Language code (e.g. en_US)
570
+ code:,
571
+ policy: nil
572
+ )
573
+ end
574
+
575
+ sig { override.returns({ code: String, policy: String }) }
576
+ def to_hash
577
+ end
578
+ end
579
+ end
580
+
581
+ class Text < Telnyx::Internal::Type::BaseModel
582
+ OrHash =
583
+ T.type_alias do
584
+ T.any(
585
+ Telnyx::WhatsappMessageContent::Text,
586
+ Telnyx::Internal::AnyHash
587
+ )
588
+ end
589
+
590
+ # The text message body.
591
+ sig { returns(String) }
592
+ attr_accessor :body
593
+
594
+ # Whether to show a URL preview in the message.
595
+ sig { returns(T.nilable(T::Boolean)) }
596
+ attr_reader :preview_url
597
+
598
+ sig { params(preview_url: T::Boolean).void }
599
+ attr_writer :preview_url
600
+
601
+ # Text message content. Can only be sent within a 24-hour customer service window.
602
+ sig do
603
+ params(body: String, preview_url: T::Boolean).returns(
604
+ T.attached_class
605
+ )
606
+ end
607
+ def self.new(
608
+ # The text message body.
609
+ body:,
610
+ # Whether to show a URL preview in the message.
611
+ preview_url: nil
612
+ )
613
+ end
614
+
615
+ sig { override.returns({ body: String, preview_url: T::Boolean }) }
616
+ def to_hash
617
+ end
618
+ end
619
+
129
620
  module Type
130
621
  extend Telnyx::Internal::Type::Enum
131
622
 
@@ -156,6 +647,7 @@ module Telnyx
156
647
  T.let(:reaction, Telnyx::WhatsappMessageContent::Type::TaggedSymbol)
157
648
  CONTACTS =
158
649
  T.let(:contacts, Telnyx::WhatsappMessageContent::Type::TaggedSymbol)
650
+ TEXT = T.let(:text, Telnyx::WhatsappMessageContent::Type::TaggedSymbol)
159
651
 
160
652
  sig do
161
653
  override.returns(
@@ -14,6 +14,9 @@ module Telnyx
14
14
  )
15
15
  end
16
16
 
17
+ sig { returns(String) }
18
+ attr_accessor :id
19
+
17
20
  # The name of the Wireless Blocklist.
18
21
  sig { returns(T.nilable(String)) }
19
22
  attr_reader :name
@@ -21,19 +24,6 @@ module Telnyx
21
24
  sig { params(name: String).void }
22
25
  attr_writer :name
23
26
 
24
- # The type of wireless blocklist.
25
- sig do
26
- returns(
27
- T.nilable(Telnyx::WirelessBlocklistUpdateParams::Type::OrSymbol)
28
- )
29
- end
30
- attr_reader :type
31
-
32
- sig do
33
- params(type: Telnyx::WirelessBlocklistUpdateParams::Type::OrSymbol).void
34
- end
35
- attr_writer :type
36
-
37
27
  # Values to block. The values here depend on the `type` of Wireless Blocklist.
38
28
  sig { returns(T.nilable(T::Array[String])) }
39
29
  attr_reader :values
@@ -43,17 +33,16 @@ module Telnyx
43
33
 
44
34
  sig do
45
35
  params(
36
+ id: String,
46
37
  name: String,
47
- type: Telnyx::WirelessBlocklistUpdateParams::Type::OrSymbol,
48
38
  values: T::Array[String],
49
39
  request_options: Telnyx::RequestOptions::OrHash
50
40
  ).returns(T.attached_class)
51
41
  end
52
42
  def self.new(
43
+ id:,
53
44
  # The name of the Wireless Blocklist.
54
45
  name: nil,
55
- # The type of wireless blocklist.
56
- type: nil,
57
46
  # Values to block. The values here depend on the `type` of Wireless Blocklist.
58
47
  values: nil,
59
48
  request_options: {}
@@ -63,8 +52,8 @@ module Telnyx
63
52
  sig do
64
53
  override.returns(
65
54
  {
55
+ id: String,
66
56
  name: String,
67
- type: Telnyx::WirelessBlocklistUpdateParams::Type::OrSymbol,
68
57
  values: T::Array[String],
69
58
  request_options: Telnyx::RequestOptions
70
59
  }
@@ -72,38 +61,6 @@ module Telnyx
72
61
  end
73
62
  def to_hash
74
63
  end
75
-
76
- # The type of wireless blocklist.
77
- module Type
78
- extend Telnyx::Internal::Type::Enum
79
-
80
- TaggedSymbol =
81
- T.type_alias do
82
- T.all(Symbol, Telnyx::WirelessBlocklistUpdateParams::Type)
83
- end
84
- OrSymbol = T.type_alias { T.any(Symbol, String) }
85
-
86
- COUNTRY =
87
- T.let(
88
- :country,
89
- Telnyx::WirelessBlocklistUpdateParams::Type::TaggedSymbol
90
- )
91
- MCC =
92
- T.let(:mcc, Telnyx::WirelessBlocklistUpdateParams::Type::TaggedSymbol)
93
- PLMN =
94
- T.let(
95
- :plmn,
96
- Telnyx::WirelessBlocklistUpdateParams::Type::TaggedSymbol
97
- )
98
-
99
- sig do
100
- override.returns(
101
- T::Array[Telnyx::WirelessBlocklistUpdateParams::Type::TaggedSymbol]
102
- )
103
- end
104
- def self.values
105
- end
106
- end
107
64
  end
108
65
  end
109
66
  end
@@ -1368,6 +1368,17 @@ module Telnyx
1368
1368
 
1369
1369
  PrivateWirelessGatewayStatus = Telnyx::Models::PrivateWirelessGatewayStatus
1370
1370
 
1371
+ PronunciationDictCreateParams = Telnyx::Models::PronunciationDictCreateParams
1372
+
1373
+ PronunciationDictDeleteParams = Telnyx::Models::PronunciationDictDeleteParams
1374
+
1375
+ PronunciationDictListParams = Telnyx::Models::PronunciationDictListParams
1376
+
1377
+ PronunciationDictRetrieveParams =
1378
+ Telnyx::Models::PronunciationDictRetrieveParams
1379
+
1380
+ PronunciationDictUpdateParams = Telnyx::Models::PronunciationDictUpdateParams
1381
+
1371
1382
  PublicInternetGatewayCreateParams =
1372
1383
  Telnyx::Models::PublicInternetGatewayCreateParams
1373
1384
 
@@ -1716,6 +1727,8 @@ module Telnyx
1716
1727
 
1717
1728
  TexmlApplicationUpdateParams = Telnyx::Models::TexmlApplicationUpdateParams
1718
1729
 
1730
+ TexmlInitiateAICallParams = Telnyx::Models::TexmlInitiateAICallParams
1731
+
1719
1732
  TexmlSecretsParams = Telnyx::Models::TexmlSecretsParams
1720
1733
 
1721
1734
  TextToSpeechGenerateParams = Telnyx::Models::TextToSpeechGenerateParams
@@ -1791,6 +1804,9 @@ module Telnyx
1791
1804
 
1792
1805
  VerificationTriggerSMSParams = Telnyx::Models::VerificationTriggerSMSParams
1793
1806
 
1807
+ VerificationTriggerWhatsappVerificationParams =
1808
+ Telnyx::Models::VerificationTriggerWhatsappVerificationParams
1809
+
1794
1810
  VerifiedNumber = Telnyx::Models::VerifiedNumber
1795
1811
 
1796
1812
  VerifiedNumberCreateParams = Telnyx::Models::VerifiedNumberCreateParams
@@ -1850,22 +1866,17 @@ module Telnyx
1850
1866
  VirtualCrossConnectUpdateParams =
1851
1867
  Telnyx::Models::VirtualCrossConnectUpdateParams
1852
1868
 
1869
+ VoiceCloneCreateFromUploadParams =
1870
+ Telnyx::Models::VoiceCloneCreateFromUploadParams
1871
+
1853
1872
  VoiceCloneCreateFromDesignParams =
1854
1873
  Telnyx::Models::VoiceCloneCreateFromDesignParams
1855
1874
 
1856
1875
  VoiceCloneCreateFromDesignResponse =
1857
1876
  Telnyx::Models::VoiceCloneCreateFromDesignResponse
1858
1877
 
1859
- VoiceCloneCreateFromUploadParams =
1860
- Telnyx::Models::VoiceCloneCreateFromUploadParams
1861
-
1862
- VoiceCloneCreateFromUploadResponse =
1863
- Telnyx::Models::VoiceCloneCreateFromUploadResponse
1864
-
1865
1878
  VoiceCloneCreateParams = Telnyx::Models::VoiceCloneCreateParams
1866
1879
 
1867
- VoiceCloneCreateResponse = Telnyx::Models::VoiceCloneCreateResponse
1868
-
1869
1880
  VoiceCloneData = Telnyx::Models::VoiceCloneData
1870
1881
 
1871
1882
  VoiceCloneDeleteParams = Telnyx::Models::VoiceCloneDeleteParams
@@ -1877,8 +1888,6 @@ module Telnyx
1877
1888
 
1878
1889
  VoiceCloneUpdateParams = Telnyx::Models::VoiceCloneUpdateParams
1879
1890
 
1880
- VoiceCloneUpdateResponse = Telnyx::Models::VoiceCloneUpdateResponse
1881
-
1882
1891
  VoiceDesignCreateParams = Telnyx::Models::VoiceDesignCreateParams
1883
1892
 
1884
1893
  VoiceDesignData = Telnyx::Models::VoiceDesignData
@@ -43,6 +43,8 @@ module Telnyx
43
43
  messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
44
44
  model: String,
45
45
  name: String,
46
+ observability_settings:
47
+ Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::OrHash,
46
48
  privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
47
49
  telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
48
50
  tool_ids: T::Array[String],
@@ -110,6 +112,8 @@ module Telnyx
110
112
  # Body param
111
113
  name: nil,
112
114
  # Body param
115
+ observability_settings: nil,
116
+ # Body param
113
117
  privacy_settings: nil,
114
118
  # Body param
115
119
  telephony_settings: nil,