telnyx 5.69.0 → 5.70.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 +24 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/util.rb +3 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +3 -42
- data/lib/telnyx/models/ai/assistant_update_params.rb +3 -42
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -43
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +3 -43
- data/lib/telnyx/models/ai/observability.rb +46 -0
- data/lib/telnyx/models/ai/observability_req.rb +46 -0
- data/lib/telnyx/models/call_dial_params.rb +24 -1
- data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
- data/lib/telnyx/models/enterprise_create_params.rb +1 -1
- data/lib/telnyx/models/enterprise_public.rb +1 -1
- data/lib/telnyx/models/enterprise_update_params.rb +1 -1
- data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
- data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
- data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
- data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +364 -71
- data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
- data/lib/telnyx/models/voice_clone_data.rb +51 -4
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/calls/actions.rb +3 -1
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
- data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
- data/lib/telnyx/resources/voice_clones.rb +7 -27
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +10 -8
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -123
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -123
- data/rbi/telnyx/models/ai/observability.rbi +90 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
- data/rbi/telnyx/models/call_dial_params.rbi +37 -0
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -0
- data/rbi/telnyx/models/enterprise_create_params.rbi +1 -1
- data/rbi/telnyx/models/enterprise_public.rbi +1 -1
- data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
- data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
- data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
- data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
- data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +711 -136
- data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
- data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
- data/rbi/telnyx/resources/calls/actions.rbi +5 -0
- data/rbi/telnyx/resources/calls.rbi +5 -0
- data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
- data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
- data/rbi/telnyx/resources/voice_clones.rbi +17 -41
- data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -59
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/ai/inference_embedding.rbs +6 -59
- data/sig/telnyx/models/ai/observability.rbs +58 -0
- data/sig/telnyx/models/ai/observability_req.rbs +58 -0
- data/sig/telnyx/models/call_dial_params.rbs +20 -0
- data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
- data/sig/telnyx/models/enterprise_create_params.rbs +1 -1
- data/sig/telnyx/models/enterprise_public.rbs +1 -1
- data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
- data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
- data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
- data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
- data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +269 -58
- data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
- data/sig/telnyx/models/voice_clone_data.rbs +43 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
- data/sig/telnyx/resources/ai/assistants.rbs +2 -2
- data/sig/telnyx/resources/calls/actions.rbs +1 -0
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
- data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
- data/sig/telnyx/resources/voice_clones.rbs +2 -12
- metadata +31 -25
|
@@ -53,6 +53,7 @@ module Telnyx
|
|
|
53
53
|
park_after_unbridge: String,
|
|
54
54
|
preferred_codecs: String,
|
|
55
55
|
prevent_double_bridge: T::Boolean,
|
|
56
|
+
privacy: Telnyx::CallDialParams::Privacy::OrSymbol,
|
|
56
57
|
record: Telnyx::CallDialParams::Record::OrSymbol,
|
|
57
58
|
record_channels: Telnyx::CallDialParams::RecordChannels::OrSymbol,
|
|
58
59
|
record_custom_file_name: String,
|
|
@@ -177,6 +178,10 @@ module Telnyx
|
|
|
177
178
|
# Prevents bridging and hangs up the call if the target is already bridged.
|
|
178
179
|
# Disabled by default.
|
|
179
180
|
prevent_double_bridge: nil,
|
|
181
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
182
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
183
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
184
|
+
privacy: nil,
|
|
180
185
|
# Start recording automatically after an event. Disabled by default.
|
|
181
186
|
record: nil,
|
|
182
187
|
# Defines which channel should be recorded ('single' or 'dual') when `record` is
|
|
@@ -7,39 +7,6 @@ module Telnyx
|
|
|
7
7
|
# Associate phone numbers with an enterprise for reputation monitoring and
|
|
8
8
|
# retrieve reputation scores
|
|
9
9
|
class Numbers
|
|
10
|
-
# Associate one or more phone numbers with an enterprise for Number Reputation
|
|
11
|
-
# monitoring.
|
|
12
|
-
#
|
|
13
|
-
# **Validations:**
|
|
14
|
-
#
|
|
15
|
-
# - Phone numbers must be in E.164 format (e.g., `+16035551234`)
|
|
16
|
-
# - Phone numbers must be in-service and belong to your account (verified via
|
|
17
|
-
# Warehouse)
|
|
18
|
-
# - Phone numbers must be US local numbers
|
|
19
|
-
# - Phone numbers cannot already be associated with any enterprise
|
|
20
|
-
#
|
|
21
|
-
# **Note:** This operation is atomic — if any number fails validation, the entire
|
|
22
|
-
# request fails.
|
|
23
|
-
#
|
|
24
|
-
# **Maximum:** 100 phone numbers per request.
|
|
25
|
-
sig do
|
|
26
|
-
params(
|
|
27
|
-
enterprise_id: String,
|
|
28
|
-
phone_numbers: T::Array[String],
|
|
29
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
30
|
-
).returns(
|
|
31
|
-
Telnyx::Models::Enterprises::Reputation::NumberCreateResponse
|
|
32
|
-
)
|
|
33
|
-
end
|
|
34
|
-
def create(
|
|
35
|
-
# Unique identifier of the enterprise (UUID)
|
|
36
|
-
enterprise_id,
|
|
37
|
-
# List of phone numbers to associate for reputation monitoring (max 100)
|
|
38
|
-
phone_numbers:,
|
|
39
|
-
request_options: {}
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
10
|
# Get detailed reputation data for a specific phone number associated with an
|
|
44
11
|
# enterprise.
|
|
45
12
|
#
|
|
@@ -111,6 +78,39 @@ module Telnyx
|
|
|
111
78
|
)
|
|
112
79
|
end
|
|
113
80
|
|
|
81
|
+
# Associate one or more phone numbers with an enterprise for Number Reputation
|
|
82
|
+
# monitoring.
|
|
83
|
+
#
|
|
84
|
+
# **Validations:**
|
|
85
|
+
#
|
|
86
|
+
# - Phone numbers must be in E.164 format (e.g., `+16035551234`)
|
|
87
|
+
# - Phone numbers must be in-service and belong to your account (verified via
|
|
88
|
+
# Warehouse)
|
|
89
|
+
# - Phone numbers must be US local numbers
|
|
90
|
+
# - Phone numbers cannot already be associated with any enterprise
|
|
91
|
+
#
|
|
92
|
+
# **Note:** This operation is atomic — if any number fails validation, the entire
|
|
93
|
+
# request fails.
|
|
94
|
+
#
|
|
95
|
+
# **Maximum:** 100 phone numbers per request.
|
|
96
|
+
sig do
|
|
97
|
+
params(
|
|
98
|
+
enterprise_id: String,
|
|
99
|
+
phone_numbers: T::Array[String],
|
|
100
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
101
|
+
).returns(
|
|
102
|
+
Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
def associate(
|
|
106
|
+
# Unique identifier of the enterprise (UUID)
|
|
107
|
+
enterprise_id,
|
|
108
|
+
# List of phone numbers to associate for reputation monitoring (max 100)
|
|
109
|
+
phone_numbers:,
|
|
110
|
+
request_options: {}
|
|
111
|
+
)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
114
|
# Remove a phone number from Number Reputation monitoring for an enterprise.
|
|
115
115
|
#
|
|
116
116
|
# The number will no longer be tracked and reputation data will no longer be
|
|
@@ -122,7 +122,7 @@ module Telnyx
|
|
|
122
122
|
request_options: Telnyx::RequestOptions::OrHash
|
|
123
123
|
).void
|
|
124
124
|
end
|
|
125
|
-
def
|
|
125
|
+
def disassociate(
|
|
126
126
|
# Phone number in E.164 format
|
|
127
127
|
phone_number,
|
|
128
128
|
# Unique identifier of the enterprise (UUID)
|
|
@@ -11,6 +11,47 @@ module Telnyx
|
|
|
11
11
|
sig { returns(Telnyx::Resources::Enterprises::Reputation::Numbers) }
|
|
12
12
|
attr_reader :numbers
|
|
13
13
|
|
|
14
|
+
# Retrieve the current Number Reputation settings for an enterprise.
|
|
15
|
+
#
|
|
16
|
+
# Returns the enrollment status (`pending`, `approved`, `rejected`, `deleted`),
|
|
17
|
+
# check frequency, and any rejection reasons.
|
|
18
|
+
#
|
|
19
|
+
# Returns `404` if reputation has not been enabled for this enterprise.
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
enterprise_id: String,
|
|
23
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
24
|
+
).returns(Telnyx::Models::Enterprises::ReputationRetrieveResponse)
|
|
25
|
+
end
|
|
26
|
+
def retrieve(
|
|
27
|
+
# Unique identifier of the enterprise (UUID)
|
|
28
|
+
enterprise_id,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Disable Number Reputation for an enterprise.
|
|
34
|
+
#
|
|
35
|
+
# This will:
|
|
36
|
+
#
|
|
37
|
+
# - Delete the reputation settings record
|
|
38
|
+
# - Log the deletion for audit purposes
|
|
39
|
+
# - Stop all future automated reputation checks
|
|
40
|
+
#
|
|
41
|
+
# **Note:** Can only be performed on `approved` reputation settings.
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
enterprise_id: String,
|
|
45
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
46
|
+
).void
|
|
47
|
+
end
|
|
48
|
+
def disable(
|
|
49
|
+
# Unique identifier of the enterprise (UUID)
|
|
50
|
+
enterprise_id,
|
|
51
|
+
request_options: {}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
14
55
|
# Enable Number Reputation service for an enterprise.
|
|
15
56
|
#
|
|
16
57
|
# **Requirements:**
|
|
@@ -41,11 +82,11 @@ module Telnyx
|
|
|
41
82
|
enterprise_id: String,
|
|
42
83
|
loa_document_id: String,
|
|
43
84
|
check_frequency:
|
|
44
|
-
Telnyx::Enterprises::
|
|
85
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::OrSymbol,
|
|
45
86
|
request_options: Telnyx::RequestOptions::OrHash
|
|
46
|
-
).returns(Telnyx::Models::Enterprises::
|
|
87
|
+
).returns(Telnyx::Models::Enterprises::ReputationEnableResponse)
|
|
47
88
|
end
|
|
48
|
-
def
|
|
89
|
+
def enable(
|
|
49
90
|
# Unique identifier of the enterprise (UUID)
|
|
50
91
|
enterprise_id,
|
|
51
92
|
# ID of the signed Letter of Authorization (LOA) document uploaded to the document
|
|
@@ -57,47 +98,6 @@ module Telnyx
|
|
|
57
98
|
)
|
|
58
99
|
end
|
|
59
100
|
|
|
60
|
-
# Retrieve the current Number Reputation settings for an enterprise.
|
|
61
|
-
#
|
|
62
|
-
# Returns the enrollment status (`pending`, `approved`, `rejected`, `deleted`),
|
|
63
|
-
# check frequency, and any rejection reasons.
|
|
64
|
-
#
|
|
65
|
-
# Returns `404` if reputation has not been enabled for this enterprise.
|
|
66
|
-
sig do
|
|
67
|
-
params(
|
|
68
|
-
enterprise_id: String,
|
|
69
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
70
|
-
).returns(Telnyx::Models::Enterprises::ReputationListResponse)
|
|
71
|
-
end
|
|
72
|
-
def list(
|
|
73
|
-
# Unique identifier of the enterprise (UUID)
|
|
74
|
-
enterprise_id,
|
|
75
|
-
request_options: {}
|
|
76
|
-
)
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
# Disable Number Reputation for an enterprise.
|
|
80
|
-
#
|
|
81
|
-
# This will:
|
|
82
|
-
#
|
|
83
|
-
# - Delete the reputation settings record
|
|
84
|
-
# - Log the deletion for audit purposes
|
|
85
|
-
# - Stop all future automated reputation checks
|
|
86
|
-
#
|
|
87
|
-
# **Note:** Can only be performed on `approved` reputation settings.
|
|
88
|
-
sig do
|
|
89
|
-
params(
|
|
90
|
-
enterprise_id: String,
|
|
91
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
92
|
-
).void
|
|
93
|
-
end
|
|
94
|
-
def delete_all(
|
|
95
|
-
# Unique identifier of the enterprise (UUID)
|
|
96
|
-
enterprise_id,
|
|
97
|
-
request_options: {}
|
|
98
|
-
)
|
|
99
|
-
end
|
|
100
|
-
|
|
101
101
|
# Update how often reputation data is automatically refreshed.
|
|
102
102
|
#
|
|
103
103
|
# **Note:** The enterprise must have `approved` reputation settings. Updating
|
|
@@ -9,25 +9,17 @@ module Telnyx
|
|
|
9
9
|
# design. The clone can then be used for text-to-speech synthesis.
|
|
10
10
|
sig do
|
|
11
11
|
params(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
body:
|
|
13
|
+
T.any(
|
|
14
|
+
Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::OrHash,
|
|
15
|
+
Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::OrHash
|
|
16
|
+
),
|
|
17
17
|
request_options: Telnyx::RequestOptions::OrHash
|
|
18
18
|
).returns(Telnyx::Models::VoiceCloneCreateResponse)
|
|
19
19
|
end
|
|
20
20
|
def create(
|
|
21
|
-
#
|
|
22
|
-
|
|
23
|
-
# ISO 639-1 language code for the clone (e.g. `en`, `fr`, `de`).
|
|
24
|
-
language:,
|
|
25
|
-
# Name for the voice clone.
|
|
26
|
-
name:,
|
|
27
|
-
# UUID of the source voice design to clone.
|
|
28
|
-
voice_design_id:,
|
|
29
|
-
# Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
|
|
30
|
-
provider: nil,
|
|
21
|
+
# Request body for creating a voice clone from an existing voice design.
|
|
22
|
+
body:,
|
|
31
23
|
request_options: {}
|
|
32
24
|
)
|
|
33
25
|
end
|
|
@@ -97,38 +89,22 @@ module Telnyx
|
|
|
97
89
|
|
|
98
90
|
# Creates a new voice clone by uploading an audio file directly. Supported
|
|
99
91
|
# formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
|
|
100
|
-
# clear speech. Maximum file size:
|
|
92
|
+
# clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
|
|
101
93
|
sig do
|
|
102
94
|
params(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
Telnyx::VoiceCloneCreateFromUploadParams::Provider::OrSymbol,
|
|
110
|
-
ref_text: String,
|
|
95
|
+
body:
|
|
96
|
+
T.any(
|
|
97
|
+
Telnyx::VoiceCloneCreateFromUploadParams::Body::TelnyxQwen3TtsClone::OrHash,
|
|
98
|
+
Telnyx::VoiceCloneCreateFromUploadParams::Body::TelnyxUltraClone::OrHash,
|
|
99
|
+
Telnyx::VoiceCloneCreateFromUploadParams::Body::MinimaxClone::OrHash
|
|
100
|
+
),
|
|
111
101
|
request_options: Telnyx::RequestOptions::OrHash
|
|
112
102
|
).returns(Telnyx::Models::VoiceCloneCreateFromUploadResponse)
|
|
113
103
|
end
|
|
114
104
|
def create_from_upload(
|
|
115
|
-
#
|
|
116
|
-
#
|
|
117
|
-
|
|
118
|
-
audio_file:,
|
|
119
|
-
# ISO 639-1 language code (e.g. `en`, `fr`) or `auto` for automatic detection.
|
|
120
|
-
language:,
|
|
121
|
-
# Name for the voice clone.
|
|
122
|
-
name:,
|
|
123
|
-
# Gender of the voice clone.
|
|
124
|
-
gender: nil,
|
|
125
|
-
# Optional custom label describing the voice style. If omitted, falls back to the
|
|
126
|
-
# source design's prompt text.
|
|
127
|
-
label: nil,
|
|
128
|
-
# Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
|
|
129
|
-
provider: nil,
|
|
130
|
-
# Optional transcript of the audio file. Providing this improves clone quality.
|
|
131
|
-
ref_text: nil,
|
|
105
|
+
# Multipart form data for creating a voice clone from a direct audio upload.
|
|
106
|
+
# Maximum file size: 5MB for Telnyx, 20MB for Minimax.
|
|
107
|
+
body:,
|
|
132
108
|
request_options: {}
|
|
133
109
|
)
|
|
134
110
|
end
|
|
@@ -14,7 +14,7 @@ module Telnyx
|
|
|
14
14
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
15
15
|
llm_api_key_ref: String,
|
|
16
16
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
17
|
-
observability_settings: Telnyx::AI::
|
|
17
|
+
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
18
18
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
19
19
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
20
20
|
tool_ids: ::Array[String],
|
|
@@ -73,11 +73,11 @@ module Telnyx
|
|
|
73
73
|
Telnyx::AI::MessagingSettings
|
|
74
74
|
) -> Telnyx::AI::MessagingSettings
|
|
75
75
|
|
|
76
|
-
attr_reader observability_settings: Telnyx::AI::
|
|
76
|
+
attr_reader observability_settings: Telnyx::AI::ObservabilityReq?
|
|
77
77
|
|
|
78
78
|
def observability_settings=: (
|
|
79
|
-
Telnyx::AI::
|
|
80
|
-
) -> Telnyx::AI::
|
|
79
|
+
Telnyx::AI::ObservabilityReq
|
|
80
|
+
) -> Telnyx::AI::ObservabilityReq
|
|
81
81
|
|
|
82
82
|
attr_reader privacy_settings: Telnyx::AI::PrivacySettings?
|
|
83
83
|
|
|
@@ -131,7 +131,7 @@ module Telnyx
|
|
|
131
131
|
?insight_settings: Telnyx::AI::InsightSettings,
|
|
132
132
|
?llm_api_key_ref: String,
|
|
133
133
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
134
|
-
?observability_settings: Telnyx::AI::
|
|
134
|
+
?observability_settings: Telnyx::AI::ObservabilityReq,
|
|
135
135
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
136
136
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
137
137
|
?tool_ids: ::Array[String],
|
|
@@ -154,7 +154,7 @@ module Telnyx
|
|
|
154
154
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
155
155
|
llm_api_key_ref: String,
|
|
156
156
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
157
|
-
observability_settings: Telnyx::AI::
|
|
157
|
+
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
158
158
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
159
159
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
160
160
|
tool_ids: ::Array[String],
|
|
@@ -164,59 +164,6 @@ module Telnyx
|
|
|
164
164
|
widget_settings: Telnyx::AI::WidgetSettings,
|
|
165
165
|
request_options: Telnyx::RequestOptions
|
|
166
166
|
}
|
|
167
|
-
|
|
168
|
-
type observability_settings =
|
|
169
|
-
{
|
|
170
|
-
host: String,
|
|
171
|
-
public_key_ref: String,
|
|
172
|
-
secret_key_ref: String,
|
|
173
|
-
status: Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::status
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
177
|
-
attr_reader host: String?
|
|
178
|
-
|
|
179
|
-
def host=: (String) -> String
|
|
180
|
-
|
|
181
|
-
attr_reader public_key_ref: String?
|
|
182
|
-
|
|
183
|
-
def public_key_ref=: (String) -> String
|
|
184
|
-
|
|
185
|
-
attr_reader secret_key_ref: String?
|
|
186
|
-
|
|
187
|
-
def secret_key_ref=: (String) -> String
|
|
188
|
-
|
|
189
|
-
attr_reader status: Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::status?
|
|
190
|
-
|
|
191
|
-
def status=: (
|
|
192
|
-
Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::status
|
|
193
|
-
) -> Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::status
|
|
194
|
-
|
|
195
|
-
def initialize: (
|
|
196
|
-
?host: String,
|
|
197
|
-
?public_key_ref: String,
|
|
198
|
-
?secret_key_ref: String,
|
|
199
|
-
?status: Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::status
|
|
200
|
-
) -> void
|
|
201
|
-
|
|
202
|
-
def to_hash: -> {
|
|
203
|
-
host: String,
|
|
204
|
-
public_key_ref: String,
|
|
205
|
-
secret_key_ref: String,
|
|
206
|
-
status: Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::status
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
type status = :enabled | :disabled
|
|
210
|
-
|
|
211
|
-
module Status
|
|
212
|
-
extend Telnyx::Internal::Type::Enum
|
|
213
|
-
|
|
214
|
-
ENABLED: :enabled
|
|
215
|
-
DISABLED: :disabled
|
|
216
|
-
|
|
217
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::status]
|
|
218
|
-
end
|
|
219
|
-
end
|
|
220
167
|
end
|
|
221
168
|
end
|
|
222
169
|
end
|
|
@@ -15,7 +15,7 @@ module Telnyx
|
|
|
15
15
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
16
16
|
model: String,
|
|
17
17
|
name: String,
|
|
18
|
-
observability_settings: Telnyx::AI::
|
|
18
|
+
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
19
19
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
20
20
|
promote_to_main: bool,
|
|
21
21
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
@@ -83,11 +83,11 @@ module Telnyx
|
|
|
83
83
|
|
|
84
84
|
def name=: (String) -> String
|
|
85
85
|
|
|
86
|
-
attr_reader observability_settings: Telnyx::AI::
|
|
86
|
+
attr_reader observability_settings: Telnyx::AI::ObservabilityReq?
|
|
87
87
|
|
|
88
88
|
def observability_settings=: (
|
|
89
|
-
Telnyx::AI::
|
|
90
|
-
) -> Telnyx::AI::
|
|
89
|
+
Telnyx::AI::ObservabilityReq
|
|
90
|
+
) -> Telnyx::AI::ObservabilityReq
|
|
91
91
|
|
|
92
92
|
attr_reader privacy_settings: Telnyx::AI::PrivacySettings?
|
|
93
93
|
|
|
@@ -146,7 +146,7 @@ module Telnyx
|
|
|
146
146
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
147
147
|
?model: String,
|
|
148
148
|
?name: String,
|
|
149
|
-
?observability_settings: Telnyx::AI::
|
|
149
|
+
?observability_settings: Telnyx::AI::ObservabilityReq,
|
|
150
150
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
151
151
|
?promote_to_main: bool,
|
|
152
152
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
@@ -171,7 +171,7 @@ module Telnyx
|
|
|
171
171
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
172
172
|
model: String,
|
|
173
173
|
name: String,
|
|
174
|
-
observability_settings: Telnyx::AI::
|
|
174
|
+
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
175
175
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
176
176
|
promote_to_main: bool,
|
|
177
177
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
@@ -182,59 +182,6 @@ module Telnyx
|
|
|
182
182
|
widget_settings: Telnyx::AI::WidgetSettings,
|
|
183
183
|
request_options: Telnyx::RequestOptions
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
type observability_settings =
|
|
187
|
-
{
|
|
188
|
-
host: String,
|
|
189
|
-
public_key_ref: String,
|
|
190
|
-
secret_key_ref: String,
|
|
191
|
-
status: Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::status
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
195
|
-
attr_reader host: String?
|
|
196
|
-
|
|
197
|
-
def host=: (String) -> String
|
|
198
|
-
|
|
199
|
-
attr_reader public_key_ref: String?
|
|
200
|
-
|
|
201
|
-
def public_key_ref=: (String) -> String
|
|
202
|
-
|
|
203
|
-
attr_reader secret_key_ref: String?
|
|
204
|
-
|
|
205
|
-
def secret_key_ref=: (String) -> String
|
|
206
|
-
|
|
207
|
-
attr_reader status: Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::status?
|
|
208
|
-
|
|
209
|
-
def status=: (
|
|
210
|
-
Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::status
|
|
211
|
-
) -> Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::status
|
|
212
|
-
|
|
213
|
-
def initialize: (
|
|
214
|
-
?host: String,
|
|
215
|
-
?public_key_ref: String,
|
|
216
|
-
?secret_key_ref: String,
|
|
217
|
-
?status: Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::status
|
|
218
|
-
) -> void
|
|
219
|
-
|
|
220
|
-
def to_hash: -> {
|
|
221
|
-
host: String,
|
|
222
|
-
public_key_ref: String,
|
|
223
|
-
secret_key_ref: String,
|
|
224
|
-
status: Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::status
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
type status = :enabled | :disabled
|
|
228
|
-
|
|
229
|
-
module Status
|
|
230
|
-
extend Telnyx::Internal::Type::Enum
|
|
231
|
-
|
|
232
|
-
ENABLED: :enabled
|
|
233
|
-
DISABLED: :disabled
|
|
234
|
-
|
|
235
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::status]
|
|
236
|
-
end
|
|
237
|
-
end
|
|
238
185
|
end
|
|
239
186
|
end
|
|
240
187
|
end
|
|
@@ -17,7 +17,7 @@ module Telnyx
|
|
|
17
17
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
18
18
|
model: String,
|
|
19
19
|
name: String,
|
|
20
|
-
observability_settings: Telnyx::AI::
|
|
20
|
+
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
21
21
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
22
22
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
23
23
|
tool_ids: ::Array[String],
|
|
@@ -78,11 +78,11 @@ module Telnyx
|
|
|
78
78
|
|
|
79
79
|
def name=: (String) -> String
|
|
80
80
|
|
|
81
|
-
attr_reader observability_settings: Telnyx::AI::
|
|
81
|
+
attr_reader observability_settings: Telnyx::AI::ObservabilityReq?
|
|
82
82
|
|
|
83
83
|
def observability_settings=: (
|
|
84
|
-
Telnyx::AI::
|
|
85
|
-
) -> Telnyx::AI::
|
|
84
|
+
Telnyx::AI::ObservabilityReq
|
|
85
|
+
) -> Telnyx::AI::ObservabilityReq
|
|
86
86
|
|
|
87
87
|
attr_reader privacy_settings: Telnyx::AI::PrivacySettings?
|
|
88
88
|
|
|
@@ -136,7 +136,7 @@ module Telnyx
|
|
|
136
136
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
137
137
|
?model: String,
|
|
138
138
|
?name: String,
|
|
139
|
-
?observability_settings: Telnyx::AI::
|
|
139
|
+
?observability_settings: Telnyx::AI::ObservabilityReq,
|
|
140
140
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
141
141
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
142
142
|
?tool_ids: ::Array[String],
|
|
@@ -158,7 +158,7 @@ module Telnyx
|
|
|
158
158
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
159
159
|
model: String,
|
|
160
160
|
name: String,
|
|
161
|
-
observability_settings: Telnyx::AI::
|
|
161
|
+
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
162
162
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
163
163
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
164
164
|
tool_ids: ::Array[String],
|
|
@@ -167,59 +167,6 @@ module Telnyx
|
|
|
167
167
|
voice_settings: Telnyx::AI::VoiceSettings,
|
|
168
168
|
widget_settings: Telnyx::AI::WidgetSettings
|
|
169
169
|
}
|
|
170
|
-
|
|
171
|
-
type observability_settings =
|
|
172
|
-
{
|
|
173
|
-
host: String,
|
|
174
|
-
public_key_ref: String,
|
|
175
|
-
secret_key_ref: String,
|
|
176
|
-
status: Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::status
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
180
|
-
attr_reader host: String?
|
|
181
|
-
|
|
182
|
-
def host=: (String) -> String
|
|
183
|
-
|
|
184
|
-
attr_reader public_key_ref: String?
|
|
185
|
-
|
|
186
|
-
def public_key_ref=: (String) -> String
|
|
187
|
-
|
|
188
|
-
attr_reader secret_key_ref: String?
|
|
189
|
-
|
|
190
|
-
def secret_key_ref=: (String) -> String
|
|
191
|
-
|
|
192
|
-
attr_reader status: Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::status?
|
|
193
|
-
|
|
194
|
-
def status=: (
|
|
195
|
-
Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::status
|
|
196
|
-
) -> Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::status
|
|
197
|
-
|
|
198
|
-
def initialize: (
|
|
199
|
-
?host: String,
|
|
200
|
-
?public_key_ref: String,
|
|
201
|
-
?secret_key_ref: String,
|
|
202
|
-
?status: Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::status
|
|
203
|
-
) -> void
|
|
204
|
-
|
|
205
|
-
def to_hash: -> {
|
|
206
|
-
host: String,
|
|
207
|
-
public_key_ref: String,
|
|
208
|
-
secret_key_ref: String,
|
|
209
|
-
status: Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::status
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
type status = :enabled | :disabled
|
|
213
|
-
|
|
214
|
-
module Status
|
|
215
|
-
extend Telnyx::Internal::Type::Enum
|
|
216
|
-
|
|
217
|
-
ENABLED: :enabled
|
|
218
|
-
DISABLED: :disabled
|
|
219
|
-
|
|
220
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::status]
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
170
|
end
|
|
224
171
|
end
|
|
225
172
|
end
|
|
@@ -87,22 +87,22 @@ module Telnyx
|
|
|
87
87
|
String
|
|
88
88
|
| Integer
|
|
89
89
|
| bool
|
|
90
|
-
| ::Array[Telnyx::Models::AI::ConversationAddMessageParams::Metadata::
|
|
90
|
+
| ::Array[Telnyx::Models::AI::ConversationAddMessageParams::Metadata::metadata_array_value]
|
|
91
91
|
|
|
92
92
|
module Metadata
|
|
93
93
|
extend Telnyx::Internal::Type::Union
|
|
94
94
|
|
|
95
|
-
type
|
|
95
|
+
type metadata_array_value = String | Integer | bool
|
|
96
96
|
|
|
97
|
-
module
|
|
97
|
+
module MetadataArrayValue
|
|
98
98
|
extend Telnyx::Internal::Type::Union
|
|
99
99
|
|
|
100
|
-
def self?.variants: -> ::Array[Telnyx::Models::AI::ConversationAddMessageParams::Metadata::
|
|
100
|
+
def self?.variants: -> ::Array[Telnyx::Models::AI::ConversationAddMessageParams::Metadata::metadata_array_value]
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
def self?.variants: -> ::Array[Telnyx::Models::AI::ConversationAddMessageParams::metadata]
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
MetadataArrayValueArray: Telnyx::Internal::Type::Converter
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
type tool_choice = String | ::Hash[Symbol, top]
|