telnyx 5.150.0 → 5.152.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 +5 -531
- data/README.md +10 -1
- data/lib/telnyx/models/advanced_order_create_params.rb +1 -86
- data/lib/telnyx/models/advanced_order_update_requirement_group_params.rb +1 -88
- data/lib/telnyx/models/ai_retrieve_conversation_histories_params.rb +22 -48
- data/lib/telnyx/models/ai_retrieve_conversation_histories_response.rb +10 -50
- data/lib/telnyx/models/calls/deepgram_nova2_config.rb +23 -1
- data/lib/telnyx/models/calls/deepgram_nova3_config.rb +22 -1
- data/lib/telnyx/models/calls/transcription_start_request.rb +5 -3
- data/lib/telnyx/models/dir/email_verification_status_wrapped.rb +82 -0
- data/lib/telnyx/models/dir/reference.rb +125 -0
- data/lib/telnyx/models/dir/reference_create_params.rb +43 -0
- data/lib/telnyx/models/dir/reference_input.rb +74 -0
- data/lib/telnyx/models/dir/reference_list.rb +18 -0
- data/lib/telnyx/models/dir/{phone_number_delete_all_params.rb → reference_list_params.rb} +3 -9
- data/lib/telnyx/models/dir/reference_update_params.rb +103 -0
- data/lib/telnyx/models/dir/reference_update_response.rb +23 -0
- data/lib/telnyx/models/dir/verify_email_confirm_params.rb +31 -0
- data/lib/telnyx/models/dir/verify_email_create_params.rb +22 -0
- data/lib/telnyx/models/dir/verify_email_list_params.rb +22 -0
- data/lib/telnyx/models/dir_update_infringement_params.rb +6 -2
- data/lib/telnyx/models/enterprises/dir_create_params.rb +10 -10
- data/lib/telnyx/models/public_internet_gateway.rb +24 -1
- data/lib/telnyx/models/storage/kv_create_params.rb +24 -0
- data/lib/telnyx/models/storage/kv_delete_params.rb +22 -0
- data/lib/telnyx/models/storage/kv_list_params.rb +32 -0
- data/lib/telnyx/models/storage/kv_namespace.rb +75 -0
- data/lib/telnyx/models/storage/kv_namespace_response_wrapper.rb +18 -0
- data/lib/telnyx/models/storage/kv_retrieve_params.rb +22 -0
- data/lib/telnyx/models/storage/kvs/key_delete_params.rb +30 -0
- data/lib/telnyx/models/storage/kvs/key_list_params.rb +49 -0
- data/lib/telnyx/models/storage/kvs/key_list_response.rb +82 -0
- data/lib/telnyx/models/storage/kvs/key_retrieve_params.rb +30 -0
- data/lib/telnyx/models/storage/kvs/key_update_params.rb +53 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +9 -69
- data/lib/telnyx/models/virtual_cross_connect_create.rb +176 -2
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rb +31 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rb +54 -0
- data/lib/telnyx/models/wireguard_interface.rb +24 -1
- data/lib/telnyx/resources/ai.rb +20 -21
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/dir/references.rb +139 -0
- data/lib/telnyx/resources/dir/verify_email.rb +91 -0
- data/lib/telnyx/resources/dir.rb +17 -1
- data/lib/telnyx/resources/documents.rb +1 -1
- data/lib/telnyx/resources/enterprises/dir.rb +3 -3
- data/lib/telnyx/resources/storage/kvs/keys.rb +154 -0
- data/lib/telnyx/resources/storage/kvs.rb +115 -0
- data/lib/telnyx/resources/storage.rb +5 -0
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +27 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +29 -2
- data/rbi/telnyx/models/advanced_order_create_params.rbi +4 -198
- data/rbi/telnyx/models/advanced_order_update_requirement_group_params.rbi +2 -219
- data/rbi/telnyx/models/ai/assistant_get_texml_response.rbi +1 -1
- data/rbi/telnyx/models/ai/assistants/instruction_enhance_response.rbi +1 -1
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_params.rbi +30 -97
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_response.rbi +10 -85
- data/rbi/telnyx/models/calls/deepgram_nova2_config.rbi +34 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_config.rbi +32 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +5 -0
- data/rbi/telnyx/models/dir/email_verification_status_wrapped.rbi +184 -0
- data/rbi/telnyx/models/dir/reference.rbi +162 -0
- data/rbi/telnyx/models/dir/reference_create_params.rbi +66 -0
- data/rbi/telnyx/models/dir/reference_input.rbi +93 -0
- data/rbi/telnyx/models/dir/reference_list.rbi +29 -0
- data/rbi/telnyx/models/dir/reference_list_params.rbi +37 -0
- data/rbi/telnyx/models/dir/reference_update_params.rbi +154 -0
- data/rbi/telnyx/models/dir/reference_update_response.rbi +39 -0
- data/rbi/telnyx/models/dir/{phone_number_delete_all_params.rbi → verify_email_confirm_params.rbi} +13 -7
- data/rbi/telnyx/models/dir/verify_email_create_params.rbi +40 -0
- data/rbi/telnyx/models/dir/verify_email_list_params.rbi +37 -0
- data/rbi/telnyx/models/dir_update_infringement_params.rbi +4 -2
- data/rbi/telnyx/models/enterprises/dir_create_params.rbi +10 -13
- data/rbi/telnyx/models/messaging_profiles/autoresp_config_delete_response.rbi +1 -1
- data/rbi/telnyx/models/public_internet_gateway.rbi +45 -3
- data/rbi/telnyx/models/storage/kv_create_params.rbi +42 -0
- data/rbi/telnyx/models/storage/kv_delete_params.rbi +37 -0
- data/rbi/telnyx/models/storage/kv_list_params.rbi +59 -0
- data/rbi/telnyx/models/storage/kv_namespace.rbi +131 -0
- data/rbi/telnyx/models/storage/kv_namespace_response_wrapper.rbi +35 -0
- data/rbi/telnyx/models/storage/kv_retrieve_params.rbi +37 -0
- data/rbi/telnyx/models/storage/kvs/key_delete_params.rbi +50 -0
- data/rbi/telnyx/models/storage/kvs/key_list_params.rbi +81 -0
- data/rbi/telnyx/models/storage/kvs/key_list_response.rbi +179 -0
- data/rbi/telnyx/models/storage/kvs/key_retrieve_params.rbi +50 -0
- data/rbi/telnyx/models/storage/kvs/key_update_params.rbi +77 -0
- data/rbi/telnyx/models/sub_number_orders_report_download_response.rbi +1 -1
- data/rbi/telnyx/models/telephony_credential_create_token_response.rbi +1 -1
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +12 -189
- data/rbi/telnyx/models/virtual_cross_connect_create.rbi +265 -7
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbi +54 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_interface.rbi +48 -3
- data/rbi/telnyx/models/wireguard_peer_retrieve_config_response.rbi +1 -1
- data/rbi/telnyx/models.rbi +0 -7
- data/rbi/telnyx/resources/ai.rbi +21 -28
- data/rbi/telnyx/resources/calls/actions.rbi +1 -0
- data/rbi/telnyx/resources/dir/references.rbi +114 -0
- data/rbi/telnyx/resources/dir/verify_email.rbi +70 -0
- data/rbi/telnyx/resources/dir.rbi +13 -1
- data/rbi/telnyx/resources/enterprises/dir.rbi +4 -4
- data/rbi/telnyx/resources/storage/kvs/keys.rbi +115 -0
- data/rbi/telnyx/resources/storage/kvs.rbi +87 -0
- data/rbi/telnyx/resources/storage.rbi +4 -0
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +21 -0
- data/sig/telnyx/models/advanced_order_create_params.rbs +3 -99
- data/sig/telnyx/models/advanced_order_update_requirement_group_params.rbs +3 -94
- data/sig/telnyx/models/ai_retrieve_conversation_histories_params.rbs +15 -34
- data/sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs +0 -24
- data/sig/telnyx/models/calls/deepgram_nova2_config.rbs +14 -0
- data/sig/telnyx/models/calls/deepgram_nova3_config.rbs +14 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +1 -0
- data/sig/telnyx/models/dir/email_verification_status_wrapped.rbs +69 -0
- data/sig/telnyx/models/dir/reference.rbs +88 -0
- data/sig/telnyx/models/dir/reference_create_params.rbs +38 -0
- data/sig/telnyx/models/dir/reference_input.rbs +52 -0
- data/sig/telnyx/models/dir/reference_list.rbs +15 -0
- data/sig/telnyx/models/dir/reference_list_params.rbs +25 -0
- data/sig/telnyx/models/dir/reference_update_params.rbs +92 -0
- data/sig/telnyx/models/dir/reference_update_response.rbs +15 -0
- data/sig/telnyx/models/dir/{phone_number_delete_all_params.rbs → verify_email_confirm_params.rbs} +6 -6
- data/sig/telnyx/models/dir/verify_email_create_params.rbs +25 -0
- data/sig/telnyx/models/dir/verify_email_list_params.rbs +25 -0
- data/sig/telnyx/models/enterprises/dir_create_params.rbs +5 -7
- data/sig/telnyx/models/public_internet_gateway.rbs +32 -3
- data/sig/telnyx/models/storage/kv_create_params.rbs +25 -0
- data/sig/telnyx/models/storage/kv_delete_params.rbs +22 -0
- data/sig/telnyx/models/storage/kv_list_params.rbs +34 -0
- data/sig/telnyx/models/storage/kv_namespace.rbs +80 -0
- data/sig/telnyx/models/storage/kv_namespace_response_wrapper.rbs +20 -0
- data/sig/telnyx/models/storage/kv_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/storage/kvs/key_delete_params.rbs +32 -0
- data/sig/telnyx/models/storage/kvs/key_list_params.rbs +46 -0
- data/sig/telnyx/models/storage/kvs/key_list_response.rbs +88 -0
- data/sig/telnyx/models/{enterprises/reputation/loa_patch_all_params.rbs → storage/kvs/key_retrieve_params.rbs} +11 -11
- data/sig/telnyx/models/storage/kvs/key_update_params.rbs +47 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -63
- data/sig/telnyx/models/virtual_cross_connect_create.rbs +138 -7
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbs +30 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbs +66 -0
- data/sig/telnyx/models/wireguard_interface.rbs +34 -3
- data/sig/telnyx/models.rbs +0 -1
- data/sig/telnyx/resources/ai.rbs +2 -3
- data/sig/telnyx/resources/dir/references.rbs +35 -0
- data/sig/telnyx/resources/dir/verify_email.rbs +25 -0
- data/sig/telnyx/resources/dir.rbs +4 -0
- data/sig/telnyx/resources/enterprises/dir.rbs +1 -1
- data/sig/telnyx/resources/storage/kvs/keys.rbs +39 -0
- data/sig/telnyx/resources/storage/kvs.rbs +32 -0
- data/sig/telnyx/resources/storage.rbs +2 -0
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +6 -0
- metadata +86 -38
- data/lib/telnyx/models/dir/phone_number_create_params.rb +0 -47
- data/lib/telnyx/models/dir/phone_number_create_response.rb +0 -32
- data/lib/telnyx/models/dir/phone_number_delete_all_response.rb +0 -103
- data/lib/telnyx/models/dir_loa_params.rb +0 -79
- data/lib/telnyx/models/dir_retrieve_document_types_params.rb +0 -14
- data/lib/telnyx/models/dir_retrieve_document_types_response.rb +0 -51
- data/lib/telnyx/models/dir_retrieve_infringement_claims_params.rb +0 -40
- data/lib/telnyx/models/dir_retrieve_infringement_claims_response.rb +0 -30
- data/lib/telnyx/models/dir_update_infringement_update_params.rb +0 -134
- data/lib/telnyx/models/enterprises/reputation/loa_create_params.rb +0 -146
- data/lib/telnyx/models/enterprises/reputation/loa_patch_all_params.rb +0 -38
- data/rbi/telnyx/models/dir/phone_number_create_params.rbi +0 -72
- data/rbi/telnyx/models/dir/phone_number_create_response.rbi +0 -48
- data/rbi/telnyx/models/dir/phone_number_delete_all_response.rbi +0 -206
- data/rbi/telnyx/models/dir_loa_params.rbi +0 -120
- data/rbi/telnyx/models/dir_retrieve_document_types_params.rbi +0 -30
- data/rbi/telnyx/models/dir_retrieve_document_types_response.rbi +0 -103
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_params.rbi +0 -66
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_response.rbi +0 -55
- data/rbi/telnyx/models/dir_update_infringement_update_params.rbi +0 -256
- data/rbi/telnyx/models/enterprises/reputation/loa_create_params.rbi +0 -238
- data/rbi/telnyx/models/enterprises/reputation/loa_patch_all_params.rbi +0 -60
- data/sig/telnyx/models/dir/phone_number_create_params.rbs +0 -38
- data/sig/telnyx/models/dir/phone_number_create_response.rbs +0 -16
- data/sig/telnyx/models/dir/phone_number_delete_all_response.rbs +0 -86
- data/sig/telnyx/models/dir_loa_params.rbs +0 -61
- data/sig/telnyx/models/dir_retrieve_document_types_params.rbs +0 -15
- data/sig/telnyx/models/dir_retrieve_document_types_response.rbs +0 -41
- data/sig/telnyx/models/dir_retrieve_infringement_claims_params.rbs +0 -36
- data/sig/telnyx/models/dir_retrieve_infringement_claims_response.rbs +0 -25
- data/sig/telnyx/models/dir_update_infringement_update_params.rbs +0 -111
- data/sig/telnyx/models/enterprises/reputation/loa_create_params.rbs +0 -135
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class Reference < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Telnyx::Dir::Reference, Telnyx::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Full name of the reference contact.
|
|
13
|
+
sig { returns(String) }
|
|
14
|
+
attr_accessor :full_name
|
|
15
|
+
|
|
16
|
+
# Reference phone number in E.164 format.
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :phone_e164
|
|
19
|
+
|
|
20
|
+
# Whether this is a business reference or the financial reference.
|
|
21
|
+
sig { returns(Telnyx::Dir::Reference::RefType::TaggedSymbol) }
|
|
22
|
+
attr_accessor :ref_type
|
|
23
|
+
|
|
24
|
+
# Position within the reference type. Business references occupy slots 0 and 1;
|
|
25
|
+
# the financial reference occupies slot 0.
|
|
26
|
+
sig { returns(Integer) }
|
|
27
|
+
attr_accessor :slot
|
|
28
|
+
|
|
29
|
+
# IANA timezone id for the reference. Calls are only placed within the reference's
|
|
30
|
+
# local 8am-9pm window.
|
|
31
|
+
sig { returns(String) }
|
|
32
|
+
attr_accessor :timezone
|
|
33
|
+
|
|
34
|
+
# Reference contact email address.
|
|
35
|
+
sig { returns(T.nilable(String)) }
|
|
36
|
+
attr_accessor :email
|
|
37
|
+
|
|
38
|
+
# Job title of the reference contact.
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_accessor :job_title
|
|
41
|
+
|
|
42
|
+
# Organization the reference contact belongs to.
|
|
43
|
+
sig { returns(T.nilable(String)) }
|
|
44
|
+
attr_accessor :organization
|
|
45
|
+
|
|
46
|
+
# How the reference contact is related to the registering business.
|
|
47
|
+
sig { returns(T.nilable(String)) }
|
|
48
|
+
attr_accessor :relationship_to_registrant
|
|
49
|
+
|
|
50
|
+
# Always `dir_reference`.
|
|
51
|
+
sig { returns(Telnyx::Dir::Reference::RecordType::TaggedSymbol) }
|
|
52
|
+
attr_accessor :record_type
|
|
53
|
+
|
|
54
|
+
# A reference (business or financial) on a DIR, in the customer-facing shape. No
|
|
55
|
+
# internal identifiers are exposed.
|
|
56
|
+
sig do
|
|
57
|
+
params(
|
|
58
|
+
full_name: String,
|
|
59
|
+
phone_e164: String,
|
|
60
|
+
record_type: Telnyx::Dir::Reference::RecordType::OrSymbol,
|
|
61
|
+
ref_type: Telnyx::Dir::Reference::RefType::OrSymbol,
|
|
62
|
+
slot: Integer,
|
|
63
|
+
timezone: String,
|
|
64
|
+
email: T.nilable(String),
|
|
65
|
+
job_title: T.nilable(String),
|
|
66
|
+
organization: T.nilable(String),
|
|
67
|
+
relationship_to_registrant: T.nilable(String)
|
|
68
|
+
).returns(T.attached_class)
|
|
69
|
+
end
|
|
70
|
+
def self.new(
|
|
71
|
+
# Full name of the reference contact.
|
|
72
|
+
full_name:,
|
|
73
|
+
# Reference phone number in E.164 format.
|
|
74
|
+
phone_e164:,
|
|
75
|
+
# Always `dir_reference`.
|
|
76
|
+
record_type:,
|
|
77
|
+
# Whether this is a business reference or the financial reference.
|
|
78
|
+
ref_type:,
|
|
79
|
+
# Position within the reference type. Business references occupy slots 0 and 1;
|
|
80
|
+
# the financial reference occupies slot 0.
|
|
81
|
+
slot:,
|
|
82
|
+
# IANA timezone id for the reference. Calls are only placed within the reference's
|
|
83
|
+
# local 8am-9pm window.
|
|
84
|
+
timezone:,
|
|
85
|
+
# Reference contact email address.
|
|
86
|
+
email: nil,
|
|
87
|
+
# Job title of the reference contact.
|
|
88
|
+
job_title: nil,
|
|
89
|
+
# Organization the reference contact belongs to.
|
|
90
|
+
organization: nil,
|
|
91
|
+
# How the reference contact is related to the registering business.
|
|
92
|
+
relationship_to_registrant: nil
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
sig do
|
|
97
|
+
override.returns(
|
|
98
|
+
{
|
|
99
|
+
full_name: String,
|
|
100
|
+
phone_e164: String,
|
|
101
|
+
record_type: Telnyx::Dir::Reference::RecordType::TaggedSymbol,
|
|
102
|
+
ref_type: Telnyx::Dir::Reference::RefType::TaggedSymbol,
|
|
103
|
+
slot: Integer,
|
|
104
|
+
timezone: String,
|
|
105
|
+
email: T.nilable(String),
|
|
106
|
+
job_title: T.nilable(String),
|
|
107
|
+
organization: T.nilable(String),
|
|
108
|
+
relationship_to_registrant: T.nilable(String)
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
end
|
|
112
|
+
def to_hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Always `dir_reference`.
|
|
116
|
+
module RecordType
|
|
117
|
+
extend Telnyx::Internal::Type::Enum
|
|
118
|
+
|
|
119
|
+
TaggedSymbol =
|
|
120
|
+
T.type_alias { T.all(Symbol, Telnyx::Dir::Reference::RecordType) }
|
|
121
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
122
|
+
|
|
123
|
+
DIR_REFERENCE =
|
|
124
|
+
T.let(
|
|
125
|
+
:dir_reference,
|
|
126
|
+
Telnyx::Dir::Reference::RecordType::TaggedSymbol
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
sig do
|
|
130
|
+
override.returns(
|
|
131
|
+
T::Array[Telnyx::Dir::Reference::RecordType::TaggedSymbol]
|
|
132
|
+
)
|
|
133
|
+
end
|
|
134
|
+
def self.values
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Whether this is a business reference or the financial reference.
|
|
139
|
+
module RefType
|
|
140
|
+
extend Telnyx::Internal::Type::Enum
|
|
141
|
+
|
|
142
|
+
TaggedSymbol =
|
|
143
|
+
T.type_alias { T.all(Symbol, Telnyx::Dir::Reference::RefType) }
|
|
144
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
145
|
+
|
|
146
|
+
BUSINESS =
|
|
147
|
+
T.let(:business, Telnyx::Dir::Reference::RefType::TaggedSymbol)
|
|
148
|
+
FINANCIAL =
|
|
149
|
+
T.let(:financial, Telnyx::Dir::Reference::RefType::TaggedSymbol)
|
|
150
|
+
|
|
151
|
+
sig do
|
|
152
|
+
override.returns(
|
|
153
|
+
T::Array[Telnyx::Dir::Reference::RefType::TaggedSymbol]
|
|
154
|
+
)
|
|
155
|
+
end
|
|
156
|
+
def self.values
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class ReferenceCreateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Telnyx::Dir::ReferenceCreateParams, Telnyx::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :dir_id
|
|
17
|
+
|
|
18
|
+
# Exactly two business references.
|
|
19
|
+
sig { returns(T::Array[Telnyx::Dir::ReferenceInput]) }
|
|
20
|
+
attr_accessor :business_references
|
|
21
|
+
|
|
22
|
+
# One reference supplied at submit. The reference type is implied by the field
|
|
23
|
+
# that carries it (business_references vs financial_reference).
|
|
24
|
+
sig { returns(Telnyx::Dir::ReferenceInput) }
|
|
25
|
+
attr_reader :financial_reference
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
params(financial_reference: Telnyx::Dir::ReferenceInput::OrHash).void
|
|
29
|
+
end
|
|
30
|
+
attr_writer :financial_reference
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
dir_id: String,
|
|
35
|
+
business_references: T::Array[Telnyx::Dir::ReferenceInput::OrHash],
|
|
36
|
+
financial_reference: Telnyx::Dir::ReferenceInput::OrHash,
|
|
37
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
38
|
+
).returns(T.attached_class)
|
|
39
|
+
end
|
|
40
|
+
def self.new(
|
|
41
|
+
dir_id:,
|
|
42
|
+
# Exactly two business references.
|
|
43
|
+
business_references:,
|
|
44
|
+
# One reference supplied at submit. The reference type is implied by the field
|
|
45
|
+
# that carries it (business_references vs financial_reference).
|
|
46
|
+
financial_reference:,
|
|
47
|
+
request_options: {}
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
override.returns(
|
|
53
|
+
{
|
|
54
|
+
dir_id: String,
|
|
55
|
+
business_references: T::Array[Telnyx::Dir::ReferenceInput],
|
|
56
|
+
financial_reference: Telnyx::Dir::ReferenceInput,
|
|
57
|
+
request_options: Telnyx::RequestOptions
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
def to_hash
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class ReferenceInput < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Telnyx::Dir::ReferenceInput, Telnyx::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Reference contact email address. Required: the reference is emailed scheduling
|
|
13
|
+
# and dial-in notices.
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :email
|
|
16
|
+
|
|
17
|
+
# Full name of the reference contact.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :full_name
|
|
20
|
+
|
|
21
|
+
# Reference phone number in E.164 format, e.g. +14155550123.
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :phone_e164
|
|
24
|
+
|
|
25
|
+
# IANA timezone id for the reference (e.g. America/New_York). Required: calls are
|
|
26
|
+
# only placed within the reference's local 8am-9pm window.
|
|
27
|
+
sig { returns(String) }
|
|
28
|
+
attr_accessor :timezone
|
|
29
|
+
|
|
30
|
+
# Job title of the reference contact.
|
|
31
|
+
sig { returns(T.nilable(String)) }
|
|
32
|
+
attr_accessor :job_title
|
|
33
|
+
|
|
34
|
+
# Organization the reference contact belongs to.
|
|
35
|
+
sig { returns(T.nilable(String)) }
|
|
36
|
+
attr_accessor :organization
|
|
37
|
+
|
|
38
|
+
# How the reference contact is related to the registering business.
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_accessor :relationship_to_registrant
|
|
41
|
+
|
|
42
|
+
# One reference supplied at submit. The reference type is implied by the field
|
|
43
|
+
# that carries it (business_references vs financial_reference).
|
|
44
|
+
sig do
|
|
45
|
+
params(
|
|
46
|
+
email: String,
|
|
47
|
+
full_name: String,
|
|
48
|
+
phone_e164: String,
|
|
49
|
+
timezone: String,
|
|
50
|
+
job_title: T.nilable(String),
|
|
51
|
+
organization: T.nilable(String),
|
|
52
|
+
relationship_to_registrant: T.nilable(String)
|
|
53
|
+
).returns(T.attached_class)
|
|
54
|
+
end
|
|
55
|
+
def self.new(
|
|
56
|
+
# Reference contact email address. Required: the reference is emailed scheduling
|
|
57
|
+
# and dial-in notices.
|
|
58
|
+
email:,
|
|
59
|
+
# Full name of the reference contact.
|
|
60
|
+
full_name:,
|
|
61
|
+
# Reference phone number in E.164 format, e.g. +14155550123.
|
|
62
|
+
phone_e164:,
|
|
63
|
+
# IANA timezone id for the reference (e.g. America/New_York). Required: calls are
|
|
64
|
+
# only placed within the reference's local 8am-9pm window.
|
|
65
|
+
timezone:,
|
|
66
|
+
# Job title of the reference contact.
|
|
67
|
+
job_title: nil,
|
|
68
|
+
# Organization the reference contact belongs to.
|
|
69
|
+
organization: nil,
|
|
70
|
+
# How the reference contact is related to the registering business.
|
|
71
|
+
relationship_to_registrant: nil
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
sig do
|
|
76
|
+
override.returns(
|
|
77
|
+
{
|
|
78
|
+
email: String,
|
|
79
|
+
full_name: String,
|
|
80
|
+
phone_e164: String,
|
|
81
|
+
timezone: String,
|
|
82
|
+
job_title: T.nilable(String),
|
|
83
|
+
organization: T.nilable(String),
|
|
84
|
+
relationship_to_registrant: T.nilable(String)
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
def to_hash
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class ReferenceList < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Telnyx::Dir::ReferenceList, Telnyx::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(T::Array[Telnyx::Dir::Reference]) }
|
|
13
|
+
attr_accessor :data
|
|
14
|
+
|
|
15
|
+
sig do
|
|
16
|
+
params(data: T::Array[Telnyx::Dir::Reference::OrHash]).returns(
|
|
17
|
+
T.attached_class
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
def self.new(data:)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { override.returns({ data: T::Array[Telnyx::Dir::Reference] }) }
|
|
24
|
+
def to_hash
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class ReferenceListParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Telnyx::Dir::ReferenceListParams, Telnyx::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :dir_id
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
dir_id: String,
|
|
21
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(dir_id:, request_options: {})
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
override.returns(
|
|
29
|
+
{ dir_id: String, request_options: Telnyx::RequestOptions }
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
def to_hash
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class ReferenceUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Telnyx::Dir::ReferenceUpdateParams, Telnyx::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :dir_id
|
|
17
|
+
|
|
18
|
+
sig { returns(Telnyx::Dir::ReferenceUpdateParams::RefType::OrSymbol) }
|
|
19
|
+
attr_accessor :ref_type
|
|
20
|
+
|
|
21
|
+
sig { returns(Integer) }
|
|
22
|
+
attr_accessor :slot
|
|
23
|
+
|
|
24
|
+
# Reference contact email address.
|
|
25
|
+
sig { returns(T.nilable(String)) }
|
|
26
|
+
attr_reader :email
|
|
27
|
+
|
|
28
|
+
sig { params(email: String).void }
|
|
29
|
+
attr_writer :email
|
|
30
|
+
|
|
31
|
+
# Full name of the reference contact.
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :full_name
|
|
34
|
+
|
|
35
|
+
sig { params(full_name: String).void }
|
|
36
|
+
attr_writer :full_name
|
|
37
|
+
|
|
38
|
+
# Job title of the reference contact.
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_accessor :job_title
|
|
41
|
+
|
|
42
|
+
# Organization the reference contact belongs to.
|
|
43
|
+
sig { returns(T.nilable(String)) }
|
|
44
|
+
attr_accessor :organization
|
|
45
|
+
|
|
46
|
+
# Reference phone number in E.164 format.
|
|
47
|
+
sig { returns(T.nilable(String)) }
|
|
48
|
+
attr_reader :phone_e164
|
|
49
|
+
|
|
50
|
+
sig { params(phone_e164: String).void }
|
|
51
|
+
attr_writer :phone_e164
|
|
52
|
+
|
|
53
|
+
# How the reference contact is related to the registering business.
|
|
54
|
+
sig { returns(T.nilable(String)) }
|
|
55
|
+
attr_accessor :relationship_to_registrant
|
|
56
|
+
|
|
57
|
+
# IANA timezone id for the reference.
|
|
58
|
+
sig { returns(T.nilable(String)) }
|
|
59
|
+
attr_reader :timezone
|
|
60
|
+
|
|
61
|
+
sig { params(timezone: String).void }
|
|
62
|
+
attr_writer :timezone
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
params(
|
|
66
|
+
dir_id: String,
|
|
67
|
+
ref_type: Telnyx::Dir::ReferenceUpdateParams::RefType::OrSymbol,
|
|
68
|
+
slot: Integer,
|
|
69
|
+
email: String,
|
|
70
|
+
full_name: String,
|
|
71
|
+
job_title: T.nilable(String),
|
|
72
|
+
organization: T.nilable(String),
|
|
73
|
+
phone_e164: String,
|
|
74
|
+
relationship_to_registrant: T.nilable(String),
|
|
75
|
+
timezone: String,
|
|
76
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
77
|
+
).returns(T.attached_class)
|
|
78
|
+
end
|
|
79
|
+
def self.new(
|
|
80
|
+
dir_id:,
|
|
81
|
+
ref_type:,
|
|
82
|
+
slot:,
|
|
83
|
+
# Reference contact email address.
|
|
84
|
+
email: nil,
|
|
85
|
+
# Full name of the reference contact.
|
|
86
|
+
full_name: nil,
|
|
87
|
+
# Job title of the reference contact.
|
|
88
|
+
job_title: nil,
|
|
89
|
+
# Organization the reference contact belongs to.
|
|
90
|
+
organization: nil,
|
|
91
|
+
# Reference phone number in E.164 format.
|
|
92
|
+
phone_e164: nil,
|
|
93
|
+
# How the reference contact is related to the registering business.
|
|
94
|
+
relationship_to_registrant: nil,
|
|
95
|
+
# IANA timezone id for the reference.
|
|
96
|
+
timezone: nil,
|
|
97
|
+
request_options: {}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
sig do
|
|
102
|
+
override.returns(
|
|
103
|
+
{
|
|
104
|
+
dir_id: String,
|
|
105
|
+
ref_type: Telnyx::Dir::ReferenceUpdateParams::RefType::OrSymbol,
|
|
106
|
+
slot: Integer,
|
|
107
|
+
email: String,
|
|
108
|
+
full_name: String,
|
|
109
|
+
job_title: T.nilable(String),
|
|
110
|
+
organization: T.nilable(String),
|
|
111
|
+
phone_e164: String,
|
|
112
|
+
relationship_to_registrant: T.nilable(String),
|
|
113
|
+
timezone: String,
|
|
114
|
+
request_options: Telnyx::RequestOptions
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
def to_hash
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
module RefType
|
|
122
|
+
extend Telnyx::Internal::Type::Enum
|
|
123
|
+
|
|
124
|
+
TaggedSymbol =
|
|
125
|
+
T.type_alias do
|
|
126
|
+
T.all(Symbol, Telnyx::Dir::ReferenceUpdateParams::RefType)
|
|
127
|
+
end
|
|
128
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
129
|
+
|
|
130
|
+
BUSINESS =
|
|
131
|
+
T.let(
|
|
132
|
+
:business,
|
|
133
|
+
Telnyx::Dir::ReferenceUpdateParams::RefType::TaggedSymbol
|
|
134
|
+
)
|
|
135
|
+
FINANCIAL =
|
|
136
|
+
T.let(
|
|
137
|
+
:financial,
|
|
138
|
+
Telnyx::Dir::ReferenceUpdateParams::RefType::TaggedSymbol
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
sig do
|
|
142
|
+
override.returns(
|
|
143
|
+
T::Array[
|
|
144
|
+
Telnyx::Dir::ReferenceUpdateParams::RefType::TaggedSymbol
|
|
145
|
+
]
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
def self.values
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class ReferenceUpdateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Models::Dir::ReferenceUpdateResponse,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# A reference (business or financial) on a DIR, in the customer-facing shape. No
|
|
16
|
+
# internal identifiers are exposed.
|
|
17
|
+
sig { returns(Telnyx::Dir::Reference) }
|
|
18
|
+
attr_reader :data
|
|
19
|
+
|
|
20
|
+
sig { params(data: Telnyx::Dir::Reference::OrHash).void }
|
|
21
|
+
attr_writer :data
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(data: Telnyx::Dir::Reference::OrHash).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(
|
|
27
|
+
# A reference (business or financial) on a DIR, in the customer-facing shape. No
|
|
28
|
+
# internal identifiers are exposed.
|
|
29
|
+
data:
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig { override.returns({ data: Telnyx::Dir::Reference }) }
|
|
34
|
+
def to_hash
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
data/rbi/telnyx/models/dir/{phone_number_delete_all_params.rbi → verify_email_confirm_params.rbi}
RENAMED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Dir
|
|
6
|
-
class
|
|
6
|
+
class VerifyEmailConfirmParams < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Telnyx::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Telnyx::Dir::
|
|
13
|
+
Telnyx::Dir::VerifyEmailConfirmParams,
|
|
14
14
|
Telnyx::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
|
@@ -18,24 +18,30 @@ module Telnyx
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :dir_id
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
# The 6-digit code sent to the authorizer email.
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :code
|
|
23
24
|
|
|
24
25
|
sig do
|
|
25
26
|
params(
|
|
26
27
|
dir_id: String,
|
|
27
|
-
|
|
28
|
+
code: String,
|
|
28
29
|
request_options: Telnyx::RequestOptions::OrHash
|
|
29
30
|
).returns(T.attached_class)
|
|
30
31
|
end
|
|
31
|
-
def self.new(
|
|
32
|
+
def self.new(
|
|
33
|
+
dir_id:,
|
|
34
|
+
# The 6-digit code sent to the authorizer email.
|
|
35
|
+
code:,
|
|
36
|
+
request_options: {}
|
|
37
|
+
)
|
|
32
38
|
end
|
|
33
39
|
|
|
34
40
|
sig do
|
|
35
41
|
override.returns(
|
|
36
42
|
{
|
|
37
43
|
dir_id: String,
|
|
38
|
-
|
|
44
|
+
code: String,
|
|
39
45
|
request_options: Telnyx::RequestOptions
|
|
40
46
|
}
|
|
41
47
|
)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class VerifyEmailCreateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::Dir::VerifyEmailCreateParams,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :dir_id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
dir_id: String,
|
|
24
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(dir_id:, request_options: {})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ dir_id: String, request_options: Telnyx::RequestOptions }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
def to_hash
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|