telnyx 5.167.0 → 5.168.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 +4 -0
- data/lib/telnyx/models/ai/assistant_a2_a_agent.rb +195 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +16 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +17 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +17 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +125 -48
- data/lib/telnyx/models/ai/inference_embedding.rb +16 -1
- data/lib/telnyx/models/ai/telephony_settings.rb +15 -1
- data/lib/telnyx/models/compute/func_retrieve_logs_params.rb +66 -0
- data/lib/telnyx/models/compute/func_retrieve_logs_response.rb +161 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_params.rb +69 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_response.rb +137 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_params.rb +34 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_response.rb +101 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_params.rb +22 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_response.rb +94 -0
- data/lib/telnyx/models/compute/functions_observability_pagination_meta.rb +35 -0
- data/lib/telnyx/models/compute/logs_meta.rb +23 -0
- data/lib/telnyx/models/credential_connection.rb +4 -1
- data/lib/telnyx/models/email_inboxes/email_message.rb +12 -1
- data/lib/telnyx/models/email_message_batch_params.rb +4 -1
- data/lib/telnyx/models/email_message_batch_response.rb +1 -0
- data/lib/telnyx/models/fqdn_connection.rb +5 -2
- data/lib/telnyx/models/fqdn_connections/fqdn_authentication.rb +9 -2
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +210 -67
- data/lib/telnyx/models/messaging_messaging_profile.rb +11 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_features.rb +26 -0
- data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
- data/lib/telnyx/models/uac_connection.rb +4 -1
- data/lib/telnyx/models/uac_external_settings.rb +6 -2
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +104 -1
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rb +22 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +207 -0
- data/lib/telnyx/models/whatsapp_account_update.rb +112 -0
- data/lib/telnyx/models/whatsapp_message_echo.rb +340 -0
- data/lib/telnyx/models/x402/credit_account/payment_list_params.rb +34 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_params.rb +24 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_response.rb +21 -0
- data/lib/telnyx/models/x402/credit_account/x402_transaction_record.rb +113 -0
- data/lib/telnyx/models.rb +8 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/ai/openai/chat.rb +2 -8
- data/lib/telnyx/resources/compute/funcs.rb +141 -0
- data/lib/telnyx/resources/compute.rb +18 -0
- data/lib/telnyx/resources/email_messages.rb +4 -2
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +22 -0
- data/lib/telnyx/resources/x402/credit_account/payments.rb +71 -0
- data/lib/telnyx/resources/x402/credit_account.rb +8 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +23 -0
- data/rbi/telnyx/client.rbi +3 -0
- data/rbi/telnyx/models/ai/assistant_a2_a_agent.rbi +345 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +29 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +31 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +31 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +224 -92
- data/rbi/telnyx/models/ai/inference_embedding.rbi +29 -0
- data/rbi/telnyx/models/ai/telephony_settings.rbi +23 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_params.rbi +130 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_response.rbi +410 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbi +102 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbi +231 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_params.rbi +59 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_response.rbi +213 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_params.rbi +40 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_response.rbi +252 -0
- data/rbi/telnyx/models/compute/functions_observability_pagination_meta.rbi +70 -0
- data/rbi/telnyx/models/compute/logs_meta.rbi +38 -0
- data/rbi/telnyx/models/credential_connection.rbi +8 -2
- data/rbi/telnyx/models/email_inboxes/email_message.rbi +22 -3
- data/rbi/telnyx/models/email_message_batch_params.rbi +6 -0
- data/rbi/telnyx/models/email_message_batch_response.rbi +5 -0
- data/rbi/telnyx/models/fqdn_connection.rbi +8 -2
- data/rbi/telnyx/models/fqdn_connections/fqdn_authentication.rbi +8 -2
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +450 -193
- data/rbi/telnyx/models/messaging_messaging_profile.rbi +19 -0
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +19 -0
- data/rbi/telnyx/models/messaging_profile_features.rbi +43 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +19 -0
- data/rbi/telnyx/models/uac_connection.rbi +8 -2
- data/rbi/telnyx/models/uac_external_settings.rbi +10 -2
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +401 -0
- data/rbi/telnyx/models/whatsapp_account_update.rbi +236 -0
- data/rbi/telnyx/models/whatsapp_message_echo.rbi +611 -0
- data/rbi/telnyx/models/x402/credit_account/payment_list_params.rbi +64 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_params.rbi +42 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_response.rbi +53 -0
- data/rbi/telnyx/models/x402/credit_account/x402_transaction_record.rbi +219 -0
- data/rbi/telnyx/models.rbi +8 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +12 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +21 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +9 -13
- data/rbi/telnyx/resources/compute/funcs.rbi +111 -0
- data/rbi/telnyx/resources/compute.rbi +15 -0
- data/rbi/telnyx/resources/email_messages.rbi +6 -2
- data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
- data/rbi/telnyx/resources/webhooks.rbi +6 -2
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +18 -0
- data/rbi/telnyx/resources/x402/credit_account/payments.rbi +60 -0
- data/rbi/telnyx/resources/x402/credit_account.rbi +5 -0
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/assistant_a2_a_agent.rbs +140 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
- data/sig/telnyx/models/ai/chat_completion_request.rbs +86 -44
- data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_params.rbs +69 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_response.rbs +210 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbs +66 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbs +149 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_params.rbs +38 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_response.rbs +131 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_params.rbs +22 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_response.rbs +117 -0
- data/sig/telnyx/models/compute/functions_observability_pagination_meta.rbs +45 -0
- data/sig/telnyx/models/compute/logs_meta.rbs +21 -0
- data/sig/telnyx/models/email_inboxes/email_message.rbs +12 -3
- data/sig/telnyx/models/email_message_batch_response.rbs +2 -0
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +207 -95
- data/sig/telnyx/models/messaging_messaging_profile.rbs +5 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +5 -0
- data/sig/telnyx/models/messaging_profile_features.rbs +15 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +5 -0
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbs +25 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +201 -0
- data/sig/telnyx/models/whatsapp_account_update.rbs +107 -0
- data/sig/telnyx/models/whatsapp_message_echo.rbs +291 -0
- data/sig/telnyx/models/x402/credit_account/payment_list_params.rbs +36 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_response.rbs +26 -0
- data/sig/telnyx/models/x402/credit_account/x402_transaction_record.rbs +104 -0
- data/sig/telnyx/models.rbs +8 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai/openai/chat.rbs +1 -4
- data/sig/telnyx/resources/compute/funcs.rbs +41 -0
- data/sig/telnyx/resources/compute.rbs +9 -0
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/webhooks.rbs +6 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +5 -0
- data/sig/telnyx/resources/x402/credit_account/payments.rbs +22 -0
- data/sig/telnyx/resources/x402/credit_account.rbs +2 -0
- metadata +71 -2
|
@@ -9,6 +9,7 @@ module Telnyx
|
|
|
9
9
|
daily_spend_limit: String,
|
|
10
10
|
daily_spend_limit_enabled: bool,
|
|
11
11
|
enabled: bool,
|
|
12
|
+
features: Telnyx::MessagingProfileFeatures?,
|
|
12
13
|
health_webhook_url: String?,
|
|
13
14
|
mms_fall_back_to_sms: bool,
|
|
14
15
|
mms_transcoding: bool,
|
|
@@ -47,6 +48,8 @@ module Telnyx
|
|
|
47
48
|
|
|
48
49
|
def enabled=: (bool) -> bool
|
|
49
50
|
|
|
51
|
+
attr_accessor features: Telnyx::MessagingProfileFeatures?
|
|
52
|
+
|
|
50
53
|
attr_accessor health_webhook_url: String?
|
|
51
54
|
|
|
52
55
|
attr_reader mms_fall_back_to_sms: bool?
|
|
@@ -89,6 +92,7 @@ module Telnyx
|
|
|
89
92
|
?daily_spend_limit: String,
|
|
90
93
|
?daily_spend_limit_enabled: bool,
|
|
91
94
|
?enabled: bool,
|
|
95
|
+
?features: Telnyx::MessagingProfileFeatures?,
|
|
92
96
|
?health_webhook_url: String?,
|
|
93
97
|
?mms_fall_back_to_sms: bool,
|
|
94
98
|
?mms_transcoding: bool,
|
|
@@ -111,6 +115,7 @@ module Telnyx
|
|
|
111
115
|
daily_spend_limit: String,
|
|
112
116
|
daily_spend_limit_enabled: bool,
|
|
113
117
|
enabled: bool,
|
|
118
|
+
features: Telnyx::MessagingProfileFeatures?,
|
|
114
119
|
health_webhook_url: String?,
|
|
115
120
|
mms_fall_back_to_sms: bool,
|
|
116
121
|
mms_transcoding: bool,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type messaging_profile_features = { ai_opt_out_detection_enabled: bool }
|
|
4
|
+
|
|
5
|
+
class MessagingProfileFeatures < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
attr_reader ai_opt_out_detection_enabled: bool?
|
|
7
|
+
|
|
8
|
+
def ai_opt_out_detection_enabled=: (bool) -> bool
|
|
9
|
+
|
|
10
|
+
def initialize: (?ai_opt_out_detection_enabled: bool) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { ai_opt_out_detection_enabled: bool }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -8,6 +8,7 @@ module Telnyx
|
|
|
8
8
|
daily_spend_limit: String,
|
|
9
9
|
daily_spend_limit_enabled: bool,
|
|
10
10
|
enabled: bool,
|
|
11
|
+
features: Telnyx::MessagingProfileFeatures?,
|
|
11
12
|
mms_fall_back_to_sms: bool,
|
|
12
13
|
mms_transcoding: bool,
|
|
13
14
|
mobile_only: bool,
|
|
@@ -47,6 +48,8 @@ module Telnyx
|
|
|
47
48
|
|
|
48
49
|
def enabled=: (bool) -> bool
|
|
49
50
|
|
|
51
|
+
attr_accessor features: Telnyx::MessagingProfileFeatures?
|
|
52
|
+
|
|
50
53
|
attr_reader mms_fall_back_to_sms: bool?
|
|
51
54
|
|
|
52
55
|
def mms_fall_back_to_sms=: (bool) -> bool
|
|
@@ -104,6 +107,7 @@ module Telnyx
|
|
|
104
107
|
?daily_spend_limit: String,
|
|
105
108
|
?daily_spend_limit_enabled: bool,
|
|
106
109
|
?enabled: bool,
|
|
110
|
+
?features: Telnyx::MessagingProfileFeatures?,
|
|
107
111
|
?mms_fall_back_to_sms: bool,
|
|
108
112
|
?mms_transcoding: bool,
|
|
109
113
|
?mobile_only: bool,
|
|
@@ -128,6 +132,7 @@ module Telnyx
|
|
|
128
132
|
daily_spend_limit: String,
|
|
129
133
|
daily_spend_limit_enabled: bool,
|
|
130
134
|
enabled: bool,
|
|
135
|
+
features: Telnyx::MessagingProfileFeatures?,
|
|
131
136
|
mms_fall_back_to_sms: bool,
|
|
132
137
|
mms_transcoding: bool,
|
|
133
138
|
mobile_only: bool,
|
|
@@ -74,6 +74,8 @@ module Telnyx
|
|
|
74
74
|
| Telnyx::SessionStatusChangedWebhookEvent
|
|
75
75
|
| Telnyx::TranscriptCompletedWebhookEvent
|
|
76
76
|
| Telnyx::TranscriptionWebhookEvent
|
|
77
|
+
| Telnyx::WhatsappAccountUpdate
|
|
78
|
+
| Telnyx::WhatsappMessageEcho
|
|
77
79
|
|
|
78
80
|
module UnsafeUnwrapWebhookEvent
|
|
79
81
|
extend Telnyx::Internal::Type::Union
|
|
@@ -74,6 +74,8 @@ module Telnyx
|
|
|
74
74
|
| Telnyx::SessionStatusChangedWebhookEvent
|
|
75
75
|
| Telnyx::TranscriptCompletedWebhookEvent
|
|
76
76
|
| Telnyx::TranscriptionWebhookEvent
|
|
77
|
+
| Telnyx::WhatsappAccountUpdate
|
|
78
|
+
| Telnyx::WhatsappMessageEcho
|
|
77
79
|
|
|
78
80
|
module UnwrapWebhookEvent
|
|
79
81
|
extend Telnyx::Internal::Type::Union
|
|
@@ -5,14 +5,18 @@ module Telnyx
|
|
|
5
5
|
type phone_number_list_response =
|
|
6
6
|
{
|
|
7
7
|
calling_enabled: bool,
|
|
8
|
+
coexistence_state: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::coexistence_state?,
|
|
8
9
|
created_at: Time,
|
|
9
10
|
display_name: String,
|
|
10
11
|
enabled: bool,
|
|
12
|
+
is_on_biz_app: bool,
|
|
11
13
|
phone_number: String,
|
|
12
14
|
phone_number_id: String,
|
|
13
15
|
quality_rating: String,
|
|
14
16
|
record_type: String,
|
|
15
17
|
status: String,
|
|
18
|
+
sync_deadline: Time?,
|
|
19
|
+
sync_progress: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress?,
|
|
16
20
|
user_id: String,
|
|
17
21
|
waba_id: String
|
|
18
22
|
}
|
|
@@ -22,6 +26,8 @@ module Telnyx
|
|
|
22
26
|
|
|
23
27
|
def calling_enabled=: (bool) -> bool
|
|
24
28
|
|
|
29
|
+
attr_accessor coexistence_state: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::coexistence_state?
|
|
30
|
+
|
|
25
31
|
attr_reader created_at: Time?
|
|
26
32
|
|
|
27
33
|
def created_at=: (Time) -> Time
|
|
@@ -34,6 +40,10 @@ module Telnyx
|
|
|
34
40
|
|
|
35
41
|
def enabled=: (bool) -> bool
|
|
36
42
|
|
|
43
|
+
attr_reader is_on_biz_app: bool?
|
|
44
|
+
|
|
45
|
+
def is_on_biz_app=: (bool) -> bool
|
|
46
|
+
|
|
37
47
|
attr_reader phone_number: String?
|
|
38
48
|
|
|
39
49
|
def phone_number=: (String) -> String
|
|
@@ -54,6 +64,10 @@ module Telnyx
|
|
|
54
64
|
|
|
55
65
|
def status=: (String) -> String
|
|
56
66
|
|
|
67
|
+
attr_accessor sync_deadline: Time?
|
|
68
|
+
|
|
69
|
+
attr_accessor sync_progress: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress?
|
|
70
|
+
|
|
57
71
|
attr_reader user_id: String?
|
|
58
72
|
|
|
59
73
|
def user_id=: (String) -> String
|
|
@@ -64,31 +78,107 @@ module Telnyx
|
|
|
64
78
|
|
|
65
79
|
def initialize: (
|
|
66
80
|
?calling_enabled: bool,
|
|
81
|
+
?coexistence_state: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::coexistence_state?,
|
|
67
82
|
?created_at: Time,
|
|
68
83
|
?display_name: String,
|
|
69
84
|
?enabled: bool,
|
|
85
|
+
?is_on_biz_app: bool,
|
|
70
86
|
?phone_number: String,
|
|
71
87
|
?phone_number_id: String,
|
|
72
88
|
?quality_rating: String,
|
|
73
89
|
?record_type: String,
|
|
74
90
|
?status: String,
|
|
91
|
+
?sync_deadline: Time?,
|
|
92
|
+
?sync_progress: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress?,
|
|
75
93
|
?user_id: String,
|
|
76
94
|
?waba_id: String
|
|
77
95
|
) -> void
|
|
78
96
|
|
|
79
97
|
def to_hash: -> {
|
|
80
98
|
calling_enabled: bool,
|
|
99
|
+
coexistence_state: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::coexistence_state?,
|
|
81
100
|
created_at: Time,
|
|
82
101
|
display_name: String,
|
|
83
102
|
enabled: bool,
|
|
103
|
+
is_on_biz_app: bool,
|
|
84
104
|
phone_number: String,
|
|
85
105
|
phone_number_id: String,
|
|
86
106
|
quality_rating: String,
|
|
87
107
|
record_type: String,
|
|
88
108
|
status: String,
|
|
109
|
+
sync_deadline: Time?,
|
|
110
|
+
sync_progress: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress?,
|
|
89
111
|
user_id: String,
|
|
90
112
|
waba_id: String
|
|
91
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
|
|
92
182
|
end
|
|
93
183
|
end
|
|
94
184
|
end
|
|
@@ -33,14 +33,18 @@ module Telnyx
|
|
|
33
33
|
type data =
|
|
34
34
|
{
|
|
35
35
|
calling_enabled: bool,
|
|
36
|
+
coexistence_state: Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::coexistence_state?,
|
|
36
37
|
created_at: Time,
|
|
37
38
|
display_name: String,
|
|
38
39
|
enabled: bool,
|
|
40
|
+
is_on_biz_app: bool,
|
|
39
41
|
phone_number: String,
|
|
40
42
|
phone_number_id: String,
|
|
41
43
|
quality_rating: String,
|
|
42
44
|
record_type: String,
|
|
43
45
|
status: String,
|
|
46
|
+
sync_deadline: Time?,
|
|
47
|
+
sync_progress: Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::SyncProgress?,
|
|
44
48
|
user_id: String,
|
|
45
49
|
waba_id: String
|
|
46
50
|
}
|
|
@@ -50,6 +54,8 @@ module Telnyx
|
|
|
50
54
|
|
|
51
55
|
def calling_enabled=: (bool) -> bool
|
|
52
56
|
|
|
57
|
+
attr_accessor coexistence_state: Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::coexistence_state?
|
|
58
|
+
|
|
53
59
|
attr_reader created_at: Time?
|
|
54
60
|
|
|
55
61
|
def created_at=: (Time) -> Time
|
|
@@ -62,6 +68,10 @@ module Telnyx
|
|
|
62
68
|
|
|
63
69
|
def enabled=: (bool) -> bool
|
|
64
70
|
|
|
71
|
+
attr_reader is_on_biz_app: bool?
|
|
72
|
+
|
|
73
|
+
def is_on_biz_app=: (bool) -> bool
|
|
74
|
+
|
|
65
75
|
attr_reader phone_number: String?
|
|
66
76
|
|
|
67
77
|
def phone_number=: (String) -> String
|
|
@@ -82,6 +92,10 @@ module Telnyx
|
|
|
82
92
|
|
|
83
93
|
def status=: (String) -> String
|
|
84
94
|
|
|
95
|
+
attr_accessor sync_deadline: Time?
|
|
96
|
+
|
|
97
|
+
attr_accessor sync_progress: Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::SyncProgress?
|
|
98
|
+
|
|
85
99
|
attr_reader user_id: String?
|
|
86
100
|
|
|
87
101
|
def user_id=: (String) -> String
|
|
@@ -92,31 +106,107 @@ module Telnyx
|
|
|
92
106
|
|
|
93
107
|
def initialize: (
|
|
94
108
|
?calling_enabled: bool,
|
|
109
|
+
?coexistence_state: Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::coexistence_state?,
|
|
95
110
|
?created_at: Time,
|
|
96
111
|
?display_name: String,
|
|
97
112
|
?enabled: bool,
|
|
113
|
+
?is_on_biz_app: bool,
|
|
98
114
|
?phone_number: String,
|
|
99
115
|
?phone_number_id: String,
|
|
100
116
|
?quality_rating: String,
|
|
101
117
|
?record_type: String,
|
|
102
118
|
?status: String,
|
|
119
|
+
?sync_deadline: Time?,
|
|
120
|
+
?sync_progress: Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::SyncProgress?,
|
|
103
121
|
?user_id: String,
|
|
104
122
|
?waba_id: String
|
|
105
123
|
) -> void
|
|
106
124
|
|
|
107
125
|
def to_hash: -> {
|
|
108
126
|
calling_enabled: bool,
|
|
127
|
+
coexistence_state: Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::coexistence_state?,
|
|
109
128
|
created_at: Time,
|
|
110
129
|
display_name: String,
|
|
111
130
|
enabled: bool,
|
|
131
|
+
is_on_biz_app: bool,
|
|
112
132
|
phone_number: String,
|
|
113
133
|
phone_number_id: String,
|
|
114
134
|
quality_rating: String,
|
|
115
135
|
record_type: String,
|
|
116
136
|
status: String,
|
|
137
|
+
sync_deadline: Time?,
|
|
138
|
+
sync_progress: Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::SyncProgress?,
|
|
117
139
|
user_id: String,
|
|
118
140
|
waba_id: String
|
|
119
141
|
}
|
|
142
|
+
|
|
143
|
+
type coexistence_state =
|
|
144
|
+
:pending_onboarding
|
|
145
|
+
| :sync_pending
|
|
146
|
+
| :syncing
|
|
147
|
+
| :sync_complete
|
|
148
|
+
| :active
|
|
149
|
+
| :history_declined
|
|
150
|
+
| :sync_deadline_expired
|
|
151
|
+
| :offboarded
|
|
152
|
+
| :disconnected
|
|
153
|
+
|
|
154
|
+
module CoexistenceState
|
|
155
|
+
extend Telnyx::Internal::Type::Enum
|
|
156
|
+
|
|
157
|
+
PENDING_ONBOARDING: :pending_onboarding
|
|
158
|
+
SYNC_PENDING: :sync_pending
|
|
159
|
+
SYNCING: :syncing
|
|
160
|
+
SYNC_COMPLETE: :sync_complete
|
|
161
|
+
ACTIVE: :active
|
|
162
|
+
HISTORY_DECLINED: :history_declined
|
|
163
|
+
SYNC_DEADLINE_EXPIRED: :sync_deadline_expired
|
|
164
|
+
OFFBOARDED: :offboarded
|
|
165
|
+
DISCONNECTED: :disconnected
|
|
166
|
+
|
|
167
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::coexistence_state]
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
type sync_progress =
|
|
171
|
+
{
|
|
172
|
+
contacts_status: String,
|
|
173
|
+
history_chunk_order: Integer?,
|
|
174
|
+
history_phase: Integer?,
|
|
175
|
+
history_progress: Integer?,
|
|
176
|
+
history_status: String
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
180
|
+
attr_reader contacts_status: String?
|
|
181
|
+
|
|
182
|
+
def contacts_status=: (String) -> String
|
|
183
|
+
|
|
184
|
+
attr_accessor history_chunk_order: Integer?
|
|
185
|
+
|
|
186
|
+
attr_accessor history_phase: Integer?
|
|
187
|
+
|
|
188
|
+
attr_accessor history_progress: Integer?
|
|
189
|
+
|
|
190
|
+
attr_reader history_status: String?
|
|
191
|
+
|
|
192
|
+
def history_status=: (String) -> String
|
|
193
|
+
|
|
194
|
+
def initialize: (
|
|
195
|
+
?contacts_status: String,
|
|
196
|
+
?history_chunk_order: Integer?,
|
|
197
|
+
?history_phase: Integer?,
|
|
198
|
+
?history_progress: Integer?,
|
|
199
|
+
?history_status: String
|
|
200
|
+
) -> void
|
|
201
|
+
|
|
202
|
+
def to_hash: -> {
|
|
203
|
+
contacts_status: String,
|
|
204
|
+
history_chunk_order: Integer?,
|
|
205
|
+
history_phase: Integer?,
|
|
206
|
+
history_progress: Integer?,
|
|
207
|
+
history_status: String
|
|
208
|
+
}
|
|
209
|
+
end
|
|
120
210
|
end
|
|
121
211
|
end
|
|
122
212
|
end
|
|
@@ -4,14 +4,18 @@ module Telnyx
|
|
|
4
4
|
type phone_number_list_response =
|
|
5
5
|
{
|
|
6
6
|
calling_enabled: bool,
|
|
7
|
+
coexistence_state: Telnyx::Models::Whatsapp::PhoneNumberListResponse::coexistence_state?,
|
|
7
8
|
created_at: Time,
|
|
8
9
|
display_name: String,
|
|
9
10
|
enabled: bool,
|
|
11
|
+
is_on_biz_app: bool,
|
|
10
12
|
phone_number: String,
|
|
11
13
|
phone_number_id: String,
|
|
12
14
|
quality_rating: String,
|
|
13
15
|
record_type: String,
|
|
14
16
|
status: String,
|
|
17
|
+
sync_deadline: Time?,
|
|
18
|
+
sync_progress: Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress?,
|
|
15
19
|
user_id: String,
|
|
16
20
|
waba_id: String
|
|
17
21
|
}
|
|
@@ -21,6 +25,8 @@ module Telnyx
|
|
|
21
25
|
|
|
22
26
|
def calling_enabled=: (bool) -> bool
|
|
23
27
|
|
|
28
|
+
attr_accessor coexistence_state: Telnyx::Models::Whatsapp::PhoneNumberListResponse::coexistence_state?
|
|
29
|
+
|
|
24
30
|
attr_reader created_at: Time?
|
|
25
31
|
|
|
26
32
|
def created_at=: (Time) -> Time
|
|
@@ -33,6 +39,10 @@ module Telnyx
|
|
|
33
39
|
|
|
34
40
|
def enabled=: (bool) -> bool
|
|
35
41
|
|
|
42
|
+
attr_reader is_on_biz_app: bool?
|
|
43
|
+
|
|
44
|
+
def is_on_biz_app=: (bool) -> bool
|
|
45
|
+
|
|
36
46
|
attr_reader phone_number: String?
|
|
37
47
|
|
|
38
48
|
def phone_number=: (String) -> String
|
|
@@ -53,6 +63,10 @@ module Telnyx
|
|
|
53
63
|
|
|
54
64
|
def status=: (String) -> String
|
|
55
65
|
|
|
66
|
+
attr_accessor sync_deadline: Time?
|
|
67
|
+
|
|
68
|
+
attr_accessor sync_progress: Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress?
|
|
69
|
+
|
|
56
70
|
attr_reader user_id: String?
|
|
57
71
|
|
|
58
72
|
def user_id=: (String) -> String
|
|
@@ -63,31 +77,107 @@ module Telnyx
|
|
|
63
77
|
|
|
64
78
|
def initialize: (
|
|
65
79
|
?calling_enabled: bool,
|
|
80
|
+
?coexistence_state: Telnyx::Models::Whatsapp::PhoneNumberListResponse::coexistence_state?,
|
|
66
81
|
?created_at: Time,
|
|
67
82
|
?display_name: String,
|
|
68
83
|
?enabled: bool,
|
|
84
|
+
?is_on_biz_app: bool,
|
|
69
85
|
?phone_number: String,
|
|
70
86
|
?phone_number_id: String,
|
|
71
87
|
?quality_rating: String,
|
|
72
88
|
?record_type: String,
|
|
73
89
|
?status: String,
|
|
90
|
+
?sync_deadline: Time?,
|
|
91
|
+
?sync_progress: Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress?,
|
|
74
92
|
?user_id: String,
|
|
75
93
|
?waba_id: String
|
|
76
94
|
) -> void
|
|
77
95
|
|
|
78
96
|
def to_hash: -> {
|
|
79
97
|
calling_enabled: bool,
|
|
98
|
+
coexistence_state: Telnyx::Models::Whatsapp::PhoneNumberListResponse::coexistence_state?,
|
|
80
99
|
created_at: Time,
|
|
81
100
|
display_name: String,
|
|
82
101
|
enabled: bool,
|
|
102
|
+
is_on_biz_app: bool,
|
|
83
103
|
phone_number: String,
|
|
84
104
|
phone_number_id: String,
|
|
85
105
|
quality_rating: String,
|
|
86
106
|
record_type: String,
|
|
87
107
|
status: String,
|
|
108
|
+
sync_deadline: Time?,
|
|
109
|
+
sync_progress: Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress?,
|
|
88
110
|
user_id: String,
|
|
89
111
|
waba_id: String
|
|
90
112
|
}
|
|
113
|
+
|
|
114
|
+
type coexistence_state =
|
|
115
|
+
:pending_onboarding
|
|
116
|
+
| :sync_pending
|
|
117
|
+
| :syncing
|
|
118
|
+
| :sync_complete
|
|
119
|
+
| :active
|
|
120
|
+
| :history_declined
|
|
121
|
+
| :sync_deadline_expired
|
|
122
|
+
| :offboarded
|
|
123
|
+
| :disconnected
|
|
124
|
+
|
|
125
|
+
module CoexistenceState
|
|
126
|
+
extend Telnyx::Internal::Type::Enum
|
|
127
|
+
|
|
128
|
+
PENDING_ONBOARDING: :pending_onboarding
|
|
129
|
+
SYNC_PENDING: :sync_pending
|
|
130
|
+
SYNCING: :syncing
|
|
131
|
+
SYNC_COMPLETE: :sync_complete
|
|
132
|
+
ACTIVE: :active
|
|
133
|
+
HISTORY_DECLINED: :history_declined
|
|
134
|
+
SYNC_DEADLINE_EXPIRED: :sync_deadline_expired
|
|
135
|
+
OFFBOARDED: :offboarded
|
|
136
|
+
DISCONNECTED: :disconnected
|
|
137
|
+
|
|
138
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::PhoneNumberListResponse::coexistence_state]
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
type sync_progress =
|
|
142
|
+
{
|
|
143
|
+
contacts_status: String,
|
|
144
|
+
history_chunk_order: Integer?,
|
|
145
|
+
history_phase: Integer?,
|
|
146
|
+
history_progress: Integer?,
|
|
147
|
+
history_status: String
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
151
|
+
attr_reader contacts_status: String?
|
|
152
|
+
|
|
153
|
+
def contacts_status=: (String) -> String
|
|
154
|
+
|
|
155
|
+
attr_accessor history_chunk_order: Integer?
|
|
156
|
+
|
|
157
|
+
attr_accessor history_phase: Integer?
|
|
158
|
+
|
|
159
|
+
attr_accessor history_progress: Integer?
|
|
160
|
+
|
|
161
|
+
attr_reader history_status: String?
|
|
162
|
+
|
|
163
|
+
def history_status=: (String) -> String
|
|
164
|
+
|
|
165
|
+
def initialize: (
|
|
166
|
+
?contacts_status: String,
|
|
167
|
+
?history_chunk_order: Integer?,
|
|
168
|
+
?history_phase: Integer?,
|
|
169
|
+
?history_progress: Integer?,
|
|
170
|
+
?history_status: String
|
|
171
|
+
) -> void
|
|
172
|
+
|
|
173
|
+
def to_hash: -> {
|
|
174
|
+
contacts_status: String,
|
|
175
|
+
history_chunk_order: Integer?,
|
|
176
|
+
history_phase: Integer?,
|
|
177
|
+
history_progress: Integer?,
|
|
178
|
+
history_status: String
|
|
179
|
+
}
|
|
180
|
+
end
|
|
91
181
|
end
|
|
92
182
|
end
|
|
93
183
|
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Whatsapp
|
|
4
|
+
type phone_number_retrieve_phone_number_params =
|
|
5
|
+
{ phone_number: String } & Telnyx::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class PhoneNumberRetrievePhoneNumberParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor phone_number: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
phone_number: String,
|
|
15
|
+
?request_options: Telnyx::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
phone_number: String,
|
|
20
|
+
request_options: Telnyx::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|