telnyx 5.150.0 → 5.151.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 +10 -1
- 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/public_internet_gateway.rb +24 -1
- 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/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/version.rb +1 -1
- data/lib/telnyx.rb +1 -0
- 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/public_internet_gateway.rbi +45 -3
- 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/wireguard_interface.rbi +48 -3
- 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/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/public_internet_gateway.rbs +32 -3
- 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/wireguard_interface.rbs +34 -3
- data/sig/telnyx/models.rbs +0 -1
- data/sig/telnyx/resources/ai.rbs +2 -3
- metadata +2 -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_params.rb +0 -28
- 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_params.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_params.rbs +0 -30
- 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
- data/sig/telnyx/models/enterprises/reputation/loa_patch_all_params.rbs +0 -32
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class DirUpdateInfringementUpdateParams < 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::DirUpdateInfringementUpdateParams,
|
|
13
|
-
Telnyx::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
sig { returns(String) }
|
|
18
|
-
attr_accessor :dir_id
|
|
19
|
-
|
|
20
|
-
# Must be `true`.
|
|
21
|
-
sig do
|
|
22
|
-
returns(
|
|
23
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyBrandIsAccurate::OrBoolean
|
|
24
|
-
)
|
|
25
|
-
end
|
|
26
|
-
attr_accessor :certify_brand_is_accurate
|
|
27
|
-
|
|
28
|
-
# Must be `true`.
|
|
29
|
-
sig do
|
|
30
|
-
returns(
|
|
31
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyIPOwnership::OrBoolean
|
|
32
|
-
)
|
|
33
|
-
end
|
|
34
|
-
attr_accessor :certify_ip_ownership
|
|
35
|
-
|
|
36
|
-
# Must be `true`.
|
|
37
|
-
sig do
|
|
38
|
-
returns(
|
|
39
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoInfringement::OrBoolean
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
attr_accessor :certify_no_infringement
|
|
43
|
-
|
|
44
|
-
# Must be `true`.
|
|
45
|
-
sig do
|
|
46
|
-
returns(
|
|
47
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoShaftContent::OrBoolean
|
|
48
|
-
)
|
|
49
|
-
end
|
|
50
|
-
attr_accessor :certify_no_shaft_content
|
|
51
|
-
|
|
52
|
-
# Explanation of how the infringement concern was addressed.
|
|
53
|
-
sig { returns(String) }
|
|
54
|
-
attr_accessor :infringement_resolution_notes
|
|
55
|
-
|
|
56
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
57
|
-
attr_accessor :call_reasons
|
|
58
|
-
|
|
59
|
-
sig { returns(T.nilable(String)) }
|
|
60
|
-
attr_accessor :display_name
|
|
61
|
-
|
|
62
|
-
# Append-only supporting documents.
|
|
63
|
-
sig { returns(T.nilable(T::Array[Telnyx::Document])) }
|
|
64
|
-
attr_accessor :documents
|
|
65
|
-
|
|
66
|
-
# Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
|
|
67
|
-
sig { returns(T.nilable(String)) }
|
|
68
|
-
attr_accessor :logo_url
|
|
69
|
-
|
|
70
|
-
sig do
|
|
71
|
-
params(
|
|
72
|
-
dir_id: String,
|
|
73
|
-
certify_brand_is_accurate:
|
|
74
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyBrandIsAccurate::OrBoolean,
|
|
75
|
-
certify_ip_ownership:
|
|
76
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyIPOwnership::OrBoolean,
|
|
77
|
-
certify_no_infringement:
|
|
78
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoInfringement::OrBoolean,
|
|
79
|
-
certify_no_shaft_content:
|
|
80
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoShaftContent::OrBoolean,
|
|
81
|
-
infringement_resolution_notes: String,
|
|
82
|
-
call_reasons: T.nilable(T::Array[String]),
|
|
83
|
-
display_name: T.nilable(String),
|
|
84
|
-
documents: T.nilable(T::Array[Telnyx::Document::OrHash]),
|
|
85
|
-
logo_url: T.nilable(String),
|
|
86
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
87
|
-
).returns(T.attached_class)
|
|
88
|
-
end
|
|
89
|
-
def self.new(
|
|
90
|
-
dir_id:,
|
|
91
|
-
# Must be `true`.
|
|
92
|
-
certify_brand_is_accurate:,
|
|
93
|
-
# Must be `true`.
|
|
94
|
-
certify_ip_ownership:,
|
|
95
|
-
# Must be `true`.
|
|
96
|
-
certify_no_infringement:,
|
|
97
|
-
# Must be `true`.
|
|
98
|
-
certify_no_shaft_content:,
|
|
99
|
-
# Explanation of how the infringement concern was addressed.
|
|
100
|
-
infringement_resolution_notes:,
|
|
101
|
-
call_reasons: nil,
|
|
102
|
-
display_name: nil,
|
|
103
|
-
# Append-only supporting documents.
|
|
104
|
-
documents: nil,
|
|
105
|
-
# Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
|
|
106
|
-
logo_url: nil,
|
|
107
|
-
request_options: {}
|
|
108
|
-
)
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
sig do
|
|
112
|
-
override.returns(
|
|
113
|
-
{
|
|
114
|
-
dir_id: String,
|
|
115
|
-
certify_brand_is_accurate:
|
|
116
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyBrandIsAccurate::OrBoolean,
|
|
117
|
-
certify_ip_ownership:
|
|
118
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyIPOwnership::OrBoolean,
|
|
119
|
-
certify_no_infringement:
|
|
120
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoInfringement::OrBoolean,
|
|
121
|
-
certify_no_shaft_content:
|
|
122
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoShaftContent::OrBoolean,
|
|
123
|
-
infringement_resolution_notes: String,
|
|
124
|
-
call_reasons: T.nilable(T::Array[String]),
|
|
125
|
-
display_name: T.nilable(String),
|
|
126
|
-
documents: T.nilable(T::Array[Telnyx::Document]),
|
|
127
|
-
logo_url: T.nilable(String),
|
|
128
|
-
request_options: Telnyx::RequestOptions
|
|
129
|
-
}
|
|
130
|
-
)
|
|
131
|
-
end
|
|
132
|
-
def to_hash
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
# Must be `true`.
|
|
136
|
-
module CertifyBrandIsAccurate
|
|
137
|
-
extend Telnyx::Internal::Type::Enum
|
|
138
|
-
|
|
139
|
-
TaggedBoolean =
|
|
140
|
-
T.type_alias do
|
|
141
|
-
T.all(
|
|
142
|
-
T::Boolean,
|
|
143
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyBrandIsAccurate
|
|
144
|
-
)
|
|
145
|
-
end
|
|
146
|
-
OrBoolean = T.type_alias { T::Boolean }
|
|
147
|
-
|
|
148
|
-
TRUE =
|
|
149
|
-
T.let(
|
|
150
|
-
true,
|
|
151
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyBrandIsAccurate::TaggedBoolean
|
|
152
|
-
)
|
|
153
|
-
|
|
154
|
-
sig do
|
|
155
|
-
override.returns(
|
|
156
|
-
T::Array[
|
|
157
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyBrandIsAccurate::TaggedBoolean
|
|
158
|
-
]
|
|
159
|
-
)
|
|
160
|
-
end
|
|
161
|
-
def self.values
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
# Must be `true`.
|
|
166
|
-
module CertifyIPOwnership
|
|
167
|
-
extend Telnyx::Internal::Type::Enum
|
|
168
|
-
|
|
169
|
-
TaggedBoolean =
|
|
170
|
-
T.type_alias do
|
|
171
|
-
T.all(
|
|
172
|
-
T::Boolean,
|
|
173
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyIPOwnership
|
|
174
|
-
)
|
|
175
|
-
end
|
|
176
|
-
OrBoolean = T.type_alias { T::Boolean }
|
|
177
|
-
|
|
178
|
-
TRUE =
|
|
179
|
-
T.let(
|
|
180
|
-
true,
|
|
181
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyIPOwnership::TaggedBoolean
|
|
182
|
-
)
|
|
183
|
-
|
|
184
|
-
sig do
|
|
185
|
-
override.returns(
|
|
186
|
-
T::Array[
|
|
187
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyIPOwnership::TaggedBoolean
|
|
188
|
-
]
|
|
189
|
-
)
|
|
190
|
-
end
|
|
191
|
-
def self.values
|
|
192
|
-
end
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
# Must be `true`.
|
|
196
|
-
module CertifyNoInfringement
|
|
197
|
-
extend Telnyx::Internal::Type::Enum
|
|
198
|
-
|
|
199
|
-
TaggedBoolean =
|
|
200
|
-
T.type_alias do
|
|
201
|
-
T.all(
|
|
202
|
-
T::Boolean,
|
|
203
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoInfringement
|
|
204
|
-
)
|
|
205
|
-
end
|
|
206
|
-
OrBoolean = T.type_alias { T::Boolean }
|
|
207
|
-
|
|
208
|
-
TRUE =
|
|
209
|
-
T.let(
|
|
210
|
-
true,
|
|
211
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoInfringement::TaggedBoolean
|
|
212
|
-
)
|
|
213
|
-
|
|
214
|
-
sig do
|
|
215
|
-
override.returns(
|
|
216
|
-
T::Array[
|
|
217
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoInfringement::TaggedBoolean
|
|
218
|
-
]
|
|
219
|
-
)
|
|
220
|
-
end
|
|
221
|
-
def self.values
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
# Must be `true`.
|
|
226
|
-
module CertifyNoShaftContent
|
|
227
|
-
extend Telnyx::Internal::Type::Enum
|
|
228
|
-
|
|
229
|
-
TaggedBoolean =
|
|
230
|
-
T.type_alias do
|
|
231
|
-
T.all(
|
|
232
|
-
T::Boolean,
|
|
233
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoShaftContent
|
|
234
|
-
)
|
|
235
|
-
end
|
|
236
|
-
OrBoolean = T.type_alias { T::Boolean }
|
|
237
|
-
|
|
238
|
-
TRUE =
|
|
239
|
-
T.let(
|
|
240
|
-
true,
|
|
241
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoShaftContent::TaggedBoolean
|
|
242
|
-
)
|
|
243
|
-
|
|
244
|
-
sig do
|
|
245
|
-
override.returns(
|
|
246
|
-
T::Array[
|
|
247
|
-
Telnyx::DirUpdateInfringementUpdateParams::CertifyNoShaftContent::TaggedBoolean
|
|
248
|
-
]
|
|
249
|
-
)
|
|
250
|
-
end
|
|
251
|
-
def self.values
|
|
252
|
-
end
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
end
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Enterprises
|
|
6
|
-
module Reputation
|
|
7
|
-
class LoaCreateParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
OrHash =
|
|
12
|
-
T.type_alias do
|
|
13
|
-
T.any(
|
|
14
|
-
Telnyx::Enterprises::Reputation::LoaCreateParams,
|
|
15
|
-
Telnyx::Internal::AnyHash
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
sig { returns(String) }
|
|
20
|
-
attr_accessor :enterprise_id
|
|
21
|
-
|
|
22
|
-
# Third-party reseller / partner managing the enterprise's phone numbers. Omit
|
|
23
|
-
# when the enterprise works directly with Telnyx.
|
|
24
|
-
sig do
|
|
25
|
-
returns(
|
|
26
|
-
T.nilable(Telnyx::Enterprises::Reputation::LoaCreateParams::Agent)
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
attr_reader :agent
|
|
30
|
-
|
|
31
|
-
sig do
|
|
32
|
-
params(
|
|
33
|
-
agent:
|
|
34
|
-
Telnyx::Enterprises::Reputation::LoaCreateParams::Agent::OrHash
|
|
35
|
-
).void
|
|
36
|
-
end
|
|
37
|
-
attr_writer :agent
|
|
38
|
-
|
|
39
|
-
# Optional signature embedded in the rendered PDF. When omitted the PDF is
|
|
40
|
-
# returned unsigned for the customer to sign and upload.
|
|
41
|
-
sig do
|
|
42
|
-
returns(
|
|
43
|
-
T.nilable(
|
|
44
|
-
Telnyx::Enterprises::Reputation::LoaCreateParams::Signature
|
|
45
|
-
)
|
|
46
|
-
)
|
|
47
|
-
end
|
|
48
|
-
attr_reader :signature
|
|
49
|
-
|
|
50
|
-
sig do
|
|
51
|
-
params(
|
|
52
|
-
signature:
|
|
53
|
-
Telnyx::Enterprises::Reputation::LoaCreateParams::Signature::OrHash
|
|
54
|
-
).void
|
|
55
|
-
end
|
|
56
|
-
attr_writer :signature
|
|
57
|
-
|
|
58
|
-
sig do
|
|
59
|
-
params(
|
|
60
|
-
enterprise_id: String,
|
|
61
|
-
agent:
|
|
62
|
-
Telnyx::Enterprises::Reputation::LoaCreateParams::Agent::OrHash,
|
|
63
|
-
signature:
|
|
64
|
-
Telnyx::Enterprises::Reputation::LoaCreateParams::Signature::OrHash,
|
|
65
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
66
|
-
).returns(T.attached_class)
|
|
67
|
-
end
|
|
68
|
-
def self.new(
|
|
69
|
-
enterprise_id:,
|
|
70
|
-
# Third-party reseller / partner managing the enterprise's phone numbers. Omit
|
|
71
|
-
# when the enterprise works directly with Telnyx.
|
|
72
|
-
agent: nil,
|
|
73
|
-
# Optional signature embedded in the rendered PDF. When omitted the PDF is
|
|
74
|
-
# returned unsigned for the customer to sign and upload.
|
|
75
|
-
signature: nil,
|
|
76
|
-
request_options: {}
|
|
77
|
-
)
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
sig do
|
|
81
|
-
override.returns(
|
|
82
|
-
{
|
|
83
|
-
enterprise_id: String,
|
|
84
|
-
agent: Telnyx::Enterprises::Reputation::LoaCreateParams::Agent,
|
|
85
|
-
signature:
|
|
86
|
-
Telnyx::Enterprises::Reputation::LoaCreateParams::Signature,
|
|
87
|
-
request_options: Telnyx::RequestOptions
|
|
88
|
-
}
|
|
89
|
-
)
|
|
90
|
-
end
|
|
91
|
-
def to_hash
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
class Agent < Telnyx::Internal::Type::BaseModel
|
|
95
|
-
OrHash =
|
|
96
|
-
T.type_alias do
|
|
97
|
-
T.any(
|
|
98
|
-
Telnyx::Enterprises::Reputation::LoaCreateParams::Agent,
|
|
99
|
-
Telnyx::Internal::AnyHash
|
|
100
|
-
)
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
sig { returns(String) }
|
|
104
|
-
attr_accessor :administrative_area
|
|
105
|
-
|
|
106
|
-
sig { returns(String) }
|
|
107
|
-
attr_accessor :city
|
|
108
|
-
|
|
109
|
-
sig { returns(String) }
|
|
110
|
-
attr_accessor :contact_email
|
|
111
|
-
|
|
112
|
-
sig { returns(String) }
|
|
113
|
-
attr_accessor :contact_name
|
|
114
|
-
|
|
115
|
-
sig { returns(String) }
|
|
116
|
-
attr_accessor :contact_phone
|
|
117
|
-
|
|
118
|
-
sig { returns(String) }
|
|
119
|
-
attr_accessor :contact_title
|
|
120
|
-
|
|
121
|
-
sig { returns(String) }
|
|
122
|
-
attr_accessor :country
|
|
123
|
-
|
|
124
|
-
sig { returns(String) }
|
|
125
|
-
attr_accessor :legal_name
|
|
126
|
-
|
|
127
|
-
sig { returns(String) }
|
|
128
|
-
attr_accessor :postal_code
|
|
129
|
-
|
|
130
|
-
sig { returns(String) }
|
|
131
|
-
attr_accessor :street_address
|
|
132
|
-
|
|
133
|
-
sig { returns(T.nilable(String)) }
|
|
134
|
-
attr_accessor :dba
|
|
135
|
-
|
|
136
|
-
sig { returns(T.nilable(String)) }
|
|
137
|
-
attr_accessor :extended_address
|
|
138
|
-
|
|
139
|
-
# Third-party reseller / partner managing the enterprise's phone numbers. Omit
|
|
140
|
-
# when the enterprise works directly with Telnyx.
|
|
141
|
-
sig do
|
|
142
|
-
params(
|
|
143
|
-
administrative_area: String,
|
|
144
|
-
city: String,
|
|
145
|
-
contact_email: String,
|
|
146
|
-
contact_name: String,
|
|
147
|
-
contact_phone: String,
|
|
148
|
-
contact_title: String,
|
|
149
|
-
country: String,
|
|
150
|
-
legal_name: String,
|
|
151
|
-
postal_code: String,
|
|
152
|
-
street_address: String,
|
|
153
|
-
dba: T.nilable(String),
|
|
154
|
-
extended_address: T.nilable(String)
|
|
155
|
-
).returns(T.attached_class)
|
|
156
|
-
end
|
|
157
|
-
def self.new(
|
|
158
|
-
administrative_area:,
|
|
159
|
-
city:,
|
|
160
|
-
contact_email:,
|
|
161
|
-
contact_name:,
|
|
162
|
-
contact_phone:,
|
|
163
|
-
contact_title:,
|
|
164
|
-
country:,
|
|
165
|
-
legal_name:,
|
|
166
|
-
postal_code:,
|
|
167
|
-
street_address:,
|
|
168
|
-
dba: nil,
|
|
169
|
-
extended_address: nil
|
|
170
|
-
)
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
sig do
|
|
174
|
-
override.returns(
|
|
175
|
-
{
|
|
176
|
-
administrative_area: String,
|
|
177
|
-
city: String,
|
|
178
|
-
contact_email: String,
|
|
179
|
-
contact_name: String,
|
|
180
|
-
contact_phone: String,
|
|
181
|
-
contact_title: String,
|
|
182
|
-
country: String,
|
|
183
|
-
legal_name: String,
|
|
184
|
-
postal_code: String,
|
|
185
|
-
street_address: String,
|
|
186
|
-
dba: T.nilable(String),
|
|
187
|
-
extended_address: T.nilable(String)
|
|
188
|
-
}
|
|
189
|
-
)
|
|
190
|
-
end
|
|
191
|
-
def to_hash
|
|
192
|
-
end
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
class Signature < Telnyx::Internal::Type::BaseModel
|
|
196
|
-
OrHash =
|
|
197
|
-
T.type_alias do
|
|
198
|
-
T.any(
|
|
199
|
-
Telnyx::Enterprises::Reputation::LoaCreateParams::Signature,
|
|
200
|
-
Telnyx::Internal::AnyHash
|
|
201
|
-
)
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
# Base64-encoded signature image.
|
|
205
|
-
sig { returns(String) }
|
|
206
|
-
attr_accessor :image_base64
|
|
207
|
-
|
|
208
|
-
sig { returns(T.nilable(String)) }
|
|
209
|
-
attr_accessor :signer_name
|
|
210
|
-
|
|
211
|
-
# Optional signature embedded in the rendered PDF. When omitted the PDF is
|
|
212
|
-
# returned unsigned for the customer to sign and upload.
|
|
213
|
-
sig do
|
|
214
|
-
params(
|
|
215
|
-
image_base64: String,
|
|
216
|
-
signer_name: T.nilable(String)
|
|
217
|
-
).returns(T.attached_class)
|
|
218
|
-
end
|
|
219
|
-
def self.new(
|
|
220
|
-
# Base64-encoded signature image.
|
|
221
|
-
image_base64:,
|
|
222
|
-
signer_name: nil
|
|
223
|
-
)
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
sig do
|
|
227
|
-
override.returns(
|
|
228
|
-
{ image_base64: String, signer_name: T.nilable(String) }
|
|
229
|
-
)
|
|
230
|
-
end
|
|
231
|
-
def to_hash
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
|
-
end
|
|
238
|
-
end
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Enterprises
|
|
6
|
-
module Reputation
|
|
7
|
-
class LoaPatchAllParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
OrHash =
|
|
12
|
-
T.type_alias do
|
|
13
|
-
T.any(
|
|
14
|
-
Telnyx::Enterprises::Reputation::LoaPatchAllParams,
|
|
15
|
-
Telnyx::Internal::AnyHash
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
sig { returns(String) }
|
|
20
|
-
attr_accessor :enterprise_id
|
|
21
|
-
|
|
22
|
-
# Id of the new signed LOA document (from the Telnyx Documents API). Changing it
|
|
23
|
-
# resets LOA approval; the new document must be approved before more numbers can
|
|
24
|
-
# be added.
|
|
25
|
-
sig { returns(String) }
|
|
26
|
-
attr_accessor :loa_document_id
|
|
27
|
-
|
|
28
|
-
sig do
|
|
29
|
-
params(
|
|
30
|
-
enterprise_id: String,
|
|
31
|
-
loa_document_id: String,
|
|
32
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
33
|
-
).returns(T.attached_class)
|
|
34
|
-
end
|
|
35
|
-
def self.new(
|
|
36
|
-
enterprise_id:,
|
|
37
|
-
# Id of the new signed LOA document (from the Telnyx Documents API). Changing it
|
|
38
|
-
# resets LOA approval; the new document must be approved before more numbers can
|
|
39
|
-
# be added.
|
|
40
|
-
loa_document_id:,
|
|
41
|
-
request_options: {}
|
|
42
|
-
)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
sig do
|
|
46
|
-
override.returns(
|
|
47
|
-
{
|
|
48
|
-
enterprise_id: String,
|
|
49
|
-
loa_document_id: String,
|
|
50
|
-
request_options: Telnyx::RequestOptions
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
end
|
|
54
|
-
def to_hash
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module Dir
|
|
4
|
-
type phone_number_create_params =
|
|
5
|
-
{
|
|
6
|
-
dir_id: String,
|
|
7
|
-
documents: ::Array[Telnyx::Document],
|
|
8
|
-
phone_numbers: ::Array[String]
|
|
9
|
-
}
|
|
10
|
-
& Telnyx::Internal::Type::request_parameters
|
|
11
|
-
|
|
12
|
-
class PhoneNumberCreateParams < Telnyx::Internal::Type::BaseModel
|
|
13
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
14
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
15
|
-
|
|
16
|
-
attr_accessor dir_id: String
|
|
17
|
-
|
|
18
|
-
attr_accessor documents: ::Array[Telnyx::Document]
|
|
19
|
-
|
|
20
|
-
attr_accessor phone_numbers: ::Array[String]
|
|
21
|
-
|
|
22
|
-
def initialize: (
|
|
23
|
-
dir_id: String,
|
|
24
|
-
documents: ::Array[Telnyx::Document],
|
|
25
|
-
phone_numbers: ::Array[String],
|
|
26
|
-
?request_options: Telnyx::request_opts
|
|
27
|
-
) -> void
|
|
28
|
-
|
|
29
|
-
def to_hash: -> {
|
|
30
|
-
dir_id: String,
|
|
31
|
-
documents: ::Array[Telnyx::Document],
|
|
32
|
-
phone_numbers: ::Array[String],
|
|
33
|
-
request_options: Telnyx::RequestOptions
|
|
34
|
-
}
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module Dir
|
|
4
|
-
type phone_number_create_response =
|
|
5
|
-
{ data: ::Array[Telnyx::Dir::DirPhoneNumber] }
|
|
6
|
-
|
|
7
|
-
class PhoneNumberCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor data: ::Array[Telnyx::Dir::DirPhoneNumber]
|
|
9
|
-
|
|
10
|
-
def initialize: (data: ::Array[Telnyx::Dir::DirPhoneNumber]) -> void
|
|
11
|
-
|
|
12
|
-
def to_hash: -> { data: ::Array[Telnyx::Dir::DirPhoneNumber] }
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module Dir
|
|
4
|
-
type phone_number_delete_all_params =
|
|
5
|
-
{ dir_id: String, phone_numbers: ::Array[String] }
|
|
6
|
-
& Telnyx::Internal::Type::request_parameters
|
|
7
|
-
|
|
8
|
-
class PhoneNumberDeleteAllParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
-
|
|
12
|
-
attr_accessor dir_id: String
|
|
13
|
-
|
|
14
|
-
attr_accessor phone_numbers: ::Array[String]
|
|
15
|
-
|
|
16
|
-
def initialize: (
|
|
17
|
-
dir_id: String,
|
|
18
|
-
phone_numbers: ::Array[String],
|
|
19
|
-
?request_options: Telnyx::request_opts
|
|
20
|
-
) -> void
|
|
21
|
-
|
|
22
|
-
def to_hash: -> {
|
|
23
|
-
dir_id: String,
|
|
24
|
-
phone_numbers: ::Array[String],
|
|
25
|
-
request_options: Telnyx::RequestOptions
|
|
26
|
-
}
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|