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
|
@@ -55,6 +55,14 @@ module Telnyx
|
|
|
55
55
|
sig { returns(T.nilable(String)) }
|
|
56
56
|
attr_accessor :base_model
|
|
57
57
|
|
|
58
|
+
# Whether the model is in beta. New Telnyx-hosted models launch with `beta: true`;
|
|
59
|
+
# the label is removed once the model is established.
|
|
60
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
61
|
+
attr_reader :beta
|
|
62
|
+
|
|
63
|
+
sig { params(beta: T::Boolean).void }
|
|
64
|
+
attr_writer :beta
|
|
65
|
+
|
|
58
66
|
# Short, human-readable summary of what the model is best suited for.
|
|
59
67
|
sig { returns(T.nilable(String)) }
|
|
60
68
|
attr_accessor :description
|
|
@@ -166,6 +174,7 @@ module Telnyx
|
|
|
166
174
|
parameters: Integer,
|
|
167
175
|
tier: Telnyx::ModelMetadata::Tier::OrSymbol,
|
|
168
176
|
base_model: T.nilable(String),
|
|
177
|
+
beta: T::Boolean,
|
|
169
178
|
description: T.nilable(String),
|
|
170
179
|
is_fine_tunable: T::Boolean,
|
|
171
180
|
is_vision_supported: T::Boolean,
|
|
@@ -209,6 +218,9 @@ module Telnyx
|
|
|
209
218
|
# Base model the fine-tuned model was trained from. Only set for fine-tuned
|
|
210
219
|
# models.
|
|
211
220
|
base_model: nil,
|
|
221
|
+
# Whether the model is in beta. New Telnyx-hosted models launch with `beta: true`;
|
|
222
|
+
# the label is removed once the model is established.
|
|
223
|
+
beta: nil,
|
|
212
224
|
# Short, human-readable summary of what the model is best suited for.
|
|
213
225
|
description: nil,
|
|
214
226
|
# Whether the model can be used as a base for a fine-tuning job via
|
|
@@ -265,6 +277,7 @@ module Telnyx
|
|
|
265
277
|
parameters: Integer,
|
|
266
278
|
tier: Telnyx::ModelMetadata::Tier::TaggedSymbol,
|
|
267
279
|
base_model: T.nilable(String),
|
|
280
|
+
beta: T::Boolean,
|
|
268
281
|
description: T.nilable(String),
|
|
269
282
|
is_fine_tunable: T::Boolean,
|
|
270
283
|
is_vision_supported: T::Boolean,
|
|
@@ -31,6 +31,12 @@ module Telnyx
|
|
|
31
31
|
end
|
|
32
32
|
attr_writer :cc
|
|
33
33
|
|
|
34
|
+
# Identifies the next chunk when server-side SMS chunking
|
|
35
|
+
# (`auto_chunk_long_messages` on the messaging profile) split this message. Always
|
|
36
|
+
# present; null on non-chunked messages and on the final chunk.
|
|
37
|
+
sig { returns(T.nilable(String)) }
|
|
38
|
+
attr_accessor :child_message_id
|
|
39
|
+
|
|
34
40
|
# ISO 8601 formatted date indicating when the message was finalized.
|
|
35
41
|
sig { returns(T.nilable(Time)) }
|
|
36
42
|
attr_accessor :completed_at
|
|
@@ -129,6 +135,13 @@ module Telnyx
|
|
|
129
135
|
sig { params(organization_id: String).void }
|
|
130
136
|
attr_writer :organization_id
|
|
131
137
|
|
|
138
|
+
# Identifies the original request's message when server-side SMS chunking
|
|
139
|
+
# (`auto_chunk_long_messages` on the messaging profile) split it into chunks. The
|
|
140
|
+
# first chunk's ID is the original request's message ID. Always present; null when
|
|
141
|
+
# this message is not part of a chunked send.
|
|
142
|
+
sig { returns(T.nilable(String)) }
|
|
143
|
+
attr_accessor :parent_message_id
|
|
144
|
+
|
|
132
145
|
# Number of parts into which the message's body must be split.
|
|
133
146
|
sig { returns(T.nilable(Integer)) }
|
|
134
147
|
attr_reader :parts
|
|
@@ -265,6 +278,7 @@ module Telnyx
|
|
|
265
278
|
id: String,
|
|
266
279
|
body: Telnyx::OutboundMessagePayload::Body::OrHash,
|
|
267
280
|
cc: T::Array[Telnyx::OutboundMessagePayload::Cc::OrHash],
|
|
281
|
+
child_message_id: T.nilable(String),
|
|
268
282
|
completed_at: T.nilable(Time),
|
|
269
283
|
cost: T.nilable(Telnyx::OutboundMessagePayload::Cost::OrHash),
|
|
270
284
|
cost_breakdown:
|
|
@@ -277,6 +291,7 @@ module Telnyx
|
|
|
277
291
|
messaging_profile_id: String,
|
|
278
292
|
num_chars: Integer,
|
|
279
293
|
organization_id: String,
|
|
294
|
+
parent_message_id: T.nilable(String),
|
|
280
295
|
parts: Integer,
|
|
281
296
|
received_at: Time,
|
|
282
297
|
record_type: Telnyx::OutboundMessagePayload::RecordType::OrSymbol,
|
|
@@ -305,6 +320,10 @@ module Telnyx
|
|
|
305
320
|
# WhatsApp messages contain the `whatsapp_message` object from the send request.
|
|
306
321
|
body: nil,
|
|
307
322
|
cc: nil,
|
|
323
|
+
# Identifies the next chunk when server-side SMS chunking
|
|
324
|
+
# (`auto_chunk_long_messages` on the messaging profile) split this message. Always
|
|
325
|
+
# present; null on non-chunked messages and on the final chunk.
|
|
326
|
+
child_message_id: nil,
|
|
308
327
|
# ISO 8601 formatted date indicating when the message was finalized.
|
|
309
328
|
completed_at: nil,
|
|
310
329
|
cost: nil,
|
|
@@ -326,6 +345,11 @@ module Telnyx
|
|
|
326
345
|
num_chars: nil,
|
|
327
346
|
# The id of the organization the messaging profile belongs to.
|
|
328
347
|
organization_id: nil,
|
|
348
|
+
# Identifies the original request's message when server-side SMS chunking
|
|
349
|
+
# (`auto_chunk_long_messages` on the messaging profile) split it into chunks. The
|
|
350
|
+
# first chunk's ID is the original request's message ID. Always present; null when
|
|
351
|
+
# this message is not part of a chunked send.
|
|
352
|
+
parent_message_id: nil,
|
|
329
353
|
# Number of parts into which the message's body must be split.
|
|
330
354
|
parts: nil,
|
|
331
355
|
# ISO 8601 formatted date indicating when the message request was received.
|
|
@@ -383,6 +407,7 @@ module Telnyx
|
|
|
383
407
|
id: String,
|
|
384
408
|
body: Telnyx::OutboundMessagePayload::Body,
|
|
385
409
|
cc: T::Array[Telnyx::OutboundMessagePayload::Cc],
|
|
410
|
+
child_message_id: T.nilable(String),
|
|
386
411
|
completed_at: T.nilable(Time),
|
|
387
412
|
cost: T.nilable(Telnyx::OutboundMessagePayload::Cost),
|
|
388
413
|
cost_breakdown:
|
|
@@ -395,6 +420,7 @@ module Telnyx
|
|
|
395
420
|
messaging_profile_id: String,
|
|
396
421
|
num_chars: Integer,
|
|
397
422
|
organization_id: String,
|
|
423
|
+
parent_message_id: T.nilable(String),
|
|
398
424
|
parts: Integer,
|
|
399
425
|
received_at: Time,
|
|
400
426
|
record_type:
|
|
@@ -90,9 +90,7 @@ module Telnyx
|
|
|
90
90
|
sig do
|
|
91
91
|
returns(
|
|
92
92
|
T.nilable(
|
|
93
|
-
T::Array[
|
|
94
|
-
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::PendingOperation
|
|
95
|
-
]
|
|
93
|
+
T::Array[Telnyx::PhoneNumbers::PhoneNumbersJobPendingOperation]
|
|
96
94
|
)
|
|
97
95
|
)
|
|
98
96
|
end
|
|
@@ -102,7 +100,7 @@ module Telnyx
|
|
|
102
100
|
params(
|
|
103
101
|
pending_operations:
|
|
104
102
|
T::Array[
|
|
105
|
-
Telnyx::PhoneNumbers::
|
|
103
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobPendingOperation::OrHash
|
|
106
104
|
]
|
|
107
105
|
).void
|
|
108
106
|
end
|
|
@@ -136,9 +134,7 @@ module Telnyx
|
|
|
136
134
|
sig do
|
|
137
135
|
returns(
|
|
138
136
|
T.nilable(
|
|
139
|
-
T::Array[
|
|
140
|
-
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::SuccessfulOperation
|
|
141
|
-
]
|
|
137
|
+
T::Array[Telnyx::PhoneNumbers::PhoneNumbersJobSuccessfulOperation]
|
|
142
138
|
)
|
|
143
139
|
)
|
|
144
140
|
end
|
|
@@ -148,7 +144,7 @@ module Telnyx
|
|
|
148
144
|
params(
|
|
149
145
|
successful_operations:
|
|
150
146
|
T::Array[
|
|
151
|
-
Telnyx::PhoneNumbers::
|
|
147
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobSuccessfulOperation::OrHash
|
|
152
148
|
]
|
|
153
149
|
).void
|
|
154
150
|
end
|
|
@@ -191,7 +187,7 @@ module Telnyx
|
|
|
191
187
|
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::Parameters::OrHash,
|
|
192
188
|
pending_operations:
|
|
193
189
|
T::Array[
|
|
194
|
-
Telnyx::PhoneNumbers::
|
|
190
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobPendingOperation::OrHash
|
|
195
191
|
],
|
|
196
192
|
phone_numbers: T::Array[Telnyx::PhoneNumbersJobPhoneNumber::OrHash],
|
|
197
193
|
record_type: String,
|
|
@@ -199,7 +195,7 @@ module Telnyx
|
|
|
199
195
|
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::Status::OrSymbol,
|
|
200
196
|
successful_operations:
|
|
201
197
|
T::Array[
|
|
202
|
-
Telnyx::PhoneNumbers::
|
|
198
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobSuccessfulOperation::OrHash
|
|
203
199
|
],
|
|
204
200
|
type: Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::Type::OrSymbol,
|
|
205
201
|
updated_at: String
|
|
@@ -249,16 +245,14 @@ module Telnyx
|
|
|
249
245
|
parameters:
|
|
250
246
|
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::Parameters,
|
|
251
247
|
pending_operations:
|
|
252
|
-
T::Array[
|
|
253
|
-
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::PendingOperation
|
|
254
|
-
],
|
|
248
|
+
T::Array[Telnyx::PhoneNumbers::PhoneNumbersJobPendingOperation],
|
|
255
249
|
phone_numbers: T::Array[Telnyx::PhoneNumbersJobPhoneNumber],
|
|
256
250
|
record_type: String,
|
|
257
251
|
status:
|
|
258
252
|
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::Status::TaggedSymbol,
|
|
259
253
|
successful_operations:
|
|
260
254
|
T::Array[
|
|
261
|
-
Telnyx::PhoneNumbers::
|
|
255
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobSuccessfulOperation
|
|
262
256
|
],
|
|
263
257
|
type:
|
|
264
258
|
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::Type::TaggedSymbol,
|
|
@@ -892,48 +886,6 @@ module Telnyx
|
|
|
892
886
|
end
|
|
893
887
|
end
|
|
894
888
|
|
|
895
|
-
class PendingOperation < Telnyx::Internal::Type::BaseModel
|
|
896
|
-
OrHash =
|
|
897
|
-
T.type_alias do
|
|
898
|
-
T.any(
|
|
899
|
-
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::PendingOperation,
|
|
900
|
-
Telnyx::Internal::AnyHash
|
|
901
|
-
)
|
|
902
|
-
end
|
|
903
|
-
|
|
904
|
-
# The phone number's ID
|
|
905
|
-
sig { returns(T.nilable(String)) }
|
|
906
|
-
attr_reader :id
|
|
907
|
-
|
|
908
|
-
sig { params(id: String).void }
|
|
909
|
-
attr_writer :id
|
|
910
|
-
|
|
911
|
-
# The phone number in e164 format.
|
|
912
|
-
sig { returns(T.nilable(String)) }
|
|
913
|
-
attr_reader :phone_number
|
|
914
|
-
|
|
915
|
-
sig { params(phone_number: String).void }
|
|
916
|
-
attr_writer :phone_number
|
|
917
|
-
|
|
918
|
-
# The phone numbers pending confirmation on update results. Entries in this list
|
|
919
|
-
# are transient, and will be moved to either successful_operations or
|
|
920
|
-
# failed_operations once the processing is done.
|
|
921
|
-
sig do
|
|
922
|
-
params(id: String, phone_number: String).returns(T.attached_class)
|
|
923
|
-
end
|
|
924
|
-
def self.new(
|
|
925
|
-
# The phone number's ID
|
|
926
|
-
id: nil,
|
|
927
|
-
# The phone number in e164 format.
|
|
928
|
-
phone_number: nil
|
|
929
|
-
)
|
|
930
|
-
end
|
|
931
|
-
|
|
932
|
-
sig { override.returns({ id: String, phone_number: String }) }
|
|
933
|
-
def to_hash
|
|
934
|
-
end
|
|
935
|
-
end
|
|
936
|
-
|
|
937
889
|
# Indicates the completion status of the background update.
|
|
938
890
|
module Status
|
|
939
891
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -984,46 +936,6 @@ module Telnyx
|
|
|
984
936
|
end
|
|
985
937
|
end
|
|
986
938
|
|
|
987
|
-
class SuccessfulOperation < Telnyx::Internal::Type::BaseModel
|
|
988
|
-
OrHash =
|
|
989
|
-
T.type_alias do
|
|
990
|
-
T.any(
|
|
991
|
-
Telnyx::PhoneNumbers::NumbersPhoneNumbersJob::SuccessfulOperation,
|
|
992
|
-
Telnyx::Internal::AnyHash
|
|
993
|
-
)
|
|
994
|
-
end
|
|
995
|
-
|
|
996
|
-
# The phone number's ID
|
|
997
|
-
sig { returns(T.nilable(String)) }
|
|
998
|
-
attr_reader :id
|
|
999
|
-
|
|
1000
|
-
sig { params(id: String).void }
|
|
1001
|
-
attr_writer :id
|
|
1002
|
-
|
|
1003
|
-
# The phone number in e164 format.
|
|
1004
|
-
sig { returns(T.nilable(String)) }
|
|
1005
|
-
attr_reader :phone_number
|
|
1006
|
-
|
|
1007
|
-
sig { params(phone_number: String).void }
|
|
1008
|
-
attr_writer :phone_number
|
|
1009
|
-
|
|
1010
|
-
# The phone numbers successfully updated.
|
|
1011
|
-
sig do
|
|
1012
|
-
params(id: String, phone_number: String).returns(T.attached_class)
|
|
1013
|
-
end
|
|
1014
|
-
def self.new(
|
|
1015
|
-
# The phone number's ID
|
|
1016
|
-
id: nil,
|
|
1017
|
-
# The phone number in e164 format.
|
|
1018
|
-
phone_number: nil
|
|
1019
|
-
)
|
|
1020
|
-
end
|
|
1021
|
-
|
|
1022
|
-
sig { override.returns({ id: String, phone_number: String }) }
|
|
1023
|
-
def to_hash
|
|
1024
|
-
end
|
|
1025
|
-
end
|
|
1026
|
-
|
|
1027
939
|
# Identifies the type of the background job.
|
|
1028
940
|
module Type
|
|
1029
941
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -68,7 +68,7 @@ module Telnyx
|
|
|
68
68
|
sig do
|
|
69
69
|
returns(
|
|
70
70
|
T.nilable(
|
|
71
|
-
T::Array[Telnyx::PhoneNumbers::
|
|
71
|
+
T::Array[Telnyx::PhoneNumbers::PhoneNumbersJobPendingOperation]
|
|
72
72
|
)
|
|
73
73
|
)
|
|
74
74
|
end
|
|
@@ -78,7 +78,7 @@ module Telnyx
|
|
|
78
78
|
params(
|
|
79
79
|
pending_operations:
|
|
80
80
|
T::Array[
|
|
81
|
-
Telnyx::PhoneNumbers::
|
|
81
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobPendingOperation::OrHash
|
|
82
82
|
]
|
|
83
83
|
).void
|
|
84
84
|
end
|
|
@@ -109,9 +109,7 @@ module Telnyx
|
|
|
109
109
|
sig do
|
|
110
110
|
returns(
|
|
111
111
|
T.nilable(
|
|
112
|
-
T::Array[
|
|
113
|
-
Telnyx::PhoneNumbers::PhoneNumbersJob::SuccessfulOperation
|
|
114
|
-
]
|
|
112
|
+
T::Array[Telnyx::PhoneNumbers::PhoneNumbersJobSuccessfulOperation]
|
|
115
113
|
)
|
|
116
114
|
)
|
|
117
115
|
end
|
|
@@ -121,7 +119,7 @@ module Telnyx
|
|
|
121
119
|
params(
|
|
122
120
|
successful_operations:
|
|
123
121
|
T::Array[
|
|
124
|
-
Telnyx::PhoneNumbers::
|
|
122
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobSuccessfulOperation::OrHash
|
|
125
123
|
]
|
|
126
124
|
).void
|
|
127
125
|
end
|
|
@@ -160,14 +158,14 @@ module Telnyx
|
|
|
160
158
|
],
|
|
161
159
|
pending_operations:
|
|
162
160
|
T::Array[
|
|
163
|
-
Telnyx::PhoneNumbers::
|
|
161
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobPendingOperation::OrHash
|
|
164
162
|
],
|
|
165
163
|
phone_numbers: T::Array[Telnyx::PhoneNumbersJobPhoneNumber::OrHash],
|
|
166
164
|
record_type: String,
|
|
167
165
|
status: Telnyx::PhoneNumbers::PhoneNumbersJob::Status::OrSymbol,
|
|
168
166
|
successful_operations:
|
|
169
167
|
T::Array[
|
|
170
|
-
Telnyx::PhoneNumbers::
|
|
168
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobSuccessfulOperation::OrHash
|
|
171
169
|
],
|
|
172
170
|
type: Telnyx::PhoneNumbers::PhoneNumbersJob::Type::OrSymbol,
|
|
173
171
|
updated_at: String
|
|
@@ -207,15 +205,13 @@ module Telnyx
|
|
|
207
205
|
Telnyx::PhoneNumbers::PhoneNumbersJob::FailedOperation
|
|
208
206
|
],
|
|
209
207
|
pending_operations:
|
|
210
|
-
T::Array[
|
|
211
|
-
Telnyx::PhoneNumbers::PhoneNumbersJob::PendingOperation
|
|
212
|
-
],
|
|
208
|
+
T::Array[Telnyx::PhoneNumbers::PhoneNumbersJobPendingOperation],
|
|
213
209
|
phone_numbers: T::Array[Telnyx::PhoneNumbersJobPhoneNumber],
|
|
214
210
|
record_type: String,
|
|
215
211
|
status: Telnyx::PhoneNumbers::PhoneNumbersJob::Status::OrSymbol,
|
|
216
212
|
successful_operations:
|
|
217
213
|
T::Array[
|
|
218
|
-
Telnyx::PhoneNumbers::
|
|
214
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobSuccessfulOperation
|
|
219
215
|
],
|
|
220
216
|
type: Telnyx::PhoneNumbers::PhoneNumbersJob::Type::OrSymbol,
|
|
221
217
|
updated_at: String
|
|
@@ -289,48 +285,6 @@ module Telnyx
|
|
|
289
285
|
end
|
|
290
286
|
end
|
|
291
287
|
|
|
292
|
-
class PendingOperation < Telnyx::Internal::Type::BaseModel
|
|
293
|
-
OrHash =
|
|
294
|
-
T.type_alias do
|
|
295
|
-
T.any(
|
|
296
|
-
Telnyx::PhoneNumbers::PhoneNumbersJob::PendingOperation,
|
|
297
|
-
Telnyx::Internal::AnyHash
|
|
298
|
-
)
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
# The phone number's ID
|
|
302
|
-
sig { returns(T.nilable(String)) }
|
|
303
|
-
attr_reader :id
|
|
304
|
-
|
|
305
|
-
sig { params(id: String).void }
|
|
306
|
-
attr_writer :id
|
|
307
|
-
|
|
308
|
-
# The phone number in e164 format.
|
|
309
|
-
sig { returns(T.nilable(String)) }
|
|
310
|
-
attr_reader :phone_number
|
|
311
|
-
|
|
312
|
-
sig { params(phone_number: String).void }
|
|
313
|
-
attr_writer :phone_number
|
|
314
|
-
|
|
315
|
-
# The phone numbers pending confirmation on update results. Entries in this list
|
|
316
|
-
# are transient, and will be moved to either successful_operations or
|
|
317
|
-
# failed_operations once the processing is done.
|
|
318
|
-
sig do
|
|
319
|
-
params(id: String, phone_number: String).returns(T.attached_class)
|
|
320
|
-
end
|
|
321
|
-
def self.new(
|
|
322
|
-
# The phone number's ID
|
|
323
|
-
id: nil,
|
|
324
|
-
# The phone number in e164 format.
|
|
325
|
-
phone_number: nil
|
|
326
|
-
)
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
sig { override.returns({ id: String, phone_number: String }) }
|
|
330
|
-
def to_hash
|
|
331
|
-
end
|
|
332
|
-
end
|
|
333
|
-
|
|
334
288
|
# Indicates the completion status of the background update.
|
|
335
289
|
module Status
|
|
336
290
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -378,46 +332,6 @@ module Telnyx
|
|
|
378
332
|
end
|
|
379
333
|
end
|
|
380
334
|
|
|
381
|
-
class SuccessfulOperation < Telnyx::Internal::Type::BaseModel
|
|
382
|
-
OrHash =
|
|
383
|
-
T.type_alias do
|
|
384
|
-
T.any(
|
|
385
|
-
Telnyx::PhoneNumbers::PhoneNumbersJob::SuccessfulOperation,
|
|
386
|
-
Telnyx::Internal::AnyHash
|
|
387
|
-
)
|
|
388
|
-
end
|
|
389
|
-
|
|
390
|
-
# The phone number's ID
|
|
391
|
-
sig { returns(T.nilable(String)) }
|
|
392
|
-
attr_reader :id
|
|
393
|
-
|
|
394
|
-
sig { params(id: String).void }
|
|
395
|
-
attr_writer :id
|
|
396
|
-
|
|
397
|
-
# The phone number in e164 format.
|
|
398
|
-
sig { returns(T.nilable(String)) }
|
|
399
|
-
attr_reader :phone_number
|
|
400
|
-
|
|
401
|
-
sig { params(phone_number: String).void }
|
|
402
|
-
attr_writer :phone_number
|
|
403
|
-
|
|
404
|
-
# The phone numbers successfully updated.
|
|
405
|
-
sig do
|
|
406
|
-
params(id: String, phone_number: String).returns(T.attached_class)
|
|
407
|
-
end
|
|
408
|
-
def self.new(
|
|
409
|
-
# The phone number's ID
|
|
410
|
-
id: nil,
|
|
411
|
-
# The phone number in e164 format.
|
|
412
|
-
phone_number: nil
|
|
413
|
-
)
|
|
414
|
-
end
|
|
415
|
-
|
|
416
|
-
sig { override.returns({ id: String, phone_number: String }) }
|
|
417
|
-
def to_hash
|
|
418
|
-
end
|
|
419
|
-
end
|
|
420
|
-
|
|
421
335
|
# Identifies the type of the background job.
|
|
422
336
|
module Type
|
|
423
337
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
PhoneNumbersJobPendingOperation =
|
|
6
|
+
PhoneNumbers::PhoneNumbersJobPendingOperation
|
|
7
|
+
|
|
8
|
+
module PhoneNumbers
|
|
9
|
+
class PhoneNumbersJobPendingOperation < Telnyx::Internal::Type::BaseModel
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobPendingOperation,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# The phone number's ID
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_reader :id
|
|
21
|
+
|
|
22
|
+
sig { params(id: String).void }
|
|
23
|
+
attr_writer :id
|
|
24
|
+
|
|
25
|
+
# The phone number in e164 format.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :phone_number
|
|
28
|
+
|
|
29
|
+
sig { params(phone_number: String).void }
|
|
30
|
+
attr_writer :phone_number
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(id: String, phone_number: String).returns(T.attached_class)
|
|
34
|
+
end
|
|
35
|
+
def self.new(
|
|
36
|
+
# The phone number's ID
|
|
37
|
+
id: nil,
|
|
38
|
+
# The phone number in e164 format.
|
|
39
|
+
phone_number: nil
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
sig { override.returns({ id: String, phone_number: String }) }
|
|
44
|
+
def to_hash
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
PhoneNumbersJobSuccessfulOperation =
|
|
6
|
+
PhoneNumbers::PhoneNumbersJobSuccessfulOperation
|
|
7
|
+
|
|
8
|
+
module PhoneNumbers
|
|
9
|
+
class PhoneNumbersJobSuccessfulOperation < Telnyx::Internal::Type::BaseModel
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::PhoneNumbers::PhoneNumbersJobSuccessfulOperation,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# The phone number's ID
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_reader :id
|
|
21
|
+
|
|
22
|
+
sig { params(id: String).void }
|
|
23
|
+
attr_writer :id
|
|
24
|
+
|
|
25
|
+
# The phone number in e164 format.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :phone_number
|
|
28
|
+
|
|
29
|
+
sig { params(phone_number: String).void }
|
|
30
|
+
attr_writer :phone_number
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(id: String, phone_number: String).returns(T.attached_class)
|
|
34
|
+
end
|
|
35
|
+
def self.new(
|
|
36
|
+
# The phone number's ID
|
|
37
|
+
id: nil,
|
|
38
|
+
# The phone number in e164 format.
|
|
39
|
+
phone_number: nil
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
sig { override.returns({ id: String, phone_number: String }) }
|
|
44
|
+
def to_hash
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -42,13 +42,7 @@ module Telnyx
|
|
|
42
42
|
|
|
43
43
|
# Structured variable requirements. Required variables cannot define defaults;
|
|
44
44
|
# invalid combinations return 422. Set to `null` to clear the schema.
|
|
45
|
-
sig
|
|
46
|
-
returns(
|
|
47
|
-
T.nilable(
|
|
48
|
-
T::Hash[Symbol, Telnyx::UpdateEmailTemplateRequest::VariableSchema]
|
|
49
|
-
)
|
|
50
|
-
)
|
|
51
|
-
end
|
|
45
|
+
sig { returns(T.nilable(T::Hash[Symbol, Telnyx::VariableSchemaEntry])) }
|
|
52
46
|
attr_accessor :variable_schema
|
|
53
47
|
|
|
54
48
|
# Persisted variable names. In `automatic` mode a non-null array is rejected; in
|
|
@@ -87,12 +81,7 @@ module Telnyx
|
|
|
87
81
|
subject: T.nilable(String),
|
|
88
82
|
text_body: T.nilable(String),
|
|
89
83
|
variable_schema:
|
|
90
|
-
T.nilable(
|
|
91
|
-
T::Hash[
|
|
92
|
-
Symbol,
|
|
93
|
-
Telnyx::UpdateEmailTemplateRequest::VariableSchema::OrHash
|
|
94
|
-
]
|
|
95
|
-
),
|
|
84
|
+
T.nilable(T::Hash[Symbol, Telnyx::VariableSchemaEntry::OrHash]),
|
|
96
85
|
variables: T.nilable(T::Array[String]),
|
|
97
86
|
variables_mode:
|
|
98
87
|
Telnyx::UpdateEmailTemplateRequest::VariablesMode::OrSymbol
|
|
@@ -137,12 +126,7 @@ module Telnyx
|
|
|
137
126
|
subject: T.nilable(String),
|
|
138
127
|
text_body: T.nilable(String),
|
|
139
128
|
variable_schema:
|
|
140
|
-
T.nilable(
|
|
141
|
-
T::Hash[
|
|
142
|
-
Symbol,
|
|
143
|
-
Telnyx::UpdateEmailTemplateRequest::VariableSchema
|
|
144
|
-
]
|
|
145
|
-
),
|
|
129
|
+
T.nilable(T::Hash[Symbol, Telnyx::VariableSchemaEntry]),
|
|
146
130
|
variables: T.nilable(T::Array[String]),
|
|
147
131
|
variables_mode:
|
|
148
132
|
Telnyx::UpdateEmailTemplateRequest::VariablesMode::OrSymbol
|
|
@@ -152,46 +136,6 @@ module Telnyx
|
|
|
152
136
|
def to_hash
|
|
153
137
|
end
|
|
154
138
|
|
|
155
|
-
class VariableSchema < Telnyx::Internal::Type::BaseModel
|
|
156
|
-
OrHash =
|
|
157
|
-
T.type_alias do
|
|
158
|
-
T.any(
|
|
159
|
-
Telnyx::UpdateEmailTemplateRequest::VariableSchema,
|
|
160
|
-
Telnyx::Internal::AnyHash
|
|
161
|
-
)
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
# Whether the variable must be supplied when strict variable validation is
|
|
165
|
-
# enabled.
|
|
166
|
-
sig { returns(T::Boolean) }
|
|
167
|
-
attr_accessor :required
|
|
168
|
-
|
|
169
|
-
# Default value for an optional variable. Rejected when `required` is `true`.
|
|
170
|
-
sig { returns(T.nilable(String)) }
|
|
171
|
-
attr_reader :default
|
|
172
|
-
|
|
173
|
-
sig { params(default: String).void }
|
|
174
|
-
attr_writer :default
|
|
175
|
-
|
|
176
|
-
sig do
|
|
177
|
-
params(required: T::Boolean, default: String).returns(
|
|
178
|
-
T.attached_class
|
|
179
|
-
)
|
|
180
|
-
end
|
|
181
|
-
def self.new(
|
|
182
|
-
# Whether the variable must be supplied when strict variable validation is
|
|
183
|
-
# enabled.
|
|
184
|
-
required:,
|
|
185
|
-
# Default value for an optional variable. Rejected when `required` is `true`.
|
|
186
|
-
default: nil
|
|
187
|
-
)
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
sig { override.returns({ required: T::Boolean, default: String }) }
|
|
191
|
-
def to_hash
|
|
192
|
-
end
|
|
193
|
-
end
|
|
194
|
-
|
|
195
139
|
# Controls how `variables` is maintained. Setting `automatic` re-extracts
|
|
196
140
|
# immediately from the effective subject, HTML body, and text body and rejects a
|
|
197
141
|
# simultaneous non-null array. Setting `explicit` requires the exact non-null
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class VariableSchemaEntry < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Telnyx::VariableSchemaEntry, Telnyx::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Whether the variable must be supplied when strict variable validation is
|
|
12
|
+
# enabled.
|
|
13
|
+
sig { returns(T::Boolean) }
|
|
14
|
+
attr_accessor :required
|
|
15
|
+
|
|
16
|
+
# Default value for an optional variable. Rejected when `required` is `true`.
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
|
+
attr_reader :default
|
|
19
|
+
|
|
20
|
+
sig { params(default: String).void }
|
|
21
|
+
attr_writer :default
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(required: T::Boolean, default: String).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(
|
|
27
|
+
# Whether the variable must be supplied when strict variable validation is
|
|
28
|
+
# enabled.
|
|
29
|
+
required:,
|
|
30
|
+
# Default value for an optional variable. Rejected when `required` is `true`.
|
|
31
|
+
default: nil
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig { override.returns({ required: T::Boolean, default: String }) }
|
|
36
|
+
def to_hash
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|