telnyx 5.155.0 → 5.156.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -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/assistant_create_params.rb +2 -2
- data/lib/telnyx/models/ai/assistant_tool.rb +94 -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/inference_embedding.rb +6 -6
- data/lib/telnyx/models/ai/tool_create_params.rb +7 -1
- data/lib/telnyx/models/ai/tool_update_params.rb +7 -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/conferences/action_speak_params.rb +6 -0
- data/lib/telnyx/models/conversation_relay_embedded_config.rb +3 -0
- 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/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.rb +0 -6
- 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/tools.rb +5 -2
- data/lib/telnyx/resources/ai.rb +0 -57
- data/lib/telnyx/resources/messages.rb +1 -32
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +0 -7
- data/rbi/telnyx/client.rbi +1 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +221 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +6 -0
- data/rbi/telnyx/models/ai/tool_create_params.rbi +9 -0
- data/rbi/telnyx/models/ai/tool_update_params.rbi +9 -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/conferences/action_speak_params.rbi +12 -0
- data/rbi/telnyx/models/conversation_relay_embedded_config.rbi +6 -0
- 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/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.rbi +0 -7
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -0
- data/rbi/telnyx/resources/ai/chat.rbi +0 -129
- data/rbi/telnyx/resources/ai/tools.rbi +4 -0
- data/rbi/telnyx/resources/ai.rbi +0 -33
- data/rbi/telnyx/resources/calls/actions.rbi +21 -0
- data/rbi/telnyx/resources/conferences/actions.rbi +6 -0
- data/rbi/telnyx/resources/messages.rbi +1 -28
- data/rbi/telnyx/resources/text_to_speech.rbi +11 -9
- data/sig/telnyx/models/ai/assistant_tool.rbs +95 -0
- data/sig/telnyx/models/ai/tool_create_params.rbs +7 -0
- data/sig/telnyx/models/ai/tool_update_params.rbs +7 -0
- 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.rbs +0 -6
- data/sig/telnyx/resources/ai/chat.rbs +0 -30
- data/sig/telnyx/resources/ai/tools.rbs +2 -0
- data/sig/telnyx/resources/ai.rbs +0 -9
- data/sig/telnyx/resources/messages.rbs +0 -10
- metadata +2 -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
|
@@ -72,7 +72,9 @@ module Telnyx
|
|
|
72
72
|
rime: nil,
|
|
73
73
|
# Telnyx provider-specific parameters. Use `voice_speed` and `temperature` for
|
|
74
74
|
# `Natural` and `NaturalHD` models. For the `Ultra` model, use `voice_speed`,
|
|
75
|
-
# `volume`, and `emotion`.
|
|
75
|
+
# `volume`, and `emotion`. `Bayan` and `Sukhan` don't use `temperature`, `volume`,
|
|
76
|
+
# or `emotion`, and don't support `voice_speed`. `Sukhan`'s `response_format` is
|
|
77
|
+
# restricted to `mp3` or `pcm` (no `wav`).
|
|
76
78
|
telnyx: nil,
|
|
77
79
|
# The text to convert to speech.
|
|
78
80
|
text: nil,
|
|
@@ -80,10 +82,10 @@ module Telnyx
|
|
|
80
82
|
text_type: nil,
|
|
81
83
|
# Voice identifier in the format `provider.model_id.voice_id` or
|
|
82
84
|
# `provider.voice_id`. Examples: `telnyx.NaturalHD.Alloy`,
|
|
83
|
-
# `Telnyx.Ultra.<voice_id>`, `
|
|
84
|
-
# `aws.Polly.Generative.Lucia`. When
|
|
85
|
-
# `voice_id` are extracted automatically and
|
|
86
|
-
# parameters.
|
|
85
|
+
# `Telnyx.Ultra.<voice_id>`, `Telnyx.Bayan.Ahmed`, `Telnyx.Sukhan.urdu-professor`,
|
|
86
|
+
# `azure.en-US-AvaMultilingualNeural`, `aws.Polly.Generative.Lucia`. When
|
|
87
|
+
# provided, `provider`, `model_id`, and `voice_id` are extracted automatically and
|
|
88
|
+
# take precedence over individual parameters.
|
|
87
89
|
voice: nil,
|
|
88
90
|
# Provider-specific voice settings. Contents vary by provider — see
|
|
89
91
|
# provider-specific parameter objects below.
|
|
@@ -170,10 +172,10 @@ module Telnyx
|
|
|
170
172
|
socket_id: nil,
|
|
171
173
|
# Voice identifier in the format `provider.model_id.voice_id` or
|
|
172
174
|
# `provider.voice_id` (e.g. `telnyx.NaturalHD.Telnyx_Alloy`,
|
|
173
|
-
# `Telnyx.Ultra.<voice_id>`,
|
|
174
|
-
# provided, the `provider`,
|
|
175
|
-
# automatically. Takes precedence over
|
|
176
|
-
# parameters.
|
|
175
|
+
# `Telnyx.Ultra.<voice_id>`, `Telnyx.Bayan.Ahmed`, `Telnyx.Sukhan.urdu-professor`,
|
|
176
|
+
# or `azure.en-US-AvaMultilingualNeural`). When provided, the `provider`,
|
|
177
|
+
# `model_id`, and `voice_id` are extracted automatically. Takes precedence over
|
|
178
|
+
# individual `provider`/`model_id`/`voice_id` parameters.
|
|
177
179
|
voice: nil,
|
|
178
180
|
# Voice identifier for the chosen provider.
|
|
179
181
|
voice_id: nil,
|
|
@@ -3,6 +3,7 @@ module Telnyx
|
|
|
3
3
|
module AI
|
|
4
4
|
type assistant_tool =
|
|
5
5
|
Telnyx::AI::InferenceEmbeddingWebhookToolParams
|
|
6
|
+
| Telnyx::AI::AssistantTool::ClientSideTool
|
|
6
7
|
| Telnyx::AI::RetrievalTool
|
|
7
8
|
| Telnyx::AI::AssistantTool::Handoff
|
|
8
9
|
| Telnyx::AI::HangupTool
|
|
@@ -16,6 +17,100 @@ module Telnyx
|
|
|
16
17
|
module AssistantTool
|
|
17
18
|
extend Telnyx::Internal::Type::Union
|
|
18
19
|
|
|
20
|
+
type client_side_tool =
|
|
21
|
+
{
|
|
22
|
+
client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
|
|
23
|
+
type: :client_side_tool
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
class ClientSideTool < Telnyx::Internal::Type::BaseModel
|
|
27
|
+
attr_accessor client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool
|
|
28
|
+
|
|
29
|
+
attr_accessor type: :client_side_tool
|
|
30
|
+
|
|
31
|
+
def initialize: (
|
|
32
|
+
client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
|
|
33
|
+
?type: :client_side_tool
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
|
|
38
|
+
type: :client_side_tool
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type client_side_tool =
|
|
42
|
+
{
|
|
43
|
+
description: String,
|
|
44
|
+
name: String,
|
|
45
|
+
parameters: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
class ClientSideTool < Telnyx::Internal::Type::BaseModel
|
|
49
|
+
attr_accessor description: String
|
|
50
|
+
|
|
51
|
+
attr_accessor name: String
|
|
52
|
+
|
|
53
|
+
attr_accessor parameters: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters
|
|
54
|
+
|
|
55
|
+
def initialize: (
|
|
56
|
+
description: String,
|
|
57
|
+
name: String,
|
|
58
|
+
parameters: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters
|
|
59
|
+
) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> {
|
|
62
|
+
description: String,
|
|
63
|
+
name: String,
|
|
64
|
+
parameters: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type parameters =
|
|
68
|
+
{
|
|
69
|
+
properties: ::Hash[Symbol, top],
|
|
70
|
+
required: ::Array[String],
|
|
71
|
+
type: Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
class Parameters < Telnyx::Internal::Type::BaseModel
|
|
75
|
+
attr_reader properties: ::Hash[Symbol, top]?
|
|
76
|
+
|
|
77
|
+
def properties=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
78
|
+
|
|
79
|
+
attr_reader required: ::Array[String]?
|
|
80
|
+
|
|
81
|
+
def required=: (::Array[String]) -> ::Array[String]
|
|
82
|
+
|
|
83
|
+
attr_reader type: Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_?
|
|
84
|
+
|
|
85
|
+
def type=: (
|
|
86
|
+
Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
|
|
87
|
+
) -> Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
|
|
88
|
+
|
|
89
|
+
def initialize: (
|
|
90
|
+
?properties: ::Hash[Symbol, top],
|
|
91
|
+
?required: ::Array[String],
|
|
92
|
+
?type: Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
|
|
93
|
+
) -> void
|
|
94
|
+
|
|
95
|
+
def to_hash: -> {
|
|
96
|
+
properties: ::Hash[Symbol, top],
|
|
97
|
+
required: ::Array[String],
|
|
98
|
+
type: Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
type type_ = :object
|
|
102
|
+
|
|
103
|
+
module Type
|
|
104
|
+
extend Telnyx::Internal::Type::Enum
|
|
105
|
+
|
|
106
|
+
OBJECT: :object
|
|
107
|
+
|
|
108
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::ClientSideTool::ClientSideTool::Parameters::type_]
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
19
114
|
type handoff =
|
|
20
115
|
{
|
|
21
116
|
handoff: Telnyx::AI::AssistantTool::Handoff::Handoff,
|
|
@@ -5,6 +5,7 @@ module Telnyx
|
|
|
5
5
|
{
|
|
6
6
|
display_name: String,
|
|
7
7
|
type: String,
|
|
8
|
+
client_side_tool: ::Hash[Symbol, top],
|
|
8
9
|
function: ::Hash[Symbol, top],
|
|
9
10
|
handoff: ::Hash[Symbol, top],
|
|
10
11
|
invite: ::Hash[Symbol, top],
|
|
@@ -22,6 +23,10 @@ module Telnyx
|
|
|
22
23
|
|
|
23
24
|
attr_accessor type: String
|
|
24
25
|
|
|
26
|
+
attr_reader client_side_tool: ::Hash[Symbol, top]?
|
|
27
|
+
|
|
28
|
+
def client_side_tool=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
29
|
+
|
|
25
30
|
attr_reader function: ::Hash[Symbol, top]?
|
|
26
31
|
|
|
27
32
|
def function=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
@@ -49,6 +54,7 @@ module Telnyx
|
|
|
49
54
|
def initialize: (
|
|
50
55
|
display_name: String,
|
|
51
56
|
type: String,
|
|
57
|
+
?client_side_tool: ::Hash[Symbol, top],
|
|
52
58
|
?function: ::Hash[Symbol, top],
|
|
53
59
|
?handoff: ::Hash[Symbol, top],
|
|
54
60
|
?invite: ::Hash[Symbol, top],
|
|
@@ -61,6 +67,7 @@ module Telnyx
|
|
|
61
67
|
def to_hash: -> {
|
|
62
68
|
display_name: String,
|
|
63
69
|
type: String,
|
|
70
|
+
client_side_tool: ::Hash[Symbol, top],
|
|
64
71
|
function: ::Hash[Symbol, top],
|
|
65
72
|
handoff: ::Hash[Symbol, top],
|
|
66
73
|
invite: ::Hash[Symbol, top],
|
|
@@ -4,6 +4,7 @@ module Telnyx
|
|
|
4
4
|
type tool_update_params =
|
|
5
5
|
{
|
|
6
6
|
tool_id: String,
|
|
7
|
+
client_side_tool: ::Hash[Symbol, top],
|
|
7
8
|
display_name: String,
|
|
8
9
|
function: ::Hash[Symbol, top],
|
|
9
10
|
handoff: ::Hash[Symbol, top],
|
|
@@ -21,6 +22,10 @@ module Telnyx
|
|
|
21
22
|
|
|
22
23
|
attr_accessor tool_id: String
|
|
23
24
|
|
|
25
|
+
attr_reader client_side_tool: ::Hash[Symbol, top]?
|
|
26
|
+
|
|
27
|
+
def client_side_tool=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
28
|
+
|
|
24
29
|
attr_reader display_name: String?
|
|
25
30
|
|
|
26
31
|
def display_name=: (String) -> String
|
|
@@ -55,6 +60,7 @@ module Telnyx
|
|
|
55
60
|
|
|
56
61
|
def initialize: (
|
|
57
62
|
tool_id: String,
|
|
63
|
+
?client_side_tool: ::Hash[Symbol, top],
|
|
58
64
|
?display_name: String,
|
|
59
65
|
?function: ::Hash[Symbol, top],
|
|
60
66
|
?handoff: ::Hash[Symbol, top],
|
|
@@ -68,6 +74,7 @@ module Telnyx
|
|
|
68
74
|
|
|
69
75
|
def to_hash: -> {
|
|
70
76
|
tool_id: String,
|
|
77
|
+
client_side_tool: ::Hash[Symbol, top],
|
|
71
78
|
display_name: String,
|
|
72
79
|
function: ::Hash[Symbol, top],
|
|
73
80
|
handoff: ::Hash[Symbol, top],
|
|
@@ -19,6 +19,7 @@ module Telnyx
|
|
|
19
19
|
type data =
|
|
20
20
|
{
|
|
21
21
|
id: String,
|
|
22
|
+
activated_at: Time?,
|
|
22
23
|
billing_group_id: String,
|
|
23
24
|
call_forwarding_enabled: bool,
|
|
24
25
|
call_recording_enabled: bool,
|
|
@@ -78,6 +79,8 @@ module Telnyx
|
|
|
78
79
|
|
|
79
80
|
def id=: (String) -> String
|
|
80
81
|
|
|
82
|
+
attr_accessor activated_at: Time?
|
|
83
|
+
|
|
81
84
|
attr_reader call_forwarding_enabled: bool?
|
|
82
85
|
|
|
83
86
|
def call_forwarding_enabled=: (bool) -> bool
|
|
@@ -152,6 +155,7 @@ module Telnyx
|
|
|
152
155
|
|
|
153
156
|
def initialize: (
|
|
154
157
|
?id: String,
|
|
158
|
+
?activated_at: Time?,
|
|
155
159
|
?billing_group_id: String,
|
|
156
160
|
?call_forwarding_enabled: bool,
|
|
157
161
|
?call_recording_enabled: bool,
|
|
@@ -180,6 +184,7 @@ module Telnyx
|
|
|
180
184
|
|
|
181
185
|
def to_hash: -> {
|
|
182
186
|
id: String,
|
|
187
|
+
activated_at: Time?,
|
|
183
188
|
billing_group_id: String,
|
|
184
189
|
call_forwarding_enabled: bool,
|
|
185
190
|
call_recording_enabled: bool,
|
|
@@ -13,6 +13,7 @@ module Telnyx
|
|
|
13
13
|
record_type: String,
|
|
14
14
|
status: Telnyx::Models::PhoneNumberDetailed::status,
|
|
15
15
|
tags: ::Array[String],
|
|
16
|
+
activated_at: Time?,
|
|
16
17
|
billing_group_id: String?,
|
|
17
18
|
call_forwarding_enabled: bool,
|
|
18
19
|
call_recording_enabled: bool,
|
|
@@ -78,6 +79,8 @@ module Telnyx
|
|
|
78
79
|
|
|
79
80
|
attr_accessor status: Telnyx::Models::PhoneNumberDetailed::status
|
|
80
81
|
|
|
82
|
+
attr_accessor activated_at: Time?
|
|
83
|
+
|
|
81
84
|
attr_reader call_forwarding_enabled: bool?
|
|
82
85
|
|
|
83
86
|
def call_forwarding_enabled=: (bool) -> bool
|
|
@@ -128,6 +131,7 @@ module Telnyx
|
|
|
128
131
|
record_type: String,
|
|
129
132
|
status: Telnyx::Models::PhoneNumberDetailed::status,
|
|
130
133
|
tags: ::Array[String],
|
|
134
|
+
?activated_at: Time?,
|
|
131
135
|
?billing_group_id: String?,
|
|
132
136
|
?call_forwarding_enabled: bool,
|
|
133
137
|
?call_recording_enabled: bool,
|
|
@@ -160,6 +164,7 @@ module Telnyx
|
|
|
160
164
|
record_type: String,
|
|
161
165
|
status: Telnyx::Models::PhoneNumberDetailed::status,
|
|
162
166
|
tags: ::Array[String],
|
|
167
|
+
activated_at: Time?,
|
|
163
168
|
billing_group_id: String?,
|
|
164
169
|
call_forwarding_enabled: bool,
|
|
165
170
|
call_recording_enabled: bool,
|
|
@@ -3,6 +3,7 @@ module Telnyx
|
|
|
3
3
|
type phone_number_slim_list_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
activated_at: Time?,
|
|
6
7
|
billing_group_id: String,
|
|
7
8
|
call_forwarding_enabled: bool,
|
|
8
9
|
call_recording_enabled: bool,
|
|
@@ -60,6 +61,8 @@ module Telnyx
|
|
|
60
61
|
|
|
61
62
|
def id=: (String) -> String
|
|
62
63
|
|
|
64
|
+
attr_accessor activated_at: Time?
|
|
65
|
+
|
|
63
66
|
attr_reader call_forwarding_enabled: bool?
|
|
64
67
|
|
|
65
68
|
def call_forwarding_enabled=: (bool) -> bool
|
|
@@ -130,6 +133,7 @@ module Telnyx
|
|
|
130
133
|
|
|
131
134
|
def initialize: (
|
|
132
135
|
?id: String,
|
|
136
|
+
?activated_at: Time?,
|
|
133
137
|
?billing_group_id: String,
|
|
134
138
|
?call_forwarding_enabled: bool,
|
|
135
139
|
?call_recording_enabled: bool,
|
|
@@ -156,6 +160,7 @@ module Telnyx
|
|
|
156
160
|
|
|
157
161
|
def to_hash: -> {
|
|
158
162
|
id: String,
|
|
163
|
+
activated_at: Time?,
|
|
159
164
|
billing_group_id: String,
|
|
160
165
|
call_forwarding_enabled: bool,
|
|
161
166
|
call_recording_enabled: bool,
|
data/sig/telnyx/models.rbs
CHANGED
|
@@ -45,12 +45,8 @@ module Telnyx
|
|
|
45
45
|
|
|
46
46
|
module AI = Telnyx::Models::AI
|
|
47
47
|
|
|
48
|
-
class AICreateResponseDeprecatedParams = Telnyx::Models::AICreateResponseDeprecatedParams
|
|
49
|
-
|
|
50
48
|
class AIRetrieveConversationHistoriesParams = Telnyx::Models::AIRetrieveConversationHistoriesParams
|
|
51
49
|
|
|
52
|
-
class AIRetrieveModelsParams = Telnyx::Models::AIRetrieveModelsParams
|
|
53
|
-
|
|
54
50
|
class AISummarizeParams = Telnyx::Models::AISummarizeParams
|
|
55
51
|
|
|
56
52
|
class AlphanumericSenderID = Telnyx::Models::AlphanumericSenderID
|
|
@@ -881,8 +877,6 @@ module Telnyx
|
|
|
881
877
|
|
|
882
878
|
class MessageSendShortCodeParams = Telnyx::Models::MessageSendShortCodeParams
|
|
883
879
|
|
|
884
|
-
class MessageSendWhatsappParams = Telnyx::Models::MessageSendWhatsappParams
|
|
885
|
-
|
|
886
880
|
class MessageSendWithAlphanumericSenderParams = Telnyx::Models::MessageSendWithAlphanumericSenderParams
|
|
887
881
|
|
|
888
882
|
class MessageTemplate = Telnyx::Models::MessageTemplate
|
|
@@ -2,36 +2,6 @@ module Telnyx
|
|
|
2
2
|
module Resources
|
|
3
3
|
class AI
|
|
4
4
|
class Chat
|
|
5
|
-
def create_completion: (
|
|
6
|
-
messages: ::Array[Telnyx::AI::ChatCompletionRequest::Message],
|
|
7
|
-
?api_key_ref: String,
|
|
8
|
-
?best_of: Integer,
|
|
9
|
-
?early_stopping: bool,
|
|
10
|
-
?enable_thinking: bool,
|
|
11
|
-
?frequency_penalty: Float,
|
|
12
|
-
?guided_choice: ::Array[String],
|
|
13
|
-
?guided_json: ::Hash[Symbol, top],
|
|
14
|
-
?guided_regex: String,
|
|
15
|
-
?length_penalty: Float,
|
|
16
|
-
?logprobs: bool,
|
|
17
|
-
?max_tokens: Integer,
|
|
18
|
-
?min_p: Float,
|
|
19
|
-
?model: String,
|
|
20
|
-
?n: Float,
|
|
21
|
-
?presence_penalty: Float,
|
|
22
|
-
?response_format: Telnyx::AI::ChatCompletionRequest::ResponseFormat,
|
|
23
|
-
?seed: Integer,
|
|
24
|
-
?stop: Telnyx::Models::AI::ChatCompletionRequest::stop,
|
|
25
|
-
?stream: bool,
|
|
26
|
-
?temperature: Float,
|
|
27
|
-
?tool_choice: Telnyx::Models::AI::ChatCompletionRequest::tool_choice,
|
|
28
|
-
?tools: ::Array[Telnyx::Models::AI::ChatCompletionRequest::tool],
|
|
29
|
-
?top_logprobs: Integer,
|
|
30
|
-
?top_p: Float,
|
|
31
|
-
?use_beam_search: bool,
|
|
32
|
-
?request_options: Telnyx::request_opts
|
|
33
|
-
) -> Telnyx::Models::AI::chat_create_completion_response
|
|
34
|
-
|
|
35
5
|
def initialize: (client: Telnyx::Client) -> void
|
|
36
6
|
end
|
|
37
7
|
end
|
|
@@ -5,6 +5,7 @@ module Telnyx
|
|
|
5
5
|
def create: (
|
|
6
6
|
display_name: String,
|
|
7
7
|
type: String,
|
|
8
|
+
?client_side_tool: ::Hash[Symbol, top],
|
|
8
9
|
?function: ::Hash[Symbol, top],
|
|
9
10
|
?handoff: ::Hash[Symbol, top],
|
|
10
11
|
?invite: ::Hash[Symbol, top],
|
|
@@ -21,6 +22,7 @@ module Telnyx
|
|
|
21
22
|
|
|
22
23
|
def update: (
|
|
23
24
|
String tool_id,
|
|
25
|
+
?client_side_tool: ::Hash[Symbol, top],
|
|
24
26
|
?display_name: String,
|
|
25
27
|
?function: ::Hash[Symbol, top],
|
|
26
28
|
?handoff: ::Hash[Symbol, top],
|
data/sig/telnyx/resources/ai.rbs
CHANGED
|
@@ -25,11 +25,6 @@ module Telnyx
|
|
|
25
25
|
|
|
26
26
|
attr_reader tools: Telnyx::Resources::AI::Tools
|
|
27
27
|
|
|
28
|
-
def create_response_deprecated: (
|
|
29
|
-
response_request: ::Hash[Symbol, top],
|
|
30
|
-
?request_options: Telnyx::request_opts
|
|
31
|
-
) -> Telnyx::Models::ai_create_response_deprecated_response
|
|
32
|
-
|
|
33
28
|
def retrieve_conversation_histories: (
|
|
34
29
|
q: String,
|
|
35
30
|
?filter_ingested_at_gte: Time,
|
|
@@ -47,10 +42,6 @@ module Telnyx
|
|
|
47
42
|
?request_options: Telnyx::request_opts
|
|
48
43
|
) -> Telnyx::Models::AIRetrieveConversationHistoriesResponse
|
|
49
44
|
|
|
50
|
-
def retrieve_models: (
|
|
51
|
-
?request_options: Telnyx::request_opts
|
|
52
|
-
) -> Telnyx::ModelsResponse
|
|
53
|
-
|
|
54
45
|
def summarize: (
|
|
55
46
|
bucket: String,
|
|
56
47
|
filename: String,
|
|
@@ -108,16 +108,6 @@ module Telnyx
|
|
|
108
108
|
?request_options: Telnyx::request_opts
|
|
109
109
|
) -> Telnyx::Models::MessageSendShortCodeResponse
|
|
110
110
|
|
|
111
|
-
def send_whatsapp: (
|
|
112
|
-
from: String,
|
|
113
|
-
to: String,
|
|
114
|
-
whatsapp_message: Telnyx::WhatsappMessageContent,
|
|
115
|
-
?messaging_profile_id: String,
|
|
116
|
-
?type: Telnyx::Models::MessageSendWhatsappParams::type_,
|
|
117
|
-
?webhook_url: String,
|
|
118
|
-
?request_options: Telnyx::request_opts
|
|
119
|
-
) -> Telnyx::Models::MessageSendWhatsappResponse
|
|
120
|
-
|
|
121
111
|
def send_with_alphanumeric_sender: (
|
|
122
112
|
from: String,
|
|
123
113
|
messaging_profile_id: String,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: telnyx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.156.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Telnyx
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -240,8 +240,6 @@ files:
|
|
|
240
240
|
- lib/telnyx/models/ai/boolean_op_expression.rb
|
|
241
241
|
- lib/telnyx/models/ai/bucket_ids.rb
|
|
242
242
|
- lib/telnyx/models/ai/chat_completion_request.rb
|
|
243
|
-
- lib/telnyx/models/ai/chat_create_completion_params.rb
|
|
244
|
-
- lib/telnyx/models/ai/chat_create_completion_response.rb
|
|
245
243
|
- lib/telnyx/models/ai/cluster_compute_params.rb
|
|
246
244
|
- lib/telnyx/models/ai/cluster_compute_response.rb
|
|
247
245
|
- lib/telnyx/models/ai/cluster_delete_params.rb
|
|
@@ -442,11 +440,8 @@ files:
|
|
|
442
440
|
- lib/telnyx/models/ai/voice_settings.rb
|
|
443
441
|
- lib/telnyx/models/ai/webhook_tool.rb
|
|
444
442
|
- lib/telnyx/models/ai/widget_settings.rb
|
|
445
|
-
- lib/telnyx/models/ai_create_response_deprecated_params.rb
|
|
446
|
-
- lib/telnyx/models/ai_create_response_deprecated_response.rb
|
|
447
443
|
- lib/telnyx/models/ai_retrieve_conversation_histories_params.rb
|
|
448
444
|
- lib/telnyx/models/ai_retrieve_conversation_histories_response.rb
|
|
449
|
-
- lib/telnyx/models/ai_retrieve_models_params.rb
|
|
450
445
|
- lib/telnyx/models/ai_summarize_params.rb
|
|
451
446
|
- lib/telnyx/models/ai_summarize_response.rb
|
|
452
447
|
- lib/telnyx/models/alphanumeric_sender_id.rb
|
|
@@ -1316,8 +1311,6 @@ files:
|
|
|
1316
1311
|
- lib/telnyx/models/message_send_response.rb
|
|
1317
1312
|
- lib/telnyx/models/message_send_short_code_params.rb
|
|
1318
1313
|
- lib/telnyx/models/message_send_short_code_response.rb
|
|
1319
|
-
- lib/telnyx/models/message_send_whatsapp_params.rb
|
|
1320
|
-
- lib/telnyx/models/message_send_whatsapp_response.rb
|
|
1321
1314
|
- lib/telnyx/models/message_send_with_alphanumeric_sender_params.rb
|
|
1322
1315
|
- lib/telnyx/models/message_send_with_alphanumeric_sender_response.rb
|
|
1323
1316
|
- lib/telnyx/models/message_template.rb
|
|
@@ -3115,8 +3108,6 @@ files:
|
|
|
3115
3108
|
- rbi/telnyx/models/ai/boolean_op_expression.rbi
|
|
3116
3109
|
- rbi/telnyx/models/ai/bucket_ids.rbi
|
|
3117
3110
|
- rbi/telnyx/models/ai/chat_completion_request.rbi
|
|
3118
|
-
- rbi/telnyx/models/ai/chat_create_completion_params.rbi
|
|
3119
|
-
- rbi/telnyx/models/ai/chat_create_completion_response.rbi
|
|
3120
3111
|
- rbi/telnyx/models/ai/cluster_compute_params.rbi
|
|
3121
3112
|
- rbi/telnyx/models/ai/cluster_compute_response.rbi
|
|
3122
3113
|
- rbi/telnyx/models/ai/cluster_delete_params.rbi
|
|
@@ -3317,11 +3308,8 @@ files:
|
|
|
3317
3308
|
- rbi/telnyx/models/ai/voice_settings.rbi
|
|
3318
3309
|
- rbi/telnyx/models/ai/webhook_tool.rbi
|
|
3319
3310
|
- rbi/telnyx/models/ai/widget_settings.rbi
|
|
3320
|
-
- rbi/telnyx/models/ai_create_response_deprecated_params.rbi
|
|
3321
|
-
- rbi/telnyx/models/ai_create_response_deprecated_response.rbi
|
|
3322
3311
|
- rbi/telnyx/models/ai_retrieve_conversation_histories_params.rbi
|
|
3323
3312
|
- rbi/telnyx/models/ai_retrieve_conversation_histories_response.rbi
|
|
3324
|
-
- rbi/telnyx/models/ai_retrieve_models_params.rbi
|
|
3325
3313
|
- rbi/telnyx/models/ai_summarize_params.rbi
|
|
3326
3314
|
- rbi/telnyx/models/ai_summarize_response.rbi
|
|
3327
3315
|
- rbi/telnyx/models/alphanumeric_sender_id.rbi
|
|
@@ -4191,8 +4179,6 @@ files:
|
|
|
4191
4179
|
- rbi/telnyx/models/message_send_response.rbi
|
|
4192
4180
|
- rbi/telnyx/models/message_send_short_code_params.rbi
|
|
4193
4181
|
- rbi/telnyx/models/message_send_short_code_response.rbi
|
|
4194
|
-
- rbi/telnyx/models/message_send_whatsapp_params.rbi
|
|
4195
|
-
- rbi/telnyx/models/message_send_whatsapp_response.rbi
|
|
4196
4182
|
- rbi/telnyx/models/message_send_with_alphanumeric_sender_params.rbi
|
|
4197
4183
|
- rbi/telnyx/models/message_send_with_alphanumeric_sender_response.rbi
|
|
4198
4184
|
- rbi/telnyx/models/message_template.rbi
|
|
@@ -5981,8 +5967,6 @@ files:
|
|
|
5981
5967
|
- sig/telnyx/models/ai/boolean_op_expression.rbs
|
|
5982
5968
|
- sig/telnyx/models/ai/bucket_ids.rbs
|
|
5983
5969
|
- sig/telnyx/models/ai/chat_completion_request.rbs
|
|
5984
|
-
- sig/telnyx/models/ai/chat_create_completion_params.rbs
|
|
5985
|
-
- sig/telnyx/models/ai/chat_create_completion_response.rbs
|
|
5986
5970
|
- sig/telnyx/models/ai/cluster_compute_params.rbs
|
|
5987
5971
|
- sig/telnyx/models/ai/cluster_compute_response.rbs
|
|
5988
5972
|
- sig/telnyx/models/ai/cluster_delete_params.rbs
|
|
@@ -6183,11 +6167,8 @@ files:
|
|
|
6183
6167
|
- sig/telnyx/models/ai/voice_settings.rbs
|
|
6184
6168
|
- sig/telnyx/models/ai/webhook_tool.rbs
|
|
6185
6169
|
- sig/telnyx/models/ai/widget_settings.rbs
|
|
6186
|
-
- sig/telnyx/models/ai_create_response_deprecated_params.rbs
|
|
6187
|
-
- sig/telnyx/models/ai_create_response_deprecated_response.rbs
|
|
6188
6170
|
- sig/telnyx/models/ai_retrieve_conversation_histories_params.rbs
|
|
6189
6171
|
- sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs
|
|
6190
|
-
- sig/telnyx/models/ai_retrieve_models_params.rbs
|
|
6191
6172
|
- sig/telnyx/models/ai_summarize_params.rbs
|
|
6192
6173
|
- sig/telnyx/models/ai_summarize_response.rbs
|
|
6193
6174
|
- sig/telnyx/models/alphanumeric_sender_id.rbs
|
|
@@ -7057,8 +7038,6 @@ files:
|
|
|
7057
7038
|
- sig/telnyx/models/message_send_response.rbs
|
|
7058
7039
|
- sig/telnyx/models/message_send_short_code_params.rbs
|
|
7059
7040
|
- sig/telnyx/models/message_send_short_code_response.rbs
|
|
7060
|
-
- sig/telnyx/models/message_send_whatsapp_params.rbs
|
|
7061
|
-
- sig/telnyx/models/message_send_whatsapp_response.rbs
|
|
7062
7041
|
- sig/telnyx/models/message_send_with_alphanumeric_sender_params.rbs
|
|
7063
7042
|
- sig/telnyx/models/message_send_with_alphanumeric_sender_response.rbs
|
|
7064
7043
|
- sig/telnyx/models/message_template.rbs
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
# @see Telnyx::Resources::AI::Chat#create_completion
|
|
7
|
-
class ChatCreateCompletionParams < Telnyx::Models::AI::ChatCompletionRequest
|
|
8
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
# @!method initialize(request_options: {})
|
|
12
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
# @see Telnyx::Resources::AI#create_response_deprecated
|
|
6
|
-
class AICreateResponseDeprecatedParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute response_request
|
|
11
|
-
#
|
|
12
|
-
# @return [Hash{Symbol=>Object}]
|
|
13
|
-
required :response_request, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
14
|
-
|
|
15
|
-
# @!method initialize(response_request:, request_options: {})
|
|
16
|
-
# @param response_request [Hash{Symbol=>Object}]
|
|
17
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
# @see Telnyx::Resources::AI#retrieve_models
|
|
6
|
-
class AIRetrieveModelsParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!method initialize(request_options: {})
|
|
11
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|