telnyx 5.176.0 → 5.177.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 +7 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
- data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
- data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
- data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
- data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
- data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
- data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
- data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
- data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
- data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
- data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
- data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
- data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
- data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
- data/lib/telnyx/models/email_event_list_response.rb +11 -12
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
- data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
- data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
- data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
- data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
- data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
- data/lib/telnyx/models/iam/iam_action.rb +4 -4
- data/lib/telnyx/models/iam/iam_settings.rb +60 -0
- data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
- data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
- data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
- data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
- data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
- data/lib/telnyx/models/iam_decision.rb +5 -3
- data/lib/telnyx/models/iam_explain_params.rb +13 -1
- data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
- data/lib/telnyx/models/iam_simulate_params.rb +13 -1
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
- data/lib/telnyx/models/mobile_phone_number.rb +25 -4
- data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
- data/lib/telnyx/models/model_metadata.rb +28 -1
- data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
- data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
- data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
- data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
- data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
- data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
- data/lib/telnyx/models/texml_application_list_params.rb +6 -6
- data/lib/telnyx/models/user_profile.rb +11 -1
- data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
- data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/customer_service_records.rb +4 -4
- data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
- data/lib/telnyx/resources/iam/guardrail.rb +45 -0
- data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
- data/lib/telnyx/resources/iam.rb +21 -8
- data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
- data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
- data/lib/telnyx/resources/user_profile.rb +1 -3
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
- data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
- data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
- data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
- data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
- data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
- data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
- data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
- data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
- data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
- data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
- data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
- data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
- data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
- data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
- data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
- data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
- data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
- data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
- data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
- data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
- data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
- data/rbi/telnyx/models/iam_decision.rbi +10 -6
- data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
- data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
- data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
- data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
- data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
- data/rbi/telnyx/models/model_metadata.rbi +90 -0
- data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
- data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
- data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
- data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
- data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
- data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
- data/rbi/telnyx/models/user_profile.rbi +11 -0
- data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
- data/rbi/telnyx/resources/calls/actions.rbi +5 -5
- data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
- data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
- data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
- data/rbi/telnyx/resources/iam.rbi +18 -7
- data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
- data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
- data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
- data/rbi/telnyx/resources/user_profile.rbi +0 -3
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
- data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
- data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
- data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
- data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
- data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
- data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
- data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
- data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
- data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
- data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
- data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
- data/sig/telnyx/models/email_event_list_response.rbs +13 -3
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
- data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
- data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
- data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
- data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
- data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
- data/sig/telnyx/models/iam/iam_action.rbs +4 -4
- data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
- data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
- data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
- data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
- data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
- data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
- data/sig/telnyx/models/iam_explain_params.rbs +6 -1
- data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
- data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
- data/sig/telnyx/models/model_metadata.rbs +26 -0
- data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
- data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
- data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
- data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
- data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
- data/sig/telnyx/models/user_profile.rbs +7 -0
- data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
- data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
- data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
- data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
- data/sig/telnyx/resources/iam.rbs +3 -0
- data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
- data/sig/telnyx/resources/user_profile.rbs +0 -1
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +62 -2
|
@@ -92,37 +92,13 @@ module Telnyx
|
|
|
92
92
|
T.type_alias do
|
|
93
93
|
T.any(
|
|
94
94
|
T::Hash[Symbol, T.anything],
|
|
95
|
-
|
|
95
|
+
T::Array[T.anything],
|
|
96
|
+
String,
|
|
97
|
+
Float,
|
|
98
|
+
T::Boolean
|
|
96
99
|
)
|
|
97
100
|
end
|
|
98
101
|
|
|
99
|
-
module UnionMember1
|
|
100
|
-
extend Telnyx::Internal::Type::Union
|
|
101
|
-
|
|
102
|
-
Variants =
|
|
103
|
-
T.type_alias do
|
|
104
|
-
T.any(T::Array[T.anything], String, Float, T::Boolean)
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
sig do
|
|
108
|
-
override.returns(
|
|
109
|
-
T::Array[
|
|
110
|
-
Telnyx::AI::Memory::Namespaces::ProfileIngestParams::Body::UnionMember1::Variants
|
|
111
|
-
]
|
|
112
|
-
)
|
|
113
|
-
end
|
|
114
|
-
def self.variants
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
IngestPayloadValueArray =
|
|
118
|
-
T.let(
|
|
119
|
-
Telnyx::Internal::Type::ArrayOf[
|
|
120
|
-
Telnyx::Internal::Type::Unknown
|
|
121
|
-
],
|
|
122
|
-
Telnyx::Internal::Type::Converter
|
|
123
|
-
)
|
|
124
|
-
end
|
|
125
|
-
|
|
126
102
|
sig do
|
|
127
103
|
override.returns(
|
|
128
104
|
T::Array[
|
|
@@ -140,6 +116,14 @@ module Telnyx
|
|
|
140
116
|
],
|
|
141
117
|
Telnyx::Internal::Type::Converter
|
|
142
118
|
)
|
|
119
|
+
|
|
120
|
+
IngestPayloadListArray =
|
|
121
|
+
T.let(
|
|
122
|
+
Telnyx::Internal::Type::ArrayOf[
|
|
123
|
+
Telnyx::Internal::Type::Unknown
|
|
124
|
+
],
|
|
125
|
+
Telnyx::Internal::Type::Converter
|
|
126
|
+
)
|
|
143
127
|
end
|
|
144
128
|
end
|
|
145
129
|
end
|
|
@@ -150,37 +150,13 @@ module Telnyx
|
|
|
150
150
|
T.type_alias do
|
|
151
151
|
T.any(
|
|
152
152
|
T::Hash[Symbol, T.anything],
|
|
153
|
-
|
|
153
|
+
T::Array[T.anything],
|
|
154
|
+
String,
|
|
155
|
+
Float,
|
|
156
|
+
T::Boolean
|
|
154
157
|
)
|
|
155
158
|
end
|
|
156
159
|
|
|
157
|
-
module UnionMember1
|
|
158
|
-
extend Telnyx::Internal::Type::Union
|
|
159
|
-
|
|
160
|
-
Variants =
|
|
161
|
-
T.type_alias do
|
|
162
|
-
T.any(T::Array[T.anything], String, Float, T::Boolean)
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
sig do
|
|
166
|
-
override.returns(
|
|
167
|
-
T::Array[
|
|
168
|
-
Telnyx::Models::AI::Memory::Namespaces::Profiles::SourceRetrieveResponse::Data::Content::UnionMember1::Variants
|
|
169
|
-
]
|
|
170
|
-
)
|
|
171
|
-
end
|
|
172
|
-
def self.variants
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
SourceContentValueArray =
|
|
176
|
-
T.let(
|
|
177
|
-
Telnyx::Internal::Type::ArrayOf[
|
|
178
|
-
Telnyx::Internal::Type::Unknown
|
|
179
|
-
],
|
|
180
|
-
Telnyx::Internal::Type::Converter
|
|
181
|
-
)
|
|
182
|
-
end
|
|
183
|
-
|
|
184
160
|
sig do
|
|
185
161
|
override.returns(
|
|
186
162
|
T::Array[
|
|
@@ -198,6 +174,14 @@ module Telnyx
|
|
|
198
174
|
],
|
|
199
175
|
Telnyx::Internal::Type::Converter
|
|
200
176
|
)
|
|
177
|
+
|
|
178
|
+
SourceContentListArray =
|
|
179
|
+
T.let(
|
|
180
|
+
Telnyx::Internal::Type::ArrayOf[
|
|
181
|
+
Telnyx::Internal::Type::Unknown
|
|
182
|
+
],
|
|
183
|
+
Telnyx::Internal::Type::Converter
|
|
184
|
+
)
|
|
201
185
|
end
|
|
202
186
|
end
|
|
203
187
|
end
|
|
@@ -70,13 +70,14 @@ module Telnyx
|
|
|
70
70
|
# and the LLM still sees full content in its context window. Call recordings
|
|
71
71
|
# (including any recording layout configured under telephony settings) and the
|
|
72
72
|
# payloads of messages/webhooks delivered during the call are never redacted by
|
|
73
|
-
# this setting.
|
|
74
|
-
#
|
|
75
|
-
#
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
#
|
|
73
|
+
# this setting. To redact call recordings, use
|
|
74
|
+
# `telephony_settings.recording_settings.redaction`. The set of detected PII types
|
|
75
|
+
# (names, street addresses, phone numbers, email addresses, government identifiers
|
|
76
|
+
# like SSN and driver's license numbers, credit card and bank account numbers, IP
|
|
77
|
+
# addresses, dates of birth, and other identifiers unique to a person) is fixed by
|
|
78
|
+
# Telnyx and cannot be configured or extended per assistant. Assistants with
|
|
79
|
+
# `redact` cannot be used for SMS/WhatsApp messaging (that combination is rejected
|
|
80
|
+
# with a 400 error); voice and web chat are unaffected.
|
|
80
81
|
sig do
|
|
81
82
|
returns(
|
|
82
83
|
T.nilable(Telnyx::AI::PrivacySettings::PiiRedaction::OrSymbol)
|
|
@@ -150,13 +151,14 @@ module Telnyx
|
|
|
150
151
|
# and the LLM still sees full content in its context window. Call recordings
|
|
151
152
|
# (including any recording layout configured under telephony settings) and the
|
|
152
153
|
# payloads of messages/webhooks delivered during the call are never redacted by
|
|
153
|
-
# this setting.
|
|
154
|
-
#
|
|
155
|
-
#
|
|
156
|
-
#
|
|
157
|
-
#
|
|
158
|
-
#
|
|
159
|
-
#
|
|
154
|
+
# this setting. To redact call recordings, use
|
|
155
|
+
# `telephony_settings.recording_settings.redaction`. The set of detected PII types
|
|
156
|
+
# (names, street addresses, phone numbers, email addresses, government identifiers
|
|
157
|
+
# like SSN and driver's license numbers, credit card and bank account numbers, IP
|
|
158
|
+
# addresses, dates of birth, and other identifiers unique to a person) is fixed by
|
|
159
|
+
# Telnyx and cannot be configured or extended per assistant. Assistants with
|
|
160
|
+
# `redact` cannot be used for SMS/WhatsApp messaging (that combination is rejected
|
|
161
|
+
# with a 400 error); voice and web chat are unaffected.
|
|
160
162
|
pii_redaction: nil
|
|
161
163
|
)
|
|
162
164
|
end
|
|
@@ -190,13 +192,14 @@ module Telnyx
|
|
|
190
192
|
# and the LLM still sees full content in its context window. Call recordings
|
|
191
193
|
# (including any recording layout configured under telephony settings) and the
|
|
192
194
|
# payloads of messages/webhooks delivered during the call are never redacted by
|
|
193
|
-
# this setting.
|
|
194
|
-
#
|
|
195
|
-
#
|
|
196
|
-
#
|
|
197
|
-
#
|
|
198
|
-
#
|
|
199
|
-
#
|
|
195
|
+
# this setting. To redact call recordings, use
|
|
196
|
+
# `telephony_settings.recording_settings.redaction`. The set of detected PII types
|
|
197
|
+
# (names, street addresses, phone numbers, email addresses, government identifiers
|
|
198
|
+
# like SSN and driver's license numbers, credit card and bank account numbers, IP
|
|
199
|
+
# addresses, dates of birth, and other identifiers unique to a person) is fixed by
|
|
200
|
+
# Telnyx and cannot be configured or extended per assistant. Assistants with
|
|
201
|
+
# `redact` cannot be used for SMS/WhatsApp messaging (that combination is rejected
|
|
202
|
+
# with a 400 error); voice and web chat are unaffected.
|
|
200
203
|
module PiiRedaction
|
|
201
204
|
extend Telnyx::Internal::Type::Enum
|
|
202
205
|
|
|
@@ -31,20 +31,24 @@ module Telnyx
|
|
|
31
31
|
|
|
32
32
|
# Not set for a TCP port probe.
|
|
33
33
|
sig { returns(NilClass) }
|
|
34
|
-
attr_accessor :
|
|
34
|
+
attr_accessor :exec_command
|
|
35
35
|
|
|
36
36
|
sig do
|
|
37
|
-
params(tcp_port: Integer,
|
|
37
|
+
params(tcp_port: Integer, exec_command: NilClass).returns(
|
|
38
|
+
T.attached_class
|
|
39
|
+
)
|
|
38
40
|
end
|
|
39
41
|
def self.new(
|
|
40
42
|
# Ready once this port accepts connections inside the sandbox.
|
|
41
43
|
tcp_port:,
|
|
42
44
|
# Not set for a TCP port probe.
|
|
43
|
-
|
|
45
|
+
exec_command: nil
|
|
44
46
|
)
|
|
45
47
|
end
|
|
46
48
|
|
|
47
|
-
sig
|
|
49
|
+
sig do
|
|
50
|
+
override.returns({ tcp_port: Integer, exec_command: NilClass })
|
|
51
|
+
end
|
|
48
52
|
def to_hash
|
|
49
53
|
end
|
|
50
54
|
end
|
|
@@ -60,27 +64,29 @@ module Telnyx
|
|
|
60
64
|
|
|
61
65
|
# Ready once this command (argv) exits with 0.
|
|
62
66
|
sig { returns(T::Array[String]) }
|
|
63
|
-
attr_accessor :
|
|
67
|
+
attr_accessor :exec_command
|
|
64
68
|
|
|
65
69
|
# Not set for an exec probe.
|
|
66
70
|
sig { returns(NilClass) }
|
|
67
71
|
attr_accessor :tcp_port
|
|
68
72
|
|
|
69
73
|
sig do
|
|
70
|
-
params(
|
|
74
|
+
params(exec_command: T::Array[String], tcp_port: NilClass).returns(
|
|
71
75
|
T.attached_class
|
|
72
76
|
)
|
|
73
77
|
end
|
|
74
78
|
def self.new(
|
|
75
79
|
# Ready once this command (argv) exits with 0.
|
|
76
|
-
|
|
80
|
+
exec_command:,
|
|
77
81
|
# Not set for an exec probe.
|
|
78
82
|
tcp_port: nil
|
|
79
83
|
)
|
|
80
84
|
end
|
|
81
85
|
|
|
82
86
|
sig do
|
|
83
|
-
override.returns(
|
|
87
|
+
override.returns(
|
|
88
|
+
{ exec_command: T::Array[String], tcp_port: NilClass }
|
|
89
|
+
)
|
|
84
90
|
end
|
|
85
91
|
def to_hash
|
|
86
92
|
end
|
|
@@ -668,6 +668,32 @@ module Telnyx
|
|
|
668
668
|
end
|
|
669
669
|
attr_writer :file_format
|
|
670
670
|
|
|
671
|
+
# Silences spoken details of the given kinds in the call recording: `pci` (card
|
|
672
|
+
# number, expiry date, security code), `pii` (personal details such as names,
|
|
673
|
+
# phone numbers, addresses and other identifying numbers) and `phi` (health
|
|
674
|
+
# details such as medications, doses and conditions). An empty list (the default)
|
|
675
|
+
# records without redaction. Redaction works on English speech only.
|
|
676
|
+
sig do
|
|
677
|
+
returns(
|
|
678
|
+
T.nilable(
|
|
679
|
+
T::Array[
|
|
680
|
+
Telnyx::AI::TelephonySettings::RecordingSettings::Redaction::OrSymbol
|
|
681
|
+
]
|
|
682
|
+
)
|
|
683
|
+
)
|
|
684
|
+
end
|
|
685
|
+
attr_reader :redaction
|
|
686
|
+
|
|
687
|
+
sig do
|
|
688
|
+
params(
|
|
689
|
+
redaction:
|
|
690
|
+
T::Array[
|
|
691
|
+
Telnyx::AI::TelephonySettings::RecordingSettings::Redaction::OrSymbol
|
|
692
|
+
]
|
|
693
|
+
).void
|
|
694
|
+
end
|
|
695
|
+
attr_writer :redaction
|
|
696
|
+
|
|
671
697
|
# When enabled, the call recording will stop when the conversation ends (for
|
|
672
698
|
# example, when the assistant hangs up or the call is transferred). When disabled,
|
|
673
699
|
# recording continues until the call itself ends.
|
|
@@ -685,6 +711,10 @@ module Telnyx
|
|
|
685
711
|
enabled: T::Boolean,
|
|
686
712
|
file_format:
|
|
687
713
|
Telnyx::AI::TelephonySettings::RecordingSettings::Format::OrSymbol,
|
|
714
|
+
redaction:
|
|
715
|
+
T::Array[
|
|
716
|
+
Telnyx::AI::TelephonySettings::RecordingSettings::Redaction::OrSymbol
|
|
717
|
+
],
|
|
688
718
|
stop_on_conversation_end: T::Boolean
|
|
689
719
|
).returns(T.attached_class)
|
|
690
720
|
end
|
|
@@ -696,6 +726,12 @@ module Telnyx
|
|
|
696
726
|
enabled: nil,
|
|
697
727
|
# The format of the recording file.
|
|
698
728
|
file_format: nil,
|
|
729
|
+
# Silences spoken details of the given kinds in the call recording: `pci` (card
|
|
730
|
+
# number, expiry date, security code), `pii` (personal details such as names,
|
|
731
|
+
# phone numbers, addresses and other identifying numbers) and `phi` (health
|
|
732
|
+
# details such as medications, doses and conditions). An empty list (the default)
|
|
733
|
+
# records without redaction. Redaction works on English speech only.
|
|
734
|
+
redaction: nil,
|
|
699
735
|
# When enabled, the call recording will stop when the conversation ends (for
|
|
700
736
|
# example, when the assistant hangs up or the call is transferred). When disabled,
|
|
701
737
|
# recording continues until the call itself ends.
|
|
@@ -711,6 +747,10 @@ module Telnyx
|
|
|
711
747
|
enabled: T::Boolean,
|
|
712
748
|
file_format:
|
|
713
749
|
Telnyx::AI::TelephonySettings::RecordingSettings::Format::OrSymbol,
|
|
750
|
+
redaction:
|
|
751
|
+
T::Array[
|
|
752
|
+
Telnyx::AI::TelephonySettings::RecordingSettings::Redaction::OrSymbol
|
|
753
|
+
],
|
|
714
754
|
stop_on_conversation_end: T::Boolean
|
|
715
755
|
}
|
|
716
756
|
)
|
|
@@ -787,6 +827,45 @@ module Telnyx
|
|
|
787
827
|
def self.values
|
|
788
828
|
end
|
|
789
829
|
end
|
|
830
|
+
|
|
831
|
+
module Redaction
|
|
832
|
+
extend Telnyx::Internal::Type::Enum
|
|
833
|
+
|
|
834
|
+
TaggedSymbol =
|
|
835
|
+
T.type_alias do
|
|
836
|
+
T.all(
|
|
837
|
+
Symbol,
|
|
838
|
+
Telnyx::AI::TelephonySettings::RecordingSettings::Redaction
|
|
839
|
+
)
|
|
840
|
+
end
|
|
841
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
842
|
+
|
|
843
|
+
PCI =
|
|
844
|
+
T.let(
|
|
845
|
+
:pci,
|
|
846
|
+
Telnyx::AI::TelephonySettings::RecordingSettings::Redaction::TaggedSymbol
|
|
847
|
+
)
|
|
848
|
+
PII =
|
|
849
|
+
T.let(
|
|
850
|
+
:pii,
|
|
851
|
+
Telnyx::AI::TelephonySettings::RecordingSettings::Redaction::TaggedSymbol
|
|
852
|
+
)
|
|
853
|
+
PHI =
|
|
854
|
+
T.let(
|
|
855
|
+
:phi,
|
|
856
|
+
Telnyx::AI::TelephonySettings::RecordingSettings::Redaction::TaggedSymbol
|
|
857
|
+
)
|
|
858
|
+
|
|
859
|
+
sig do
|
|
860
|
+
override.returns(
|
|
861
|
+
T::Array[
|
|
862
|
+
Telnyx::AI::TelephonySettings::RecordingSettings::Redaction::TaggedSymbol
|
|
863
|
+
]
|
|
864
|
+
)
|
|
865
|
+
end
|
|
866
|
+
def self.values
|
|
867
|
+
end
|
|
868
|
+
end
|
|
790
869
|
end
|
|
791
870
|
|
|
792
871
|
class VoicemailDetection < Telnyx::Internal::Type::BaseModel
|
|
@@ -203,7 +203,7 @@ module Telnyx
|
|
|
203
203
|
def self.variants
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
-
|
|
206
|
+
ContentObjectMap =
|
|
207
207
|
T.let(
|
|
208
208
|
Telnyx::Internal::Type::HashOf[
|
|
209
209
|
Telnyx::Internal::Type::Unknown
|
|
@@ -319,7 +319,7 @@ module Telnyx
|
|
|
319
319
|
def self.variants
|
|
320
320
|
end
|
|
321
321
|
|
|
322
|
-
|
|
322
|
+
ContentObjectMap =
|
|
323
323
|
T.let(
|
|
324
324
|
Telnyx::Internal::Type::HashOf[
|
|
325
325
|
Telnyx::Internal::Type::Unknown
|
|
@@ -462,7 +462,7 @@ module Telnyx
|
|
|
462
462
|
def self.variants
|
|
463
463
|
end
|
|
464
464
|
|
|
465
|
-
|
|
465
|
+
ContentObjectMap =
|
|
466
466
|
T.let(
|
|
467
467
|
Telnyx::Internal::Type::HashOf[
|
|
468
468
|
Telnyx::Internal::Type::Unknown
|
|
@@ -510,7 +510,7 @@ module Telnyx
|
|
|
510
510
|
def self.variants
|
|
511
511
|
end
|
|
512
512
|
|
|
513
|
-
|
|
513
|
+
ContentObjectMap =
|
|
514
514
|
T.let(
|
|
515
515
|
Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown],
|
|
516
516
|
Telnyx::Internal::Type::Converter
|
|
@@ -15,10 +15,10 @@ module Telnyx
|
|
|
15
15
|
sig do
|
|
16
16
|
returns(
|
|
17
17
|
T.any(
|
|
18
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
19
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
20
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
21
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
18
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::URLPattern,
|
|
19
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Ref,
|
|
20
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Text,
|
|
21
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::DomStable
|
|
22
22
|
)
|
|
23
23
|
)
|
|
24
24
|
end
|
|
@@ -50,10 +50,10 @@ module Telnyx
|
|
|
50
50
|
params(
|
|
51
51
|
condition:
|
|
52
52
|
T.any(
|
|
53
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
54
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
55
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
56
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
53
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::URLPattern::OrHash,
|
|
54
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Ref::OrHash,
|
|
55
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Text::OrHash,
|
|
56
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::DomStable::OrHash
|
|
57
57
|
),
|
|
58
58
|
idempotency_key: String,
|
|
59
59
|
include_observation: T::Boolean,
|
|
@@ -75,10 +75,10 @@ module Telnyx
|
|
|
75
75
|
{
|
|
76
76
|
condition:
|
|
77
77
|
T.any(
|
|
78
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
79
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
80
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
81
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
78
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::URLPattern,
|
|
79
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Ref,
|
|
80
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Text,
|
|
81
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::DomStable
|
|
82
82
|
),
|
|
83
83
|
type: Symbol,
|
|
84
84
|
idempotency_key: String,
|
|
@@ -96,18 +96,18 @@ module Telnyx
|
|
|
96
96
|
Variants =
|
|
97
97
|
T.type_alias do
|
|
98
98
|
T.any(
|
|
99
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
100
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
101
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
102
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
99
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::URLPattern,
|
|
100
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Ref,
|
|
101
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Text,
|
|
102
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::DomStable
|
|
103
103
|
)
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
class
|
|
106
|
+
class URLPattern < Telnyx::Internal::Type::BaseModel
|
|
107
107
|
OrHash =
|
|
108
108
|
T.type_alias do
|
|
109
109
|
T.any(
|
|
110
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
110
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::URLPattern,
|
|
111
111
|
Telnyx::Internal::AnyHash
|
|
112
112
|
)
|
|
113
113
|
end
|
|
@@ -129,11 +129,11 @@ module Telnyx
|
|
|
129
129
|
end
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
-
class
|
|
132
|
+
class Ref < Telnyx::Internal::Type::BaseModel
|
|
133
133
|
OrHash =
|
|
134
134
|
T.type_alias do
|
|
135
135
|
T.any(
|
|
136
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
136
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Ref,
|
|
137
137
|
Telnyx::Internal::AnyHash
|
|
138
138
|
)
|
|
139
139
|
end
|
|
@@ -164,11 +164,11 @@ module Telnyx
|
|
|
164
164
|
end
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
-
class
|
|
167
|
+
class Text < Telnyx::Internal::Type::BaseModel
|
|
168
168
|
OrHash =
|
|
169
169
|
T.type_alias do
|
|
170
170
|
T.any(
|
|
171
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
171
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::Text,
|
|
172
172
|
Telnyx::Internal::AnyHash
|
|
173
173
|
)
|
|
174
174
|
end
|
|
@@ -188,11 +188,11 @@ module Telnyx
|
|
|
188
188
|
end
|
|
189
189
|
end
|
|
190
190
|
|
|
191
|
-
class
|
|
191
|
+
class DomStable < Telnyx::Internal::Type::BaseModel
|
|
192
192
|
OrHash =
|
|
193
193
|
T.type_alias do
|
|
194
194
|
T.any(
|
|
195
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
195
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::DomStable,
|
|
196
196
|
Telnyx::Internal::AnyHash
|
|
197
197
|
)
|
|
198
198
|
end
|