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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +170 -9
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +170 -9
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +123 -3
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +125 -3
- data/lib/telnyx/models/ai/assistants/scheduled_event_create_params.rb +17 -1
- data/lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb +91 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +171 -9
- data/lib/telnyx/models/ai/inference_embedding.rb +169 -9
- data/lib/telnyx/models/ai/openai_list_models_response.rb +31 -3
- data/lib/telnyx/models/ai/transfer_tool.rb +9 -7
- data/lib/telnyx/models/ai_retrieve_models_response.rb +31 -3
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +23 -4
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +23 -4
- data/lib/telnyx/models/calls/transcription_start_request.rb +167 -5
- data/lib/telnyx/models/conferences/action_speak_params.rb +23 -4
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection_create_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_create_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_delete_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_list_response.rb +876 -0
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +879 -3
- data/lib/telnyx/models/uac_connection_update_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_update_response.rb +878 -3
- data/lib/telnyx/models.rb +0 -14
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/scheduled_events.rb +5 -1
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/calls/actions.rb +5 -5
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -19
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +341 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +341 -12
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +290 -4
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +301 -3
- data/rbi/telnyx/models/ai/assistants/scheduled_event_create_params.rbi +22 -0
- data/rbi/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbi +153 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +355 -12
- data/rbi/telnyx/models/ai/inference_embedding.rbi +340 -12
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +56 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +51 -3
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +41 -5
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +480 -10
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection_create_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_create_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_list_response.rbi +1727 -0
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_update_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_update_response.rbi +1756 -4
- data/rbi/telnyx/models.rbi +0 -14
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +4 -2
- data/rbi/telnyx/resources/ai/assistants/scheduled_events.rbi +6 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +9 -3
- data/rbi/telnyx/resources/ai/assistants.rbi +10 -6
- data/rbi/telnyx/resources/calls/actions.rbi +6 -6
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/uac_connections.rbi +13 -7
- data/sig/telnyx/models/ai/assistant_create_params.rbs +142 -18
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +142 -18
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +113 -6
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +109 -4
- data/sig/telnyx/models/ai/assistants/scheduled_event_create_params.rbs +14 -0
- data/sig/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbs +85 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +145 -18
- data/sig/telnyx/models/ai/inference_embedding.rbs +142 -18
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +39 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +39 -4
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -1
- data/sig/telnyx/models/calls/transcription_start_request.rbs +184 -2
- data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection_create_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_create_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_delete_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_list_response.rbs +722 -0
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_update_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_update_response.rbs +731 -5
- data/sig/telnyx/models.rbs +0 -14
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/scheduled_events.rbs +2 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- metadata +4 -58
- data/lib/telnyx/models/ai/assistant_integration.rb +0 -38
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +0 -35
- data/lib/telnyx/models/ai/assistants/clause.rb +0 -54
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +0 -27
- data/lib/telnyx/models/ai/assistants/rule_input.rb +0 -40
- data/lib/telnyx/models/ai/assistants/rule_output.rb +0 -40
- data/lib/telnyx/models/ai/assistants/serve.rb +0 -33
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +0 -39
- data/lib/telnyx/models/ai/start_speaking_plan.rb +0 -37
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +0 -39
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +0 -64
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +0 -108
- data/lib/telnyx/models/model_metadata.rb +0 -33
- data/lib/telnyx/models/uac_connection.rb +0 -412
- data/lib/telnyx/models/uac_external_settings.rb +0 -101
- data/lib/telnyx/models/uac_inbound.rb +0 -210
- data/lib/telnyx/models/uac_internal_settings.rb +0 -25
- data/lib/telnyx/models/uac_outbound.rb +0 -131
- data/lib/telnyx/models/xai_voice_settings.rb +0 -36
- data/rbi/telnyx/models/ai/assistant_integration.rbi +0 -60
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +0 -51
- data/rbi/telnyx/models/ai/assistants/clause.rbi +0 -91
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +0 -36
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/serve.rbi +0 -61
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +0 -72
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +0 -70
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +0 -71
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +0 -155
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +0 -329
- data/rbi/telnyx/models/model_metadata.rbi +0 -44
- data/rbi/telnyx/models/uac_connection.rbi +0 -684
- data/rbi/telnyx/models/uac_external_settings.rbi +0 -146
- data/rbi/telnyx/models/uac_inbound.rbi +0 -410
- data/rbi/telnyx/models/uac_internal_settings.rbi +0 -39
- data/rbi/telnyx/models/uac_outbound.rbi +0 -224
- data/rbi/telnyx/models/xai_voice_settings.rbi +0 -64
- data/sig/telnyx/models/ai/assistant_integration.rbs +0 -26
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/clause.rbs +0 -46
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/serve.rbs +0 -35
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +0 -30
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +0 -33
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +0 -38
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +0 -62
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +0 -130
- data/sig/telnyx/models/model_metadata.rbs +0 -32
- data/sig/telnyx/models/uac_connection.rbs +0 -338
- data/sig/telnyx/models/uac_external_settings.rbs +0 -73
- data/sig/telnyx/models/uac_inbound.rbs +0 -190
- data/sig/telnyx/models/uac_internal_settings.rbs +0 -15
- data/sig/telnyx/models/uac_outbound.rbs +0 -113
- 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
|