telnyx 5.173.0 → 5.174.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/client.rb +0 -4
- data/lib/telnyx/lib/access_token.rb +141 -0
- data/lib/telnyx/lib/telephony_credentials.rb +87 -0
- data/lib/telnyx/lib.rb +2 -0
- data/lib/telnyx/models/ai/memory/namespaces/namespace_settings.rb +26 -0
- data/lib/telnyx/models/ai/memory/namespaces/namespace_settings_response.rb +3 -41
- data/lib/telnyx/models/ai/memory/namespaces/summary_settings.rb +33 -0
- data/lib/telnyx/models/ai/transcription_challenger.rb +148 -0
- data/lib/telnyx/models/ai/transcription_fallback_model.rb +78 -0
- data/lib/telnyx/models/ai/transcription_settings.rb +6 -219
- data/lib/telnyx/models/compute/funcs/func_log_export_config.rb +96 -0
- data/lib/telnyx/models/compute/funcs/func_log_export_config_response.rb +3 -89
- data/lib/telnyx/models/email_template_common.rb +5 -26
- data/lib/telnyx/models/email_template_create_params.rb +5 -26
- data/lib/telnyx/models/messaging_outbound_message_payload.rb +22 -1
- data/lib/telnyx/models/messaging_profile_features.rb +16 -1
- data/lib/telnyx/models/model_metadata.rb +10 -1
- data/lib/telnyx/models/outbound_message_payload.rb +22 -1
- data/lib/telnyx/models/phone_numbers/numbers_phone_numbers_job.rb +6 -50
- data/lib/telnyx/models/phone_numbers/phone_numbers_job.rb +6 -50
- data/lib/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rb +28 -0
- data/lib/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rb +28 -0
- data/lib/telnyx/models/update_email_template_request.rb +5 -26
- data/lib/telnyx/models/variable_schema_entry.rb +28 -0
- data/lib/telnyx/models/whatsapp/hosted_signup_create_response.rb +3 -83
- data/lib/telnyx/models/whatsapp/hosted_signup_retrieve_response.rb +3 -84
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +3 -191
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +3 -192
- data/lib/telnyx/models/whatsapp/{hosted_signup_list_response.rb → whatsapp_hosted_signup.rb} +8 -6
- data/lib/telnyx/models/whatsapp/{phone_number_list_response.rb → whatsapp_phone_response.rb} +12 -12
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/email_templates.rb +3 -3
- data/lib/telnyx/resources/portouts.rb +2 -1
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/hosted_signups.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +10 -5
- data/rbi/telnyx/client.rbi +0 -3
- data/rbi/telnyx/lib/access_token.rbi +73 -0
- data/rbi/telnyx/lib/telephony_credentials.rbi +50 -0
- data/rbi/telnyx/models/ai/memory/namespaces/namespace_settings.rbi +58 -0
- data/rbi/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbi +4 -107
- data/rbi/telnyx/models/ai/memory/namespaces/summary_settings.rbi +51 -0
- data/rbi/telnyx/models/ai/transcription_challenger.rbi +318 -0
- data/rbi/telnyx/models/ai/transcription_fallback_model.rbi +171 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +7 -531
- data/rbi/telnyx/models/compute/funcs/func_log_export_config.rbi +175 -0
- data/rbi/telnyx/models/compute/funcs/func_log_export_config_response.rbi +4 -176
- data/rbi/telnyx/models/email_template_common.rbi +3 -56
- data/rbi/telnyx/models/email_template_create_params.rbi +3 -59
- data/rbi/telnyx/models/messaging_outbound_message_payload.rbi +26 -0
- data/rbi/telnyx/models/messaging_profile_features.rbi +36 -5
- data/rbi/telnyx/models/model_metadata.rbi +13 -0
- data/rbi/telnyx/models/outbound_message_payload.rbi +26 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_numbers_job.rbi +8 -96
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job.rbi +8 -94
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rbi +49 -0
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rbi +49 -0
- data/rbi/telnyx/models/update_email_template_request.rbi +3 -59
- data/rbi/telnyx/models/variable_schema_entry.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/hosted_signup_create_response.rbi +6 -173
- data/rbi/telnyx/models/whatsapp/hosted_signup_retrieve_response.rbi +6 -175
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +4 -366
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +6 -368
- data/rbi/telnyx/models/whatsapp/{hosted_signup_list_response.rbi → whatsapp_hosted_signup.rbi} +11 -12
- data/rbi/telnyx/models/whatsapp/{phone_number_list_response.rbi → whatsapp_phone_response.rbi} +23 -23
- data/rbi/telnyx/models.rbi +2 -0
- data/rbi/telnyx/resources/email_templates.rbi +3 -18
- data/rbi/telnyx/resources/portouts.rbi +2 -1
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/hosted_signups.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/client.rbs +0 -2
- data/sig/telnyx/models/ai/memory/namespaces/namespace_settings.rbs +30 -0
- data/sig/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbs +4 -37
- data/sig/telnyx/models/ai/memory/namespaces/summary_settings.rbs +19 -0
- data/sig/telnyx/models/ai/transcription_challenger.rbs +98 -0
- data/sig/telnyx/models/ai/transcription_fallback_model.rbs +63 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +8 -159
- data/sig/telnyx/models/compute/funcs/func_log_export_config.rbs +96 -0
- data/sig/telnyx/models/compute/funcs/func_log_export_config_response.rbs +6 -95
- data/sig/telnyx/models/email_template_common.rbs +4 -18
- data/sig/telnyx/models/email_template_create_params.rbs +4 -18
- data/sig/telnyx/models/messaging_outbound_message_payload.rbs +10 -0
- data/sig/telnyx/models/messaging_profile_features.rbs +14 -3
- data/sig/telnyx/models/model_metadata.rbs +7 -0
- data/sig/telnyx/models/outbound_message_payload.rbs +10 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_numbers_job.rbs +12 -44
- data/sig/telnyx/models/phone_numbers/phone_numbers_job.rbs +12 -44
- data/sig/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rbs +24 -0
- data/sig/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rbs +24 -0
- data/sig/telnyx/models/update_email_template_request.rbs +4 -18
- data/sig/telnyx/models/variable_schema_entry.rbs +17 -0
- data/sig/telnyx/models/whatsapp/hosted_signup_create_response.rbs +6 -90
- data/sig/telnyx/models/whatsapp/hosted_signup_retrieve_response.rbs +6 -90
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +6 -185
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +4 -189
- data/sig/telnyx/models/whatsapp/{hosted_signup_list_response.rbs → whatsapp_hosted_signup.rbs} +11 -9
- data/sig/telnyx/models/whatsapp/{phone_number_list_response.rbs → whatsapp_phone_response.rbs} +13 -11
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/email_templates.rbs +3 -3
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/hosted_signups.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +36 -17
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +0 -198
- data/lib/telnyx/resources/tts_integrations/actions.rb +0 -16
- data/lib/telnyx/resources/tts_integrations.rb +0 -18
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +0 -358
- data/rbi/telnyx/resources/tts_integrations/actions.rbi +0 -14
- data/rbi/telnyx/resources/tts_integrations.rbi +0 -15
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +0 -186
- data/sig/telnyx/resources/tts_integrations/actions.rbs +0 -9
- data/sig/telnyx/resources/tts_integrations.rbs +0 -9
|
@@ -12,389 +12,27 @@ module Telnyx
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
sig
|
|
16
|
-
returns(
|
|
17
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data
|
|
18
|
-
)
|
|
19
|
-
end
|
|
15
|
+
sig { returns(Telnyx::Whatsapp::WhatsappPhoneResponse) }
|
|
20
16
|
attr_reader :data
|
|
21
17
|
|
|
22
18
|
sig do
|
|
23
|
-
params(
|
|
24
|
-
data:
|
|
25
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::OrHash
|
|
26
|
-
).void
|
|
19
|
+
params(data: Telnyx::Whatsapp::WhatsappPhoneResponse::OrHash).void
|
|
27
20
|
end
|
|
28
21
|
attr_writer :data
|
|
29
22
|
|
|
30
23
|
sig do
|
|
31
|
-
params(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
).returns(T.attached_class)
|
|
24
|
+
params(data: Telnyx::Whatsapp::WhatsappPhoneResponse::OrHash).returns(
|
|
25
|
+
T.attached_class
|
|
26
|
+
)
|
|
35
27
|
end
|
|
36
28
|
def self.new(data:)
|
|
37
29
|
end
|
|
38
30
|
|
|
39
31
|
sig do
|
|
40
|
-
override.returns(
|
|
41
|
-
{
|
|
42
|
-
data:
|
|
43
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data
|
|
44
|
-
}
|
|
45
|
-
)
|
|
32
|
+
override.returns({ data: Telnyx::Whatsapp::WhatsappPhoneResponse })
|
|
46
33
|
end
|
|
47
34
|
def to_hash
|
|
48
35
|
end
|
|
49
|
-
|
|
50
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
51
|
-
OrHash =
|
|
52
|
-
T.type_alias do
|
|
53
|
-
T.any(
|
|
54
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data,
|
|
55
|
-
Telnyx::Internal::AnyHash
|
|
56
|
-
)
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
60
|
-
attr_reader :calling_enabled
|
|
61
|
-
|
|
62
|
-
sig { params(calling_enabled: T::Boolean).void }
|
|
63
|
-
attr_writer :calling_enabled
|
|
64
|
-
|
|
65
|
-
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
66
|
-
# Cloud API number.
|
|
67
|
-
sig do
|
|
68
|
-
returns(
|
|
69
|
-
T.nilable(
|
|
70
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
71
|
-
)
|
|
72
|
-
)
|
|
73
|
-
end
|
|
74
|
-
attr_accessor :coexistence_state
|
|
75
|
-
|
|
76
|
-
sig { returns(T.nilable(Time)) }
|
|
77
|
-
attr_reader :created_at
|
|
78
|
-
|
|
79
|
-
sig { params(created_at: Time).void }
|
|
80
|
-
attr_writer :created_at
|
|
81
|
-
|
|
82
|
-
sig { returns(T.nilable(String)) }
|
|
83
|
-
attr_reader :display_name
|
|
84
|
-
|
|
85
|
-
sig { params(display_name: String).void }
|
|
86
|
-
attr_writer :display_name
|
|
87
|
-
|
|
88
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
89
|
-
attr_reader :enabled
|
|
90
|
-
|
|
91
|
-
sig { params(enabled: T::Boolean).void }
|
|
92
|
-
attr_writer :enabled
|
|
93
|
-
|
|
94
|
-
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
95
|
-
# Cloud API through WhatsApp Coexistence.
|
|
96
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
97
|
-
attr_reader :is_on_biz_app
|
|
98
|
-
|
|
99
|
-
sig { params(is_on_biz_app: T::Boolean).void }
|
|
100
|
-
attr_writer :is_on_biz_app
|
|
101
|
-
|
|
102
|
-
# Phone number in E164 format
|
|
103
|
-
sig { returns(T.nilable(String)) }
|
|
104
|
-
attr_reader :phone_number
|
|
105
|
-
|
|
106
|
-
sig { params(phone_number: String).void }
|
|
107
|
-
attr_writer :phone_number
|
|
108
|
-
|
|
109
|
-
# Whatsapp phone number ID
|
|
110
|
-
sig { returns(T.nilable(String)) }
|
|
111
|
-
attr_reader :phone_number_id
|
|
112
|
-
|
|
113
|
-
sig { params(phone_number_id: String).void }
|
|
114
|
-
attr_writer :phone_number_id
|
|
115
|
-
|
|
116
|
-
# Whatsapp quality rating
|
|
117
|
-
sig { returns(T.nilable(String)) }
|
|
118
|
-
attr_reader :quality_rating
|
|
119
|
-
|
|
120
|
-
sig { params(quality_rating: String).void }
|
|
121
|
-
attr_writer :quality_rating
|
|
122
|
-
|
|
123
|
-
sig { returns(T.nilable(String)) }
|
|
124
|
-
attr_reader :record_type
|
|
125
|
-
|
|
126
|
-
sig { params(record_type: String).void }
|
|
127
|
-
attr_writer :record_type
|
|
128
|
-
|
|
129
|
-
sig { returns(T.nilable(String)) }
|
|
130
|
-
attr_reader :status
|
|
131
|
-
|
|
132
|
-
sig { params(status: String).void }
|
|
133
|
-
attr_writer :status
|
|
134
|
-
|
|
135
|
-
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
136
|
-
# null when no deadline applies.
|
|
137
|
-
sig { returns(T.nilable(Time)) }
|
|
138
|
-
attr_accessor :sync_deadline
|
|
139
|
-
|
|
140
|
-
# Synchronization progress. This object is returned only while a coexistence
|
|
141
|
-
# number is synchronizing.
|
|
142
|
-
sig do
|
|
143
|
-
returns(
|
|
144
|
-
T.nilable(
|
|
145
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::SyncProgress
|
|
146
|
-
)
|
|
147
|
-
)
|
|
148
|
-
end
|
|
149
|
-
attr_reader :sync_progress
|
|
150
|
-
|
|
151
|
-
sig do
|
|
152
|
-
params(
|
|
153
|
-
sync_progress:
|
|
154
|
-
T.nilable(
|
|
155
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::SyncProgress::OrHash
|
|
156
|
-
)
|
|
157
|
-
).void
|
|
158
|
-
end
|
|
159
|
-
attr_writer :sync_progress
|
|
160
|
-
|
|
161
|
-
# User ID
|
|
162
|
-
sig { returns(T.nilable(String)) }
|
|
163
|
-
attr_reader :user_id
|
|
164
|
-
|
|
165
|
-
sig { params(user_id: String).void }
|
|
166
|
-
attr_writer :user_id
|
|
167
|
-
|
|
168
|
-
# WABA ID of Whatsapp business account
|
|
169
|
-
sig { returns(T.nilable(String)) }
|
|
170
|
-
attr_reader :waba_id
|
|
171
|
-
|
|
172
|
-
sig { params(waba_id: String).void }
|
|
173
|
-
attr_writer :waba_id
|
|
174
|
-
|
|
175
|
-
sig do
|
|
176
|
-
params(
|
|
177
|
-
calling_enabled: T::Boolean,
|
|
178
|
-
coexistence_state:
|
|
179
|
-
T.nilable(
|
|
180
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::OrSymbol
|
|
181
|
-
),
|
|
182
|
-
created_at: Time,
|
|
183
|
-
display_name: String,
|
|
184
|
-
enabled: T::Boolean,
|
|
185
|
-
is_on_biz_app: T::Boolean,
|
|
186
|
-
phone_number: String,
|
|
187
|
-
phone_number_id: String,
|
|
188
|
-
quality_rating: String,
|
|
189
|
-
record_type: String,
|
|
190
|
-
status: String,
|
|
191
|
-
sync_deadline: T.nilable(Time),
|
|
192
|
-
sync_progress:
|
|
193
|
-
T.nilable(
|
|
194
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::SyncProgress::OrHash
|
|
195
|
-
),
|
|
196
|
-
user_id: String,
|
|
197
|
-
waba_id: String
|
|
198
|
-
).returns(T.attached_class)
|
|
199
|
-
end
|
|
200
|
-
def self.new(
|
|
201
|
-
calling_enabled: nil,
|
|
202
|
-
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
203
|
-
# Cloud API number.
|
|
204
|
-
coexistence_state: nil,
|
|
205
|
-
created_at: nil,
|
|
206
|
-
display_name: nil,
|
|
207
|
-
enabled: nil,
|
|
208
|
-
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
209
|
-
# Cloud API through WhatsApp Coexistence.
|
|
210
|
-
is_on_biz_app: nil,
|
|
211
|
-
# Phone number in E164 format
|
|
212
|
-
phone_number: nil,
|
|
213
|
-
# Whatsapp phone number ID
|
|
214
|
-
phone_number_id: nil,
|
|
215
|
-
# Whatsapp quality rating
|
|
216
|
-
quality_rating: nil,
|
|
217
|
-
record_type: nil,
|
|
218
|
-
status: nil,
|
|
219
|
-
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
220
|
-
# null when no deadline applies.
|
|
221
|
-
sync_deadline: nil,
|
|
222
|
-
# Synchronization progress. This object is returned only while a coexistence
|
|
223
|
-
# number is synchronizing.
|
|
224
|
-
sync_progress: nil,
|
|
225
|
-
# User ID
|
|
226
|
-
user_id: nil,
|
|
227
|
-
# WABA ID of Whatsapp business account
|
|
228
|
-
waba_id: nil
|
|
229
|
-
)
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
sig do
|
|
233
|
-
override.returns(
|
|
234
|
-
{
|
|
235
|
-
calling_enabled: T::Boolean,
|
|
236
|
-
coexistence_state:
|
|
237
|
-
T.nilable(
|
|
238
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
239
|
-
),
|
|
240
|
-
created_at: Time,
|
|
241
|
-
display_name: String,
|
|
242
|
-
enabled: T::Boolean,
|
|
243
|
-
is_on_biz_app: T::Boolean,
|
|
244
|
-
phone_number: String,
|
|
245
|
-
phone_number_id: String,
|
|
246
|
-
quality_rating: String,
|
|
247
|
-
record_type: String,
|
|
248
|
-
status: String,
|
|
249
|
-
sync_deadline: T.nilable(Time),
|
|
250
|
-
sync_progress:
|
|
251
|
-
T.nilable(
|
|
252
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::SyncProgress
|
|
253
|
-
),
|
|
254
|
-
user_id: String,
|
|
255
|
-
waba_id: String
|
|
256
|
-
}
|
|
257
|
-
)
|
|
258
|
-
end
|
|
259
|
-
def to_hash
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
263
|
-
# Cloud API number.
|
|
264
|
-
module CoexistenceState
|
|
265
|
-
extend Telnyx::Internal::Type::Enum
|
|
266
|
-
|
|
267
|
-
TaggedSymbol =
|
|
268
|
-
T.type_alias do
|
|
269
|
-
T.all(
|
|
270
|
-
Symbol,
|
|
271
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState
|
|
272
|
-
)
|
|
273
|
-
end
|
|
274
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
275
|
-
|
|
276
|
-
PENDING_ONBOARDING =
|
|
277
|
-
T.let(
|
|
278
|
-
:pending_onboarding,
|
|
279
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
280
|
-
)
|
|
281
|
-
SYNC_PENDING =
|
|
282
|
-
T.let(
|
|
283
|
-
:sync_pending,
|
|
284
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
285
|
-
)
|
|
286
|
-
SYNCING =
|
|
287
|
-
T.let(
|
|
288
|
-
:syncing,
|
|
289
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
290
|
-
)
|
|
291
|
-
SYNC_COMPLETE =
|
|
292
|
-
T.let(
|
|
293
|
-
:sync_complete,
|
|
294
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
295
|
-
)
|
|
296
|
-
ACTIVE =
|
|
297
|
-
T.let(
|
|
298
|
-
:active,
|
|
299
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
300
|
-
)
|
|
301
|
-
HISTORY_DECLINED =
|
|
302
|
-
T.let(
|
|
303
|
-
:history_declined,
|
|
304
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
305
|
-
)
|
|
306
|
-
SYNC_DEADLINE_EXPIRED =
|
|
307
|
-
T.let(
|
|
308
|
-
:sync_deadline_expired,
|
|
309
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
310
|
-
)
|
|
311
|
-
OFFBOARDED =
|
|
312
|
-
T.let(
|
|
313
|
-
:offboarded,
|
|
314
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
315
|
-
)
|
|
316
|
-
DISCONNECTED =
|
|
317
|
-
T.let(
|
|
318
|
-
:disconnected,
|
|
319
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
320
|
-
)
|
|
321
|
-
|
|
322
|
-
sig do
|
|
323
|
-
override.returns(
|
|
324
|
-
T::Array[
|
|
325
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState::TaggedSymbol
|
|
326
|
-
]
|
|
327
|
-
)
|
|
328
|
-
end
|
|
329
|
-
def self.values
|
|
330
|
-
end
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
334
|
-
OrHash =
|
|
335
|
-
T.type_alias do
|
|
336
|
-
T.any(
|
|
337
|
-
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::SyncProgress,
|
|
338
|
-
Telnyx::Internal::AnyHash
|
|
339
|
-
)
|
|
340
|
-
end
|
|
341
|
-
|
|
342
|
-
sig { returns(T.nilable(String)) }
|
|
343
|
-
attr_reader :contacts_status
|
|
344
|
-
|
|
345
|
-
sig { params(contacts_status: String).void }
|
|
346
|
-
attr_writer :contacts_status
|
|
347
|
-
|
|
348
|
-
sig { returns(T.nilable(Integer)) }
|
|
349
|
-
attr_accessor :history_chunk_order
|
|
350
|
-
|
|
351
|
-
sig { returns(T.nilable(Integer)) }
|
|
352
|
-
attr_accessor :history_phase
|
|
353
|
-
|
|
354
|
-
sig { returns(T.nilable(Integer)) }
|
|
355
|
-
attr_accessor :history_progress
|
|
356
|
-
|
|
357
|
-
sig { returns(T.nilable(String)) }
|
|
358
|
-
attr_reader :history_status
|
|
359
|
-
|
|
360
|
-
sig { params(history_status: String).void }
|
|
361
|
-
attr_writer :history_status
|
|
362
|
-
|
|
363
|
-
# Synchronization progress. This object is returned only while a coexistence
|
|
364
|
-
# number is synchronizing.
|
|
365
|
-
sig do
|
|
366
|
-
params(
|
|
367
|
-
contacts_status: String,
|
|
368
|
-
history_chunk_order: T.nilable(Integer),
|
|
369
|
-
history_phase: T.nilable(Integer),
|
|
370
|
-
history_progress: T.nilable(Integer),
|
|
371
|
-
history_status: String
|
|
372
|
-
).returns(T.attached_class)
|
|
373
|
-
end
|
|
374
|
-
def self.new(
|
|
375
|
-
contacts_status: nil,
|
|
376
|
-
history_chunk_order: nil,
|
|
377
|
-
history_phase: nil,
|
|
378
|
-
history_progress: nil,
|
|
379
|
-
history_status: nil
|
|
380
|
-
)
|
|
381
|
-
end
|
|
382
|
-
|
|
383
|
-
sig do
|
|
384
|
-
override.returns(
|
|
385
|
-
{
|
|
386
|
-
contacts_status: String,
|
|
387
|
-
history_chunk_order: T.nilable(Integer),
|
|
388
|
-
history_phase: T.nilable(Integer),
|
|
389
|
-
history_progress: T.nilable(Integer),
|
|
390
|
-
history_status: String
|
|
391
|
-
}
|
|
392
|
-
)
|
|
393
|
-
end
|
|
394
|
-
def to_hash
|
|
395
|
-
end
|
|
396
|
-
end
|
|
397
|
-
end
|
|
398
36
|
end
|
|
399
37
|
end
|
|
400
38
|
end
|
data/rbi/telnyx/models/whatsapp/{hosted_signup_list_response.rbi → whatsapp_hosted_signup.rbi}
RENAMED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
+
WhatsappHostedSignup = Whatsapp::WhatsappHostedSignup
|
|
6
|
+
|
|
5
7
|
module Whatsapp
|
|
6
|
-
class
|
|
8
|
+
class WhatsappHostedSignup < Telnyx::Internal::Type::BaseModel
|
|
7
9
|
OrHash =
|
|
8
10
|
T.type_alias do
|
|
9
11
|
T.any(
|
|
10
|
-
Telnyx::
|
|
12
|
+
Telnyx::Whatsapp::WhatsappHostedSignup,
|
|
11
13
|
Telnyx::Internal::AnyHash
|
|
12
14
|
)
|
|
13
15
|
end
|
|
@@ -49,7 +51,7 @@ module Telnyx
|
|
|
49
51
|
sig do
|
|
50
52
|
returns(
|
|
51
53
|
T.nilable(
|
|
52
|
-
Telnyx::
|
|
54
|
+
Telnyx::Whatsapp::WhatsappHostedSignup::RecordType::TaggedSymbol
|
|
53
55
|
)
|
|
54
56
|
)
|
|
55
57
|
end
|
|
@@ -58,7 +60,7 @@ module Telnyx
|
|
|
58
60
|
sig do
|
|
59
61
|
params(
|
|
60
62
|
record_type:
|
|
61
|
-
Telnyx::
|
|
63
|
+
Telnyx::Whatsapp::WhatsappHostedSignup::RecordType::OrSymbol
|
|
62
64
|
).void
|
|
63
65
|
end
|
|
64
66
|
attr_writer :record_type
|
|
@@ -86,7 +88,7 @@ module Telnyx
|
|
|
86
88
|
expires_at: Time,
|
|
87
89
|
jwt: String,
|
|
88
90
|
record_type:
|
|
89
|
-
Telnyx::
|
|
91
|
+
Telnyx::Whatsapp::WhatsappHostedSignup::RecordType::OrSymbol,
|
|
90
92
|
solution_id: String,
|
|
91
93
|
url: String
|
|
92
94
|
).returns(T.attached_class)
|
|
@@ -119,7 +121,7 @@ module Telnyx
|
|
|
119
121
|
expires_at: Time,
|
|
120
122
|
jwt: String,
|
|
121
123
|
record_type:
|
|
122
|
-
Telnyx::
|
|
124
|
+
Telnyx::Whatsapp::WhatsappHostedSignup::RecordType::TaggedSymbol,
|
|
123
125
|
solution_id: String,
|
|
124
126
|
url: String
|
|
125
127
|
}
|
|
@@ -133,23 +135,20 @@ module Telnyx
|
|
|
133
135
|
|
|
134
136
|
TaggedSymbol =
|
|
135
137
|
T.type_alias do
|
|
136
|
-
T.all(
|
|
137
|
-
Symbol,
|
|
138
|
-
Telnyx::Models::Whatsapp::HostedSignupListResponse::RecordType
|
|
139
|
-
)
|
|
138
|
+
T.all(Symbol, Telnyx::Whatsapp::WhatsappHostedSignup::RecordType)
|
|
140
139
|
end
|
|
141
140
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
142
141
|
|
|
143
142
|
WHATSAPP_JWT =
|
|
144
143
|
T.let(
|
|
145
144
|
:whatsapp_jwt,
|
|
146
|
-
Telnyx::
|
|
145
|
+
Telnyx::Whatsapp::WhatsappHostedSignup::RecordType::TaggedSymbol
|
|
147
146
|
)
|
|
148
147
|
|
|
149
148
|
sig do
|
|
150
149
|
override.returns(
|
|
151
150
|
T::Array[
|
|
152
|
-
Telnyx::
|
|
151
|
+
Telnyx::Whatsapp::WhatsappHostedSignup::RecordType::TaggedSymbol
|
|
153
152
|
]
|
|
154
153
|
)
|
|
155
154
|
end
|
data/rbi/telnyx/models/whatsapp/{phone_number_list_response.rbi → whatsapp_phone_response.rbi}
RENAMED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
+
WhatsappPhoneResponse = Whatsapp::WhatsappPhoneResponse
|
|
6
|
+
|
|
5
7
|
module Whatsapp
|
|
6
|
-
class
|
|
8
|
+
class WhatsappPhoneResponse < Telnyx::Internal::Type::BaseModel
|
|
7
9
|
OrHash =
|
|
8
10
|
T.type_alias do
|
|
9
11
|
T.any(
|
|
10
|
-
Telnyx::
|
|
12
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse,
|
|
11
13
|
Telnyx::Internal::AnyHash
|
|
12
14
|
)
|
|
13
15
|
end
|
|
@@ -23,7 +25,7 @@ module Telnyx
|
|
|
23
25
|
sig do
|
|
24
26
|
returns(
|
|
25
27
|
T.nilable(
|
|
26
|
-
Telnyx::
|
|
28
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
27
29
|
)
|
|
28
30
|
)
|
|
29
31
|
end
|
|
@@ -97,9 +99,7 @@ module Telnyx
|
|
|
97
99
|
# number is synchronizing.
|
|
98
100
|
sig do
|
|
99
101
|
returns(
|
|
100
|
-
T.nilable(
|
|
101
|
-
Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress
|
|
102
|
-
)
|
|
102
|
+
T.nilable(Telnyx::Whatsapp::WhatsappPhoneResponse::SyncProgress)
|
|
103
103
|
)
|
|
104
104
|
end
|
|
105
105
|
attr_reader :sync_progress
|
|
@@ -108,7 +108,7 @@ module Telnyx
|
|
|
108
108
|
params(
|
|
109
109
|
sync_progress:
|
|
110
110
|
T.nilable(
|
|
111
|
-
Telnyx::
|
|
111
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::SyncProgress::OrHash
|
|
112
112
|
)
|
|
113
113
|
).void
|
|
114
114
|
end
|
|
@@ -133,7 +133,7 @@ module Telnyx
|
|
|
133
133
|
calling_enabled: T::Boolean,
|
|
134
134
|
coexistence_state:
|
|
135
135
|
T.nilable(
|
|
136
|
-
Telnyx::
|
|
136
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::OrSymbol
|
|
137
137
|
),
|
|
138
138
|
created_at: Time,
|
|
139
139
|
display_name: String,
|
|
@@ -147,7 +147,7 @@ module Telnyx
|
|
|
147
147
|
sync_deadline: T.nilable(Time),
|
|
148
148
|
sync_progress:
|
|
149
149
|
T.nilable(
|
|
150
|
-
Telnyx::
|
|
150
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::SyncProgress::OrHash
|
|
151
151
|
),
|
|
152
152
|
user_id: String,
|
|
153
153
|
waba_id: String
|
|
@@ -191,7 +191,7 @@ module Telnyx
|
|
|
191
191
|
calling_enabled: T::Boolean,
|
|
192
192
|
coexistence_state:
|
|
193
193
|
T.nilable(
|
|
194
|
-
Telnyx::
|
|
194
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
195
195
|
),
|
|
196
196
|
created_at: Time,
|
|
197
197
|
display_name: String,
|
|
@@ -205,7 +205,7 @@ module Telnyx
|
|
|
205
205
|
sync_deadline: T.nilable(Time),
|
|
206
206
|
sync_progress:
|
|
207
207
|
T.nilable(
|
|
208
|
-
Telnyx::
|
|
208
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::SyncProgress
|
|
209
209
|
),
|
|
210
210
|
user_id: String,
|
|
211
211
|
waba_id: String
|
|
@@ -224,7 +224,7 @@ module Telnyx
|
|
|
224
224
|
T.type_alias do
|
|
225
225
|
T.all(
|
|
226
226
|
Symbol,
|
|
227
|
-
Telnyx::
|
|
227
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState
|
|
228
228
|
)
|
|
229
229
|
end
|
|
230
230
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -232,53 +232,53 @@ module Telnyx
|
|
|
232
232
|
PENDING_ONBOARDING =
|
|
233
233
|
T.let(
|
|
234
234
|
:pending_onboarding,
|
|
235
|
-
Telnyx::
|
|
235
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
236
236
|
)
|
|
237
237
|
SYNC_PENDING =
|
|
238
238
|
T.let(
|
|
239
239
|
:sync_pending,
|
|
240
|
-
Telnyx::
|
|
240
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
241
241
|
)
|
|
242
242
|
SYNCING =
|
|
243
243
|
T.let(
|
|
244
244
|
:syncing,
|
|
245
|
-
Telnyx::
|
|
245
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
246
246
|
)
|
|
247
247
|
SYNC_COMPLETE =
|
|
248
248
|
T.let(
|
|
249
249
|
:sync_complete,
|
|
250
|
-
Telnyx::
|
|
250
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
251
251
|
)
|
|
252
252
|
ACTIVE =
|
|
253
253
|
T.let(
|
|
254
254
|
:active,
|
|
255
|
-
Telnyx::
|
|
255
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
256
256
|
)
|
|
257
257
|
HISTORY_DECLINED =
|
|
258
258
|
T.let(
|
|
259
259
|
:history_declined,
|
|
260
|
-
Telnyx::
|
|
260
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
261
261
|
)
|
|
262
262
|
SYNC_DEADLINE_EXPIRED =
|
|
263
263
|
T.let(
|
|
264
264
|
:sync_deadline_expired,
|
|
265
|
-
Telnyx::
|
|
265
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
266
266
|
)
|
|
267
267
|
OFFBOARDED =
|
|
268
268
|
T.let(
|
|
269
269
|
:offboarded,
|
|
270
|
-
Telnyx::
|
|
270
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
271
271
|
)
|
|
272
272
|
DISCONNECTED =
|
|
273
273
|
T.let(
|
|
274
274
|
:disconnected,
|
|
275
|
-
Telnyx::
|
|
275
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
276
276
|
)
|
|
277
277
|
|
|
278
278
|
sig do
|
|
279
279
|
override.returns(
|
|
280
280
|
T::Array[
|
|
281
|
-
Telnyx::
|
|
281
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::CoexistenceState::TaggedSymbol
|
|
282
282
|
]
|
|
283
283
|
)
|
|
284
284
|
end
|
|
@@ -290,7 +290,7 @@ module Telnyx
|
|
|
290
290
|
OrHash =
|
|
291
291
|
T.type_alias do
|
|
292
292
|
T.any(
|
|
293
|
-
Telnyx::
|
|
293
|
+
Telnyx::Whatsapp::WhatsappPhoneResponse::SyncProgress,
|
|
294
294
|
Telnyx::Internal::AnyHash
|
|
295
295
|
)
|
|
296
296
|
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -2396,6 +2396,8 @@ module Telnyx
|
|
|
2396
2396
|
|
|
2397
2397
|
UserTagListParams = Telnyx::Models::UserTagListParams
|
|
2398
2398
|
|
|
2399
|
+
VariableSchemaEntry = Telnyx::Models::VariableSchemaEntry
|
|
2400
|
+
|
|
2399
2401
|
Verification = Telnyx::Models::Verification
|
|
2400
2402
|
|
|
2401
2403
|
VerificationRetrieveParams = Telnyx::Models::VerificationRetrieveParams
|
|
@@ -14,12 +14,7 @@ module Telnyx
|
|
|
14
14
|
subject: T.nilable(String),
|
|
15
15
|
text_body: T.nilable(String),
|
|
16
16
|
variable_schema:
|
|
17
|
-
T.nilable(
|
|
18
|
-
T::Hash[
|
|
19
|
-
Symbol,
|
|
20
|
-
Telnyx::EmailTemplateCreateParams::VariableSchema::OrHash
|
|
21
|
-
]
|
|
22
|
-
),
|
|
17
|
+
T.nilable(T::Hash[Symbol, Telnyx::VariableSchemaEntry::OrHash]),
|
|
23
18
|
variables: T.nilable(T::Array[String]),
|
|
24
19
|
variables_mode:
|
|
25
20
|
Telnyx::EmailTemplateCreateParams::VariablesMode::OrSymbol,
|
|
@@ -111,12 +106,7 @@ module Telnyx
|
|
|
111
106
|
subject: T.nilable(String),
|
|
112
107
|
text_body: T.nilable(String),
|
|
113
108
|
variable_schema:
|
|
114
|
-
T.nilable(
|
|
115
|
-
T::Hash[
|
|
116
|
-
Symbol,
|
|
117
|
-
Telnyx::UpdateEmailTemplateRequest::VariableSchema::OrHash
|
|
118
|
-
]
|
|
119
|
-
),
|
|
109
|
+
T.nilable(T::Hash[Symbol, Telnyx::VariableSchemaEntry::OrHash]),
|
|
120
110
|
variables: T.nilable(T::Array[String]),
|
|
121
111
|
variables_mode:
|
|
122
112
|
Telnyx::UpdateEmailTemplateRequest::VariablesMode::OrSymbol,
|
|
@@ -252,12 +242,7 @@ module Telnyx
|
|
|
252
242
|
subject: T.nilable(String),
|
|
253
243
|
text_body: T.nilable(String),
|
|
254
244
|
variable_schema:
|
|
255
|
-
T.nilable(
|
|
256
|
-
T::Hash[
|
|
257
|
-
Symbol,
|
|
258
|
-
Telnyx::UpdateEmailTemplateRequest::VariableSchema::OrHash
|
|
259
|
-
]
|
|
260
|
-
),
|
|
245
|
+
T.nilable(T::Hash[Symbol, Telnyx::VariableSchemaEntry::OrHash]),
|
|
261
246
|
variables: T.nilable(T::Array[String]),
|
|
262
247
|
variables_mode:
|
|
263
248
|
Telnyx::UpdateEmailTemplateRequest::VariablesMode::OrSymbol,
|
|
@@ -34,7 +34,8 @@ module Telnyx
|
|
|
34
34
|
)
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
# Returns the portout requests according to filters
|
|
37
|
+
# Returns the portout requests according to filters. Carrier Port Out API
|
|
38
|
+
# available. Please contact porting@telnyx.com.
|
|
38
39
|
sig do
|
|
39
40
|
params(
|
|
40
41
|
filter: Telnyx::PortoutListParams::Filter::OrHash,
|