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
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Whatsapp
|
|
6
|
-
module BusinessAccounts
|
|
7
|
-
class PhoneNumberListResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(
|
|
11
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse,
|
|
12
|
-
Telnyx::Internal::AnyHash
|
|
13
|
-
)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
17
|
-
attr_reader :calling_enabled
|
|
18
|
-
|
|
19
|
-
sig { params(calling_enabled: T::Boolean).void }
|
|
20
|
-
attr_writer :calling_enabled
|
|
21
|
-
|
|
22
|
-
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
23
|
-
# Cloud API number.
|
|
24
|
-
sig do
|
|
25
|
-
returns(
|
|
26
|
-
T.nilable(
|
|
27
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
28
|
-
)
|
|
29
|
-
)
|
|
30
|
-
end
|
|
31
|
-
attr_accessor :coexistence_state
|
|
32
|
-
|
|
33
|
-
sig { returns(T.nilable(Time)) }
|
|
34
|
-
attr_reader :created_at
|
|
35
|
-
|
|
36
|
-
sig { params(created_at: Time).void }
|
|
37
|
-
attr_writer :created_at
|
|
38
|
-
|
|
39
|
-
sig { returns(T.nilable(String)) }
|
|
40
|
-
attr_reader :display_name
|
|
41
|
-
|
|
42
|
-
sig { params(display_name: String).void }
|
|
43
|
-
attr_writer :display_name
|
|
44
|
-
|
|
45
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
46
|
-
attr_reader :enabled
|
|
47
|
-
|
|
48
|
-
sig { params(enabled: T::Boolean).void }
|
|
49
|
-
attr_writer :enabled
|
|
50
|
-
|
|
51
|
-
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
52
|
-
# Cloud API through WhatsApp Coexistence.
|
|
53
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
54
|
-
attr_reader :is_on_biz_app
|
|
55
|
-
|
|
56
|
-
sig { params(is_on_biz_app: T::Boolean).void }
|
|
57
|
-
attr_writer :is_on_biz_app
|
|
58
|
-
|
|
59
|
-
# Phone number in E164 format
|
|
60
|
-
sig { returns(T.nilable(String)) }
|
|
61
|
-
attr_reader :phone_number
|
|
62
|
-
|
|
63
|
-
sig { params(phone_number: String).void }
|
|
64
|
-
attr_writer :phone_number
|
|
65
|
-
|
|
66
|
-
# Whatsapp phone number ID
|
|
67
|
-
sig { returns(T.nilable(String)) }
|
|
68
|
-
attr_reader :phone_number_id
|
|
69
|
-
|
|
70
|
-
sig { params(phone_number_id: String).void }
|
|
71
|
-
attr_writer :phone_number_id
|
|
72
|
-
|
|
73
|
-
# Whatsapp quality rating
|
|
74
|
-
sig { returns(T.nilable(String)) }
|
|
75
|
-
attr_reader :quality_rating
|
|
76
|
-
|
|
77
|
-
sig { params(quality_rating: String).void }
|
|
78
|
-
attr_writer :quality_rating
|
|
79
|
-
|
|
80
|
-
sig { returns(T.nilable(String)) }
|
|
81
|
-
attr_reader :record_type
|
|
82
|
-
|
|
83
|
-
sig { params(record_type: String).void }
|
|
84
|
-
attr_writer :record_type
|
|
85
|
-
|
|
86
|
-
sig { returns(T.nilable(String)) }
|
|
87
|
-
attr_reader :status
|
|
88
|
-
|
|
89
|
-
sig { params(status: String).void }
|
|
90
|
-
attr_writer :status
|
|
91
|
-
|
|
92
|
-
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
93
|
-
# null when no deadline applies.
|
|
94
|
-
sig { returns(T.nilable(Time)) }
|
|
95
|
-
attr_accessor :sync_deadline
|
|
96
|
-
|
|
97
|
-
# Synchronization progress. This object is returned only while a coexistence
|
|
98
|
-
# number is synchronizing.
|
|
99
|
-
sig do
|
|
100
|
-
returns(
|
|
101
|
-
T.nilable(
|
|
102
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress
|
|
103
|
-
)
|
|
104
|
-
)
|
|
105
|
-
end
|
|
106
|
-
attr_reader :sync_progress
|
|
107
|
-
|
|
108
|
-
sig do
|
|
109
|
-
params(
|
|
110
|
-
sync_progress:
|
|
111
|
-
T.nilable(
|
|
112
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress::OrHash
|
|
113
|
-
)
|
|
114
|
-
).void
|
|
115
|
-
end
|
|
116
|
-
attr_writer :sync_progress
|
|
117
|
-
|
|
118
|
-
# User ID
|
|
119
|
-
sig { returns(T.nilable(String)) }
|
|
120
|
-
attr_reader :user_id
|
|
121
|
-
|
|
122
|
-
sig { params(user_id: String).void }
|
|
123
|
-
attr_writer :user_id
|
|
124
|
-
|
|
125
|
-
# WABA ID of Whatsapp business account
|
|
126
|
-
sig { returns(T.nilable(String)) }
|
|
127
|
-
attr_reader :waba_id
|
|
128
|
-
|
|
129
|
-
sig { params(waba_id: String).void }
|
|
130
|
-
attr_writer :waba_id
|
|
131
|
-
|
|
132
|
-
sig do
|
|
133
|
-
params(
|
|
134
|
-
calling_enabled: T::Boolean,
|
|
135
|
-
coexistence_state:
|
|
136
|
-
T.nilable(
|
|
137
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::OrSymbol
|
|
138
|
-
),
|
|
139
|
-
created_at: Time,
|
|
140
|
-
display_name: String,
|
|
141
|
-
enabled: T::Boolean,
|
|
142
|
-
is_on_biz_app: T::Boolean,
|
|
143
|
-
phone_number: String,
|
|
144
|
-
phone_number_id: String,
|
|
145
|
-
quality_rating: String,
|
|
146
|
-
record_type: String,
|
|
147
|
-
status: String,
|
|
148
|
-
sync_deadline: T.nilable(Time),
|
|
149
|
-
sync_progress:
|
|
150
|
-
T.nilable(
|
|
151
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress::OrHash
|
|
152
|
-
),
|
|
153
|
-
user_id: String,
|
|
154
|
-
waba_id: String
|
|
155
|
-
).returns(T.attached_class)
|
|
156
|
-
end
|
|
157
|
-
def self.new(
|
|
158
|
-
calling_enabled: nil,
|
|
159
|
-
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
160
|
-
# Cloud API number.
|
|
161
|
-
coexistence_state: nil,
|
|
162
|
-
created_at: nil,
|
|
163
|
-
display_name: nil,
|
|
164
|
-
enabled: nil,
|
|
165
|
-
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
166
|
-
# Cloud API through WhatsApp Coexistence.
|
|
167
|
-
is_on_biz_app: nil,
|
|
168
|
-
# Phone number in E164 format
|
|
169
|
-
phone_number: nil,
|
|
170
|
-
# Whatsapp phone number ID
|
|
171
|
-
phone_number_id: nil,
|
|
172
|
-
# Whatsapp quality rating
|
|
173
|
-
quality_rating: nil,
|
|
174
|
-
record_type: nil,
|
|
175
|
-
status: nil,
|
|
176
|
-
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
177
|
-
# null when no deadline applies.
|
|
178
|
-
sync_deadline: nil,
|
|
179
|
-
# Synchronization progress. This object is returned only while a coexistence
|
|
180
|
-
# number is synchronizing.
|
|
181
|
-
sync_progress: nil,
|
|
182
|
-
# User ID
|
|
183
|
-
user_id: nil,
|
|
184
|
-
# WABA ID of Whatsapp business account
|
|
185
|
-
waba_id: nil
|
|
186
|
-
)
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
sig do
|
|
190
|
-
override.returns(
|
|
191
|
-
{
|
|
192
|
-
calling_enabled: T::Boolean,
|
|
193
|
-
coexistence_state:
|
|
194
|
-
T.nilable(
|
|
195
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
196
|
-
),
|
|
197
|
-
created_at: Time,
|
|
198
|
-
display_name: String,
|
|
199
|
-
enabled: T::Boolean,
|
|
200
|
-
is_on_biz_app: T::Boolean,
|
|
201
|
-
phone_number: String,
|
|
202
|
-
phone_number_id: String,
|
|
203
|
-
quality_rating: String,
|
|
204
|
-
record_type: String,
|
|
205
|
-
status: String,
|
|
206
|
-
sync_deadline: T.nilable(Time),
|
|
207
|
-
sync_progress:
|
|
208
|
-
T.nilable(
|
|
209
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress
|
|
210
|
-
),
|
|
211
|
-
user_id: String,
|
|
212
|
-
waba_id: String
|
|
213
|
-
}
|
|
214
|
-
)
|
|
215
|
-
end
|
|
216
|
-
def to_hash
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
220
|
-
# Cloud API number.
|
|
221
|
-
module CoexistenceState
|
|
222
|
-
extend Telnyx::Internal::Type::Enum
|
|
223
|
-
|
|
224
|
-
TaggedSymbol =
|
|
225
|
-
T.type_alias do
|
|
226
|
-
T.all(
|
|
227
|
-
Symbol,
|
|
228
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState
|
|
229
|
-
)
|
|
230
|
-
end
|
|
231
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
232
|
-
|
|
233
|
-
PENDING_ONBOARDING =
|
|
234
|
-
T.let(
|
|
235
|
-
:pending_onboarding,
|
|
236
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
237
|
-
)
|
|
238
|
-
SYNC_PENDING =
|
|
239
|
-
T.let(
|
|
240
|
-
:sync_pending,
|
|
241
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
242
|
-
)
|
|
243
|
-
SYNCING =
|
|
244
|
-
T.let(
|
|
245
|
-
:syncing,
|
|
246
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
247
|
-
)
|
|
248
|
-
SYNC_COMPLETE =
|
|
249
|
-
T.let(
|
|
250
|
-
:sync_complete,
|
|
251
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
252
|
-
)
|
|
253
|
-
ACTIVE =
|
|
254
|
-
T.let(
|
|
255
|
-
:active,
|
|
256
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
257
|
-
)
|
|
258
|
-
HISTORY_DECLINED =
|
|
259
|
-
T.let(
|
|
260
|
-
:history_declined,
|
|
261
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
262
|
-
)
|
|
263
|
-
SYNC_DEADLINE_EXPIRED =
|
|
264
|
-
T.let(
|
|
265
|
-
:sync_deadline_expired,
|
|
266
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
267
|
-
)
|
|
268
|
-
OFFBOARDED =
|
|
269
|
-
T.let(
|
|
270
|
-
:offboarded,
|
|
271
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
272
|
-
)
|
|
273
|
-
DISCONNECTED =
|
|
274
|
-
T.let(
|
|
275
|
-
:disconnected,
|
|
276
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
277
|
-
)
|
|
278
|
-
|
|
279
|
-
sig do
|
|
280
|
-
override.returns(
|
|
281
|
-
T::Array[
|
|
282
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState::TaggedSymbol
|
|
283
|
-
]
|
|
284
|
-
)
|
|
285
|
-
end
|
|
286
|
-
def self.values
|
|
287
|
-
end
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
291
|
-
OrHash =
|
|
292
|
-
T.type_alias do
|
|
293
|
-
T.any(
|
|
294
|
-
Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress,
|
|
295
|
-
Telnyx::Internal::AnyHash
|
|
296
|
-
)
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
sig { returns(T.nilable(String)) }
|
|
300
|
-
attr_reader :contacts_status
|
|
301
|
-
|
|
302
|
-
sig { params(contacts_status: String).void }
|
|
303
|
-
attr_writer :contacts_status
|
|
304
|
-
|
|
305
|
-
sig { returns(T.nilable(Integer)) }
|
|
306
|
-
attr_accessor :history_chunk_order
|
|
307
|
-
|
|
308
|
-
sig { returns(T.nilable(Integer)) }
|
|
309
|
-
attr_accessor :history_phase
|
|
310
|
-
|
|
311
|
-
sig { returns(T.nilable(Integer)) }
|
|
312
|
-
attr_accessor :history_progress
|
|
313
|
-
|
|
314
|
-
sig { returns(T.nilable(String)) }
|
|
315
|
-
attr_reader :history_status
|
|
316
|
-
|
|
317
|
-
sig { params(history_status: String).void }
|
|
318
|
-
attr_writer :history_status
|
|
319
|
-
|
|
320
|
-
# Synchronization progress. This object is returned only while a coexistence
|
|
321
|
-
# number is synchronizing.
|
|
322
|
-
sig do
|
|
323
|
-
params(
|
|
324
|
-
contacts_status: String,
|
|
325
|
-
history_chunk_order: T.nilable(Integer),
|
|
326
|
-
history_phase: T.nilable(Integer),
|
|
327
|
-
history_progress: T.nilable(Integer),
|
|
328
|
-
history_status: String
|
|
329
|
-
).returns(T.attached_class)
|
|
330
|
-
end
|
|
331
|
-
def self.new(
|
|
332
|
-
contacts_status: nil,
|
|
333
|
-
history_chunk_order: nil,
|
|
334
|
-
history_phase: nil,
|
|
335
|
-
history_progress: nil,
|
|
336
|
-
history_status: nil
|
|
337
|
-
)
|
|
338
|
-
end
|
|
339
|
-
|
|
340
|
-
sig do
|
|
341
|
-
override.returns(
|
|
342
|
-
{
|
|
343
|
-
contacts_status: String,
|
|
344
|
-
history_chunk_order: T.nilable(Integer),
|
|
345
|
-
history_phase: T.nilable(Integer),
|
|
346
|
-
history_progress: T.nilable(Integer),
|
|
347
|
-
history_status: String
|
|
348
|
-
}
|
|
349
|
-
)
|
|
350
|
-
end
|
|
351
|
-
def to_hash
|
|
352
|
-
end
|
|
353
|
-
end
|
|
354
|
-
end
|
|
355
|
-
end
|
|
356
|
-
end
|
|
357
|
-
end
|
|
358
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Resources
|
|
5
|
-
class TtsIntegrations
|
|
6
|
-
sig { returns(Telnyx::Resources::TtsIntegrations::Actions) }
|
|
7
|
-
attr_reader :actions
|
|
8
|
-
|
|
9
|
-
# @api private
|
|
10
|
-
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
11
|
-
def self.new(client:)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module Whatsapp
|
|
4
|
-
module BusinessAccounts
|
|
5
|
-
type phone_number_list_response =
|
|
6
|
-
{
|
|
7
|
-
calling_enabled: bool,
|
|
8
|
-
coexistence_state: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::coexistence_state?,
|
|
9
|
-
created_at: Time,
|
|
10
|
-
display_name: String,
|
|
11
|
-
enabled: bool,
|
|
12
|
-
is_on_biz_app: bool,
|
|
13
|
-
phone_number: String,
|
|
14
|
-
phone_number_id: String,
|
|
15
|
-
quality_rating: String,
|
|
16
|
-
record_type: String,
|
|
17
|
-
status: String,
|
|
18
|
-
sync_deadline: Time?,
|
|
19
|
-
sync_progress: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress?,
|
|
20
|
-
user_id: String,
|
|
21
|
-
waba_id: String
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class PhoneNumberListResponse < Telnyx::Internal::Type::BaseModel
|
|
25
|
-
attr_reader calling_enabled: bool?
|
|
26
|
-
|
|
27
|
-
def calling_enabled=: (bool) -> bool
|
|
28
|
-
|
|
29
|
-
attr_accessor coexistence_state: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::coexistence_state?
|
|
30
|
-
|
|
31
|
-
attr_reader created_at: Time?
|
|
32
|
-
|
|
33
|
-
def created_at=: (Time) -> Time
|
|
34
|
-
|
|
35
|
-
attr_reader display_name: String?
|
|
36
|
-
|
|
37
|
-
def display_name=: (String) -> String
|
|
38
|
-
|
|
39
|
-
attr_reader enabled: bool?
|
|
40
|
-
|
|
41
|
-
def enabled=: (bool) -> bool
|
|
42
|
-
|
|
43
|
-
attr_reader is_on_biz_app: bool?
|
|
44
|
-
|
|
45
|
-
def is_on_biz_app=: (bool) -> bool
|
|
46
|
-
|
|
47
|
-
attr_reader phone_number: String?
|
|
48
|
-
|
|
49
|
-
def phone_number=: (String) -> String
|
|
50
|
-
|
|
51
|
-
attr_reader phone_number_id: String?
|
|
52
|
-
|
|
53
|
-
def phone_number_id=: (String) -> String
|
|
54
|
-
|
|
55
|
-
attr_reader quality_rating: String?
|
|
56
|
-
|
|
57
|
-
def quality_rating=: (String) -> String
|
|
58
|
-
|
|
59
|
-
attr_reader record_type: String?
|
|
60
|
-
|
|
61
|
-
def record_type=: (String) -> String
|
|
62
|
-
|
|
63
|
-
attr_reader status: String?
|
|
64
|
-
|
|
65
|
-
def status=: (String) -> String
|
|
66
|
-
|
|
67
|
-
attr_accessor sync_deadline: Time?
|
|
68
|
-
|
|
69
|
-
attr_accessor sync_progress: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress?
|
|
70
|
-
|
|
71
|
-
attr_reader user_id: String?
|
|
72
|
-
|
|
73
|
-
def user_id=: (String) -> String
|
|
74
|
-
|
|
75
|
-
attr_reader waba_id: String?
|
|
76
|
-
|
|
77
|
-
def waba_id=: (String) -> String
|
|
78
|
-
|
|
79
|
-
def initialize: (
|
|
80
|
-
?calling_enabled: bool,
|
|
81
|
-
?coexistence_state: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::coexistence_state?,
|
|
82
|
-
?created_at: Time,
|
|
83
|
-
?display_name: String,
|
|
84
|
-
?enabled: bool,
|
|
85
|
-
?is_on_biz_app: bool,
|
|
86
|
-
?phone_number: String,
|
|
87
|
-
?phone_number_id: String,
|
|
88
|
-
?quality_rating: String,
|
|
89
|
-
?record_type: String,
|
|
90
|
-
?status: String,
|
|
91
|
-
?sync_deadline: Time?,
|
|
92
|
-
?sync_progress: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress?,
|
|
93
|
-
?user_id: String,
|
|
94
|
-
?waba_id: String
|
|
95
|
-
) -> void
|
|
96
|
-
|
|
97
|
-
def to_hash: -> {
|
|
98
|
-
calling_enabled: bool,
|
|
99
|
-
coexistence_state: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::coexistence_state?,
|
|
100
|
-
created_at: Time,
|
|
101
|
-
display_name: String,
|
|
102
|
-
enabled: bool,
|
|
103
|
-
is_on_biz_app: bool,
|
|
104
|
-
phone_number: String,
|
|
105
|
-
phone_number_id: String,
|
|
106
|
-
quality_rating: String,
|
|
107
|
-
record_type: String,
|
|
108
|
-
status: String,
|
|
109
|
-
sync_deadline: Time?,
|
|
110
|
-
sync_progress: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress?,
|
|
111
|
-
user_id: String,
|
|
112
|
-
waba_id: String
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
type coexistence_state =
|
|
116
|
-
:pending_onboarding
|
|
117
|
-
| :sync_pending
|
|
118
|
-
| :syncing
|
|
119
|
-
| :sync_complete
|
|
120
|
-
| :active
|
|
121
|
-
| :history_declined
|
|
122
|
-
| :sync_deadline_expired
|
|
123
|
-
| :offboarded
|
|
124
|
-
| :disconnected
|
|
125
|
-
|
|
126
|
-
module CoexistenceState
|
|
127
|
-
extend Telnyx::Internal::Type::Enum
|
|
128
|
-
|
|
129
|
-
PENDING_ONBOARDING: :pending_onboarding
|
|
130
|
-
SYNC_PENDING: :sync_pending
|
|
131
|
-
SYNCING: :syncing
|
|
132
|
-
SYNC_COMPLETE: :sync_complete
|
|
133
|
-
ACTIVE: :active
|
|
134
|
-
HISTORY_DECLINED: :history_declined
|
|
135
|
-
SYNC_DEADLINE_EXPIRED: :sync_deadline_expired
|
|
136
|
-
OFFBOARDED: :offboarded
|
|
137
|
-
DISCONNECTED: :disconnected
|
|
138
|
-
|
|
139
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::coexistence_state]
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
type sync_progress =
|
|
143
|
-
{
|
|
144
|
-
contacts_status: String,
|
|
145
|
-
history_chunk_order: Integer?,
|
|
146
|
-
history_phase: Integer?,
|
|
147
|
-
history_progress: Integer?,
|
|
148
|
-
history_status: String
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
152
|
-
attr_reader contacts_status: String?
|
|
153
|
-
|
|
154
|
-
def contacts_status=: (String) -> String
|
|
155
|
-
|
|
156
|
-
attr_accessor history_chunk_order: Integer?
|
|
157
|
-
|
|
158
|
-
attr_accessor history_phase: Integer?
|
|
159
|
-
|
|
160
|
-
attr_accessor history_progress: Integer?
|
|
161
|
-
|
|
162
|
-
attr_reader history_status: String?
|
|
163
|
-
|
|
164
|
-
def history_status=: (String) -> String
|
|
165
|
-
|
|
166
|
-
def initialize: (
|
|
167
|
-
?contacts_status: String,
|
|
168
|
-
?history_chunk_order: Integer?,
|
|
169
|
-
?history_phase: Integer?,
|
|
170
|
-
?history_progress: Integer?,
|
|
171
|
-
?history_status: String
|
|
172
|
-
) -> void
|
|
173
|
-
|
|
174
|
-
def to_hash: -> {
|
|
175
|
-
contacts_status: String,
|
|
176
|
-
history_chunk_order: Integer?,
|
|
177
|
-
history_phase: Integer?,
|
|
178
|
-
history_progress: Integer?,
|
|
179
|
-
history_status: String
|
|
180
|
-
}
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
end
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
end
|