telnyx 5.112.0 → 5.113.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 +17 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -178
- data/lib/telnyx/models/ai/assistant_integration.rb +38 -0
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +35 -0
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +9 -178
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +3 -123
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +3 -125
- data/lib/telnyx/models/ai/assistants/clause.rb +54 -0
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +27 -0
- data/lib/telnyx/models/ai/assistants/rule_input.rb +40 -0
- data/lib/telnyx/models/ai/assistants/rule_output.rb +40 -0
- data/lib/telnyx/models/ai/assistants/serve.rb +33 -0
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -179
- data/lib/telnyx/models/ai/inference_embedding.rb +9 -177
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
- data/lib/telnyx/models/ai/openai_create_response_params.rb +3 -3
- data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -210
- data/lib/telnyx/models/ai/start_speaking_plan.rb +37 -0
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +39 -0
- data/lib/telnyx/models/ai/transfer_tool.rb +7 -9
- data/lib/telnyx/models/ai_create_response_params.rb +4 -4
- data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -210
- data/lib/telnyx/models/call_conversation_ended.rb +13 -1
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +4 -23
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +169 -118
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
- data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -167
- data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
- data/lib/telnyx/models/fax.rb +7 -5
- data/lib/telnyx/models/fax_create_params.rb +7 -5
- data/lib/telnyx/models/fax_delivered.rb +3 -2
- data/lib/telnyx/models/fax_failed.rb +3 -2
- data/lib/telnyx/models/fax_media_processed.rb +3 -2
- data/lib/telnyx/models/fax_queued.rb +3 -2
- data/lib/telnyx/models/fax_sending_started.rb +3 -2
- data/lib/telnyx/models/model_metadata.rb +212 -0
- data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +62 -12
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +18 -4
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection.rb +412 -0
- data/lib/telnyx/models/uac_connection_create_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_create_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_delete_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +3 -879
- data/lib/telnyx/models/uac_connection_update_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_update_response.rb +3 -878
- data/lib/telnyx/models/uac_external_settings.rb +101 -0
- data/lib/telnyx/models/uac_inbound.rb +210 -0
- data/lib/telnyx/models/uac_internal_settings.rb +25 -0
- data/lib/telnyx/models/uac_outbound.rb +131 -0
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
- data/lib/telnyx/models/xai_voice_settings.rb +36 -0
- data/lib/telnyx/models.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/ai/openai.rb +1 -1
- data/lib/telnyx/resources/ai.rb +3 -3
- data/lib/telnyx/resources/calls/actions.rb +15 -17
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/faxes.rb +13 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/texml.rb +4 -2
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
- data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +23 -4
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -352
- data/rbi/telnyx/models/ai/assistant_integration.rbi +60 -0
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +51 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -352
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +4 -290
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +3 -301
- data/rbi/telnyx/models/ai/assistants/clause.rbi +91 -0
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +36 -0
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/serve.rbi +61 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -366
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -351
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -315
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +70 -0
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +71 -0
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -310
- data/rbi/telnyx/models/call_conversation_ended.rbi +10 -0
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +371 -254
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
- data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +20 -480
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/fax.rbi +12 -8
- data/rbi/telnyx/models/fax_create_params.rbi +12 -8
- data/rbi/telnyx/models/fax_delivered.rbi +6 -4
- data/rbi/telnyx/models/fax_failed.rbi +6 -4
- data/rbi/telnyx/models/fax_media_processed.rbi +6 -4
- data/rbi/telnyx/models/fax_queued.rbi +6 -4
- data/rbi/telnyx/models/fax_sending_started.rbi +6 -4
- data/rbi/telnyx/models/model_metadata.rbi +272 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +81 -9
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +27 -3
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection.rbi +684 -0
- data/rbi/telnyx/models/uac_connection_create_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_create_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_update_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_update_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_external_settings.rbi +146 -0
- data/rbi/telnyx/models/uac_inbound.rbi +410 -0
- data/rbi/telnyx/models/uac_internal_settings.rbi +39 -0
- data/rbi/telnyx/models/uac_outbound.rbi +224 -0
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
- data/rbi/telnyx/models/xai_voice_settings.rbi +64 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +2 -4
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -9
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
- data/rbi/telnyx/resources/ai/openai.rbi +1 -1
- data/rbi/telnyx/resources/ai.rbi +2 -2
- data/rbi/telnyx/resources/calls/actions.rbi +24 -24
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/faxes.rbi +18 -4
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/texml.rbi +7 -1
- data/rbi/telnyx/resources/uac_connections.rbi +7 -13
- data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
- data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -149
- data/sig/telnyx/models/ai/assistant_integration.rbs +26 -0
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +19 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -149
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +6 -113
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +4 -109
- data/sig/telnyx/models/ai/assistants/clause.rbs +46 -0
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +19 -0
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/serve.rbs +35 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -152
- data/sig/telnyx/models/ai/inference_embedding.rbs +18 -149
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +5 -5
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -149
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +33 -0
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +38 -0
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_create_response_params.rbs +5 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -149
- data/sig/telnyx/models/call_conversation_ended.rbs +5 -0
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +141 -102
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
- data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +13 -185
- data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/model_metadata.rbs +142 -0
- data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +27 -3
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +9 -1
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection.rbs +338 -0
- data/sig/telnyx/models/uac_connection_create_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_create_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_delete_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_update_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_update_response.rbs +5 -731
- data/sig/telnyx/models/uac_external_settings.rbs +73 -0
- data/sig/telnyx/models/uac_inbound.rbs +190 -0
- data/sig/telnyx/models/uac_internal_settings.rbs +15 -0
- data/sig/telnyx/models/uac_outbound.rbs +113 -0
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/xai_voice_settings.rbs +34 -0
- data/sig/telnyx/models.rbs +20 -0
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/ai/openai.rbs +1 -1
- data/sig/telnyx/resources/ai.rbs +1 -1
- data/sig/telnyx/resources/calls/actions.rbs +2 -4
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/texml.rbs +1 -0
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
- data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
- metadata +71 -14
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
- data/lib/telnyx/models/uac_connection_list_response.rb +0 -876
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
- data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
- data/rbi/telnyx/models/uac_connection_list_response.rbi +0 -1727
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
- data/sig/telnyx/models/uac_connection_list_response.rbs +0 -722
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class ModelMetadata < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# Model identifier. For open-source models, follows the
|
|
8
|
+
# `{organization}/{model_name}` convention from Hugging Face (e.g.
|
|
9
|
+
# `moonshotai/Kimi-K2.6`).
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute context_length
|
|
15
|
+
# Maximum total tokens (prompt + completion) supported by the model in a single
|
|
16
|
+
# request.
|
|
17
|
+
#
|
|
18
|
+
# @return [Integer]
|
|
19
|
+
required :context_length, Integer
|
|
20
|
+
|
|
21
|
+
# @!attribute created
|
|
22
|
+
# Timestamp at which the model was registered on Telnyx Inference (ISO 8601).
|
|
23
|
+
#
|
|
24
|
+
# @return [Time]
|
|
25
|
+
required :created, Time
|
|
26
|
+
|
|
27
|
+
# @!attribute languages
|
|
28
|
+
# ISO language codes the model supports (e.g. `en`, `es`).
|
|
29
|
+
#
|
|
30
|
+
# @return [Array<String>]
|
|
31
|
+
required :languages, Telnyx::Internal::Type::ArrayOf[String]
|
|
32
|
+
|
|
33
|
+
# @!attribute license
|
|
34
|
+
# License the model is distributed under, e.g. `Apache 2.0`, `MIT`,
|
|
35
|
+
# `Llama 3 Community License`.
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :license, String
|
|
39
|
+
|
|
40
|
+
# @!attribute organization
|
|
41
|
+
# Organization that originally published the model, matching the prefix of `id`
|
|
42
|
+
# for open-source models.
|
|
43
|
+
#
|
|
44
|
+
# @return [String]
|
|
45
|
+
required :organization, String
|
|
46
|
+
|
|
47
|
+
# @!attribute owned_by
|
|
48
|
+
# Owner of the model. `Telnyx` for Telnyx-hosted open-source models, the upstream
|
|
49
|
+
# provider name for proxied models, or the Telnyx organization id for fine-tuned
|
|
50
|
+
# models.
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
required :owned_by, String
|
|
54
|
+
|
|
55
|
+
# @!attribute parameters
|
|
56
|
+
# Total parameter count of the model.
|
|
57
|
+
#
|
|
58
|
+
# @return [Integer]
|
|
59
|
+
required :parameters, Integer
|
|
60
|
+
|
|
61
|
+
# @!attribute tier
|
|
62
|
+
# Billing tier the model belongs to. Used together with `pricing` to determine
|
|
63
|
+
# cost per 1M tokens.
|
|
64
|
+
#
|
|
65
|
+
# @return [Symbol, Telnyx::Models::ModelMetadata::Tier]
|
|
66
|
+
required :tier, enum: -> { Telnyx::ModelMetadata::Tier }
|
|
67
|
+
|
|
68
|
+
# @!attribute base_model
|
|
69
|
+
# Base model the fine-tuned model was trained from. Only set for fine-tuned
|
|
70
|
+
# models.
|
|
71
|
+
#
|
|
72
|
+
# @return [String, nil]
|
|
73
|
+
optional :base_model, String, nil?: true
|
|
74
|
+
|
|
75
|
+
# @!attribute description
|
|
76
|
+
# Short, human-readable summary of what the model is best suited for.
|
|
77
|
+
#
|
|
78
|
+
# @return [String, nil]
|
|
79
|
+
optional :description, String, nil?: true
|
|
80
|
+
|
|
81
|
+
# @!attribute is_fine_tunable
|
|
82
|
+
# Whether the model can be used as a base for a fine-tuning job via
|
|
83
|
+
# `POST /v2/ai/fine_tuning/jobs`.
|
|
84
|
+
#
|
|
85
|
+
# @return [Boolean, nil]
|
|
86
|
+
optional :is_fine_tunable, Telnyx::Internal::Type::Boolean
|
|
87
|
+
|
|
88
|
+
# @!attribute is_vision_supported
|
|
89
|
+
# Whether the model accepts image inputs in chat completions (multimodal vision
|
|
90
|
+
# support).
|
|
91
|
+
#
|
|
92
|
+
# @return [Boolean, nil]
|
|
93
|
+
optional :is_vision_supported, Telnyx::Internal::Type::Boolean
|
|
94
|
+
|
|
95
|
+
# @!attribute max_completion_tokens
|
|
96
|
+
# Maximum number of completion (output) tokens the model will generate per
|
|
97
|
+
# request. `null` if unconstrained beyond `context_length`.
|
|
98
|
+
#
|
|
99
|
+
# @return [Integer, nil]
|
|
100
|
+
optional :max_completion_tokens, Integer, nil?: true
|
|
101
|
+
|
|
102
|
+
# @!attribute object
|
|
103
|
+
# Object type. Always `model`.
|
|
104
|
+
#
|
|
105
|
+
# @return [String, nil]
|
|
106
|
+
optional :object, String
|
|
107
|
+
|
|
108
|
+
# @!attribute parameters_str
|
|
109
|
+
# Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
|
|
110
|
+
#
|
|
111
|
+
# @return [String, nil]
|
|
112
|
+
optional :parameters_str, String, nil?: true
|
|
113
|
+
|
|
114
|
+
# @!attribute pricing
|
|
115
|
+
# Mapping of token kind to price, as strings to preserve precision. Typical keys
|
|
116
|
+
# are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
|
|
117
|
+
# block also includes `currency` (ISO 4217 code matching the account's configured
|
|
118
|
+
# billing currency) and `unit` (the denomination the prices are quoted in,
|
|
119
|
+
# currently always `1M_tokens` for token-priced models).
|
|
120
|
+
#
|
|
121
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
122
|
+
optional :pricing, Telnyx::Internal::Type::HashOf[String]
|
|
123
|
+
|
|
124
|
+
# @!attribute recommended_for_assistants
|
|
125
|
+
# Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI
|
|
126
|
+
# Assistant.
|
|
127
|
+
#
|
|
128
|
+
# @return [Boolean, nil]
|
|
129
|
+
optional :recommended_for_assistants, Telnyx::Internal::Type::Boolean
|
|
130
|
+
|
|
131
|
+
# @!attribute regions
|
|
132
|
+
# Public region names where the model is currently deployed (e.g. `us-central-1`,
|
|
133
|
+
# `eu-central-1`).
|
|
134
|
+
#
|
|
135
|
+
# @return [Array<String>, nil]
|
|
136
|
+
optional :regions, Telnyx::Internal::Type::ArrayOf[String]
|
|
137
|
+
|
|
138
|
+
# @!attribute task
|
|
139
|
+
# Primary task the model is intended for, e.g. `text-generation`,
|
|
140
|
+
# `audio-text-to-text`, `feature-extraction` (embeddings).
|
|
141
|
+
#
|
|
142
|
+
# @return [String, nil]
|
|
143
|
+
optional :task, String
|
|
144
|
+
|
|
145
|
+
# @!method initialize(id:, context_length:, created:, languages:, license:, organization:, owned_by:, parameters:, tier:, base_model: nil, description: nil, is_fine_tunable: nil, is_vision_supported: nil, max_completion_tokens: nil, object: nil, parameters_str: nil, pricing: nil, recommended_for_assistants: nil, regions: nil, task: nil)
|
|
146
|
+
# Some parameter documentations has been truncated, see
|
|
147
|
+
# {Telnyx::Models::ModelMetadata} for more details.
|
|
148
|
+
#
|
|
149
|
+
# Metadata for a model available on Telnyx Inference. Returned by
|
|
150
|
+
# `GET /v2/ai/openai/models` (and the deprecated `GET /v2/ai/models`). Open-source
|
|
151
|
+
# models live under their Hugging Face organization (e.g. `moonshotai/Kimi-K2.6`,
|
|
152
|
+
# `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M2.7`); fine-tuned models are owned by
|
|
153
|
+
# the Telnyx organization that trained them.
|
|
154
|
+
#
|
|
155
|
+
# @param id [String] Model identifier. For open-source models, follows the `{organization}/{model_nam
|
|
156
|
+
#
|
|
157
|
+
# @param context_length [Integer] Maximum total tokens (prompt + completion) supported by the model in a single re
|
|
158
|
+
#
|
|
159
|
+
# @param created [Time] Timestamp at which the model was registered on Telnyx Inference (ISO 8601).
|
|
160
|
+
#
|
|
161
|
+
# @param languages [Array<String>] ISO language codes the model supports (e.g. `en`, `es`).
|
|
162
|
+
#
|
|
163
|
+
# @param license [String] License the model is distributed under, e.g. `Apache 2.0`, `MIT`, `Llama 3 Commu
|
|
164
|
+
#
|
|
165
|
+
# @param organization [String] Organization that originally published the model, matching the prefix of `id` fo
|
|
166
|
+
#
|
|
167
|
+
# @param owned_by [String] Owner of the model. `Telnyx` for Telnyx-hosted open-source models, the upstream
|
|
168
|
+
#
|
|
169
|
+
# @param parameters [Integer] Total parameter count of the model.
|
|
170
|
+
#
|
|
171
|
+
# @param tier [Symbol, Telnyx::Models::ModelMetadata::Tier] Billing tier the model belongs to. Used together with `pricing` to determine cos
|
|
172
|
+
#
|
|
173
|
+
# @param base_model [String, nil] Base model the fine-tuned model was trained from. Only set for fine-tuned models
|
|
174
|
+
#
|
|
175
|
+
# @param description [String, nil] Short, human-readable summary of what the model is best suited for.
|
|
176
|
+
#
|
|
177
|
+
# @param is_fine_tunable [Boolean] Whether the model can be used as a base for a fine-tuning job via `POST /v2/ai/f
|
|
178
|
+
#
|
|
179
|
+
# @param is_vision_supported [Boolean] Whether the model accepts image inputs in chat completions (multimodal vision su
|
|
180
|
+
#
|
|
181
|
+
# @param max_completion_tokens [Integer, nil] Maximum number of completion (output) tokens the model will generate per request
|
|
182
|
+
#
|
|
183
|
+
# @param object [String] Object type. Always `model`.
|
|
184
|
+
#
|
|
185
|
+
# @param parameters_str [String, nil] Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
|
|
186
|
+
#
|
|
187
|
+
# @param pricing [Hash{Symbol=>String}] Mapping of token kind to price, as strings to preserve precision. Typical keys a
|
|
188
|
+
#
|
|
189
|
+
# @param recommended_for_assistants [Boolean] Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI A
|
|
190
|
+
#
|
|
191
|
+
# @param regions [Array<String>] Public region names where the model is currently deployed (e.g. `us-central-1`,
|
|
192
|
+
#
|
|
193
|
+
# @param task [String] Primary task the model is intended for, e.g. `text-generation`, `audio-text-to-t
|
|
194
|
+
|
|
195
|
+
# Billing tier the model belongs to. Used together with `pricing` to determine
|
|
196
|
+
# cost per 1M tokens.
|
|
197
|
+
#
|
|
198
|
+
# @see Telnyx::Models::ModelMetadata#tier
|
|
199
|
+
module Tier
|
|
200
|
+
extend Telnyx::Internal::Type::Enum
|
|
201
|
+
|
|
202
|
+
SMALL = :small
|
|
203
|
+
MEDIUM = :medium
|
|
204
|
+
LARGE = :large
|
|
205
|
+
UNLISTED = :unlisted
|
|
206
|
+
|
|
207
|
+
# @!method self.values
|
|
208
|
+
# @return [Array<Symbol>]
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
end
|
|
@@ -3,8 +3,118 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
# @see Telnyx::Resources::Networks#list_interfaces
|
|
6
|
-
class NetworkListInterfacesResponse < Telnyx::
|
|
7
|
-
# @!
|
|
6
|
+
class NetworkListInterfacesResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute name
|
|
8
|
+
# A user specified name for the interface.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :name, String
|
|
12
|
+
|
|
13
|
+
# @!attribute network_id
|
|
14
|
+
# The id of the network associated with the interface.
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :network_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute region
|
|
20
|
+
#
|
|
21
|
+
# @return [Telnyx::Models::NetworkListInterfacesResponse::Region, nil]
|
|
22
|
+
optional :region, -> { Telnyx::Models::NetworkListInterfacesResponse::Region }
|
|
23
|
+
|
|
24
|
+
# @!attribute region_code
|
|
25
|
+
# The region interface is deployed to.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :region_code, String
|
|
29
|
+
|
|
30
|
+
response_only do
|
|
31
|
+
# @!attribute id
|
|
32
|
+
# Identifies the resource.
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
optional :id, String
|
|
36
|
+
|
|
37
|
+
# @!attribute created_at
|
|
38
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :created_at, String
|
|
42
|
+
|
|
43
|
+
# @!attribute record_type
|
|
44
|
+
# Identifies the type of the resource.
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
optional :record_type, String
|
|
48
|
+
|
|
49
|
+
# @!attribute status
|
|
50
|
+
# The current status of the interface deployment.
|
|
51
|
+
#
|
|
52
|
+
# @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
|
|
53
|
+
optional :status, enum: -> { Telnyx::InterfaceStatus }
|
|
54
|
+
|
|
55
|
+
# @!attribute type
|
|
56
|
+
# Identifies the type of the interface.
|
|
57
|
+
#
|
|
58
|
+
# @return [String, nil]
|
|
59
|
+
optional :type, String
|
|
60
|
+
|
|
61
|
+
# @!attribute updated_at
|
|
62
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
63
|
+
#
|
|
64
|
+
# @return [String, nil]
|
|
65
|
+
optional :updated_at, String
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @!method initialize(id: nil, created_at: nil, name: nil, network_id: nil, record_type: nil, region: nil, region_code: nil, status: nil, type: nil, updated_at: nil)
|
|
69
|
+
# @param id [String] Identifies the resource.
|
|
70
|
+
#
|
|
71
|
+
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
72
|
+
#
|
|
73
|
+
# @param name [String] A user specified name for the interface.
|
|
74
|
+
#
|
|
75
|
+
# @param network_id [String] The id of the network associated with the interface.
|
|
76
|
+
#
|
|
77
|
+
# @param record_type [String] Identifies the type of the resource.
|
|
78
|
+
#
|
|
79
|
+
# @param region [Telnyx::Models::NetworkListInterfacesResponse::Region]
|
|
80
|
+
#
|
|
81
|
+
# @param region_code [String] The region interface is deployed to.
|
|
82
|
+
#
|
|
83
|
+
# @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
|
|
84
|
+
#
|
|
85
|
+
# @param type [String] Identifies the type of the interface.
|
|
86
|
+
#
|
|
87
|
+
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
88
|
+
|
|
89
|
+
# @see Telnyx::Models::NetworkListInterfacesResponse#region
|
|
90
|
+
class Region < Telnyx::Internal::Type::BaseModel
|
|
91
|
+
# @!attribute code
|
|
92
|
+
# Region code of the interface.
|
|
93
|
+
#
|
|
94
|
+
# @return [String, nil]
|
|
95
|
+
optional :code, String
|
|
96
|
+
|
|
97
|
+
# @!attribute name
|
|
98
|
+
# Region name of the interface.
|
|
99
|
+
#
|
|
100
|
+
# @return [String, nil]
|
|
101
|
+
optional :name, String
|
|
102
|
+
|
|
103
|
+
response_only do
|
|
104
|
+
# @!attribute record_type
|
|
105
|
+
# Identifies the type of the resource.
|
|
106
|
+
#
|
|
107
|
+
# @return [String, nil]
|
|
108
|
+
optional :record_type, String
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# @!method initialize(code: nil, name: nil, record_type: nil)
|
|
112
|
+
# @param code [String] Region code of the interface.
|
|
113
|
+
#
|
|
114
|
+
# @param name [String] Region name of the interface.
|
|
115
|
+
#
|
|
116
|
+
# @param record_type [String] Identifies the type of the resource.
|
|
117
|
+
end
|
|
8
118
|
end
|
|
9
119
|
end
|
|
10
120
|
end
|
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class PublicInternetGatewayCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::PublicInternetGatewayRead, nil]
|
|
10
|
+
optional :data, -> { Telnyx::PublicInternetGatewayRead }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::PublicInternetGatewayCreateResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::PublicInternetGatewayRead]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class PublicInternetGatewayDeleteResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::PublicInternetGatewayRead, nil]
|
|
10
|
+
optional :data, -> { Telnyx::PublicInternetGatewayRead }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::PublicInternetGatewayDeleteResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::PublicInternetGatewayRead]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::PublicInternetGateways#list
|
|
6
|
+
class PublicInternetGatewayRead < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute name
|
|
8
|
+
# A user specified name for the interface.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :name, String
|
|
12
|
+
|
|
13
|
+
# @!attribute network_id
|
|
14
|
+
# The id of the network associated with the interface.
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :network_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute region_code
|
|
20
|
+
# The region interface is deployed to.
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :region_code, String
|
|
24
|
+
|
|
25
|
+
response_only do
|
|
26
|
+
# @!attribute id
|
|
27
|
+
# Identifies the resource.
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
optional :id, String
|
|
31
|
+
|
|
32
|
+
# @!attribute created_at
|
|
33
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
34
|
+
#
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
optional :created_at, String
|
|
37
|
+
|
|
38
|
+
# @!attribute public_ip
|
|
39
|
+
# The publically accessible ip for this interface.
|
|
40
|
+
#
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
optional :public_ip, String
|
|
43
|
+
|
|
44
|
+
# @!attribute record_type
|
|
45
|
+
# Identifies the type of the resource.
|
|
46
|
+
#
|
|
47
|
+
# @return [String, nil]
|
|
48
|
+
optional :record_type, String
|
|
49
|
+
|
|
50
|
+
# @!attribute status
|
|
51
|
+
# The current status of the interface deployment.
|
|
52
|
+
#
|
|
53
|
+
# @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
|
|
54
|
+
optional :status, enum: -> { Telnyx::InterfaceStatus }
|
|
55
|
+
|
|
56
|
+
# @!attribute updated_at
|
|
57
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
58
|
+
#
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
optional :updated_at, String
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# @!method initialize(id: nil, created_at: nil, name: nil, network_id: nil, public_ip: nil, record_type: nil, region_code: nil, status: nil, updated_at: nil)
|
|
64
|
+
# @param id [String] Identifies the resource.
|
|
65
|
+
#
|
|
66
|
+
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
67
|
+
#
|
|
68
|
+
# @param name [String] A user specified name for the interface.
|
|
69
|
+
#
|
|
70
|
+
# @param network_id [String] The id of the network associated with the interface.
|
|
71
|
+
#
|
|
72
|
+
# @param public_ip [String] The publically accessible ip for this interface.
|
|
73
|
+
#
|
|
74
|
+
# @param record_type [String] Identifies the type of the resource.
|
|
75
|
+
#
|
|
76
|
+
# @param region_code [String] The region interface is deployed to.
|
|
77
|
+
#
|
|
78
|
+
# @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
|
|
79
|
+
#
|
|
80
|
+
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class PublicInternetGatewayRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::PublicInternetGatewayRead, nil]
|
|
10
|
+
optional :data, -> { Telnyx::PublicInternetGatewayRead }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::PublicInternetGatewayRetrieveResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::PublicInternetGatewayRead]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|