telnyx 5.155.0 → 5.157.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/client.rb +1 -0
- data/lib/telnyx/internal/type/union.rb +4 -4
- data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +209 -0
- data/lib/telnyx/models/ai/anthropic/v1_messages_response.rb +12 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +2 -2
- data/lib/telnyx/models/ai/assistant_tool.rb +118 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +2 -2
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +2 -2
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rb +103 -0
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rb +54 -0
- data/lib/telnyx/models/ai/inference_embedding.rb +6 -6
- data/lib/telnyx/models/ai/pay_tool_params.rb +46 -0
- data/lib/telnyx/models/ai/tool_create_params.rb +13 -1
- data/lib/telnyx/models/ai/tool_update_params.rb +13 -1
- data/lib/telnyx/models/ai/transcription_settings.rb +3 -3
- data/lib/telnyx/models/call_dial_params.rb +13 -1
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +3 -0
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +6 -0
- data/lib/telnyx/models/calls/action_speak_params.rb +6 -0
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +3 -0
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +3 -0
- data/lib/telnyx/models/calls/telnyx_voice_settings.rb +2 -1
- data/lib/telnyx/models/calls/transcription_config.rb +8 -4
- data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -1
- data/lib/telnyx/models/conferences/action_speak_params.rb +6 -0
- data/lib/telnyx/models/conversation_relay_embedded_config.rb +3 -0
- data/lib/telnyx/models/doc_reqs_requirement.rb +29 -4
- data/lib/telnyx/models/inbound_message.rb +278 -28
- data/lib/telnyx/models/inbound_message_webhook_event.rb +70 -3
- data/lib/telnyx/models/managed_account_list_params.rb +45 -3
- data/lib/telnyx/models/models_response.rb +0 -1
- data/lib/telnyx/models/phone_number_delete_response.rb +12 -1
- data/lib/telnyx/models/phone_number_detailed.rb +12 -1
- data/lib/telnyx/models/phone_number_slim_list_response.rb +12 -1
- data/lib/telnyx/models/requirement_list_params.rb +10 -1
- data/lib/telnyx/models/requirement_retrieve_params.rb +14 -1
- data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -1
- data/lib/telnyx/models/storage/cloudf_create_params.rb +56 -0
- data/lib/telnyx/models/storage/cloudf_delete_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_list_params.rb +109 -0
- data/lib/telnyx/models/storage/cloudf_list_response.rb +165 -0
- data/lib/telnyx/models/storage/cloudf_retrieve_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_update_params.rb +36 -0
- data/lib/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rb +30 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_status.rb +28 -0
- data/lib/telnyx/models/text_to_speech_generate_speech_params.rb +13 -8
- data/lib/telnyx/models/text_to_speech_retrieve_speech_params.rb +4 -4
- data/lib/telnyx/models/verify_profile.rb +2 -2
- data/lib/telnyx/models/verify_profile_create_params.rb +2 -2
- data/lib/telnyx/models/verify_profile_update_params.rb +2 -2
- data/lib/telnyx/models.rb +0 -6
- data/lib/telnyx/resources/ai/anthropic/v1.rb +91 -0
- data/lib/telnyx/resources/ai/anthropic.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/ai/chat.rb +0 -81
- data/lib/telnyx/resources/ai/conversations/conversation_insights.rb +55 -0
- data/lib/telnyx/resources/ai/conversations.rb +5 -0
- data/lib/telnyx/resources/ai/tools.rb +8 -2
- data/lib/telnyx/resources/ai.rb +3 -56
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/messages.rb +1 -32
- data/lib/telnyx/resources/requirements.rb +13 -3
- data/lib/telnyx/resources/storage/cloudfs/actions.rb +54 -0
- data/lib/telnyx/resources/storage/cloudfs.rb +187 -0
- data/lib/telnyx/resources/storage.rb +6 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -7
- data/rbi/telnyx/client.rbi +1 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +314 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_response.rbi +15 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -4
- data/rbi/telnyx/models/ai/assistant_tool.rbi +258 -1
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -4
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -4
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbi +188 -0
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbi +94 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +18 -6
- data/rbi/telnyx/models/ai/pay_tool_params.rbi +71 -0
- data/rbi/telnyx/models/ai/tool_create_params.rbi +18 -0
- data/rbi/telnyx/models/ai/tool_update_params.rbi +18 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +5 -5
- data/rbi/telnyx/models/call_dial_params.rbi +19 -0
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +6 -0
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +12 -0
- data/rbi/telnyx/models/calls/action_speak_params.rbi +12 -0
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +6 -0
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +6 -0
- data/rbi/telnyx/models/calls/telnyx_voice_settings.rbi +4 -2
- data/rbi/telnyx/models/calls/transcription_config.rbi +15 -7
- data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +2 -2
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +12 -0
- data/rbi/telnyx/models/conversation_relay_embedded_config.rbi +6 -0
- data/rbi/telnyx/models/doc_reqs_requirement.rbi +38 -9
- data/rbi/telnyx/models/inbound_message.rbi +324 -58
- data/rbi/telnyx/models/inbound_message_webhook_event.rbi +173 -4
- data/rbi/telnyx/models/managed_account_list_params.rbi +130 -6
- data/rbi/telnyx/models/phone_number_delete_response.rbi +14 -0
- data/rbi/telnyx/models/phone_number_detailed.rbi +14 -0
- data/rbi/telnyx/models/phone_number_slim_list_response.rbi +14 -0
- data/rbi/telnyx/models/requirement_list_params.rbi +13 -0
- data/rbi/telnyx/models/requirement_retrieve_params.rbi +21 -2
- data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +2 -2
- data/rbi/telnyx/models/storage/cloudf_create_params.rbi +103 -0
- data/rbi/telnyx/models/storage/cloudf_delete_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_list_params.rbi +232 -0
- data/rbi/telnyx/models/storage/cloudf_list_response.rbi +327 -0
- data/rbi/telnyx/models/storage/cloudf_retrieve_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_update_params.rbi +61 -0
- data/rbi/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbi +50 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbi +229 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbi +227 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_status.rbi +57 -0
- data/rbi/telnyx/models/text_to_speech_generate_speech_params.rbi +21 -13
- data/rbi/telnyx/models/text_to_speech_retrieve_speech_params.rbi +8 -8
- data/rbi/telnyx/models/verify_profile.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_create_params.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_update_params.rbi +2 -2
- data/rbi/telnyx/models.rbi +0 -7
- data/rbi/telnyx/resources/ai/anthropic/v1.rbi +106 -0
- data/rbi/telnyx/resources/ai/anthropic.rbi +17 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -1
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -2
- data/rbi/telnyx/resources/ai/chat.rbi +0 -129
- data/rbi/telnyx/resources/ai/conversations/conversation_insights.rbi +68 -0
- data/rbi/telnyx/resources/ai/conversations.rbi +6 -0
- data/rbi/telnyx/resources/ai/tools.rbi +8 -0
- data/rbi/telnyx/resources/ai.rbi +2 -32
- data/rbi/telnyx/resources/calls/actions.rbi +21 -0
- data/rbi/telnyx/resources/calls.rbi +7 -0
- data/rbi/telnyx/resources/conferences/actions.rbi +6 -0
- data/rbi/telnyx/resources/managed_accounts.rbi +1 -1
- data/rbi/telnyx/resources/messages.rbi +1 -28
- data/rbi/telnyx/resources/requirements.rbi +8 -0
- data/rbi/telnyx/resources/storage/cloudfs/actions.rbi +46 -0
- data/rbi/telnyx/resources/storage/cloudfs.rbi +152 -0
- data/rbi/telnyx/resources/storage.rbi +5 -0
- data/rbi/telnyx/resources/text_to_speech.rbi +11 -9
- data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +175 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_response.rbs +11 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +108 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbs +74 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbs +34 -0
- data/sig/telnyx/models/ai/pay_tool_params.rbs +41 -0
- data/sig/telnyx/models/ai/tool_create_params.rbs +14 -0
- data/sig/telnyx/models/ai/tool_update_params.rbs +14 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +2 -2
- data/sig/telnyx/models/call_dial_params.rbs +7 -0
- data/sig/telnyx/models/calls/transcription_config.rbs +2 -2
- data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +2 -2
- data/sig/telnyx/models/doc_reqs_requirement.rbs +25 -8
- data/sig/telnyx/models/inbound_message.rbs +204 -35
- data/sig/telnyx/models/inbound_message_webhook_event.rbs +81 -5
- data/sig/telnyx/models/managed_account_list_params.rbs +47 -3
- data/sig/telnyx/models/phone_number_delete_response.rbs +5 -0
- data/sig/telnyx/models/phone_number_detailed.rbs +5 -0
- data/sig/telnyx/models/phone_number_slim_list_response.rbs +5 -0
- data/sig/telnyx/models/requirement_list_params.rbs +8 -1
- data/sig/telnyx/models/requirement_retrieve_params.rbs +12 -2
- data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -2
- data/sig/telnyx/models/storage/cloudf_create_params.rbs +50 -0
- data/sig/telnyx/models/storage/cloudf_delete_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_list_params.rbs +112 -0
- data/sig/telnyx/models/storage/cloudf_list_response.rbs +163 -0
- data/sig/telnyx/models/storage/cloudf_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_update_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_status.rbs +21 -0
- data/sig/telnyx/models.rbs +0 -6
- data/sig/telnyx/resources/ai/anthropic/v1.rbs +35 -0
- data/sig/telnyx/resources/ai/anthropic.rbs +11 -0
- data/sig/telnyx/resources/ai/chat.rbs +0 -30
- data/sig/telnyx/resources/ai/conversations/conversation_insights.rbs +20 -0
- data/sig/telnyx/resources/ai/conversations.rbs +2 -0
- data/sig/telnyx/resources/ai/tools.rbs +4 -0
- data/sig/telnyx/resources/ai.rbs +1 -8
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/messages.rbs +0 -10
- data/sig/telnyx/resources/requirements.rbs +2 -0
- data/sig/telnyx/resources/storage/cloudfs/actions.rbs +17 -0
- data/sig/telnyx/resources/storage/cloudfs.rbs +45 -0
- data/sig/telnyx/resources/storage.rbs +2 -0
- metadata +62 -23
- data/lib/telnyx/models/ai/chat_create_completion_params.rb +0 -16
- data/lib/telnyx/models/ai/chat_create_completion_response.rb +0 -10
- data/lib/telnyx/models/ai_create_response_deprecated_params.rb +0 -20
- data/lib/telnyx/models/ai_create_response_deprecated_response.rb +0 -8
- data/lib/telnyx/models/ai_retrieve_models_params.rb +0 -14
- data/lib/telnyx/models/message_send_whatsapp_params.rb +0 -71
- data/lib/telnyx/models/message_send_whatsapp_response.rb +0 -178
- data/rbi/telnyx/models/ai/chat_create_completion_params.rbi +0 -32
- data/rbi/telnyx/models/ai/chat_create_completion_response.rbi +0 -13
- data/rbi/telnyx/models/ai_create_response_deprecated_params.rbi +0 -41
- data/rbi/telnyx/models/ai_create_response_deprecated_response.rbi +0 -11
- data/rbi/telnyx/models/ai_retrieve_models_params.rbi +0 -27
- data/rbi/telnyx/models/message_send_whatsapp_params.rbi +0 -124
- data/rbi/telnyx/models/message_send_whatsapp_response.rbi +0 -379
- data/sig/telnyx/models/ai/chat_create_completion_params.rbs +0 -17
- data/sig/telnyx/models/ai/chat_create_completion_response.rbs +0 -9
- data/sig/telnyx/models/ai_create_response_deprecated_params.rbs +0 -24
- data/sig/telnyx/models/ai_create_response_deprecated_response.rbs +0 -7
- data/sig/telnyx/models/ai_retrieve_models_params.rbs +0 -15
- data/sig/telnyx/models/message_send_whatsapp_params.rbs +0 -69
- data/sig/telnyx/models/message_send_whatsapp_response.rbs +0 -191
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
module Conversations
|
|
5
|
+
type conversation_insight_retrieve_aggregates_params =
|
|
6
|
+
{
|
|
7
|
+
created_at: String,
|
|
8
|
+
group_by: ::Array[String],
|
|
9
|
+
insight_id: String,
|
|
10
|
+
metadata: Telnyx::AI::Conversations::ConversationInsightRetrieveAggregatesParams::Metadata,
|
|
11
|
+
show: ::Array[String]
|
|
12
|
+
}
|
|
13
|
+
& Telnyx::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class ConversationInsightRetrieveAggregatesParams < Telnyx::Internal::Type::BaseModel
|
|
16
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_reader created_at: String?
|
|
20
|
+
|
|
21
|
+
def created_at=: (String) -> String
|
|
22
|
+
|
|
23
|
+
attr_reader group_by: ::Array[String]?
|
|
24
|
+
|
|
25
|
+
def group_by=: (::Array[String]) -> ::Array[String]
|
|
26
|
+
|
|
27
|
+
attr_reader insight_id: String?
|
|
28
|
+
|
|
29
|
+
def insight_id=: (String) -> String
|
|
30
|
+
|
|
31
|
+
attr_reader metadata: Telnyx::AI::Conversations::ConversationInsightRetrieveAggregatesParams::Metadata?
|
|
32
|
+
|
|
33
|
+
def metadata=: (
|
|
34
|
+
Telnyx::AI::Conversations::ConversationInsightRetrieveAggregatesParams::Metadata
|
|
35
|
+
) -> Telnyx::AI::Conversations::ConversationInsightRetrieveAggregatesParams::Metadata
|
|
36
|
+
|
|
37
|
+
attr_reader show: ::Array[String]?
|
|
38
|
+
|
|
39
|
+
def show=: (::Array[String]) -> ::Array[String]
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
?created_at: String,
|
|
43
|
+
?group_by: ::Array[String],
|
|
44
|
+
?insight_id: String,
|
|
45
|
+
?metadata: Telnyx::AI::Conversations::ConversationInsightRetrieveAggregatesParams::Metadata,
|
|
46
|
+
?show: ::Array[String],
|
|
47
|
+
?request_options: Telnyx::request_opts
|
|
48
|
+
) -> void
|
|
49
|
+
|
|
50
|
+
def to_hash: -> {
|
|
51
|
+
created_at: String,
|
|
52
|
+
group_by: ::Array[String],
|
|
53
|
+
insight_id: String,
|
|
54
|
+
metadata: Telnyx::AI::Conversations::ConversationInsightRetrieveAggregatesParams::Metadata,
|
|
55
|
+
show: ::Array[String],
|
|
56
|
+
request_options: Telnyx::RequestOptions
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type metadata = { assistant_id: String }
|
|
60
|
+
|
|
61
|
+
class Metadata < Telnyx::Internal::Type::BaseModel
|
|
62
|
+
attr_reader assistant_id: String?
|
|
63
|
+
|
|
64
|
+
def assistant_id=: (String) -> String
|
|
65
|
+
|
|
66
|
+
def initialize: (?assistant_id: String) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> { assistant_id: String }
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
module Conversations
|
|
5
|
+
type conversation_insight_retrieve_aggregates_response =
|
|
6
|
+
{
|
|
7
|
+
data: ::Array[Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse::Data]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class ConversationInsightRetrieveAggregatesResponse < Telnyx::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor data: ::Array[Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse::Data]
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
data: ::Array[Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse::Data]
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
data: ::Array[Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse::Data]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type data = { record_count: Integer }
|
|
22
|
+
|
|
23
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
24
|
+
attr_accessor record_count: Integer
|
|
25
|
+
|
|
26
|
+
def initialize: (record_count: Integer) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> { record_count: Integer }
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type pay_tool_params =
|
|
5
|
+
{
|
|
6
|
+
connector_name: String,
|
|
7
|
+
currency: String,
|
|
8
|
+
description: String?,
|
|
9
|
+
payment_method: String
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class PayToolParams < Telnyx::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor connector_name: String
|
|
14
|
+
|
|
15
|
+
attr_reader currency: String?
|
|
16
|
+
|
|
17
|
+
def currency=: (String) -> String
|
|
18
|
+
|
|
19
|
+
attr_accessor description: String?
|
|
20
|
+
|
|
21
|
+
attr_reader payment_method: String?
|
|
22
|
+
|
|
23
|
+
def payment_method=: (String) -> String
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
connector_name: String,
|
|
27
|
+
?currency: String,
|
|
28
|
+
?description: String?,
|
|
29
|
+
?payment_method: String
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
connector_name: String,
|
|
34
|
+
currency: String,
|
|
35
|
+
description: String?,
|
|
36
|
+
payment_method: String
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -5,9 +5,11 @@ 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],
|
|
12
|
+
pay: Telnyx::AI::PayToolParams,
|
|
11
13
|
retrieval: ::Hash[Symbol, top],
|
|
12
14
|
timeout_ms: Integer,
|
|
13
15
|
webhook: ::Hash[Symbol, top]
|
|
@@ -22,6 +24,10 @@ module Telnyx
|
|
|
22
24
|
|
|
23
25
|
attr_accessor type: String
|
|
24
26
|
|
|
27
|
+
attr_reader client_side_tool: ::Hash[Symbol, top]?
|
|
28
|
+
|
|
29
|
+
def client_side_tool=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
30
|
+
|
|
25
31
|
attr_reader function: ::Hash[Symbol, top]?
|
|
26
32
|
|
|
27
33
|
def function=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
@@ -34,6 +40,10 @@ module Telnyx
|
|
|
34
40
|
|
|
35
41
|
def invite=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
36
42
|
|
|
43
|
+
attr_reader pay: Telnyx::AI::PayToolParams?
|
|
44
|
+
|
|
45
|
+
def pay=: (Telnyx::AI::PayToolParams) -> Telnyx::AI::PayToolParams
|
|
46
|
+
|
|
37
47
|
attr_reader retrieval: ::Hash[Symbol, top]?
|
|
38
48
|
|
|
39
49
|
def retrieval=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
@@ -49,9 +59,11 @@ module Telnyx
|
|
|
49
59
|
def initialize: (
|
|
50
60
|
display_name: String,
|
|
51
61
|
type: String,
|
|
62
|
+
?client_side_tool: ::Hash[Symbol, top],
|
|
52
63
|
?function: ::Hash[Symbol, top],
|
|
53
64
|
?handoff: ::Hash[Symbol, top],
|
|
54
65
|
?invite: ::Hash[Symbol, top],
|
|
66
|
+
?pay: Telnyx::AI::PayToolParams,
|
|
55
67
|
?retrieval: ::Hash[Symbol, top],
|
|
56
68
|
?timeout_ms: Integer,
|
|
57
69
|
?webhook: ::Hash[Symbol, top],
|
|
@@ -61,9 +73,11 @@ module Telnyx
|
|
|
61
73
|
def to_hash: -> {
|
|
62
74
|
display_name: String,
|
|
63
75
|
type: String,
|
|
76
|
+
client_side_tool: ::Hash[Symbol, top],
|
|
64
77
|
function: ::Hash[Symbol, top],
|
|
65
78
|
handoff: ::Hash[Symbol, top],
|
|
66
79
|
invite: ::Hash[Symbol, top],
|
|
80
|
+
pay: Telnyx::AI::PayToolParams,
|
|
67
81
|
retrieval: ::Hash[Symbol, top],
|
|
68
82
|
timeout_ms: Integer,
|
|
69
83
|
webhook: ::Hash[Symbol, top],
|
|
@@ -4,10 +4,12 @@ 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],
|
|
10
11
|
invite: ::Hash[Symbol, top],
|
|
12
|
+
pay: Telnyx::AI::PayToolParams,
|
|
11
13
|
retrieval: ::Hash[Symbol, top],
|
|
12
14
|
timeout_ms: Integer,
|
|
13
15
|
type: String,
|
|
@@ -21,6 +23,10 @@ module Telnyx
|
|
|
21
23
|
|
|
22
24
|
attr_accessor tool_id: String
|
|
23
25
|
|
|
26
|
+
attr_reader client_side_tool: ::Hash[Symbol, top]?
|
|
27
|
+
|
|
28
|
+
def client_side_tool=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
29
|
+
|
|
24
30
|
attr_reader display_name: String?
|
|
25
31
|
|
|
26
32
|
def display_name=: (String) -> String
|
|
@@ -37,6 +43,10 @@ module Telnyx
|
|
|
37
43
|
|
|
38
44
|
def invite=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
39
45
|
|
|
46
|
+
attr_reader pay: Telnyx::AI::PayToolParams?
|
|
47
|
+
|
|
48
|
+
def pay=: (Telnyx::AI::PayToolParams) -> Telnyx::AI::PayToolParams
|
|
49
|
+
|
|
40
50
|
attr_reader retrieval: ::Hash[Symbol, top]?
|
|
41
51
|
|
|
42
52
|
def retrieval=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
@@ -55,10 +65,12 @@ module Telnyx
|
|
|
55
65
|
|
|
56
66
|
def initialize: (
|
|
57
67
|
tool_id: String,
|
|
68
|
+
?client_side_tool: ::Hash[Symbol, top],
|
|
58
69
|
?display_name: String,
|
|
59
70
|
?function: ::Hash[Symbol, top],
|
|
60
71
|
?handoff: ::Hash[Symbol, top],
|
|
61
72
|
?invite: ::Hash[Symbol, top],
|
|
73
|
+
?pay: Telnyx::AI::PayToolParams,
|
|
62
74
|
?retrieval: ::Hash[Symbol, top],
|
|
63
75
|
?timeout_ms: Integer,
|
|
64
76
|
?type: String,
|
|
@@ -68,10 +80,12 @@ module Telnyx
|
|
|
68
80
|
|
|
69
81
|
def to_hash: -> {
|
|
70
82
|
tool_id: String,
|
|
83
|
+
client_side_tool: ::Hash[Symbol, top],
|
|
71
84
|
display_name: String,
|
|
72
85
|
function: ::Hash[Symbol, top],
|
|
73
86
|
handoff: ::Hash[Symbol, top],
|
|
74
87
|
invite: ::Hash[Symbol, top],
|
|
88
|
+
pay: Telnyx::AI::PayToolParams,
|
|
75
89
|
retrieval: ::Hash[Symbol, top],
|
|
76
90
|
timeout_ms: Integer,
|
|
77
91
|
type: String,
|
|
@@ -59,7 +59,7 @@ module Telnyx
|
|
|
59
59
|
| :"assemblyai/universal-streaming"
|
|
60
60
|
| :"xai/grok-stt"
|
|
61
61
|
| :"soniox/stt-rt-v4"
|
|
62
|
-
| :"parakeet
|
|
62
|
+
| :"nvidia/parakeet-v3"
|
|
63
63
|
| :"distil-whisper/distil-large-v2"
|
|
64
64
|
| :"openai/whisper-large-v3-turbo"
|
|
65
65
|
|
|
@@ -73,7 +73,7 @@ module Telnyx
|
|
|
73
73
|
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
74
74
|
XAI_GROK_STT: :"xai/grok-stt"
|
|
75
75
|
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
76
|
-
|
|
76
|
+
NVIDIA_PARAKEET_V3: :"nvidia/parakeet-v3"
|
|
77
77
|
DISTIL_WHISPER_DISTIL_LARGE_V2: :"distil-whisper/distil-large-v2"
|
|
78
78
|
OPENAI_WHISPER_LARGE_V3_TURBO: :"openai/whisper-large-v3-turbo"
|
|
79
79
|
|
|
@@ -36,6 +36,7 @@ module Telnyx
|
|
|
36
36
|
record_timeout_secs: Integer,
|
|
37
37
|
record_track: Telnyx::Models::CallDialParams::record_track,
|
|
38
38
|
record_trim: Telnyx::Models::CallDialParams::record_trim,
|
|
39
|
+
retry_on_timeout: bool,
|
|
39
40
|
send_digits_on_answer: String,
|
|
40
41
|
send_silence_when_idle: bool,
|
|
41
42
|
sip_auth_password: String,
|
|
@@ -231,6 +232,10 @@ module Telnyx
|
|
|
231
232
|
Telnyx::Models::CallDialParams::record_trim
|
|
232
233
|
) -> Telnyx::Models::CallDialParams::record_trim
|
|
233
234
|
|
|
235
|
+
attr_reader retry_on_timeout: bool?
|
|
236
|
+
|
|
237
|
+
def retry_on_timeout=: (bool) -> bool
|
|
238
|
+
|
|
234
239
|
attr_reader send_digits_on_answer: String?
|
|
235
240
|
|
|
236
241
|
def send_digits_on_answer=: (String) -> String
|
|
@@ -408,6 +413,7 @@ module Telnyx
|
|
|
408
413
|
?record_timeout_secs: Integer,
|
|
409
414
|
?record_track: Telnyx::Models::CallDialParams::record_track,
|
|
410
415
|
?record_trim: Telnyx::Models::CallDialParams::record_trim,
|
|
416
|
+
?retry_on_timeout: bool,
|
|
411
417
|
?send_digits_on_answer: String,
|
|
412
418
|
?send_silence_when_idle: bool,
|
|
413
419
|
?sip_auth_password: String,
|
|
@@ -474,6 +480,7 @@ module Telnyx
|
|
|
474
480
|
record_timeout_secs: Integer,
|
|
475
481
|
record_track: Telnyx::Models::CallDialParams::record_track,
|
|
476
482
|
record_trim: Telnyx::Models::CallDialParams::record_trim,
|
|
483
|
+
retry_on_timeout: bool,
|
|
477
484
|
send_digits_on_answer: String,
|
|
478
485
|
send_silence_when_idle: bool,
|
|
479
486
|
sip_auth_password: String,
|
|
@@ -38,7 +38,7 @@ module Telnyx
|
|
|
38
38
|
| :"assemblyai/universal-streaming"
|
|
39
39
|
| :"xai/grok-stt"
|
|
40
40
|
| :"soniox/stt-rt-v4"
|
|
41
|
-
| :"parakeet
|
|
41
|
+
| :"nvidia/parakeet-v3"
|
|
42
42
|
| :"azure/fast"
|
|
43
43
|
| :"azure/realtime"
|
|
44
44
|
| :"google/latest_long"
|
|
@@ -57,7 +57,7 @@ module Telnyx
|
|
|
57
57
|
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
58
58
|
XAI_GROK_STT: :"xai/grok-stt"
|
|
59
59
|
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
60
|
-
|
|
60
|
+
NVIDIA_PARAKEET_V3: :"nvidia/parakeet-v3"
|
|
61
61
|
AZURE_FAST: :"azure/fast"
|
|
62
62
|
AZURE_REALTIME: :"azure/realtime"
|
|
63
63
|
GOOGLE_LATEST_LONG: :"google/latest_long"
|
|
@@ -47,12 +47,12 @@ module Telnyx
|
|
|
47
47
|
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineParakeetConfig::transcription_engine]
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
type transcription_model = :"parakeet
|
|
50
|
+
type transcription_model = :"nvidia/parakeet-v3"
|
|
51
51
|
|
|
52
52
|
module TranscriptionModel
|
|
53
53
|
extend Telnyx::Internal::Type::Enum
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
NVIDIA_PARAKEET_V3: :"nvidia/parakeet-v3"
|
|
56
56
|
|
|
57
57
|
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineParakeetConfig::transcription_model]
|
|
58
58
|
end
|
|
@@ -6,11 +6,14 @@ module Telnyx
|
|
|
6
6
|
action: Telnyx::Models::DocReqsRequirement::action,
|
|
7
7
|
country_code: String,
|
|
8
8
|
created_at: String,
|
|
9
|
+
effective_end_at: Time?,
|
|
10
|
+
effective_start_at: Time?,
|
|
9
11
|
locality: String,
|
|
10
12
|
phone_number_type: Telnyx::Models::DocReqsRequirement::phone_number_type,
|
|
11
13
|
record_type: String,
|
|
12
|
-
|
|
13
|
-
updated_at: String
|
|
14
|
+
requirement_types: ::Array[Telnyx::DocReqsRequirementType],
|
|
15
|
+
updated_at: String,
|
|
16
|
+
version: Integer
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
class DocReqsRequirement < Telnyx::Internal::Type::BaseModel
|
|
@@ -42,13 +45,17 @@ module Telnyx
|
|
|
42
45
|
|
|
43
46
|
def created_at=: (String) -> String
|
|
44
47
|
|
|
48
|
+
attr_accessor effective_end_at: Time?
|
|
49
|
+
|
|
50
|
+
attr_accessor effective_start_at: Time?
|
|
51
|
+
|
|
45
52
|
attr_reader record_type: String?
|
|
46
53
|
|
|
47
54
|
def record_type=: (String) -> String
|
|
48
55
|
|
|
49
|
-
attr_reader
|
|
56
|
+
attr_reader requirement_types: ::Array[Telnyx::DocReqsRequirementType]?
|
|
50
57
|
|
|
51
|
-
def
|
|
58
|
+
def requirement_types=: (
|
|
52
59
|
::Array[Telnyx::DocReqsRequirementType]
|
|
53
60
|
) -> ::Array[Telnyx::DocReqsRequirementType]
|
|
54
61
|
|
|
@@ -56,16 +63,23 @@ module Telnyx
|
|
|
56
63
|
|
|
57
64
|
def updated_at=: (String) -> String
|
|
58
65
|
|
|
66
|
+
attr_reader version: Integer?
|
|
67
|
+
|
|
68
|
+
def version=: (Integer) -> Integer
|
|
69
|
+
|
|
59
70
|
def initialize: (
|
|
60
71
|
?id: String,
|
|
61
72
|
?action: Telnyx::Models::DocReqsRequirement::action,
|
|
62
73
|
?country_code: String,
|
|
63
74
|
?created_at: String,
|
|
75
|
+
?effective_end_at: Time?,
|
|
76
|
+
?effective_start_at: Time?,
|
|
64
77
|
?locality: String,
|
|
65
78
|
?phone_number_type: Telnyx::Models::DocReqsRequirement::phone_number_type,
|
|
66
79
|
?record_type: String,
|
|
67
|
-
?
|
|
68
|
-
?updated_at: String
|
|
80
|
+
?requirement_types: ::Array[Telnyx::DocReqsRequirementType],
|
|
81
|
+
?updated_at: String,
|
|
82
|
+
?version: Integer
|
|
69
83
|
) -> void
|
|
70
84
|
|
|
71
85
|
def to_hash: -> {
|
|
@@ -73,11 +87,14 @@ module Telnyx
|
|
|
73
87
|
action: Telnyx::Models::DocReqsRequirement::action,
|
|
74
88
|
country_code: String,
|
|
75
89
|
created_at: String,
|
|
90
|
+
effective_end_at: Time?,
|
|
91
|
+
effective_start_at: Time?,
|
|
76
92
|
locality: String,
|
|
77
93
|
phone_number_type: Telnyx::Models::DocReqsRequirement::phone_number_type,
|
|
78
94
|
record_type: String,
|
|
79
|
-
|
|
80
|
-
updated_at: String
|
|
95
|
+
requirement_types: ::Array[Telnyx::DocReqsRequirementType],
|
|
96
|
+
updated_at: String,
|
|
97
|
+
version: Integer
|
|
81
98
|
}
|
|
82
99
|
|
|
83
100
|
type action = :both | :branded_calling | :ordering | :porting
|