telnyx 5.68.2 → 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 +59 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +7 -0
- data/lib/telnyx/internal/util.rb +21 -5
- data/lib/telnyx/models/ai/assistant_create_params.rb +8 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +25 -5
- data/lib/telnyx/models/ai/assistant_update_params.rb +8 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +8 -1
- data/lib/telnyx/models/ai/audio_transcribe_response.rb +70 -7
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +8 -1
- data/lib/telnyx/models/ai/observability.rb +46 -0
- data/lib/telnyx/models/ai/observability_req.rb +46 -0
- data/lib/telnyx/models/ai/telephony_settings.rb +13 -1
- 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/pronunciation_dict_create_params.rb +141 -0
- data/lib/telnyx/models/pronunciation_dict_create_response.rb +207 -0
- data/lib/telnyx/models/pronunciation_dict_delete_params.rb +20 -0
- data/lib/telnyx/models/pronunciation_dict_list_params.rb +30 -0
- data/lib/telnyx/models/pronunciation_dict_list_response.rb +190 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_params.rb +20 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +207 -0
- data/lib/telnyx/models/pronunciation_dict_update_params.rb +144 -0
- data/lib/telnyx/models/pronunciation_dict_update_response.rb +207 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +1893 -547
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +514 -0
- data/lib/telnyx/models/texml_initiate_ai_call_response.rb +34 -0
- data/lib/telnyx/models/verification.rb +1 -0
- data/lib/telnyx/models/verification_trigger_whatsapp_verification_params.rb +46 -0
- data/lib/telnyx/models/verify_profile_create_params.rb +43 -1
- data/lib/telnyx/models/verify_profile_update_params.rb +43 -1
- 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/models/whatsapp_message_content.rb +196 -1
- data/lib/telnyx/models/wireless_blocklist_update_params.rb +8 -21
- data/lib/telnyx/models.rb +15 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -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/pronunciation_dicts.rb +156 -0
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -84
- data/lib/telnyx/resources/texml.rb +106 -0
- data/lib/telnyx/resources/verifications.rb +28 -0
- data/lib/telnyx/resources/verify_profiles.rb +5 -2
- data/lib/telnyx/resources/voice_clones.rb +7 -27
- data/lib/telnyx/resources/wireless_blocklists.rb +5 -5
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +23 -8
- data/rbi/telnyx/client.rbi +6 -0
- data/rbi/telnyx/internal/util.rbi +8 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +13 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +56 -5
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +13 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +13 -0
- data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +123 -10
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/ai/inference_embedding.rbi +11 -0
- data/rbi/telnyx/models/ai/observability.rbi +90 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
- data/rbi/telnyx/models/ai/telephony_settings.rbi +13 -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/pronunciation_dict_create_params.rbi +246 -0
- data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +398 -0
- data/rbi/telnyx/models/pronunciation_dict_delete_params.rbi +38 -0
- data/rbi/telnyx/models/pronunciation_dict_list_params.rbi +57 -0
- data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +353 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_params.rbi +38 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +398 -0
- data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +268 -0
- data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +398 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +3719 -1011
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +1010 -0
- data/rbi/telnyx/models/texml_initiate_ai_call_response.rbi +58 -0
- data/rbi/telnyx/models/verification.rbi +1 -0
- data/rbi/telnyx/models/verification_trigger_whatsapp_verification_params.rbi +73 -0
- data/rbi/telnyx/models/verify_profile_create_params.rbi +85 -0
- data/rbi/telnyx/models/verify_profile_update_params.rbi +85 -0
- 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/models/whatsapp_message_content.rbi +492 -0
- data/rbi/telnyx/models/wireless_blocklist_update_params.rbi +6 -49
- data/rbi/telnyx/models.rbi +19 -10
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +4 -0
- 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/pronunciation_dicts.rbi +131 -0
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -163
- data/rbi/telnyx/resources/texml.rbi +164 -0
- data/rbi/telnyx/resources/verifications.rbi +23 -0
- data/rbi/telnyx/resources/verify_profiles.rbi +4 -0
- data/rbi/telnyx/resources/voice_clones.rbi +17 -41
- data/rbi/telnyx/resources/wireless_blocklists.rbi +3 -3
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/internal/util.rbs +4 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +17 -4
- data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
- data/sig/telnyx/models/ai/audio_transcribe_response.rbs +53 -3
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
- data/sig/telnyx/models/ai/observability.rbs +58 -0
- data/sig/telnyx/models/ai/observability_req.rbs +58 -0
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -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/pronunciation_dict_create_params.rbs +97 -0
- data/sig/telnyx/models/pronunciation_dict_create_response.rbs +167 -0
- data/sig/telnyx/models/pronunciation_dict_delete_params.rbs +20 -0
- data/sig/telnyx/models/pronunciation_dict_list_params.rbs +32 -0
- data/sig/telnyx/models/pronunciation_dict_list_response.rbs +144 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_params.rbs +20 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +167 -0
- data/sig/telnyx/models/pronunciation_dict_update_params.rbs +108 -0
- data/sig/telnyx/models/pronunciation_dict_update_response.rbs +167 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +1368 -331
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +444 -0
- data/sig/telnyx/models/texml_initiate_ai_call_response.rbs +38 -0
- data/sig/telnyx/models/verification.rbs +2 -1
- data/sig/telnyx/models/verification_trigger_whatsapp_verification_params.rbs +43 -0
- data/sig/telnyx/models/verify_profile_create_params.rbs +43 -1
- data/sig/telnyx/models/verify_profile_update_params.rbs +43 -1
- 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/models/whatsapp_message_content.rbs +205 -0
- data/sig/telnyx/models/wireless_blocklist_update_params.rbs +5 -25
- data/sig/telnyx/models.rbs +14 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- 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/pronunciation_dicts.rbs +33 -0
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -40
- data/sig/telnyx/resources/texml.rbs +44 -0
- data/sig/telnyx/resources/verifications.rbs +8 -0
- data/sig/telnyx/resources/verify_profiles.rbs +2 -0
- data/sig/telnyx/resources/voice_clones.rbs +2 -12
- data/sig/telnyx/resources/wireless_blocklists.rbs +1 -1
- metadata +71 -26
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class TexmlInitiateAICallResponse < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Telnyx::Models::TexmlInitiateAICallResponse,
|
|
10
|
+
Telnyx::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(T.nilable(String)) }
|
|
15
|
+
attr_reader :call_sid
|
|
16
|
+
|
|
17
|
+
sig { params(call_sid: String).void }
|
|
18
|
+
attr_writer :call_sid
|
|
19
|
+
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_reader :from
|
|
22
|
+
|
|
23
|
+
sig { params(from: String).void }
|
|
24
|
+
attr_writer :from
|
|
25
|
+
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :status
|
|
28
|
+
|
|
29
|
+
sig { params(status: String).void }
|
|
30
|
+
attr_writer :status
|
|
31
|
+
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :to
|
|
34
|
+
|
|
35
|
+
sig { params(to: String).void }
|
|
36
|
+
attr_writer :to
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
call_sid: String,
|
|
41
|
+
from: String,
|
|
42
|
+
status: String,
|
|
43
|
+
to: String
|
|
44
|
+
).returns(T.attached_class)
|
|
45
|
+
end
|
|
46
|
+
def self.new(call_sid: nil, from: nil, status: nil, to: nil)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
override.returns(
|
|
51
|
+
{ call_sid: String, from: String, status: String, to: String }
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
def to_hash
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -182,6 +182,7 @@ module Telnyx
|
|
|
182
182
|
SMS = T.let(:sms, Telnyx::Verification::Type::TaggedSymbol)
|
|
183
183
|
CALL = T.let(:call, Telnyx::Verification::Type::TaggedSymbol)
|
|
184
184
|
FLASHCALL = T.let(:flashcall, Telnyx::Verification::Type::TaggedSymbol)
|
|
185
|
+
WHATSAPP = T.let(:whatsapp, Telnyx::Verification::Type::TaggedSymbol)
|
|
185
186
|
|
|
186
187
|
sig do
|
|
187
188
|
override.returns(T::Array[Telnyx::Verification::Type::TaggedSymbol])
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class VerificationTriggerWhatsappVerificationParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Telnyx::VerificationTriggerWhatsappVerificationParams,
|
|
13
|
+
Telnyx::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# +E164 formatted phone number.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :phone_number
|
|
20
|
+
|
|
21
|
+
# The identifier of the associated Verify profile.
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :verify_profile_id
|
|
24
|
+
|
|
25
|
+
# Send a self-generated numeric code to the end-user
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_accessor :custom_code
|
|
28
|
+
|
|
29
|
+
# The number of seconds the verification code is valid for.
|
|
30
|
+
sig { returns(T.nilable(Integer)) }
|
|
31
|
+
attr_reader :timeout_secs
|
|
32
|
+
|
|
33
|
+
sig { params(timeout_secs: Integer).void }
|
|
34
|
+
attr_writer :timeout_secs
|
|
35
|
+
|
|
36
|
+
sig do
|
|
37
|
+
params(
|
|
38
|
+
phone_number: String,
|
|
39
|
+
verify_profile_id: String,
|
|
40
|
+
custom_code: T.nilable(String),
|
|
41
|
+
timeout_secs: Integer,
|
|
42
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
43
|
+
).returns(T.attached_class)
|
|
44
|
+
end
|
|
45
|
+
def self.new(
|
|
46
|
+
# +E164 formatted phone number.
|
|
47
|
+
phone_number:,
|
|
48
|
+
# The identifier of the associated Verify profile.
|
|
49
|
+
verify_profile_id:,
|
|
50
|
+
# Send a self-generated numeric code to the end-user
|
|
51
|
+
custom_code: nil,
|
|
52
|
+
# The number of seconds the verification code is valid for.
|
|
53
|
+
timeout_secs: nil,
|
|
54
|
+
request_options: {}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
override.returns(
|
|
60
|
+
{
|
|
61
|
+
phone_number: String,
|
|
62
|
+
verify_profile_id: String,
|
|
63
|
+
custom_code: T.nilable(String),
|
|
64
|
+
timeout_secs: Integer,
|
|
65
|
+
request_options: Telnyx::RequestOptions
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def to_hash
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -60,6 +60,16 @@ module Telnyx
|
|
|
60
60
|
sig { params(webhook_url: String).void }
|
|
61
61
|
attr_writer :webhook_url
|
|
62
62
|
|
|
63
|
+
sig { returns(T.nilable(Telnyx::VerifyProfileCreateParams::Whatsapp)) }
|
|
64
|
+
attr_reader :whatsapp
|
|
65
|
+
|
|
66
|
+
sig do
|
|
67
|
+
params(
|
|
68
|
+
whatsapp: Telnyx::VerifyProfileCreateParams::Whatsapp::OrHash
|
|
69
|
+
).void
|
|
70
|
+
end
|
|
71
|
+
attr_writer :whatsapp
|
|
72
|
+
|
|
63
73
|
sig do
|
|
64
74
|
params(
|
|
65
75
|
name: String,
|
|
@@ -70,6 +80,7 @@ module Telnyx
|
|
|
70
80
|
sms: Telnyx::VerifyProfileCreateParams::SMS::OrHash,
|
|
71
81
|
webhook_failover_url: String,
|
|
72
82
|
webhook_url: String,
|
|
83
|
+
whatsapp: Telnyx::VerifyProfileCreateParams::Whatsapp::OrHash,
|
|
73
84
|
request_options: Telnyx::RequestOptions::OrHash
|
|
74
85
|
).returns(T.attached_class)
|
|
75
86
|
end
|
|
@@ -82,6 +93,7 @@ module Telnyx
|
|
|
82
93
|
sms: nil,
|
|
83
94
|
webhook_failover_url: nil,
|
|
84
95
|
webhook_url: nil,
|
|
96
|
+
whatsapp: nil,
|
|
85
97
|
request_options: {}
|
|
86
98
|
)
|
|
87
99
|
end
|
|
@@ -97,6 +109,7 @@ module Telnyx
|
|
|
97
109
|
sms: Telnyx::VerifyProfileCreateParams::SMS,
|
|
98
110
|
webhook_failover_url: String,
|
|
99
111
|
webhook_url: String,
|
|
112
|
+
whatsapp: Telnyx::VerifyProfileCreateParams::Whatsapp,
|
|
100
113
|
request_options: Telnyx::RequestOptions
|
|
101
114
|
}
|
|
102
115
|
)
|
|
@@ -478,6 +491,78 @@ module Telnyx
|
|
|
478
491
|
def to_hash
|
|
479
492
|
end
|
|
480
493
|
end
|
|
494
|
+
|
|
495
|
+
class Whatsapp < Telnyx::Internal::Type::BaseModel
|
|
496
|
+
OrHash =
|
|
497
|
+
T.type_alias do
|
|
498
|
+
T.any(
|
|
499
|
+
Telnyx::VerifyProfileCreateParams::Whatsapp,
|
|
500
|
+
Telnyx::Internal::AnyHash
|
|
501
|
+
)
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
# The name that identifies the application requesting 2fa in the verification
|
|
505
|
+
# message.
|
|
506
|
+
sig { returns(T.nilable(String)) }
|
|
507
|
+
attr_reader :app_name
|
|
508
|
+
|
|
509
|
+
sig { params(app_name: String).void }
|
|
510
|
+
attr_writer :app_name
|
|
511
|
+
|
|
512
|
+
# For every request that is initiated via this Verify profile, this sets the
|
|
513
|
+
# number of seconds before a verification request code expires. Once the
|
|
514
|
+
# verification request expires, the user cannot use the code to verify their
|
|
515
|
+
# identity.
|
|
516
|
+
sig { returns(T.nilable(Integer)) }
|
|
517
|
+
attr_reader :default_verification_timeout_secs
|
|
518
|
+
|
|
519
|
+
sig { params(default_verification_timeout_secs: Integer).void }
|
|
520
|
+
attr_writer :default_verification_timeout_secs
|
|
521
|
+
|
|
522
|
+
# Enabled country destinations to send verification codes. The elements in the
|
|
523
|
+
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
524
|
+
# destinations will be allowed.
|
|
525
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
526
|
+
attr_reader :whitelisted_destinations
|
|
527
|
+
|
|
528
|
+
sig { params(whitelisted_destinations: T::Array[String]).void }
|
|
529
|
+
attr_writer :whitelisted_destinations
|
|
530
|
+
|
|
531
|
+
sig do
|
|
532
|
+
params(
|
|
533
|
+
app_name: String,
|
|
534
|
+
default_verification_timeout_secs: Integer,
|
|
535
|
+
whitelisted_destinations: T::Array[String]
|
|
536
|
+
).returns(T.attached_class)
|
|
537
|
+
end
|
|
538
|
+
def self.new(
|
|
539
|
+
# The name that identifies the application requesting 2fa in the verification
|
|
540
|
+
# message.
|
|
541
|
+
app_name: nil,
|
|
542
|
+
# For every request that is initiated via this Verify profile, this sets the
|
|
543
|
+
# number of seconds before a verification request code expires. Once the
|
|
544
|
+
# verification request expires, the user cannot use the code to verify their
|
|
545
|
+
# identity.
|
|
546
|
+
default_verification_timeout_secs: nil,
|
|
547
|
+
# Enabled country destinations to send verification codes. The elements in the
|
|
548
|
+
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
549
|
+
# destinations will be allowed.
|
|
550
|
+
whitelisted_destinations: nil
|
|
551
|
+
)
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
sig do
|
|
555
|
+
override.returns(
|
|
556
|
+
{
|
|
557
|
+
app_name: String,
|
|
558
|
+
default_verification_timeout_secs: Integer,
|
|
559
|
+
whitelisted_destinations: T::Array[String]
|
|
560
|
+
}
|
|
561
|
+
)
|
|
562
|
+
end
|
|
563
|
+
def to_hash
|
|
564
|
+
end
|
|
565
|
+
end
|
|
481
566
|
end
|
|
482
567
|
end
|
|
483
568
|
end
|
|
@@ -66,6 +66,16 @@ module Telnyx
|
|
|
66
66
|
sig { params(webhook_url: String).void }
|
|
67
67
|
attr_writer :webhook_url
|
|
68
68
|
|
|
69
|
+
sig { returns(T.nilable(Telnyx::VerifyProfileUpdateParams::Whatsapp)) }
|
|
70
|
+
attr_reader :whatsapp
|
|
71
|
+
|
|
72
|
+
sig do
|
|
73
|
+
params(
|
|
74
|
+
whatsapp: Telnyx::VerifyProfileUpdateParams::Whatsapp::OrHash
|
|
75
|
+
).void
|
|
76
|
+
end
|
|
77
|
+
attr_writer :whatsapp
|
|
78
|
+
|
|
69
79
|
sig do
|
|
70
80
|
params(
|
|
71
81
|
verify_profile_id: String,
|
|
@@ -77,6 +87,7 @@ module Telnyx
|
|
|
77
87
|
sms: Telnyx::VerifyProfileUpdateParams::SMS::OrHash,
|
|
78
88
|
webhook_failover_url: String,
|
|
79
89
|
webhook_url: String,
|
|
90
|
+
whatsapp: Telnyx::VerifyProfileUpdateParams::Whatsapp::OrHash,
|
|
80
91
|
request_options: Telnyx::RequestOptions::OrHash
|
|
81
92
|
).returns(T.attached_class)
|
|
82
93
|
end
|
|
@@ -90,6 +101,7 @@ module Telnyx
|
|
|
90
101
|
sms: nil,
|
|
91
102
|
webhook_failover_url: nil,
|
|
92
103
|
webhook_url: nil,
|
|
104
|
+
whatsapp: nil,
|
|
93
105
|
request_options: {}
|
|
94
106
|
)
|
|
95
107
|
end
|
|
@@ -106,6 +118,7 @@ module Telnyx
|
|
|
106
118
|
sms: Telnyx::VerifyProfileUpdateParams::SMS,
|
|
107
119
|
webhook_failover_url: String,
|
|
108
120
|
webhook_url: String,
|
|
121
|
+
whatsapp: Telnyx::VerifyProfileUpdateParams::Whatsapp,
|
|
109
122
|
request_options: Telnyx::RequestOptions
|
|
110
123
|
}
|
|
111
124
|
)
|
|
@@ -487,6 +500,78 @@ module Telnyx
|
|
|
487
500
|
def to_hash
|
|
488
501
|
end
|
|
489
502
|
end
|
|
503
|
+
|
|
504
|
+
class Whatsapp < Telnyx::Internal::Type::BaseModel
|
|
505
|
+
OrHash =
|
|
506
|
+
T.type_alias do
|
|
507
|
+
T.any(
|
|
508
|
+
Telnyx::VerifyProfileUpdateParams::Whatsapp,
|
|
509
|
+
Telnyx::Internal::AnyHash
|
|
510
|
+
)
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# The name that identifies the application requesting 2fa in the verification
|
|
514
|
+
# message.
|
|
515
|
+
sig { returns(T.nilable(String)) }
|
|
516
|
+
attr_reader :app_name
|
|
517
|
+
|
|
518
|
+
sig { params(app_name: String).void }
|
|
519
|
+
attr_writer :app_name
|
|
520
|
+
|
|
521
|
+
# For every request that is initiated via this Verify profile, this sets the
|
|
522
|
+
# number of seconds before a verification request code expires. Once the
|
|
523
|
+
# verification request expires, the user cannot use the code to verify their
|
|
524
|
+
# identity.
|
|
525
|
+
sig { returns(T.nilable(Integer)) }
|
|
526
|
+
attr_reader :default_verification_timeout_secs
|
|
527
|
+
|
|
528
|
+
sig { params(default_verification_timeout_secs: Integer).void }
|
|
529
|
+
attr_writer :default_verification_timeout_secs
|
|
530
|
+
|
|
531
|
+
# Enabled country destinations to send verification codes. The elements in the
|
|
532
|
+
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
533
|
+
# destinations will be allowed.
|
|
534
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
535
|
+
attr_reader :whitelisted_destinations
|
|
536
|
+
|
|
537
|
+
sig { params(whitelisted_destinations: T::Array[String]).void }
|
|
538
|
+
attr_writer :whitelisted_destinations
|
|
539
|
+
|
|
540
|
+
sig do
|
|
541
|
+
params(
|
|
542
|
+
app_name: String,
|
|
543
|
+
default_verification_timeout_secs: Integer,
|
|
544
|
+
whitelisted_destinations: T::Array[String]
|
|
545
|
+
).returns(T.attached_class)
|
|
546
|
+
end
|
|
547
|
+
def self.new(
|
|
548
|
+
# The name that identifies the application requesting 2fa in the verification
|
|
549
|
+
# message.
|
|
550
|
+
app_name: nil,
|
|
551
|
+
# For every request that is initiated via this Verify profile, this sets the
|
|
552
|
+
# number of seconds before a verification request code expires. Once the
|
|
553
|
+
# verification request expires, the user cannot use the code to verify their
|
|
554
|
+
# identity.
|
|
555
|
+
default_verification_timeout_secs: nil,
|
|
556
|
+
# Enabled country destinations to send verification codes. The elements in the
|
|
557
|
+
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
558
|
+
# destinations will be allowed.
|
|
559
|
+
whitelisted_destinations: nil
|
|
560
|
+
)
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
sig do
|
|
564
|
+
override.returns(
|
|
565
|
+
{
|
|
566
|
+
app_name: String,
|
|
567
|
+
default_verification_timeout_secs: Integer,
|
|
568
|
+
whitelisted_destinations: T::Array[String]
|
|
569
|
+
}
|
|
570
|
+
)
|
|
571
|
+
end
|
|
572
|
+
def to_hash
|
|
573
|
+
end
|
|
574
|
+
end
|
|
490
575
|
end
|
|
491
576
|
end
|
|
492
577
|
end
|