telnyx 5.1.0 → 5.2.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/models/ai/assistant_create_params.rb +3 -173
- data/lib/telnyx/models/ai/assistant_update_params.rb +3 -173
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -175
- data/lib/telnyx/models/ai/audio_visualizer_config.rb +43 -0
- data/lib/telnyx/models/ai/inference_embedding.rb +3 -173
- data/lib/telnyx/models/ai/widget_settings.rb +138 -0
- data/lib/telnyx/models/connection_noise_suppression_details.rb +61 -0
- data/lib/telnyx/models/credential_connection.rb +3 -61
- data/lib/telnyx/models/credential_connection_create_params.rb +3 -61
- data/lib/telnyx/models/credential_connection_update_params.rb +3 -61
- data/lib/telnyx/models/fqdn_connection.rb +3 -60
- data/lib/telnyx/models/fqdn_connection_create_params.rb +3 -60
- data/lib/telnyx/models/fqdn_connection_update_params.rb +3 -60
- data/lib/telnyx/models/ip_connection.rb +3 -60
- data/lib/telnyx/models/ip_connection_create_params.rb +3 -60
- data/lib/telnyx/models/ip_connection_update_params.rb +3 -60
- data/lib/telnyx/models/organizations/user_get_groups_report_response.rb +3 -25
- data/lib/telnyx/models/organizations/user_group_reference.rb +28 -0
- data/lib/telnyx/models/organizations/user_list_response.rb +3 -25
- data/lib/telnyx/models/organizations/user_retrieve_response.rb +3 -25
- data/lib/telnyx/models/organizations/users/action_remove_response.rb +3 -25
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/credential_connections.rb +2 -2
- data/lib/telnyx/resources/fqdn_connections.rb +2 -2
- data/lib/telnyx/resources/ip_connections.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +4 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -422
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -422
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -422
- data/rbi/telnyx/models/ai/audio_visualizer_config.rbi +107 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -421
- data/rbi/telnyx/models/ai/widget_settings.rbi +225 -0
- data/rbi/telnyx/models/connection_noise_suppression_details.rbi +141 -0
- data/rbi/telnyx/models/credential_connection.rbi +4 -152
- data/rbi/telnyx/models/credential_connection_create_params.rbi +4 -154
- data/rbi/telnyx/models/credential_connection_update_params.rbi +4 -154
- data/rbi/telnyx/models/fqdn_connection.rbi +4 -150
- data/rbi/telnyx/models/fqdn_connection_create_params.rbi +4 -152
- data/rbi/telnyx/models/fqdn_connection_update_params.rbi +4 -152
- data/rbi/telnyx/models/ip_connection.rbi +4 -148
- data/rbi/telnyx/models/ip_connection_create_params.rbi +4 -152
- data/rbi/telnyx/models/ip_connection_update_params.rbi +4 -152
- data/rbi/telnyx/models/organizations/user_get_groups_report_response.rbi +3 -46
- data/rbi/telnyx/models/organizations/user_group_reference.rbi +39 -0
- data/rbi/telnyx/models/organizations/user_list_response.rbi +4 -47
- data/rbi/telnyx/models/organizations/user_retrieve_response.rbi +4 -47
- data/rbi/telnyx/models/organizations/users/action_remove_response.rbi +4 -47
- data/rbi/telnyx/models.rbi +3 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
- data/rbi/telnyx/resources/credential_connections.rbi +2 -2
- data/rbi/telnyx/resources/fqdn_connections.rbi +2 -2
- data/rbi/telnyx/resources/ip_connections.rbi +2 -2
- data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -172
- data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -172
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -172
- data/sig/telnyx/models/ai/audio_visualizer_config.rbs +48 -0
- data/sig/telnyx/models/ai/inference_embedding.rbs +6 -172
- data/sig/telnyx/models/ai/widget_settings.rbs +127 -0
- data/sig/telnyx/models/connection_noise_suppression_details.rbs +54 -0
- data/sig/telnyx/models/credential_connection.rbs +6 -57
- data/sig/telnyx/models/credential_connection_create_params.rbs +6 -57
- data/sig/telnyx/models/credential_connection_update_params.rbs +6 -57
- data/sig/telnyx/models/fqdn_connection.rbs +6 -57
- data/sig/telnyx/models/fqdn_connection_create_params.rbs +6 -57
- data/sig/telnyx/models/fqdn_connection_update_params.rbs +6 -57
- data/sig/telnyx/models/ip_connection.rbs +6 -57
- data/sig/telnyx/models/ip_connection_create_params.rbs +6 -57
- data/sig/telnyx/models/ip_connection_update_params.rbs +6 -57
- data/sig/telnyx/models/organizations/user_get_groups_report_response.rbs +4 -16
- data/sig/telnyx/models/organizations/user_group_reference.rbs +17 -0
- data/sig/telnyx/models/organizations/user_list_response.rbs +6 -18
- data/sig/telnyx/models/organizations/user_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/organizations/users/action_remove_response.rbs +6 -18
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
- data/sig/telnyx/resources/ai/assistants.rbs +2 -2
- data/sig/telnyx/resources/credential_connections.rbs +2 -2
- data/sig/telnyx/resources/fqdn_connections.rbs +2 -2
- data/sig/telnyx/resources/ip_connections.rbs +2 -2
- metadata +13 -1
|
@@ -37,9 +37,8 @@ module Telnyx
|
|
|
37
37
|
# The groups the user belongs to. Only included when include_groups parameter is
|
|
38
38
|
# true.
|
|
39
39
|
#
|
|
40
|
-
# @return [Array<Telnyx::Models::Organizations::
|
|
41
|
-
optional :groups,
|
|
42
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Organizations::UserRetrieveResponse::Data::Group] }
|
|
40
|
+
# @return [Array<Telnyx::Models::Organizations::UserGroupReference>, nil]
|
|
41
|
+
optional :groups, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Organizations::UserGroupReference] }
|
|
43
42
|
|
|
44
43
|
# @!attribute last_sign_in_at
|
|
45
44
|
# ISO 8601 formatted date indicating when the resource last signed into the
|
|
@@ -78,7 +77,7 @@ module Telnyx
|
|
|
78
77
|
#
|
|
79
78
|
# @param email [String] The email address of the user.
|
|
80
79
|
#
|
|
81
|
-
# @param groups [Array<Telnyx::Models::Organizations::
|
|
80
|
+
# @param groups [Array<Telnyx::Models::Organizations::UserGroupReference>] The groups the user belongs to. Only included when include_groups parameter is t
|
|
82
81
|
#
|
|
83
82
|
# @param last_sign_in_at [String, nil] ISO 8601 formatted date indicating when the resource last signed into the portal
|
|
84
83
|
#
|
|
@@ -88,27 +87,6 @@ module Telnyx
|
|
|
88
87
|
#
|
|
89
88
|
# @param user_status [Symbol, Telnyx::Models::Organizations::UserRetrieveResponse::Data::UserStatus] The status of the account.
|
|
90
89
|
|
|
91
|
-
class Group < Telnyx::Internal::Type::BaseModel
|
|
92
|
-
# @!attribute id
|
|
93
|
-
# The unique identifier of the group.
|
|
94
|
-
#
|
|
95
|
-
# @return [String]
|
|
96
|
-
required :id, String
|
|
97
|
-
|
|
98
|
-
# @!attribute name
|
|
99
|
-
# The name of the group.
|
|
100
|
-
#
|
|
101
|
-
# @return [String]
|
|
102
|
-
required :name, String
|
|
103
|
-
|
|
104
|
-
# @!method initialize(id:, name:)
|
|
105
|
-
# A reference to a group that a user belongs to.
|
|
106
|
-
#
|
|
107
|
-
# @param id [String] The unique identifier of the group.
|
|
108
|
-
#
|
|
109
|
-
# @param name [String] The name of the group.
|
|
110
|
-
end
|
|
111
|
-
|
|
112
90
|
# The status of the account.
|
|
113
91
|
#
|
|
114
92
|
# @see Telnyx::Models::Organizations::UserRetrieveResponse::Data#user_status
|
|
@@ -38,9 +38,8 @@ module Telnyx
|
|
|
38
38
|
# The groups the user belongs to. Only included when include_groups parameter is
|
|
39
39
|
# true.
|
|
40
40
|
#
|
|
41
|
-
# @return [Array<Telnyx::Models::Organizations::
|
|
42
|
-
optional :groups,
|
|
43
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::Group] }
|
|
41
|
+
# @return [Array<Telnyx::Models::Organizations::UserGroupReference>, nil]
|
|
42
|
+
optional :groups, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Organizations::UserGroupReference] }
|
|
44
43
|
|
|
45
44
|
# @!attribute last_sign_in_at
|
|
46
45
|
# ISO 8601 formatted date indicating when the resource last signed into the
|
|
@@ -81,7 +80,7 @@ module Telnyx
|
|
|
81
80
|
#
|
|
82
81
|
# @param email [String] The email address of the user.
|
|
83
82
|
#
|
|
84
|
-
# @param groups [Array<Telnyx::Models::Organizations::
|
|
83
|
+
# @param groups [Array<Telnyx::Models::Organizations::UserGroupReference>] The groups the user belongs to. Only included when include_groups parameter is t
|
|
85
84
|
#
|
|
86
85
|
# @param last_sign_in_at [String, nil] ISO 8601 formatted date indicating when the resource last signed into the portal
|
|
87
86
|
#
|
|
@@ -91,27 +90,6 @@ module Telnyx
|
|
|
91
90
|
#
|
|
92
91
|
# @param user_status [Symbol, Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::UserStatus] The status of the account.
|
|
93
92
|
|
|
94
|
-
class Group < Telnyx::Internal::Type::BaseModel
|
|
95
|
-
# @!attribute id
|
|
96
|
-
# The unique identifier of the group.
|
|
97
|
-
#
|
|
98
|
-
# @return [String]
|
|
99
|
-
required :id, String
|
|
100
|
-
|
|
101
|
-
# @!attribute name
|
|
102
|
-
# The name of the group.
|
|
103
|
-
#
|
|
104
|
-
# @return [String]
|
|
105
|
-
required :name, String
|
|
106
|
-
|
|
107
|
-
# @!method initialize(id:, name:)
|
|
108
|
-
# A reference to a group that a user belongs to.
|
|
109
|
-
#
|
|
110
|
-
# @param id [String] The unique identifier of the group.
|
|
111
|
-
#
|
|
112
|
-
# @param name [String] The name of the group.
|
|
113
|
-
end
|
|
114
|
-
|
|
115
93
|
# The status of the account.
|
|
116
94
|
#
|
|
117
95
|
# @see Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data#user_status
|
data/lib/telnyx/models.rb
CHANGED
|
@@ -305,6 +305,8 @@ module Telnyx
|
|
|
305
305
|
|
|
306
306
|
ConnectionListParams = Telnyx::Models::ConnectionListParams
|
|
307
307
|
|
|
308
|
+
ConnectionNoiseSuppressionDetails = Telnyx::Models::ConnectionNoiseSuppressionDetails
|
|
309
|
+
|
|
308
310
|
ConnectionRetrieveParams = Telnyx::Models::ConnectionRetrieveParams
|
|
309
311
|
|
|
310
312
|
ConnectionRtcpSettings = Telnyx::Models::ConnectionRtcpSettings
|
|
@@ -79,7 +79,7 @@ module Telnyx
|
|
|
79
79
|
#
|
|
80
80
|
# @param voice_settings [Telnyx::Models::AI::VoiceSettings] Body param
|
|
81
81
|
#
|
|
82
|
-
# @param widget_settings [Telnyx::Models::AI::
|
|
82
|
+
# @param widget_settings [Telnyx::Models::AI::WidgetSettings] Body param: Configuration settings for the assistant's web widget.
|
|
83
83
|
#
|
|
84
84
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
85
85
|
#
|
|
@@ -58,7 +58,7 @@ module Telnyx
|
|
|
58
58
|
#
|
|
59
59
|
# @param voice_settings [Telnyx::Models::AI::VoiceSettings]
|
|
60
60
|
#
|
|
61
|
-
# @param widget_settings [Telnyx::Models::AI::
|
|
61
|
+
# @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
|
|
62
62
|
#
|
|
63
63
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
64
64
|
#
|
|
@@ -144,7 +144,7 @@ module Telnyx
|
|
|
144
144
|
#
|
|
145
145
|
# @param voice_settings [Telnyx::Models::AI::VoiceSettings]
|
|
146
146
|
#
|
|
147
|
-
# @param widget_settings [Telnyx::Models::AI::
|
|
147
|
+
# @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
|
|
148
148
|
#
|
|
149
149
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
150
150
|
#
|
|
@@ -41,7 +41,7 @@ module Telnyx
|
|
|
41
41
|
#
|
|
42
42
|
# @param noise_suppression [Symbol, Telnyx::Models::CredentialConnectionCreateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
43
43
|
#
|
|
44
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
44
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
45
45
|
#
|
|
46
46
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
47
47
|
#
|
|
@@ -130,7 +130,7 @@ module Telnyx
|
|
|
130
130
|
#
|
|
131
131
|
# @param noise_suppression [Symbol, Telnyx::Models::CredentialConnectionUpdateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
132
132
|
#
|
|
133
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
133
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
134
134
|
#
|
|
135
135
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
136
136
|
#
|
|
@@ -36,7 +36,7 @@ module Telnyx
|
|
|
36
36
|
#
|
|
37
37
|
# @param noise_suppression [Symbol, Telnyx::Models::FqdnConnectionCreateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
38
38
|
#
|
|
39
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
39
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
40
40
|
#
|
|
41
41
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
42
42
|
#
|
|
@@ -125,7 +125,7 @@ module Telnyx
|
|
|
125
125
|
#
|
|
126
126
|
# @param noise_suppression [Symbol, Telnyx::Models::FqdnConnectionUpdateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
127
127
|
#
|
|
128
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
128
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
129
129
|
#
|
|
130
130
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer that the sender and receiver negotiate T38 direc
|
|
131
131
|
#
|
|
@@ -34,7 +34,7 @@ module Telnyx
|
|
|
34
34
|
#
|
|
35
35
|
# @param noise_suppression [Symbol, Telnyx::Models::IPConnectionCreateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
36
36
|
#
|
|
37
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
37
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
38
38
|
#
|
|
39
39
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
40
40
|
#
|
|
@@ -123,7 +123,7 @@ module Telnyx
|
|
|
123
123
|
#
|
|
124
124
|
# @param noise_suppression [Symbol, Telnyx::Models::IPConnectionUpdateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
125
125
|
#
|
|
126
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
126
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
127
127
|
#
|
|
128
128
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
129
129
|
#
|
data/lib/telnyx/version.rb
CHANGED
data/lib/telnyx.rb
CHANGED
|
@@ -185,6 +185,7 @@ require_relative "telnyx/models/ai/assistant_tool"
|
|
|
185
185
|
require_relative "telnyx/models/ai/assistant_update_params"
|
|
186
186
|
require_relative "telnyx/models/ai/audio_transcribe_params"
|
|
187
187
|
require_relative "telnyx/models/ai/audio_transcribe_response"
|
|
188
|
+
require_relative "telnyx/models/ai/audio_visualizer_config"
|
|
188
189
|
require_relative "telnyx/models/ai/background_task_status"
|
|
189
190
|
require_relative "telnyx/models/ai/bucket_ids"
|
|
190
191
|
require_relative "telnyx/models/ai/chat_create_completion_params"
|
|
@@ -281,6 +282,7 @@ require_relative "telnyx/models/ai/transcription_settings_config"
|
|
|
281
282
|
require_relative "telnyx/models/ai/transfer_tool"
|
|
282
283
|
require_relative "telnyx/models/ai/voice_settings"
|
|
283
284
|
require_relative "telnyx/models/ai/webhook_tool"
|
|
285
|
+
require_relative "telnyx/models/ai/widget_settings"
|
|
284
286
|
require_relative "telnyx/models/ai_retrieve_models_params"
|
|
285
287
|
require_relative "telnyx/models/ai_retrieve_models_response"
|
|
286
288
|
require_relative "telnyx/models/ai_summarize_params"
|
|
@@ -558,6 +560,7 @@ require_relative "telnyx/models/connection_list_active_calls_params"
|
|
|
558
560
|
require_relative "telnyx/models/connection_list_active_calls_response"
|
|
559
561
|
require_relative "telnyx/models/connection_list_params"
|
|
560
562
|
require_relative "telnyx/models/connection_list_response"
|
|
563
|
+
require_relative "telnyx/models/connection_noise_suppression_details"
|
|
561
564
|
require_relative "telnyx/models/connection_retrieve_params"
|
|
562
565
|
require_relative "telnyx/models/connection_retrieve_response"
|
|
563
566
|
require_relative "telnyx/models/connection_rtcp_settings"
|
|
@@ -1240,6 +1243,7 @@ require_relative "telnyx/models/operator_connect/action_refresh_params"
|
|
|
1240
1243
|
require_relative "telnyx/models/operator_connect/action_refresh_response"
|
|
1241
1244
|
require_relative "telnyx/models/organizations/user_get_groups_report_params"
|
|
1242
1245
|
require_relative "telnyx/models/organizations/user_get_groups_report_response"
|
|
1246
|
+
require_relative "telnyx/models/organizations/user_group_reference"
|
|
1243
1247
|
require_relative "telnyx/models/organizations/user_list_params"
|
|
1244
1248
|
require_relative "telnyx/models/organizations/user_list_response"
|
|
1245
1249
|
require_relative "telnyx/models/organizations/user_retrieve_params"
|
|
@@ -172,17 +172,10 @@ module Telnyx
|
|
|
172
172
|
attr_writer :voice_settings
|
|
173
173
|
|
|
174
174
|
# Configuration settings for the assistant's web widget.
|
|
175
|
-
sig
|
|
176
|
-
returns(T.nilable(Telnyx::AI::AssistantCreateParams::WidgetSettings))
|
|
177
|
-
end
|
|
175
|
+
sig { returns(T.nilable(Telnyx::AI::WidgetSettings)) }
|
|
178
176
|
attr_reader :widget_settings
|
|
179
177
|
|
|
180
|
-
sig
|
|
181
|
-
params(
|
|
182
|
-
widget_settings:
|
|
183
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::OrHash
|
|
184
|
-
).void
|
|
185
|
-
end
|
|
178
|
+
sig { params(widget_settings: Telnyx::AI::WidgetSettings::OrHash).void }
|
|
186
179
|
attr_writer :widget_settings
|
|
187
180
|
|
|
188
181
|
sig do
|
|
@@ -215,8 +208,7 @@ module Telnyx
|
|
|
215
208
|
],
|
|
216
209
|
transcription: Telnyx::AI::TranscriptionSettings::OrHash,
|
|
217
210
|
voice_settings: Telnyx::AI::VoiceSettings::OrHash,
|
|
218
|
-
widget_settings:
|
|
219
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::OrHash,
|
|
211
|
+
widget_settings: Telnyx::AI::WidgetSettings::OrHash,
|
|
220
212
|
request_options: Telnyx::RequestOptions::OrHash
|
|
221
213
|
).returns(T.attached_class)
|
|
222
214
|
end
|
|
@@ -297,423 +289,13 @@ module Telnyx
|
|
|
297
289
|
],
|
|
298
290
|
transcription: Telnyx::AI::TranscriptionSettings,
|
|
299
291
|
voice_settings: Telnyx::AI::VoiceSettings,
|
|
300
|
-
widget_settings:
|
|
301
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings,
|
|
292
|
+
widget_settings: Telnyx::AI::WidgetSettings,
|
|
302
293
|
request_options: Telnyx::RequestOptions
|
|
303
294
|
}
|
|
304
295
|
)
|
|
305
296
|
end
|
|
306
297
|
def to_hash
|
|
307
298
|
end
|
|
308
|
-
|
|
309
|
-
class WidgetSettings < Telnyx::Internal::Type::BaseModel
|
|
310
|
-
OrHash =
|
|
311
|
-
T.type_alias do
|
|
312
|
-
T.any(
|
|
313
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings,
|
|
314
|
-
Telnyx::Internal::AnyHash
|
|
315
|
-
)
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
# Text displayed while the agent is processing.
|
|
319
|
-
sig { returns(T.nilable(String)) }
|
|
320
|
-
attr_reader :agent_thinking_text
|
|
321
|
-
|
|
322
|
-
sig { params(agent_thinking_text: String).void }
|
|
323
|
-
attr_writer :agent_thinking_text
|
|
324
|
-
|
|
325
|
-
sig do
|
|
326
|
-
returns(
|
|
327
|
-
T.nilable(
|
|
328
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig
|
|
329
|
-
)
|
|
330
|
-
)
|
|
331
|
-
end
|
|
332
|
-
attr_reader :audio_visualizer_config
|
|
333
|
-
|
|
334
|
-
sig do
|
|
335
|
-
params(
|
|
336
|
-
audio_visualizer_config:
|
|
337
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::OrHash
|
|
338
|
-
).void
|
|
339
|
-
end
|
|
340
|
-
attr_writer :audio_visualizer_config
|
|
341
|
-
|
|
342
|
-
# The default state of the widget.
|
|
343
|
-
sig do
|
|
344
|
-
returns(
|
|
345
|
-
T.nilable(
|
|
346
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::DefaultState::OrSymbol
|
|
347
|
-
)
|
|
348
|
-
)
|
|
349
|
-
end
|
|
350
|
-
attr_reader :default_state
|
|
351
|
-
|
|
352
|
-
sig do
|
|
353
|
-
params(
|
|
354
|
-
default_state:
|
|
355
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::DefaultState::OrSymbol
|
|
356
|
-
).void
|
|
357
|
-
end
|
|
358
|
-
attr_writer :default_state
|
|
359
|
-
|
|
360
|
-
# URL for users to give feedback.
|
|
361
|
-
sig { returns(T.nilable(String)) }
|
|
362
|
-
attr_accessor :give_feedback_url
|
|
363
|
-
|
|
364
|
-
# URL to a custom logo icon for the widget.
|
|
365
|
-
sig { returns(T.nilable(String)) }
|
|
366
|
-
attr_accessor :logo_icon_url
|
|
367
|
-
|
|
368
|
-
# The positioning style for the widget.
|
|
369
|
-
sig do
|
|
370
|
-
returns(
|
|
371
|
-
T.nilable(
|
|
372
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Position::OrSymbol
|
|
373
|
-
)
|
|
374
|
-
)
|
|
375
|
-
end
|
|
376
|
-
attr_reader :position
|
|
377
|
-
|
|
378
|
-
sig do
|
|
379
|
-
params(
|
|
380
|
-
position:
|
|
381
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Position::OrSymbol
|
|
382
|
-
).void
|
|
383
|
-
end
|
|
384
|
-
attr_writer :position
|
|
385
|
-
|
|
386
|
-
# URL for users to report issues.
|
|
387
|
-
sig { returns(T.nilable(String)) }
|
|
388
|
-
attr_accessor :report_issue_url
|
|
389
|
-
|
|
390
|
-
# Text prompting users to speak to interrupt.
|
|
391
|
-
sig { returns(T.nilable(String)) }
|
|
392
|
-
attr_reader :speak_to_interrupt_text
|
|
393
|
-
|
|
394
|
-
sig { params(speak_to_interrupt_text: String).void }
|
|
395
|
-
attr_writer :speak_to_interrupt_text
|
|
396
|
-
|
|
397
|
-
# Custom text displayed on the start call button.
|
|
398
|
-
sig { returns(T.nilable(String)) }
|
|
399
|
-
attr_reader :start_call_text
|
|
400
|
-
|
|
401
|
-
sig { params(start_call_text: String).void }
|
|
402
|
-
attr_writer :start_call_text
|
|
403
|
-
|
|
404
|
-
# The visual theme for the widget.
|
|
405
|
-
sig do
|
|
406
|
-
returns(
|
|
407
|
-
T.nilable(
|
|
408
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Theme::OrSymbol
|
|
409
|
-
)
|
|
410
|
-
)
|
|
411
|
-
end
|
|
412
|
-
attr_reader :theme
|
|
413
|
-
|
|
414
|
-
sig do
|
|
415
|
-
params(
|
|
416
|
-
theme:
|
|
417
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Theme::OrSymbol
|
|
418
|
-
).void
|
|
419
|
-
end
|
|
420
|
-
attr_writer :theme
|
|
421
|
-
|
|
422
|
-
# URL to view conversation history.
|
|
423
|
-
sig { returns(T.nilable(String)) }
|
|
424
|
-
attr_accessor :view_history_url
|
|
425
|
-
|
|
426
|
-
# Configuration settings for the assistant's web widget.
|
|
427
|
-
sig do
|
|
428
|
-
params(
|
|
429
|
-
agent_thinking_text: String,
|
|
430
|
-
audio_visualizer_config:
|
|
431
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::OrHash,
|
|
432
|
-
default_state:
|
|
433
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::DefaultState::OrSymbol,
|
|
434
|
-
give_feedback_url: T.nilable(String),
|
|
435
|
-
logo_icon_url: T.nilable(String),
|
|
436
|
-
position:
|
|
437
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Position::OrSymbol,
|
|
438
|
-
report_issue_url: T.nilable(String),
|
|
439
|
-
speak_to_interrupt_text: String,
|
|
440
|
-
start_call_text: String,
|
|
441
|
-
theme:
|
|
442
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Theme::OrSymbol,
|
|
443
|
-
view_history_url: T.nilable(String)
|
|
444
|
-
).returns(T.attached_class)
|
|
445
|
-
end
|
|
446
|
-
def self.new(
|
|
447
|
-
# Text displayed while the agent is processing.
|
|
448
|
-
agent_thinking_text: nil,
|
|
449
|
-
audio_visualizer_config: nil,
|
|
450
|
-
# The default state of the widget.
|
|
451
|
-
default_state: nil,
|
|
452
|
-
# URL for users to give feedback.
|
|
453
|
-
give_feedback_url: nil,
|
|
454
|
-
# URL to a custom logo icon for the widget.
|
|
455
|
-
logo_icon_url: nil,
|
|
456
|
-
# The positioning style for the widget.
|
|
457
|
-
position: nil,
|
|
458
|
-
# URL for users to report issues.
|
|
459
|
-
report_issue_url: nil,
|
|
460
|
-
# Text prompting users to speak to interrupt.
|
|
461
|
-
speak_to_interrupt_text: nil,
|
|
462
|
-
# Custom text displayed on the start call button.
|
|
463
|
-
start_call_text: nil,
|
|
464
|
-
# The visual theme for the widget.
|
|
465
|
-
theme: nil,
|
|
466
|
-
# URL to view conversation history.
|
|
467
|
-
view_history_url: nil
|
|
468
|
-
)
|
|
469
|
-
end
|
|
470
|
-
|
|
471
|
-
sig do
|
|
472
|
-
override.returns(
|
|
473
|
-
{
|
|
474
|
-
agent_thinking_text: String,
|
|
475
|
-
audio_visualizer_config:
|
|
476
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig,
|
|
477
|
-
default_state:
|
|
478
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::DefaultState::OrSymbol,
|
|
479
|
-
give_feedback_url: T.nilable(String),
|
|
480
|
-
logo_icon_url: T.nilable(String),
|
|
481
|
-
position:
|
|
482
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Position::OrSymbol,
|
|
483
|
-
report_issue_url: T.nilable(String),
|
|
484
|
-
speak_to_interrupt_text: String,
|
|
485
|
-
start_call_text: String,
|
|
486
|
-
theme:
|
|
487
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Theme::OrSymbol,
|
|
488
|
-
view_history_url: T.nilable(String)
|
|
489
|
-
}
|
|
490
|
-
)
|
|
491
|
-
end
|
|
492
|
-
def to_hash
|
|
493
|
-
end
|
|
494
|
-
|
|
495
|
-
class AudioVisualizerConfig < Telnyx::Internal::Type::BaseModel
|
|
496
|
-
OrHash =
|
|
497
|
-
T.type_alias do
|
|
498
|
-
T.any(
|
|
499
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig,
|
|
500
|
-
Telnyx::Internal::AnyHash
|
|
501
|
-
)
|
|
502
|
-
end
|
|
503
|
-
|
|
504
|
-
# The color theme for the audio visualizer.
|
|
505
|
-
sig do
|
|
506
|
-
returns(
|
|
507
|
-
T.nilable(
|
|
508
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::OrSymbol
|
|
509
|
-
)
|
|
510
|
-
)
|
|
511
|
-
end
|
|
512
|
-
attr_reader :color
|
|
513
|
-
|
|
514
|
-
sig do
|
|
515
|
-
params(
|
|
516
|
-
color:
|
|
517
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::OrSymbol
|
|
518
|
-
).void
|
|
519
|
-
end
|
|
520
|
-
attr_writer :color
|
|
521
|
-
|
|
522
|
-
# The preset style for the audio visualizer.
|
|
523
|
-
sig { returns(T.nilable(String)) }
|
|
524
|
-
attr_reader :preset
|
|
525
|
-
|
|
526
|
-
sig { params(preset: String).void }
|
|
527
|
-
attr_writer :preset
|
|
528
|
-
|
|
529
|
-
sig do
|
|
530
|
-
params(
|
|
531
|
-
color:
|
|
532
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::OrSymbol,
|
|
533
|
-
preset: String
|
|
534
|
-
).returns(T.attached_class)
|
|
535
|
-
end
|
|
536
|
-
def self.new(
|
|
537
|
-
# The color theme for the audio visualizer.
|
|
538
|
-
color: nil,
|
|
539
|
-
# The preset style for the audio visualizer.
|
|
540
|
-
preset: nil
|
|
541
|
-
)
|
|
542
|
-
end
|
|
543
|
-
|
|
544
|
-
sig do
|
|
545
|
-
override.returns(
|
|
546
|
-
{
|
|
547
|
-
color:
|
|
548
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::OrSymbol,
|
|
549
|
-
preset: String
|
|
550
|
-
}
|
|
551
|
-
)
|
|
552
|
-
end
|
|
553
|
-
def to_hash
|
|
554
|
-
end
|
|
555
|
-
|
|
556
|
-
# The color theme for the audio visualizer.
|
|
557
|
-
module Color
|
|
558
|
-
extend Telnyx::Internal::Type::Enum
|
|
559
|
-
|
|
560
|
-
TaggedSymbol =
|
|
561
|
-
T.type_alias do
|
|
562
|
-
T.all(
|
|
563
|
-
Symbol,
|
|
564
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color
|
|
565
|
-
)
|
|
566
|
-
end
|
|
567
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
568
|
-
|
|
569
|
-
VERDANT =
|
|
570
|
-
T.let(
|
|
571
|
-
:verdant,
|
|
572
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::TaggedSymbol
|
|
573
|
-
)
|
|
574
|
-
TWILIGHT =
|
|
575
|
-
T.let(
|
|
576
|
-
:twilight,
|
|
577
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::TaggedSymbol
|
|
578
|
-
)
|
|
579
|
-
BLOOM =
|
|
580
|
-
T.let(
|
|
581
|
-
:bloom,
|
|
582
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::TaggedSymbol
|
|
583
|
-
)
|
|
584
|
-
MYSTIC =
|
|
585
|
-
T.let(
|
|
586
|
-
:mystic,
|
|
587
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::TaggedSymbol
|
|
588
|
-
)
|
|
589
|
-
FLARE =
|
|
590
|
-
T.let(
|
|
591
|
-
:flare,
|
|
592
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::TaggedSymbol
|
|
593
|
-
)
|
|
594
|
-
GLACIER =
|
|
595
|
-
T.let(
|
|
596
|
-
:glacier,
|
|
597
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::TaggedSymbol
|
|
598
|
-
)
|
|
599
|
-
|
|
600
|
-
sig do
|
|
601
|
-
override.returns(
|
|
602
|
-
T::Array[
|
|
603
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::AudioVisualizerConfig::Color::TaggedSymbol
|
|
604
|
-
]
|
|
605
|
-
)
|
|
606
|
-
end
|
|
607
|
-
def self.values
|
|
608
|
-
end
|
|
609
|
-
end
|
|
610
|
-
end
|
|
611
|
-
|
|
612
|
-
# The default state of the widget.
|
|
613
|
-
module DefaultState
|
|
614
|
-
extend Telnyx::Internal::Type::Enum
|
|
615
|
-
|
|
616
|
-
TaggedSymbol =
|
|
617
|
-
T.type_alias do
|
|
618
|
-
T.all(
|
|
619
|
-
Symbol,
|
|
620
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::DefaultState
|
|
621
|
-
)
|
|
622
|
-
end
|
|
623
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
624
|
-
|
|
625
|
-
EXPANDED =
|
|
626
|
-
T.let(
|
|
627
|
-
:expanded,
|
|
628
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::DefaultState::TaggedSymbol
|
|
629
|
-
)
|
|
630
|
-
COLLAPSED =
|
|
631
|
-
T.let(
|
|
632
|
-
:collapsed,
|
|
633
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::DefaultState::TaggedSymbol
|
|
634
|
-
)
|
|
635
|
-
|
|
636
|
-
sig do
|
|
637
|
-
override.returns(
|
|
638
|
-
T::Array[
|
|
639
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::DefaultState::TaggedSymbol
|
|
640
|
-
]
|
|
641
|
-
)
|
|
642
|
-
end
|
|
643
|
-
def self.values
|
|
644
|
-
end
|
|
645
|
-
end
|
|
646
|
-
|
|
647
|
-
# The positioning style for the widget.
|
|
648
|
-
module Position
|
|
649
|
-
extend Telnyx::Internal::Type::Enum
|
|
650
|
-
|
|
651
|
-
TaggedSymbol =
|
|
652
|
-
T.type_alias do
|
|
653
|
-
T.all(
|
|
654
|
-
Symbol,
|
|
655
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Position
|
|
656
|
-
)
|
|
657
|
-
end
|
|
658
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
659
|
-
|
|
660
|
-
FIXED =
|
|
661
|
-
T.let(
|
|
662
|
-
:fixed,
|
|
663
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Position::TaggedSymbol
|
|
664
|
-
)
|
|
665
|
-
STATIC =
|
|
666
|
-
T.let(
|
|
667
|
-
:static,
|
|
668
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Position::TaggedSymbol
|
|
669
|
-
)
|
|
670
|
-
|
|
671
|
-
sig do
|
|
672
|
-
override.returns(
|
|
673
|
-
T::Array[
|
|
674
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Position::TaggedSymbol
|
|
675
|
-
]
|
|
676
|
-
)
|
|
677
|
-
end
|
|
678
|
-
def self.values
|
|
679
|
-
end
|
|
680
|
-
end
|
|
681
|
-
|
|
682
|
-
# The visual theme for the widget.
|
|
683
|
-
module Theme
|
|
684
|
-
extend Telnyx::Internal::Type::Enum
|
|
685
|
-
|
|
686
|
-
TaggedSymbol =
|
|
687
|
-
T.type_alias do
|
|
688
|
-
T.all(
|
|
689
|
-
Symbol,
|
|
690
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Theme
|
|
691
|
-
)
|
|
692
|
-
end
|
|
693
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
694
|
-
|
|
695
|
-
LIGHT =
|
|
696
|
-
T.let(
|
|
697
|
-
:light,
|
|
698
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Theme::TaggedSymbol
|
|
699
|
-
)
|
|
700
|
-
DARK =
|
|
701
|
-
T.let(
|
|
702
|
-
:dark,
|
|
703
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Theme::TaggedSymbol
|
|
704
|
-
)
|
|
705
|
-
|
|
706
|
-
sig do
|
|
707
|
-
override.returns(
|
|
708
|
-
T::Array[
|
|
709
|
-
Telnyx::AI::AssistantCreateParams::WidgetSettings::Theme::TaggedSymbol
|
|
710
|
-
]
|
|
711
|
-
)
|
|
712
|
-
end
|
|
713
|
-
def self.values
|
|
714
|
-
end
|
|
715
|
-
end
|
|
716
|
-
end
|
|
717
299
|
end
|
|
718
300
|
end
|
|
719
301
|
end
|