telnyx 5.102.1 → 5.103.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 (163) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistant_create_params.rb +170 -9
  5. data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
  6. data/lib/telnyx/models/ai/assistant_update_params.rb +170 -9
  7. data/lib/telnyx/models/ai/assistants/canary_deploy.rb +123 -3
  8. data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +125 -3
  9. data/lib/telnyx/models/ai/assistants/scheduled_event_create_params.rb +17 -1
  10. data/lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb +91 -1
  11. data/lib/telnyx/models/ai/assistants/update_assistant.rb +171 -9
  12. data/lib/telnyx/models/ai/inference_embedding.rb +169 -9
  13. data/lib/telnyx/models/ai/openai_list_models_response.rb +31 -3
  14. data/lib/telnyx/models/ai/transfer_tool.rb +9 -7
  15. data/lib/telnyx/models/ai_retrieve_models_response.rb +31 -3
  16. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +23 -4
  17. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +23 -4
  18. data/lib/telnyx/models/calls/action_speak_params.rb +23 -4
  19. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +23 -4
  20. data/lib/telnyx/models/calls/transcription_start_request.rb +167 -5
  21. data/lib/telnyx/models/conferences/action_speak_params.rb +23 -4
  22. data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
  23. data/lib/telnyx/models/uac_connection_create_params.rb +255 -9
  24. data/lib/telnyx/models/uac_connection_create_response.rb +878 -3
  25. data/lib/telnyx/models/uac_connection_delete_response.rb +878 -3
  26. data/lib/telnyx/models/uac_connection_list_response.rb +876 -0
  27. data/lib/telnyx/models/uac_connection_retrieve_response.rb +879 -3
  28. data/lib/telnyx/models/uac_connection_update_params.rb +255 -9
  29. data/lib/telnyx/models/uac_connection_update_response.rb +878 -3
  30. data/lib/telnyx/models.rb +0 -14
  31. data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
  32. data/lib/telnyx/resources/ai/assistants/scheduled_events.rb +5 -1
  33. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
  34. data/lib/telnyx/resources/ai/assistants.rb +6 -6
  35. data/lib/telnyx/resources/calls/actions.rb +5 -5
  36. data/lib/telnyx/resources/conferences/actions.rb +1 -1
  37. data/lib/telnyx/resources/uac_connections.rb +8 -8
  38. data/lib/telnyx/version.rb +1 -1
  39. data/lib/telnyx.rb +1 -19
  40. data/rbi/telnyx/models/ai/assistant_create_params.rbi +341 -12
  41. data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
  42. data/rbi/telnyx/models/ai/assistant_update_params.rbi +341 -12
  43. data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +290 -4
  44. data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +301 -3
  45. data/rbi/telnyx/models/ai/assistants/scheduled_event_create_params.rbi +22 -0
  46. data/rbi/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbi +153 -0
  47. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +355 -12
  48. data/rbi/telnyx/models/ai/inference_embedding.rbi +340 -12
  49. data/rbi/telnyx/models/ai/openai_list_models_response.rbi +56 -3
  50. data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
  51. data/rbi/telnyx/models/ai_retrieve_models_response.rbi +51 -3
  52. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +41 -5
  53. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +41 -5
  54. data/rbi/telnyx/models/calls/action_speak_params.rbi +41 -5
  55. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +41 -5
  56. data/rbi/telnyx/models/calls/transcription_start_request.rbi +480 -10
  57. data/rbi/telnyx/models/conferences/action_speak_params.rbi +41 -5
  58. data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
  59. data/rbi/telnyx/models/uac_connection_create_params.rbi +516 -12
  60. data/rbi/telnyx/models/uac_connection_create_response.rbi +1756 -4
  61. data/rbi/telnyx/models/uac_connection_delete_response.rbi +1756 -4
  62. data/rbi/telnyx/models/uac_connection_list_response.rbi +1727 -0
  63. data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +1756 -4
  64. data/rbi/telnyx/models/uac_connection_update_params.rbi +516 -12
  65. data/rbi/telnyx/models/uac_connection_update_response.rbi +1756 -4
  66. data/rbi/telnyx/models.rbi +0 -14
  67. data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +4 -2
  68. data/rbi/telnyx/resources/ai/assistants/scheduled_events.rbi +6 -0
  69. data/rbi/telnyx/resources/ai/assistants/versions.rbi +9 -3
  70. data/rbi/telnyx/resources/ai/assistants.rbi +10 -6
  71. data/rbi/telnyx/resources/calls/actions.rbi +6 -6
  72. data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
  73. data/rbi/telnyx/resources/uac_connections.rbi +13 -7
  74. data/sig/telnyx/models/ai/assistant_create_params.rbs +142 -18
  75. data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
  76. data/sig/telnyx/models/ai/assistant_update_params.rbs +142 -18
  77. data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +113 -6
  78. data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +109 -4
  79. data/sig/telnyx/models/ai/assistants/scheduled_event_create_params.rbs +14 -0
  80. data/sig/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbs +85 -0
  81. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +145 -18
  82. data/sig/telnyx/models/ai/inference_embedding.rbs +142 -18
  83. data/sig/telnyx/models/ai/openai_list_models_response.rbs +39 -4
  84. data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
  85. data/sig/telnyx/models/ai_retrieve_models_response.rbs +39 -4
  86. data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -1
  87. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -1
  88. data/sig/telnyx/models/calls/action_speak_params.rbs +15 -1
  89. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -1
  90. data/sig/telnyx/models/calls/transcription_start_request.rbs +184 -2
  91. data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -1
  92. data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
  93. data/sig/telnyx/models/uac_connection_create_params.rbs +211 -17
  94. data/sig/telnyx/models/uac_connection_create_response.rbs +731 -5
  95. data/sig/telnyx/models/uac_connection_delete_response.rbs +731 -5
  96. data/sig/telnyx/models/uac_connection_list_response.rbs +722 -0
  97. data/sig/telnyx/models/uac_connection_retrieve_response.rbs +731 -5
  98. data/sig/telnyx/models/uac_connection_update_params.rbs +211 -17
  99. data/sig/telnyx/models/uac_connection_update_response.rbs +731 -5
  100. data/sig/telnyx/models.rbs +0 -14
  101. data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
  102. data/sig/telnyx/resources/ai/assistants/scheduled_events.rbs +2 -0
  103. data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
  104. data/sig/telnyx/resources/ai/assistants.rbs +6 -6
  105. data/sig/telnyx/resources/uac_connections.rbs +7 -7
  106. metadata +4 -58
  107. data/lib/telnyx/models/ai/assistant_integration.rb +0 -38
  108. data/lib/telnyx/models/ai/assistant_mcp_server.rb +0 -35
  109. data/lib/telnyx/models/ai/assistants/clause.rb +0 -54
  110. data/lib/telnyx/models/ai/assistants/rollout_slot.rb +0 -27
  111. data/lib/telnyx/models/ai/assistants/rule_input.rb +0 -40
  112. data/lib/telnyx/models/ai/assistants/rule_output.rb +0 -40
  113. data/lib/telnyx/models/ai/assistants/serve.rb +0 -33
  114. data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +0 -39
  115. data/lib/telnyx/models/ai/start_speaking_plan.rb +0 -37
  116. data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +0 -39
  117. data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +0 -64
  118. data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +0 -108
  119. data/lib/telnyx/models/model_metadata.rb +0 -33
  120. data/lib/telnyx/models/uac_connection.rb +0 -412
  121. data/lib/telnyx/models/uac_external_settings.rb +0 -101
  122. data/lib/telnyx/models/uac_inbound.rb +0 -210
  123. data/lib/telnyx/models/uac_internal_settings.rb +0 -25
  124. data/lib/telnyx/models/uac_outbound.rb +0 -131
  125. data/lib/telnyx/models/xai_voice_settings.rb +0 -36
  126. data/rbi/telnyx/models/ai/assistant_integration.rbi +0 -60
  127. data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +0 -51
  128. data/rbi/telnyx/models/ai/assistants/clause.rbi +0 -91
  129. data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +0 -36
  130. data/rbi/telnyx/models/ai/assistants/rule_input.rbi +0 -73
  131. data/rbi/telnyx/models/ai/assistants/rule_output.rbi +0 -73
  132. data/rbi/telnyx/models/ai/assistants/serve.rbi +0 -61
  133. data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +0 -72
  134. data/rbi/telnyx/models/ai/start_speaking_plan.rbi +0 -70
  135. data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +0 -71
  136. data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +0 -155
  137. data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +0 -329
  138. data/rbi/telnyx/models/model_metadata.rbi +0 -44
  139. data/rbi/telnyx/models/uac_connection.rbi +0 -684
  140. data/rbi/telnyx/models/uac_external_settings.rbi +0 -146
  141. data/rbi/telnyx/models/uac_inbound.rbi +0 -410
  142. data/rbi/telnyx/models/uac_internal_settings.rbi +0 -39
  143. data/rbi/telnyx/models/uac_outbound.rbi +0 -224
  144. data/rbi/telnyx/models/xai_voice_settings.rbi +0 -64
  145. data/sig/telnyx/models/ai/assistant_integration.rbs +0 -26
  146. data/sig/telnyx/models/ai/assistant_mcp_server.rbs +0 -19
  147. data/sig/telnyx/models/ai/assistants/clause.rbs +0 -46
  148. data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +0 -19
  149. data/sig/telnyx/models/ai/assistants/rule_input.rbs +0 -33
  150. data/sig/telnyx/models/ai/assistants/rule_output.rbs +0 -33
  151. data/sig/telnyx/models/ai/assistants/serve.rbs +0 -35
  152. data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +0 -30
  153. data/sig/telnyx/models/ai/start_speaking_plan.rbs +0 -33
  154. data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +0 -38
  155. data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +0 -62
  156. data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +0 -130
  157. data/sig/telnyx/models/model_metadata.rbs +0 -32
  158. data/sig/telnyx/models/uac_connection.rbs +0 -338
  159. data/sig/telnyx/models/uac_external_settings.rbs +0 -73
  160. data/sig/telnyx/models/uac_inbound.rbs +0 -190
  161. data/sig/telnyx/models/uac_internal_settings.rbs +0 -15
  162. data/sig/telnyx/models/uac_outbound.rbs +0 -113
  163. data/sig/telnyx/models/xai_voice_settings.rbs +0 -34
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Telnyx
4
- module Models
5
- module AI
6
- module Assistants
7
- class RuleInput < Telnyx::Internal::Type::BaseModel
8
- # @!attribute serve
9
- # What a rule serves when matched.
10
- #
11
- # Exactly one of:
12
- #
13
- # - `version_id` — serve a specific version
14
- # - `rollout` — weighted random across versions; weights must sum to less than
15
- # 100, with the leftover routing to the main version
16
- #
17
- # @return [Telnyx::Models::AI::Assistants::Serve]
18
- required :serve, -> { Telnyx::AI::Assistants::Serve }
19
-
20
- # @!attribute match
21
- #
22
- # @return [Array<Telnyx::Models::AI::Assistants::Clause>, nil]
23
- optional :match, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::Assistants::Clause] }
24
-
25
- # @!method initialize(serve:, match: nil)
26
- # Some parameter documentations has been truncated, see
27
- # {Telnyx::Models::AI::Assistants::RuleInput} for more details.
28
- #
29
- # A targeting rule: `match` clauses (AND) gate `serve`.
30
- #
31
- # An empty `match` is a catch-all (always fires).
32
- #
33
- # @param serve [Telnyx::Models::AI::Assistants::Serve] What a rule serves when matched.
34
- #
35
- # @param match [Array<Telnyx::Models::AI::Assistants::Clause>]
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Telnyx
4
- module Models
5
- module AI
6
- module Assistants
7
- class RuleOutput < Telnyx::Internal::Type::BaseModel
8
- # @!attribute serve
9
- # What a rule serves when matched.
10
- #
11
- # Exactly one of:
12
- #
13
- # - `version_id` — serve a specific version
14
- # - `rollout` — weighted random across versions; weights must sum to less than
15
- # 100, with the leftover routing to the main version
16
- #
17
- # @return [Telnyx::Models::AI::Assistants::Serve]
18
- required :serve, -> { Telnyx::AI::Assistants::Serve }
19
-
20
- # @!attribute match
21
- #
22
- # @return [Array<Telnyx::Models::AI::Assistants::Clause>, nil]
23
- optional :match, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::Assistants::Clause] }
24
-
25
- # @!method initialize(serve:, match: nil)
26
- # Some parameter documentations has been truncated, see
27
- # {Telnyx::Models::AI::Assistants::RuleOutput} for more details.
28
- #
29
- # A targeting rule: `match` clauses (AND) gate `serve`.
30
- #
31
- # An empty `match` is a catch-all (always fires).
32
- #
33
- # @param serve [Telnyx::Models::AI::Assistants::Serve] What a rule serves when matched.
34
- #
35
- # @param match [Array<Telnyx::Models::AI::Assistants::Clause>]
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Telnyx
4
- module Models
5
- module AI
6
- module Assistants
7
- class Serve < Telnyx::Internal::Type::BaseModel
8
- # @!attribute rollout
9
- #
10
- # @return [Array<Telnyx::Models::AI::Assistants::RolloutSlot>, nil]
11
- optional :rollout, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::Assistants::RolloutSlot] }
12
-
13
- # @!attribute version_id
14
- #
15
- # @return [String, nil]
16
- optional :version_id, String
17
-
18
- # @!method initialize(rollout: nil, version_id: nil)
19
- # What a rule serves when matched.
20
- #
21
- # Exactly one of:
22
- #
23
- # - `version_id` — serve a specific version
24
- # - `rollout` — weighted random across versions; weights must sum to less than
25
- # 100, with the leftover routing to the main version
26
- #
27
- # @param rollout [Array<Telnyx::Models::AI::Assistants::RolloutSlot>]
28
- # @param version_id [String]
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Telnyx
4
- module Models
5
- module AI
6
- class InferenceEmbeddingInterruptionSettings < Telnyx::Internal::Type::BaseModel
7
- # @!attribute enable
8
- # Whether users can interrupt the assistant while it is speaking.
9
- #
10
- # @return [Boolean, nil]
11
- optional :enable, Telnyx::Internal::Type::Boolean
12
-
13
- # @!attribute start_speaking_plan
14
- # Controls when the assistant starts speaking after the user stops. These
15
- # thresholds primarily apply to non turn-taking transcription models. For
16
- # turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
17
- # transcription end-of-turn settings under `transcription.settings` instead.
18
- #
19
- # @return [Telnyx::Models::AI::StartSpeakingPlan, nil]
20
- optional :start_speaking_plan, -> { Telnyx::AI::StartSpeakingPlan }
21
-
22
- # @!method initialize(enable: nil, start_speaking_plan: nil)
23
- # Some parameter documentations has been truncated, see
24
- # {Telnyx::Models::AI::InferenceEmbeddingInterruptionSettings} for more details.
25
- #
26
- # Settings for interruptions and how the assistant decides the user has finished
27
- # speaking. These timings are most relevant when using non turn-taking
28
- # transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
29
- # behavior is controlled by the transcription end-of-turn settings under
30
- # `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
31
- # `eager_eot_threshold`).
32
- #
33
- # @param enable [Boolean] Whether users can interrupt the assistant while it is speaking.
34
- #
35
- # @param start_speaking_plan [Telnyx::Models::AI::StartSpeakingPlan] Controls when the assistant starts speaking after the user stops. These threshol
36
- end
37
- end
38
- end
39
- end
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Telnyx
4
- module Models
5
- module AI
6
- class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
7
- # @!attribute transcription_endpointing_plan
8
- # Endpointing thresholds used to decide when the user has finished speaking.
9
- # Applies to non turn-taking transcription models. For `deepgram/flux`, use
10
- # `transcription.settings.eot_threshold` / `eot_timeout_ms` /
11
- # `eager_eot_threshold`.
12
- #
13
- # @return [Telnyx::Models::AI::TranscriptionEndpointingPlan, nil]
14
- optional :transcription_endpointing_plan, -> { Telnyx::AI::TranscriptionEndpointingPlan }
15
-
16
- # @!attribute wait_seconds
17
- # Minimum seconds to wait before the assistant starts speaking.
18
- #
19
- # @return [Float, nil]
20
- optional :wait_seconds, Float
21
-
22
- # @!method initialize(transcription_endpointing_plan: nil, wait_seconds: nil)
23
- # Some parameter documentations has been truncated, see
24
- # {Telnyx::Models::AI::StartSpeakingPlan} for more details.
25
- #
26
- # Controls when the assistant starts speaking after the user stops. These
27
- # thresholds primarily apply to non turn-taking transcription models. For
28
- # turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
29
- # transcription end-of-turn settings under `transcription.settings` instead.
30
- #
31
- # @param transcription_endpointing_plan [Telnyx::Models::AI::TranscriptionEndpointingPlan] Endpointing thresholds used to decide when the user has finished speaking. Appli
32
- #
33
- # @param wait_seconds [Float] Minimum seconds to wait before the assistant starts speaking.
34
- end
35
- end
36
- end
37
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Telnyx
4
- module Models
5
- module AI
6
- class TranscriptionEndpointingPlan < Telnyx::Internal::Type::BaseModel
7
- # @!attribute on_no_punctuation_seconds
8
- # Seconds to wait after the transcript ends without punctuation.
9
- #
10
- # @return [Float, nil]
11
- optional :on_no_punctuation_seconds, Float
12
-
13
- # @!attribute on_number_seconds
14
- # Seconds to wait after the transcript ends with a number.
15
- #
16
- # @return [Float, nil]
17
- optional :on_number_seconds, Float
18
-
19
- # @!attribute on_punctuation_seconds
20
- # Seconds to wait after the transcript ends with punctuation.
21
- #
22
- # @return [Float, nil]
23
- optional :on_punctuation_seconds, Float
24
-
25
- # @!method initialize(on_no_punctuation_seconds: nil, on_number_seconds: nil, on_punctuation_seconds: nil)
26
- # Endpointing thresholds used to decide when the user has finished speaking.
27
- # Applies to non turn-taking transcription models. For `deepgram/flux`, use
28
- # `transcription.settings.eot_threshold` / `eot_timeout_ms` /
29
- # `eager_eot_threshold`.
30
- #
31
- # @param on_no_punctuation_seconds [Float] Seconds to wait after the transcript ends without punctuation.
32
- #
33
- # @param on_number_seconds [Float] Seconds to wait after the transcript ends with a number.
34
- #
35
- # @param on_punctuation_seconds [Float] Seconds to wait after the transcript ends with punctuation.
36
- end
37
- end
38
- end
39
- end
@@ -1,64 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Telnyx
4
- module Models
5
- module Calls
6
- class TranscriptionEngineAssemblyaiConfig < Telnyx::Internal::Type::BaseModel
7
- # @!attribute interim_results
8
- # Whether to send also interim results. If set to false, only final results will
9
- # be sent.
10
- #
11
- # @return [Boolean, nil]
12
- optional :interim_results, Telnyx::Internal::Type::Boolean
13
-
14
- # @!attribute transcription_engine
15
- # Engine identifier for AssemblyAI transcription service
16
- #
17
- # @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine, nil]
18
- optional :transcription_engine,
19
- enum: -> { Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine }
20
-
21
- # @!attribute transcription_model
22
- # The model to use for transcription.
23
- #
24
- # @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel, nil]
25
- optional :transcription_model,
26
- enum: -> { Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel }
27
-
28
- # @!method initialize(interim_results: nil, transcription_engine: nil, transcription_model: nil)
29
- # Some parameter documentations has been truncated, see
30
- # {Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig} for more details.
31
- #
32
- # @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
33
- #
34
- # @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine] Engine identifier for AssemblyAI transcription service
35
- #
36
- # @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel] The model to use for transcription.
37
-
38
- # Engine identifier for AssemblyAI transcription service
39
- #
40
- # @see Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig#transcription_engine
41
- module TranscriptionEngine
42
- extend Telnyx::Internal::Type::Enum
43
-
44
- ASSEMBLY_AI = :AssemblyAI
45
-
46
- # @!method self.values
47
- # @return [Array<Symbol>]
48
- end
49
-
50
- # The model to use for transcription.
51
- #
52
- # @see Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig#transcription_model
53
- module TranscriptionModel
54
- extend Telnyx::Internal::Type::Enum
55
-
56
- ASSEMBLYAI_UNIVERSAL_STREAMING = :"assemblyai/universal-streaming"
57
-
58
- # @!method self.values
59
- # @return [Array<Symbol>]
60
- end
61
- end
62
- end
63
- end
64
- end
@@ -1,108 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Telnyx
4
- module Models
5
- module Calls
6
- class TranscriptionEngineXaiConfig < Telnyx::Internal::Type::BaseModel
7
- # @!attribute interim_results
8
- # Whether to send also interim results. If set to false, only final results will
9
- # be sent.
10
- #
11
- # @return [Boolean, nil]
12
- optional :interim_results, Telnyx::Internal::Type::Boolean
13
-
14
- # @!attribute language
15
- # Language to use for speech recognition
16
- #
17
- # @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::Language, nil]
18
- optional :language, enum: -> { Telnyx::Calls::TranscriptionEngineXaiConfig::Language }
19
-
20
- # @!attribute transcription_engine
21
- # Engine identifier for xAI transcription service
22
- #
23
- # @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine, nil]
24
- optional :transcription_engine,
25
- enum: -> { Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine }
26
-
27
- # @!attribute transcription_model
28
- # The model to use for transcription.
29
- #
30
- # @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::TranscriptionModel, nil]
31
- optional :transcription_model,
32
- enum: -> { Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionModel }
33
-
34
- # @!method initialize(interim_results: nil, language: nil, transcription_engine: nil, transcription_model: nil)
35
- # Some parameter documentations has been truncated, see
36
- # {Telnyx::Models::Calls::TranscriptionEngineXaiConfig} for more details.
37
- #
38
- # @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
39
- #
40
- # @param language [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::Language] Language to use for speech recognition
41
- #
42
- # @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine] Engine identifier for xAI transcription service
43
- #
44
- # @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::TranscriptionModel] The model to use for transcription.
45
-
46
- # Language to use for speech recognition
47
- #
48
- # @see Telnyx::Models::Calls::TranscriptionEngineXaiConfig#language
49
- module Language
50
- extend Telnyx::Internal::Type::Enum
51
-
52
- AR = :ar
53
- CS = :cs
54
- DA = :da
55
- DE = :de
56
- EN = :en
57
- ES = :es
58
- FA = :fa
59
- FIL = :fil
60
- FR = :fr
61
- HI = :hi
62
- ID = :id
63
- IT = :it
64
- JA = :ja
65
- KO = :ko
66
- MK = :mk
67
- MS = :ms
68
- NL = :nl
69
- PL = :pl
70
- PT = :pt
71
- RO = :ro
72
- RU = :ru
73
- SV = :sv
74
- TH = :th
75
- TR = :tr
76
- VI = :vi
77
-
78
- # @!method self.values
79
- # @return [Array<Symbol>]
80
- end
81
-
82
- # Engine identifier for xAI transcription service
83
- #
84
- # @see Telnyx::Models::Calls::TranscriptionEngineXaiConfig#transcription_engine
85
- module TranscriptionEngine
86
- extend Telnyx::Internal::Type::Enum
87
-
88
- X_AI = :xAI
89
-
90
- # @!method self.values
91
- # @return [Array<Symbol>]
92
- end
93
-
94
- # The model to use for transcription.
95
- #
96
- # @see Telnyx::Models::Calls::TranscriptionEngineXaiConfig#transcription_model
97
- module TranscriptionModel
98
- extend Telnyx::Internal::Type::Enum
99
-
100
- XAI_GROK_STT = :"xai/grok-stt"
101
-
102
- # @!method self.values
103
- # @return [Array<Symbol>]
104
- end
105
- end
106
- end
107
- end
108
- end
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Telnyx
4
- module Models
5
- class ModelMetadata < Telnyx::Internal::Type::BaseModel
6
- # @!attribute id
7
- #
8
- # @return [String]
9
- required :id, String
10
-
11
- # @!attribute created
12
- #
13
- # @return [Integer]
14
- required :created, Integer
15
-
16
- # @!attribute owned_by
17
- #
18
- # @return [String]
19
- required :owned_by, String
20
-
21
- # @!attribute object
22
- #
23
- # @return [String, nil]
24
- optional :object, String
25
-
26
- # @!method initialize(id:, created:, owned_by:, object: nil)
27
- # @param id [String]
28
- # @param created [Integer]
29
- # @param owned_by [String]
30
- # @param object [String]
31
- end
32
- end
33
- end