telnyx 5.154.0 → 5.156.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 (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -13
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +1 -0
  5. data/lib/telnyx/internal/type/union.rb +4 -4
  6. data/lib/telnyx/models/ai/assistant_create_params.rb +2 -2
  7. data/lib/telnyx/models/ai/assistant_tool.rb +94 -1
  8. data/lib/telnyx/models/ai/assistant_update_params.rb +2 -2
  9. data/lib/telnyx/models/ai/assistants/update_assistant.rb +2 -2
  10. data/lib/telnyx/models/ai/inference_embedding.rb +6 -6
  11. data/lib/telnyx/models/ai/tool_create_params.rb +7 -1
  12. data/lib/telnyx/models/ai/tool_update_params.rb +7 -1
  13. data/lib/telnyx/models/ai/transcription_settings.rb +5 -0
  14. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +3 -0
  15. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +6 -0
  16. data/lib/telnyx/models/calls/action_speak_params.rb +6 -0
  17. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +3 -0
  18. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +3 -0
  19. data/lib/telnyx/models/calls/telnyx_voice_settings.rb +2 -1
  20. data/lib/telnyx/models/calls/transcription_config.rb +5 -0
  21. data/lib/telnyx/models/conferences/action_speak_params.rb +6 -0
  22. data/lib/telnyx/models/conversation_relay_embedded_config.rb +3 -0
  23. data/lib/telnyx/models/models_response.rb +0 -1
  24. data/lib/telnyx/models/phone_number_delete_response.rb +12 -1
  25. data/lib/telnyx/models/phone_number_detailed.rb +12 -1
  26. data/lib/telnyx/models/phone_number_slim_list_response.rb +12 -1
  27. data/lib/telnyx/models/speech_to_text_list_providers_params.rb +1 -0
  28. data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +2 -0
  29. data/lib/telnyx/models/text_to_speech_generate_speech_params.rb +13 -8
  30. data/lib/telnyx/models/text_to_speech_retrieve_speech_params.rb +4 -4
  31. data/lib/telnyx/models.rb +0 -6
  32. data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
  33. data/lib/telnyx/resources/ai/assistants.rb +2 -2
  34. data/lib/telnyx/resources/ai/chat.rb +0 -81
  35. data/lib/telnyx/resources/ai/tools.rb +5 -2
  36. data/lib/telnyx/resources/ai.rb +0 -57
  37. data/lib/telnyx/resources/messages.rb +1 -32
  38. data/lib/telnyx/resources/speech_to_text.rb +1 -1
  39. data/lib/telnyx/version.rb +1 -1
  40. data/lib/telnyx.rb +0 -7
  41. data/rbi/telnyx/client.rbi +1 -0
  42. data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -0
  43. data/rbi/telnyx/models/ai/assistant_tool.rbi +221 -0
  44. data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -0
  45. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -0
  46. data/rbi/telnyx/models/ai/inference_embedding.rbi +6 -0
  47. data/rbi/telnyx/models/ai/tool_create_params.rbi +9 -0
  48. data/rbi/telnyx/models/ai/tool_update_params.rbi +9 -0
  49. data/rbi/telnyx/models/ai/transcription_settings.rbi +11 -0
  50. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +6 -0
  51. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +12 -0
  52. data/rbi/telnyx/models/calls/action_speak_params.rbi +12 -0
  53. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +6 -0
  54. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +6 -0
  55. data/rbi/telnyx/models/calls/telnyx_voice_settings.rbi +4 -2
  56. data/rbi/telnyx/models/calls/transcription_config.rbi +11 -0
  57. data/rbi/telnyx/models/conferences/action_speak_params.rbi +12 -0
  58. data/rbi/telnyx/models/conversation_relay_embedded_config.rbi +6 -0
  59. data/rbi/telnyx/models/phone_number_delete_response.rbi +14 -0
  60. data/rbi/telnyx/models/phone_number_detailed.rbi +14 -0
  61. data/rbi/telnyx/models/phone_number_slim_list_response.rbi +14 -0
  62. data/rbi/telnyx/models/speech_to_text_list_providers_params.rbi +5 -0
  63. data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +10 -0
  64. data/rbi/telnyx/models/text_to_speech_generate_speech_params.rbi +21 -13
  65. data/rbi/telnyx/models/text_to_speech_retrieve_speech_params.rbi +8 -8
  66. data/rbi/telnyx/models.rbi +0 -7
  67. data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -0
  68. data/rbi/telnyx/resources/ai/assistants.rbi +2 -0
  69. data/rbi/telnyx/resources/ai/chat.rbi +0 -129
  70. data/rbi/telnyx/resources/ai/tools.rbi +4 -0
  71. data/rbi/telnyx/resources/ai.rbi +0 -33
  72. data/rbi/telnyx/resources/calls/actions.rbi +21 -0
  73. data/rbi/telnyx/resources/conferences/actions.rbi +6 -0
  74. data/rbi/telnyx/resources/messages.rbi +1 -28
  75. data/rbi/telnyx/resources/speech_to_text.rbi +1 -1
  76. data/rbi/telnyx/resources/text_to_speech.rbi +11 -9
  77. data/sig/telnyx/models/ai/assistant_tool.rbs +95 -0
  78. data/sig/telnyx/models/ai/tool_create_params.rbs +7 -0
  79. data/sig/telnyx/models/ai/tool_update_params.rbs +7 -0
  80. data/sig/telnyx/models/ai/transcription_settings.rbs +2 -0
  81. data/sig/telnyx/models/calls/transcription_config.rbs +2 -0
  82. data/sig/telnyx/models/phone_number_delete_response.rbs +5 -0
  83. data/sig/telnyx/models/phone_number_detailed.rbs +5 -0
  84. data/sig/telnyx/models/phone_number_slim_list_response.rbs +5 -0
  85. data/sig/telnyx/models/speech_to_text_list_providers_params.rbs +2 -0
  86. data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +11 -1
  87. data/sig/telnyx/models.rbs +0 -6
  88. data/sig/telnyx/resources/ai/chat.rbs +0 -30
  89. data/sig/telnyx/resources/ai/tools.rbs +2 -0
  90. data/sig/telnyx/resources/ai.rbs +0 -9
  91. data/sig/telnyx/resources/messages.rbs +0 -10
  92. metadata +16 -23
  93. data/lib/telnyx/models/ai/chat_create_completion_params.rb +0 -16
  94. data/lib/telnyx/models/ai/chat_create_completion_response.rb +0 -10
  95. data/lib/telnyx/models/ai_create_response_deprecated_params.rb +0 -20
  96. data/lib/telnyx/models/ai_create_response_deprecated_response.rb +0 -8
  97. data/lib/telnyx/models/ai_retrieve_models_params.rb +0 -14
  98. data/lib/telnyx/models/message_send_whatsapp_params.rb +0 -71
  99. data/lib/telnyx/models/message_send_whatsapp_response.rb +0 -178
  100. data/rbi/telnyx/models/ai/chat_create_completion_params.rbi +0 -32
  101. data/rbi/telnyx/models/ai/chat_create_completion_response.rbi +0 -13
  102. data/rbi/telnyx/models/ai_create_response_deprecated_params.rbi +0 -41
  103. data/rbi/telnyx/models/ai_create_response_deprecated_response.rbi +0 -11
  104. data/rbi/telnyx/models/ai_retrieve_models_params.rbi +0 -27
  105. data/rbi/telnyx/models/message_send_whatsapp_params.rbi +0 -124
  106. data/rbi/telnyx/models/message_send_whatsapp_response.rbi +0 -379
  107. data/sig/telnyx/models/ai/chat_create_completion_params.rbs +0 -17
  108. data/sig/telnyx/models/ai/chat_create_completion_response.rbs +0 -9
  109. data/sig/telnyx/models/ai_create_response_deprecated_params.rbs +0 -24
  110. data/sig/telnyx/models/ai_create_response_deprecated_response.rbs +0 -7
  111. data/sig/telnyx/models/ai_retrieve_models_params.rbs +0 -15
  112. data/sig/telnyx/models/message_send_whatsapp_params.rbs +0 -69
  113. data/sig/telnyx/models/message_send_whatsapp_response.rbs +0 -191
@@ -537,6 +537,9 @@ module Telnyx
537
537
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
538
538
  # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
539
539
  # `Max`, `TTS2`.
540
+ # - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
541
+ # `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
542
+ # `s1`. `VoiceId` is a Fish Voice-Library reference ID.
540
543
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
541
544
  # `ara`, `rex`, `sal`, `leo`.
542
545
  voice: nil,
@@ -709,6 +712,9 @@ module Telnyx
709
712
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
710
713
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
711
714
  # Use `voice_settings` to configure voice_speed and other synthesis parameters.
715
+ # `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
716
+ # `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
717
+ # (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
712
718
  # - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
713
719
  # `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
714
720
  # `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
@@ -723,6 +729,9 @@ module Telnyx
723
729
  # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
724
730
  # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
725
731
  # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
732
+ # - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
733
+ # `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
734
+ # `s1`. `VoiceId` is a Fish Voice-Library reference ID.
726
735
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
727
736
  # `ara`, `rex`, `sal`, `leo`.
728
737
  #
@@ -1123,6 +1132,9 @@ module Telnyx
1123
1132
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
1124
1133
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
1125
1134
  # Use `voice_settings` to configure voice_speed and other synthesis parameters.
1135
+ # `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
1136
+ # `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
1137
+ # (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
1126
1138
  # - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
1127
1139
  # `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
1128
1140
  # `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
@@ -1137,6 +1149,9 @@ module Telnyx
1137
1149
  # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1138
1150
  # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
1139
1151
  # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
1152
+ # - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
1153
+ # `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
1154
+ # `s1`. `VoiceId` is a Fish Voice-Library reference ID.
1140
1155
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1141
1156
  # `ara`, `rex`, `sal`, `leo`.
1142
1157
  #
@@ -1273,6 +1288,9 @@ module Telnyx
1273
1288
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1274
1289
  # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1275
1290
  # `Max`, `TTS2`.
1291
+ # - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
1292
+ # `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
1293
+ # `s1`. `VoiceId` is a Fish Voice-Library reference ID.
1276
1294
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1277
1295
  # `ara`, `rex`, `sal`, `leo`.
1278
1296
  voice: nil,
@@ -1434,6 +1452,9 @@ module Telnyx
1434
1452
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1435
1453
  # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1436
1454
  # `Max`, `TTS2`.
1455
+ # - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
1456
+ # `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
1457
+ # `s1`. `VoiceId` is a Fish Voice-Library reference ID.
1437
1458
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1438
1459
  # `ara`, `rex`, `sal`, `leo`.
1439
1460
  voice: nil,
@@ -568,6 +568,9 @@ module Telnyx
568
568
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
569
569
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
570
570
  # Use `voice_settings` to configure voice_speed and other synthesis parameters.
571
+ # `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
572
+ # `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
573
+ # (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
571
574
  # - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
572
575
  # `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
573
576
  # `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
@@ -582,6 +585,9 @@ module Telnyx
582
585
  # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
583
586
  # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
584
587
  # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
588
+ # - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
589
+ # `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
590
+ # `s1`. `VoiceId` is a Fish Voice-Library reference ID.
585
591
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
586
592
  # `ara`, `rex`, `sal`, `leo`.
587
593
  #
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Telnyx
4
4
  module Resources
5
+ # Messages
5
6
  class Messages
6
7
  # Send RCS messages
7
8
  sig { returns(Telnyx::Resources::Messages::Rcs) }
@@ -400,34 +401,6 @@ module Telnyx
400
401
  )
401
402
  end
402
403
 
403
- # Send a Whatsapp message
404
- sig do
405
- params(
406
- from: String,
407
- to: String,
408
- whatsapp_message: Telnyx::WhatsappMessageContent::OrHash,
409
- messaging_profile_id: String,
410
- type: Telnyx::MessageSendWhatsappParams::Type::OrSymbol,
411
- webhook_url: String,
412
- request_options: Telnyx::RequestOptions::OrHash
413
- ).returns(Telnyx::Models::MessageSendWhatsappResponse)
414
- end
415
- def send_whatsapp(
416
- # Phone number in +E.164 format associated with Whatsapp account
417
- from:,
418
- # Phone number in +E.164 format
419
- to:,
420
- whatsapp_message:,
421
- # Messaging profile ID - required if the 'from' number is not SMS-enabled
422
- messaging_profile_id: nil,
423
- # Message type - must be set to "WHATSAPP"
424
- type: nil,
425
- # The URL where webhooks related to this message will be sent.
426
- webhook_url: nil,
427
- request_options: {}
428
- )
429
- end
430
-
431
404
  # Send an SMS message using an alphanumeric sender ID. This is SMS only.
432
405
  sig do
433
406
  params(
@@ -49,7 +49,7 @@ module Telnyx
49
49
  # `Authorization: Bearer <API_KEY>` header.
50
50
  #
51
51
  # Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`, `xAI`,
52
- # `Speechmatics`, `Soniox`.
52
+ # `Speechmatics`, `Soniox`, `Parakeet`.
53
53
  #
54
54
  # **Connection flow:**
55
55
  #
@@ -72,7 +72,9 @@ module Telnyx
72
72
  rime: nil,
73
73
  # Telnyx provider-specific parameters. Use `voice_speed` and `temperature` for
74
74
  # `Natural` and `NaturalHD` models. For the `Ultra` model, use `voice_speed`,
75
- # `volume`, and `emotion`.
75
+ # `volume`, and `emotion`. `Bayan` and `Sukhan` don't use `temperature`, `volume`,
76
+ # or `emotion`, and don't support `voice_speed`. `Sukhan`'s `response_format` is
77
+ # restricted to `mp3` or `pcm` (no `wav`).
76
78
  telnyx: nil,
77
79
  # The text to convert to speech.
78
80
  text: nil,
@@ -80,10 +82,10 @@ module Telnyx
80
82
  text_type: nil,
81
83
  # Voice identifier in the format `provider.model_id.voice_id` or
82
84
  # `provider.voice_id`. Examples: `telnyx.NaturalHD.Alloy`,
83
- # `Telnyx.Ultra.<voice_id>`, `azure.en-US-AvaMultilingualNeural`,
84
- # `aws.Polly.Generative.Lucia`. When provided, `provider`, `model_id`, and
85
- # `voice_id` are extracted automatically and take precedence over individual
86
- # parameters.
85
+ # `Telnyx.Ultra.<voice_id>`, `Telnyx.Bayan.Ahmed`, `Telnyx.Sukhan.urdu-professor`,
86
+ # `azure.en-US-AvaMultilingualNeural`, `aws.Polly.Generative.Lucia`. When
87
+ # provided, `provider`, `model_id`, and `voice_id` are extracted automatically and
88
+ # take precedence over individual parameters.
87
89
  voice: nil,
88
90
  # Provider-specific voice settings. Contents vary by provider — see
89
91
  # provider-specific parameter objects below.
@@ -170,10 +172,10 @@ module Telnyx
170
172
  socket_id: nil,
171
173
  # Voice identifier in the format `provider.model_id.voice_id` or
172
174
  # `provider.voice_id` (e.g. `telnyx.NaturalHD.Telnyx_Alloy`,
173
- # `Telnyx.Ultra.<voice_id>`, or `azure.en-US-AvaMultilingualNeural`). When
174
- # provided, the `provider`, `model_id`, and `voice_id` are extracted
175
- # automatically. Takes precedence over individual `provider`/`model_id`/`voice_id`
176
- # parameters.
175
+ # `Telnyx.Ultra.<voice_id>`, `Telnyx.Bayan.Ahmed`, `Telnyx.Sukhan.urdu-professor`,
176
+ # or `azure.en-US-AvaMultilingualNeural`). When provided, the `provider`,
177
+ # `model_id`, and `voice_id` are extracted automatically. Takes precedence over
178
+ # individual `provider`/`model_id`/`voice_id` parameters.
177
179
  voice: nil,
178
180
  # Voice identifier for the chosen provider.
179
181
  voice_id: nil,
@@ -3,6 +3,7 @@ module Telnyx
3
3
  module AI
4
4
  type assistant_tool =
5
5
  Telnyx::AI::InferenceEmbeddingWebhookToolParams
6
+ | Telnyx::AI::AssistantTool::ClientSideTool
6
7
  | Telnyx::AI::RetrievalTool
7
8
  | Telnyx::AI::AssistantTool::Handoff
8
9
  | Telnyx::AI::HangupTool
@@ -16,6 +17,100 @@ module Telnyx
16
17
  module AssistantTool
17
18
  extend Telnyx::Internal::Type::Union
18
19
 
20
+ type client_side_tool =
21
+ {
22
+ client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
23
+ type: :client_side_tool
24
+ }
25
+
26
+ class ClientSideTool < Telnyx::Internal::Type::BaseModel
27
+ attr_accessor client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool
28
+
29
+ attr_accessor type: :client_side_tool
30
+
31
+ def initialize: (
32
+ client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
33
+ ?type: :client_side_tool
34
+ ) -> void
35
+
36
+ def to_hash: -> {
37
+ client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
38
+ type: :client_side_tool
39
+ }
40
+
41
+ type client_side_tool =
42
+ {
43
+ description: String,
44
+ name: String,
45
+ parameters: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters
46
+ }
47
+
48
+ class ClientSideTool < Telnyx::Internal::Type::BaseModel
49
+ attr_accessor description: String
50
+
51
+ attr_accessor name: String
52
+
53
+ attr_accessor parameters: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters
54
+
55
+ def initialize: (
56
+ description: String,
57
+ name: String,
58
+ parameters: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters
59
+ ) -> void
60
+
61
+ def to_hash: -> {
62
+ description: String,
63
+ name: String,
64
+ parameters: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters
65
+ }
66
+
67
+ type parameters =
68
+ {
69
+ properties: ::Hash[Symbol, top],
70
+ required: ::Array[String],
71
+ type: Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
72
+ }
73
+
74
+ class Parameters < Telnyx::Internal::Type::BaseModel
75
+ attr_reader properties: ::Hash[Symbol, top]?
76
+
77
+ def properties=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
78
+
79
+ attr_reader required: ::Array[String]?
80
+
81
+ def required=: (::Array[String]) -> ::Array[String]
82
+
83
+ attr_reader type: Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_?
84
+
85
+ def type=: (
86
+ Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
87
+ ) -> Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
88
+
89
+ def initialize: (
90
+ ?properties: ::Hash[Symbol, top],
91
+ ?required: ::Array[String],
92
+ ?type: Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
93
+ ) -> void
94
+
95
+ def to_hash: -> {
96
+ properties: ::Hash[Symbol, top],
97
+ required: ::Array[String],
98
+ type: Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
99
+ }
100
+
101
+ type type_ = :object
102
+
103
+ module Type
104
+ extend Telnyx::Internal::Type::Enum
105
+
106
+ OBJECT: :object
107
+
108
+ def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_]
109
+ end
110
+ end
111
+ end
112
+ end
113
+
19
114
  type handoff =
20
115
  {
21
116
  handoff: Telnyx::AI::AssistantTool::Handoff::Handoff,
@@ -5,6 +5,7 @@ module Telnyx
5
5
  {
6
6
  display_name: String,
7
7
  type: String,
8
+ client_side_tool: ::Hash[Symbol, top],
8
9
  function: ::Hash[Symbol, top],
9
10
  handoff: ::Hash[Symbol, top],
10
11
  invite: ::Hash[Symbol, top],
@@ -22,6 +23,10 @@ module Telnyx
22
23
 
23
24
  attr_accessor type: String
24
25
 
26
+ attr_reader client_side_tool: ::Hash[Symbol, top]?
27
+
28
+ def client_side_tool=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
29
+
25
30
  attr_reader function: ::Hash[Symbol, top]?
26
31
 
27
32
  def function=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
@@ -49,6 +54,7 @@ module Telnyx
49
54
  def initialize: (
50
55
  display_name: String,
51
56
  type: String,
57
+ ?client_side_tool: ::Hash[Symbol, top],
52
58
  ?function: ::Hash[Symbol, top],
53
59
  ?handoff: ::Hash[Symbol, top],
54
60
  ?invite: ::Hash[Symbol, top],
@@ -61,6 +67,7 @@ module Telnyx
61
67
  def to_hash: -> {
62
68
  display_name: String,
63
69
  type: String,
70
+ client_side_tool: ::Hash[Symbol, top],
64
71
  function: ::Hash[Symbol, top],
65
72
  handoff: ::Hash[Symbol, top],
66
73
  invite: ::Hash[Symbol, top],
@@ -4,6 +4,7 @@ module Telnyx
4
4
  type tool_update_params =
5
5
  {
6
6
  tool_id: String,
7
+ client_side_tool: ::Hash[Symbol, top],
7
8
  display_name: String,
8
9
  function: ::Hash[Symbol, top],
9
10
  handoff: ::Hash[Symbol, top],
@@ -21,6 +22,10 @@ module Telnyx
21
22
 
22
23
  attr_accessor tool_id: String
23
24
 
25
+ attr_reader client_side_tool: ::Hash[Symbol, top]?
26
+
27
+ def client_side_tool=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
28
+
24
29
  attr_reader display_name: String?
25
30
 
26
31
  def display_name=: (String) -> String
@@ -55,6 +60,7 @@ module Telnyx
55
60
 
56
61
  def initialize: (
57
62
  tool_id: String,
63
+ ?client_side_tool: ::Hash[Symbol, top],
58
64
  ?display_name: String,
59
65
  ?function: ::Hash[Symbol, top],
60
66
  ?handoff: ::Hash[Symbol, top],
@@ -68,6 +74,7 @@ module Telnyx
68
74
 
69
75
  def to_hash: -> {
70
76
  tool_id: String,
77
+ client_side_tool: ::Hash[Symbol, top],
71
78
  display_name: String,
72
79
  function: ::Hash[Symbol, top],
73
80
  handoff: ::Hash[Symbol, top],
@@ -59,6 +59,7 @@ module Telnyx
59
59
  | :"assemblyai/universal-streaming"
60
60
  | :"xai/grok-stt"
61
61
  | :"soniox/stt-rt-v4"
62
+ | :"parakeet/tdt-0.6b-v3"
62
63
  | :"distil-whisper/distil-large-v2"
63
64
  | :"openai/whisper-large-v3-turbo"
64
65
 
@@ -72,6 +73,7 @@ module Telnyx
72
73
  ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
73
74
  XAI_GROK_STT: :"xai/grok-stt"
74
75
  SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
76
+ PARAKEET_TDT_0_6B_V3: :"parakeet/tdt-0.6b-v3"
75
77
  DISTIL_WHISPER_DISTIL_LARGE_V2: :"distil-whisper/distil-large-v2"
76
78
  OPENAI_WHISPER_LARGE_V3_TURBO: :"openai/whisper-large-v3-turbo"
77
79
 
@@ -38,6 +38,7 @@ module Telnyx
38
38
  | :"assemblyai/universal-streaming"
39
39
  | :"xai/grok-stt"
40
40
  | :"soniox/stt-rt-v4"
41
+ | :"parakeet/tdt-0.6b-v3"
41
42
  | :"azure/fast"
42
43
  | :"azure/realtime"
43
44
  | :"google/latest_long"
@@ -56,6 +57,7 @@ module Telnyx
56
57
  ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
57
58
  XAI_GROK_STT: :"xai/grok-stt"
58
59
  SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
60
+ PARAKEET_TDT_0_6B_V3: :"parakeet/tdt-0.6b-v3"
59
61
  AZURE_FAST: :"azure/fast"
60
62
  AZURE_REALTIME: :"azure/realtime"
61
63
  GOOGLE_LATEST_LONG: :"google/latest_long"
@@ -19,6 +19,7 @@ module Telnyx
19
19
  type data =
20
20
  {
21
21
  id: String,
22
+ activated_at: Time?,
22
23
  billing_group_id: String,
23
24
  call_forwarding_enabled: bool,
24
25
  call_recording_enabled: bool,
@@ -78,6 +79,8 @@ module Telnyx
78
79
 
79
80
  def id=: (String) -> String
80
81
 
82
+ attr_accessor activated_at: Time?
83
+
81
84
  attr_reader call_forwarding_enabled: bool?
82
85
 
83
86
  def call_forwarding_enabled=: (bool) -> bool
@@ -152,6 +155,7 @@ module Telnyx
152
155
 
153
156
  def initialize: (
154
157
  ?id: String,
158
+ ?activated_at: Time?,
155
159
  ?billing_group_id: String,
156
160
  ?call_forwarding_enabled: bool,
157
161
  ?call_recording_enabled: bool,
@@ -180,6 +184,7 @@ module Telnyx
180
184
 
181
185
  def to_hash: -> {
182
186
  id: String,
187
+ activated_at: Time?,
183
188
  billing_group_id: String,
184
189
  call_forwarding_enabled: bool,
185
190
  call_recording_enabled: bool,
@@ -13,6 +13,7 @@ module Telnyx
13
13
  record_type: String,
14
14
  status: Telnyx::Models::PhoneNumberDetailed::status,
15
15
  tags: ::Array[String],
16
+ activated_at: Time?,
16
17
  billing_group_id: String?,
17
18
  call_forwarding_enabled: bool,
18
19
  call_recording_enabled: bool,
@@ -78,6 +79,8 @@ module Telnyx
78
79
 
79
80
  attr_accessor status: Telnyx::Models::PhoneNumberDetailed::status
80
81
 
82
+ attr_accessor activated_at: Time?
83
+
81
84
  attr_reader call_forwarding_enabled: bool?
82
85
 
83
86
  def call_forwarding_enabled=: (bool) -> bool
@@ -128,6 +131,7 @@ module Telnyx
128
131
  record_type: String,
129
132
  status: Telnyx::Models::PhoneNumberDetailed::status,
130
133
  tags: ::Array[String],
134
+ ?activated_at: Time?,
131
135
  ?billing_group_id: String?,
132
136
  ?call_forwarding_enabled: bool,
133
137
  ?call_recording_enabled: bool,
@@ -160,6 +164,7 @@ module Telnyx
160
164
  record_type: String,
161
165
  status: Telnyx::Models::PhoneNumberDetailed::status,
162
166
  tags: ::Array[String],
167
+ activated_at: Time?,
163
168
  billing_group_id: String?,
164
169
  call_forwarding_enabled: bool,
165
170
  call_recording_enabled: bool,
@@ -3,6 +3,7 @@ module Telnyx
3
3
  type phone_number_slim_list_response =
4
4
  {
5
5
  id: String,
6
+ activated_at: Time?,
6
7
  billing_group_id: String,
7
8
  call_forwarding_enabled: bool,
8
9
  call_recording_enabled: bool,
@@ -60,6 +61,8 @@ module Telnyx
60
61
 
61
62
  def id=: (String) -> String
62
63
 
64
+ attr_accessor activated_at: Time?
65
+
63
66
  attr_reader call_forwarding_enabled: bool?
64
67
 
65
68
  def call_forwarding_enabled=: (bool) -> bool
@@ -130,6 +133,7 @@ module Telnyx
130
133
 
131
134
  def initialize: (
132
135
  ?id: String,
136
+ ?activated_at: Time?,
133
137
  ?billing_group_id: String,
134
138
  ?call_forwarding_enabled: bool,
135
139
  ?call_recording_enabled: bool,
@@ -156,6 +160,7 @@ module Telnyx
156
160
 
157
161
  def to_hash: -> {
158
162
  id: String,
163
+ activated_at: Time?,
159
164
  billing_group_id: String,
160
165
  call_forwarding_enabled: bool,
161
166
  call_recording_enabled: bool,
@@ -41,6 +41,7 @@ module Telnyx
41
41
  | :assemblyai
42
42
  | :xai
43
43
  | :soniox
44
+ | :parakeet
44
45
  | :azure
45
46
  | :openai
46
47
  | :google
@@ -54,6 +55,7 @@ module Telnyx
54
55
  ASSEMBLYAI: :assemblyai
55
56
  XAI: :xai
56
57
  SONIOX: :soniox
58
+ PARAKEET: :parakeet
57
59
  AZURE: :azure
58
60
  OPENAI: :openai
59
61
  GOOGLE: :google
@@ -90,7 +90,14 @@ module Telnyx
90
90
  end
91
91
 
92
92
  type transcription_engine =
93
- :Azure | :Deepgram | :Google | :Telnyx | :xAI | :Speechmatics | :Soniox
93
+ :Azure
94
+ | :Deepgram
95
+ | :Google
96
+ | :Telnyx
97
+ | :xAI
98
+ | :Speechmatics
99
+ | :Soniox
100
+ | :Parakeet
94
101
 
95
102
  module TranscriptionEngine
96
103
  extend Telnyx::Internal::Type::Enum
@@ -102,6 +109,7 @@ module Telnyx
102
109
  X_AI: :xAI
103
110
  SPEECHMATICS: :Speechmatics
104
111
  SONIOX: :Soniox
112
+ PARAKEET: :Parakeet
105
113
 
106
114
  def self?.values: -> ::Array[Telnyx::Models::SpeechToTextRetrieveTranscriptionParams::transcription_engine]
107
115
  end
@@ -123,6 +131,7 @@ module Telnyx
123
131
  | :"xai/grok-stt"
124
132
  | :"speechmatics/standard"
125
133
  | :"soniox/stt-rt-v4"
134
+ | :"parakeet/tdt-0.6b-v3"
126
135
 
127
136
  module Model
128
137
  extend Telnyx::Internal::Type::Enum
@@ -143,6 +152,7 @@ module Telnyx
143
152
  XAI_GROK_STT: :"xai/grok-stt"
144
153
  SPEECHMATICS_STANDARD: :"speechmatics/standard"
145
154
  SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
155
+ PARAKEET_TDT_0_6B_V3: :"parakeet/tdt-0.6b-v3"
146
156
 
147
157
  def self?.values: -> ::Array[Telnyx::Models::SpeechToTextRetrieveTranscriptionParams::model]
148
158
  end
@@ -45,12 +45,8 @@ module Telnyx
45
45
 
46
46
  module AI = Telnyx::Models::AI
47
47
 
48
- class AICreateResponseDeprecatedParams = Telnyx::Models::AICreateResponseDeprecatedParams
49
-
50
48
  class AIRetrieveConversationHistoriesParams = Telnyx::Models::AIRetrieveConversationHistoriesParams
51
49
 
52
- class AIRetrieveModelsParams = Telnyx::Models::AIRetrieveModelsParams
53
-
54
50
  class AISummarizeParams = Telnyx::Models::AISummarizeParams
55
51
 
56
52
  class AlphanumericSenderID = Telnyx::Models::AlphanumericSenderID
@@ -881,8 +877,6 @@ module Telnyx
881
877
 
882
878
  class MessageSendShortCodeParams = Telnyx::Models::MessageSendShortCodeParams
883
879
 
884
- class MessageSendWhatsappParams = Telnyx::Models::MessageSendWhatsappParams
885
-
886
880
  class MessageSendWithAlphanumericSenderParams = Telnyx::Models::MessageSendWithAlphanumericSenderParams
887
881
 
888
882
  class MessageTemplate = Telnyx::Models::MessageTemplate
@@ -2,36 +2,6 @@ module Telnyx
2
2
  module Resources
3
3
  class AI
4
4
  class Chat
5
- def create_completion: (
6
- messages: ::Array[Telnyx::AI::ChatCompletionRequest::Message],
7
- ?api_key_ref: String,
8
- ?best_of: Integer,
9
- ?early_stopping: bool,
10
- ?enable_thinking: bool,
11
- ?frequency_penalty: Float,
12
- ?guided_choice: ::Array[String],
13
- ?guided_json: ::Hash[Symbol, top],
14
- ?guided_regex: String,
15
- ?length_penalty: Float,
16
- ?logprobs: bool,
17
- ?max_tokens: Integer,
18
- ?min_p: Float,
19
- ?model: String,
20
- ?n: Float,
21
- ?presence_penalty: Float,
22
- ?response_format: Telnyx::AI::ChatCompletionRequest::ResponseFormat,
23
- ?seed: Integer,
24
- ?stop: Telnyx::Models::AI::ChatCompletionRequest::stop,
25
- ?stream: bool,
26
- ?temperature: Float,
27
- ?tool_choice: Telnyx::Models::AI::ChatCompletionRequest::tool_choice,
28
- ?tools: ::Array[Telnyx::Models::AI::ChatCompletionRequest::tool],
29
- ?top_logprobs: Integer,
30
- ?top_p: Float,
31
- ?use_beam_search: bool,
32
- ?request_options: Telnyx::request_opts
33
- ) -> Telnyx::Models::AI::chat_create_completion_response
34
-
35
5
  def initialize: (client: Telnyx::Client) -> void
36
6
  end
37
7
  end
@@ -5,6 +5,7 @@ module Telnyx
5
5
  def create: (
6
6
  display_name: String,
7
7
  type: String,
8
+ ?client_side_tool: ::Hash[Symbol, top],
8
9
  ?function: ::Hash[Symbol, top],
9
10
  ?handoff: ::Hash[Symbol, top],
10
11
  ?invite: ::Hash[Symbol, top],
@@ -21,6 +22,7 @@ module Telnyx
21
22
 
22
23
  def update: (
23
24
  String tool_id,
25
+ ?client_side_tool: ::Hash[Symbol, top],
24
26
  ?display_name: String,
25
27
  ?function: ::Hash[Symbol, top],
26
28
  ?handoff: ::Hash[Symbol, top],
@@ -25,11 +25,6 @@ module Telnyx
25
25
 
26
26
  attr_reader tools: Telnyx::Resources::AI::Tools
27
27
 
28
- def create_response_deprecated: (
29
- response_request: ::Hash[Symbol, top],
30
- ?request_options: Telnyx::request_opts
31
- ) -> Telnyx::Models::ai_create_response_deprecated_response
32
-
33
28
  def retrieve_conversation_histories: (
34
29
  q: String,
35
30
  ?filter_ingested_at_gte: Time,
@@ -47,10 +42,6 @@ module Telnyx
47
42
  ?request_options: Telnyx::request_opts
48
43
  ) -> Telnyx::Models::AIRetrieveConversationHistoriesResponse
49
44
 
50
- def retrieve_models: (
51
- ?request_options: Telnyx::request_opts
52
- ) -> Telnyx::ModelsResponse
53
-
54
45
  def summarize: (
55
46
  bucket: String,
56
47
  filename: String,
@@ -108,16 +108,6 @@ module Telnyx
108
108
  ?request_options: Telnyx::request_opts
109
109
  ) -> Telnyx::Models::MessageSendShortCodeResponse
110
110
 
111
- def send_whatsapp: (
112
- from: String,
113
- to: String,
114
- whatsapp_message: Telnyx::WhatsappMessageContent,
115
- ?messaging_profile_id: String,
116
- ?type: Telnyx::Models::MessageSendWhatsappParams::type_,
117
- ?webhook_url: String,
118
- ?request_options: Telnyx::request_opts
119
- ) -> Telnyx::Models::MessageSendWhatsappResponse
120
-
121
111
  def send_with_alphanumeric_sender: (
122
112
  from: String,
123
113
  messaging_profile_id: String,