telnyx 5.166.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.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +4 -0
  5. data/lib/telnyx/internal/default_flat_pagination.rb +7 -3
  6. data/lib/telnyx/internal/default_flat_pagination_for_inexplicit_number_orders.rb +7 -3
  7. data/lib/telnyx/internal/default_flat_pagination_top_level_array.rb +10 -8
  8. data/lib/telnyx/internal/default_pagination_for_log_messages.rb +7 -3
  9. data/lib/telnyx/internal/default_pagination_for_messaging_tollfree.rb +12 -3
  10. data/lib/telnyx/internal/default_pagination_for_queues.rb +12 -3
  11. data/lib/telnyx/internal/per_page_pagination.rb +8 -1
  12. data/lib/telnyx/internal/per_page_pagination_v2.rb +8 -1
  13. data/lib/telnyx/internal/type/converter.rb +2 -0
  14. data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +57 -1
  15. data/lib/telnyx/models/ai/assistant_a2_a_agent.rb +195 -0
  16. data/lib/telnyx/models/ai/assistant_create_params.rb +16 -1
  17. data/lib/telnyx/models/ai/assistant_update_params.rb +17 -1
  18. data/lib/telnyx/models/ai/assistants/update_assistant.rb +17 -1
  19. data/lib/telnyx/models/ai/chat_completion_request.rb +185 -48
  20. data/lib/telnyx/models/ai/inference_embedding.rb +16 -1
  21. data/lib/telnyx/models/ai/openai_create_response_params.rb +57 -1
  22. data/lib/telnyx/models/ai/telephony_settings.rb +15 -1
  23. data/lib/telnyx/models/compute/func_retrieve_logs_params.rb +66 -0
  24. data/lib/telnyx/models/compute/func_retrieve_logs_response.rb +161 -0
  25. data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_params.rb +69 -0
  26. data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_response.rb +137 -0
  27. data/lib/telnyx/models/compute/func_retrieve_revisions_params.rb +34 -0
  28. data/lib/telnyx/models/compute/func_retrieve_revisions_response.rb +101 -0
  29. data/lib/telnyx/models/compute/func_retrieve_ship_inspection_params.rb +22 -0
  30. data/lib/telnyx/models/compute/func_retrieve_ship_inspection_response.rb +94 -0
  31. data/lib/telnyx/models/compute/functions_observability_pagination_meta.rb +35 -0
  32. data/lib/telnyx/models/compute/logs_meta.rb +23 -0
  33. data/lib/telnyx/models/credential_connection.rb +4 -1
  34. data/lib/telnyx/models/email_inboxes/email_message.rb +12 -1
  35. data/lib/telnyx/models/email_message_batch_params.rb +4 -1
  36. data/lib/telnyx/models/email_message_batch_response.rb +1 -0
  37. data/lib/telnyx/models/fqdn_connection.rb +5 -2
  38. data/lib/telnyx/models/fqdn_connections/fqdn_authentication.rb +9 -2
  39. data/lib/telnyx/models/messaging_inbound_message_payload.rb +210 -67
  40. data/lib/telnyx/models/messaging_messaging_profile.rb +284 -0
  41. data/lib/telnyx/models/messaging_profile.rb +0 -1
  42. data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
  43. data/lib/telnyx/models/messaging_profile_create_response.rb +3 -3
  44. data/lib/telnyx/models/messaging_profile_delete_response.rb +3 -3
  45. data/lib/telnyx/models/messaging_profile_features.rb +26 -0
  46. data/lib/telnyx/models/messaging_profile_retrieve_response.rb +3 -3
  47. data/lib/telnyx/models/messaging_profile_update_params.rb +32 -1
  48. data/lib/telnyx/models/messaging_profile_update_response.rb +3 -3
  49. data/lib/telnyx/models/messaging_profiles/action_regenerate_secret_response.rb +3 -3
  50. data/lib/telnyx/models/uac_connection.rb +4 -1
  51. data/lib/telnyx/models/uac_external_settings.rb +6 -2
  52. data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
  53. data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
  54. data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +104 -1
  55. data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +103 -1
  56. data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +103 -1
  57. data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rb +22 -0
  58. data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +207 -0
  59. data/lib/telnyx/models/whatsapp_account_update.rb +112 -0
  60. data/lib/telnyx/models/whatsapp_message_echo.rb +340 -0
  61. data/lib/telnyx/models/x402/credit_account/payment_list_params.rb +34 -0
  62. data/lib/telnyx/models/x402/credit_account/payment_retrieve_params.rb +24 -0
  63. data/lib/telnyx/models/x402/credit_account/payment_retrieve_response.rb +21 -0
  64. data/lib/telnyx/models/x402/credit_account/x402_transaction_record.rb +113 -0
  65. data/lib/telnyx/models.rb +10 -0
  66. data/lib/telnyx/resources/ai/anthropic/v1.rb +5 -1
  67. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
  68. data/lib/telnyx/resources/ai/assistants.rb +6 -2
  69. data/lib/telnyx/resources/ai/openai/chat.rb +6 -8
  70. data/lib/telnyx/resources/ai/openai.rb +5 -1
  71. data/lib/telnyx/resources/compute/funcs.rb +141 -0
  72. data/lib/telnyx/resources/compute.rb +18 -0
  73. data/lib/telnyx/resources/email_messages.rb +4 -2
  74. data/lib/telnyx/resources/messaging_profiles.rb +12 -4
  75. data/lib/telnyx/resources/webhooks.rb +2 -2
  76. data/lib/telnyx/resources/whatsapp/phone_numbers.rb +22 -0
  77. data/lib/telnyx/resources/x402/credit_account/payments.rb +71 -0
  78. data/lib/telnyx/resources/x402/credit_account.rb +8 -2
  79. data/lib/telnyx/version.rb +1 -1
  80. data/lib/telnyx.rb +24 -0
  81. data/rbi/telnyx/client.rbi +3 -0
  82. data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +139 -0
  83. data/rbi/telnyx/models/ai/assistant_a2_a_agent.rbi +345 -0
  84. data/rbi/telnyx/models/ai/assistant_create_params.rbi +29 -0
  85. data/rbi/telnyx/models/ai/assistant_update_params.rbi +31 -0
  86. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +31 -0
  87. data/rbi/telnyx/models/ai/chat_completion_request.rbi +339 -91
  88. data/rbi/telnyx/models/ai/inference_embedding.rbi +29 -0
  89. data/rbi/telnyx/models/ai/openai_create_response_params.rbi +136 -0
  90. data/rbi/telnyx/models/ai/telephony_settings.rbi +23 -0
  91. data/rbi/telnyx/models/compute/func_retrieve_logs_params.rbi +130 -0
  92. data/rbi/telnyx/models/compute/func_retrieve_logs_response.rbi +410 -0
  93. data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbi +102 -0
  94. data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbi +231 -0
  95. data/rbi/telnyx/models/compute/func_retrieve_revisions_params.rbi +59 -0
  96. data/rbi/telnyx/models/compute/func_retrieve_revisions_response.rbi +213 -0
  97. data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_params.rbi +40 -0
  98. data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_response.rbi +252 -0
  99. data/rbi/telnyx/models/compute/functions_observability_pagination_meta.rbi +70 -0
  100. data/rbi/telnyx/models/compute/logs_meta.rbi +38 -0
  101. data/rbi/telnyx/models/credential_connection.rbi +8 -2
  102. data/rbi/telnyx/models/email_inboxes/email_message.rbi +22 -3
  103. data/rbi/telnyx/models/email_message_batch_params.rbi +6 -0
  104. data/rbi/telnyx/models/email_message_batch_response.rbi +5 -0
  105. data/rbi/telnyx/models/fqdn_connection.rbi +8 -2
  106. data/rbi/telnyx/models/fqdn_connections/fqdn_authentication.rbi +8 -2
  107. data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +450 -193
  108. data/rbi/telnyx/models/messaging_messaging_profile.rbi +463 -0
  109. data/rbi/telnyx/models/messaging_profile.rbi +4 -6
  110. data/rbi/telnyx/models/messaging_profile_create_params.rbi +19 -0
  111. data/rbi/telnyx/models/messaging_profile_create_response.rbi +6 -4
  112. data/rbi/telnyx/models/messaging_profile_delete_response.rbi +6 -4
  113. data/rbi/telnyx/models/messaging_profile_features.rbi +43 -0
  114. data/rbi/telnyx/models/messaging_profile_retrieve_response.rbi +6 -4
  115. data/rbi/telnyx/models/messaging_profile_update_params.rbi +51 -0
  116. data/rbi/telnyx/models/messaging_profile_update_response.rbi +6 -4
  117. data/rbi/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbi +4 -4
  118. data/rbi/telnyx/models/uac_connection.rbi +8 -2
  119. data/rbi/telnyx/models/uac_external_settings.rbi +10 -2
  120. data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +3 -1
  121. data/rbi/telnyx/models/unwrap_webhook_event.rbi +3 -1
  122. data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +213 -0
  123. data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +213 -0
  124. data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +213 -0
  125. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbi +40 -0
  126. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +401 -0
  127. data/rbi/telnyx/models/whatsapp_account_update.rbi +236 -0
  128. data/rbi/telnyx/models/whatsapp_message_echo.rbi +611 -0
  129. data/rbi/telnyx/models/x402/credit_account/payment_list_params.rbi +64 -0
  130. data/rbi/telnyx/models/x402/credit_account/payment_retrieve_params.rbi +42 -0
  131. data/rbi/telnyx/models/x402/credit_account/payment_retrieve_response.rbi +53 -0
  132. data/rbi/telnyx/models/x402/credit_account/x402_transaction_record.rbi +219 -0
  133. data/rbi/telnyx/models.rbi +10 -0
  134. data/rbi/telnyx/resources/ai/anthropic/v1.rbi +14 -0
  135. data/rbi/telnyx/resources/ai/assistants/versions.rbi +12 -0
  136. data/rbi/telnyx/resources/ai/assistants.rbi +21 -0
  137. data/rbi/telnyx/resources/ai/openai/chat.rbi +23 -13
  138. data/rbi/telnyx/resources/ai/openai.rbi +14 -0
  139. data/rbi/telnyx/resources/compute/funcs.rbi +111 -0
  140. data/rbi/telnyx/resources/compute.rbi +15 -0
  141. data/rbi/telnyx/resources/email_messages.rbi +6 -2
  142. data/rbi/telnyx/resources/messaging_profiles.rbi +24 -1
  143. data/rbi/telnyx/resources/webhooks.rbi +6 -2
  144. data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +18 -0
  145. data/rbi/telnyx/resources/x402/credit_account/payments.rbi +60 -0
  146. data/rbi/telnyx/resources/x402/credit_account.rbi +5 -0
  147. data/sig/telnyx/client.rbs +2 -0
  148. data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +42 -0
  149. data/sig/telnyx/models/ai/assistant_a2_a_agent.rbs +140 -0
  150. data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
  151. data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
  152. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
  153. data/sig/telnyx/models/ai/chat_completion_request.rbs +128 -44
  154. data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
  155. data/sig/telnyx/models/ai/openai_create_response_params.rbs +42 -0
  156. data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
  157. data/sig/telnyx/models/compute/func_retrieve_logs_params.rbs +69 -0
  158. data/sig/telnyx/models/compute/func_retrieve_logs_response.rbs +210 -0
  159. data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbs +66 -0
  160. data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbs +149 -0
  161. data/sig/telnyx/models/compute/func_retrieve_revisions_params.rbs +38 -0
  162. data/sig/telnyx/models/compute/func_retrieve_revisions_response.rbs +131 -0
  163. data/sig/telnyx/models/compute/func_retrieve_ship_inspection_params.rbs +22 -0
  164. data/sig/telnyx/models/compute/func_retrieve_ship_inspection_response.rbs +117 -0
  165. data/sig/telnyx/models/compute/functions_observability_pagination_meta.rbs +45 -0
  166. data/sig/telnyx/models/compute/logs_meta.rbs +21 -0
  167. data/sig/telnyx/models/email_inboxes/email_message.rbs +12 -3
  168. data/sig/telnyx/models/email_message_batch_response.rbs +2 -0
  169. data/sig/telnyx/models/messaging_inbound_message_payload.rbs +207 -95
  170. data/sig/telnyx/models/messaging_messaging_profile.rbs +212 -0
  171. data/sig/telnyx/models/messaging_profile_create_params.rbs +5 -0
  172. data/sig/telnyx/models/messaging_profile_create_response.rbs +8 -5
  173. data/sig/telnyx/models/messaging_profile_delete_response.rbs +8 -5
  174. data/sig/telnyx/models/messaging_profile_features.rbs +15 -0
  175. data/sig/telnyx/models/messaging_profile_retrieve_response.rbs +7 -5
  176. data/sig/telnyx/models/messaging_profile_update_params.rbs +19 -0
  177. data/sig/telnyx/models/messaging_profile_update_response.rbs +8 -5
  178. data/sig/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbs +7 -5
  179. data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
  180. data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
  181. data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +90 -0
  182. data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +90 -0
  183. data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +90 -0
  184. data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbs +25 -0
  185. data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +201 -0
  186. data/sig/telnyx/models/whatsapp_account_update.rbs +107 -0
  187. data/sig/telnyx/models/whatsapp_message_echo.rbs +291 -0
  188. data/sig/telnyx/models/x402/credit_account/payment_list_params.rbs +36 -0
  189. data/sig/telnyx/models/x402/credit_account/payment_retrieve_params.rbs +27 -0
  190. data/sig/telnyx/models/x402/credit_account/payment_retrieve_response.rbs +26 -0
  191. data/sig/telnyx/models/x402/credit_account/x402_transaction_record.rbs +104 -0
  192. data/sig/telnyx/models.rbs +10 -0
  193. data/sig/telnyx/resources/ai/anthropic/v1.rbs +2 -0
  194. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
  195. data/sig/telnyx/resources/ai/assistants.rbs +2 -0
  196. data/sig/telnyx/resources/ai/openai/chat.rbs +3 -4
  197. data/sig/telnyx/resources/ai/openai.rbs +2 -0
  198. data/sig/telnyx/resources/compute/funcs.rbs +41 -0
  199. data/sig/telnyx/resources/compute.rbs +9 -0
  200. data/sig/telnyx/resources/messaging_profiles.rbs +5 -1
  201. data/sig/telnyx/resources/webhooks.rbs +6 -2
  202. data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +5 -0
  203. data/sig/telnyx/resources/x402/credit_account/payments.rbs +22 -0
  204. data/sig/telnyx/resources/x402/credit_account.rbs +2 -0
  205. metadata +74 -2
@@ -0,0 +1,284 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ # @see Telnyx::Resources::MessagingProfiles#list
6
+ class MessagingMessagingProfile < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute ai_assistant_id
8
+ # The AI assistant ID associated with this messaging profile.
9
+ #
10
+ # @return [String, nil]
11
+ optional :ai_assistant_id, String, nil?: true
12
+
13
+ # @!attribute alpha_sender
14
+ # The alphanumeric sender ID to use when sending to destinations that require an
15
+ # alphanumeric sender ID.
16
+ #
17
+ # @return [String, nil]
18
+ optional :alpha_sender, String, nil?: true
19
+
20
+ # @!attribute daily_spend_limit
21
+ # The maximum amount of money (in USD) that can be spent by this profile before
22
+ # midnight UTC.
23
+ #
24
+ # @return [String, nil]
25
+ optional :daily_spend_limit, String
26
+
27
+ # @!attribute daily_spend_limit_enabled
28
+ # Whether to enforce the value configured by `daily_spend_limit`.
29
+ #
30
+ # @return [Boolean, nil]
31
+ optional :daily_spend_limit_enabled, Telnyx::Internal::Type::Boolean
32
+
33
+ # @!attribute enabled
34
+ # Specifies whether the messaging profile is enabled or not.
35
+ #
36
+ # @return [Boolean, nil]
37
+ optional :enabled, Telnyx::Internal::Type::Boolean
38
+
39
+ # @!attribute features
40
+ # Telnyx product features the messaging customer can enable on the messaging
41
+ # profile. Keys map to individual feature flags; unknown keys are accepted and
42
+ # preserved for forward compatibility with rolling deployments.
43
+ #
44
+ # @return [Telnyx::Models::MessagingProfileFeatures, nil]
45
+ optional :features, -> { Telnyx::MessagingProfileFeatures }, nil?: true
46
+
47
+ # @!attribute health_webhook_url
48
+ # DEPRECATED: health check url service checking
49
+ #
50
+ # @return [String, nil]
51
+ optional :health_webhook_url, String, nil?: true
52
+
53
+ # @!attribute mms_fall_back_to_sms
54
+ # enables SMS fallback for MMS messages.
55
+ #
56
+ # @return [Boolean, nil]
57
+ optional :mms_fall_back_to_sms, Telnyx::Internal::Type::Boolean
58
+
59
+ # @!attribute mms_transcoding
60
+ # enables automated resizing of MMS media.
61
+ #
62
+ # @return [Boolean, nil]
63
+ optional :mms_transcoding, Telnyx::Internal::Type::Boolean
64
+
65
+ # @!attribute mobile_only
66
+ # Send messages only to mobile phone numbers.
67
+ #
68
+ # @return [Boolean, nil]
69
+ optional :mobile_only, Telnyx::Internal::Type::Boolean
70
+
71
+ # @!attribute name
72
+ # A user friendly name for the messaging profile.
73
+ #
74
+ # @return [String, nil]
75
+ optional :name, String
76
+
77
+ # @!attribute number_pool_settings
78
+ # Number Pool allows you to send messages from a pool of numbers of different
79
+ # types, assigning weights to each type. The pool consists of all the long code
80
+ # and toll free numbers assigned to the messaging profile.
81
+ #
82
+ # To disable this feature, set the object field to `null`.
83
+ #
84
+ # @return [Telnyx::Models::NumberPoolSettings, nil]
85
+ optional :number_pool_settings, -> { Telnyx::NumberPoolSettings }, nil?: true
86
+
87
+ # @!attribute organization_id
88
+ # The organization that owns this messaging profile.
89
+ #
90
+ # @return [String, nil]
91
+ optional :organization_id, String
92
+
93
+ # @!attribute redaction_enabled
94
+ # Indicates whether message content redaction is enabled for this profile. When
95
+ # enabled, message text, MMS media, and the counterparty phone number are redacted
96
+ # in message records and reporting. Requires organization activation — contact
97
+ # support to enable. The field is only present in responses for organizations with
98
+ # redaction access.
99
+ #
100
+ # @return [Boolean, nil]
101
+ optional :redaction_enabled, Telnyx::Internal::Type::Boolean
102
+
103
+ # @!attribute redaction_level
104
+ # Determines how much information is redacted for privacy or compliance purposes.
105
+ # Level 1: message records and reporting are redacted, but inbound webhook
106
+ # payloads are not. Level 2 (default): message records, reporting, and inbound
107
+ # webhook payloads are all redacted.
108
+ #
109
+ # @return [Integer, nil]
110
+ optional :redaction_level, Integer
111
+
112
+ # @!attribute resource_group_id
113
+ # The resource group ID associated with this messaging profile.
114
+ #
115
+ # @return [String, nil]
116
+ optional :resource_group_id, String, nil?: true
117
+
118
+ # @!attribute smart_encoding
119
+ # Enables automatic character encoding optimization for SMS messages. When
120
+ # enabled, the system automatically selects the most efficient encoding (GSM-7 or
121
+ # UCS-2) based on message content to maximize character limits and minimize costs.
122
+ #
123
+ # @return [Boolean, nil]
124
+ optional :smart_encoding, Telnyx::Internal::Type::Boolean
125
+
126
+ # @!attribute url_shortener_settings
127
+ # The URL shortener feature allows automatic replacement of URLs that were
128
+ # generated using a public URL shortener service. Some examples include bit.do,
129
+ # bit.ly, goo.gl, ht.ly, is.gd, ow.ly, rebrand.ly, t.co, tiny.cc, and tinyurl.com.
130
+ # Such URLs are replaced with with links generated by Telnyx. The use of custom
131
+ # links can improve branding and message deliverability.
132
+ #
133
+ # To disable this feature, set the object field to `null`.
134
+ #
135
+ # @return [Telnyx::Models::URLShortenerSettings, nil]
136
+ optional :url_shortener_settings, -> { Telnyx::URLShortenerSettings }, nil?: true
137
+
138
+ # @!attribute v1_secret
139
+ # Secret used to authenticate with v1 endpoints.
140
+ #
141
+ # @return [String, nil]
142
+ optional :v1_secret, String
143
+
144
+ # @!attribute webhook_api_version
145
+ # Determines which webhook format will be used, Telnyx API v1, v2, or a legacy
146
+ # 2010-04-01 format.
147
+ #
148
+ # @return [Symbol, Telnyx::Models::MessagingMessagingProfile::WebhookAPIVersion, nil]
149
+ optional :webhook_api_version, enum: -> { Telnyx::MessagingMessagingProfile::WebhookAPIVersion }
150
+
151
+ # @!attribute webhook_failover_url
152
+ # The failover URL where webhooks related to this messaging profile will be sent
153
+ # if sending to the primary URL fails.
154
+ #
155
+ # @return [String, nil]
156
+ optional :webhook_failover_url, String, nil?: true
157
+
158
+ # @!attribute webhook_url
159
+ # The URL where webhooks related to this messaging profile will be sent.
160
+ #
161
+ # @return [String, nil]
162
+ optional :webhook_url, String, nil?: true
163
+
164
+ # @!attribute whitelisted_destinations
165
+ # Destinations to which the messaging profile is allowed to send. The elements in
166
+ # the list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
167
+ # destinations will be allowed.
168
+ #
169
+ # @return [Array<String>, nil]
170
+ optional :whitelisted_destinations, Telnyx::Internal::Type::ArrayOf[String]
171
+
172
+ response_only do
173
+ # @!attribute id
174
+ # Identifies the type of resource.
175
+ #
176
+ # @return [String, nil]
177
+ optional :id, String
178
+
179
+ # @!attribute created_at
180
+ # ISO 8601 formatted date indicating when the resource was created.
181
+ #
182
+ # @return [Time, nil]
183
+ optional :created_at, Time
184
+
185
+ # @!attribute record_type
186
+ # Identifies the type of the resource.
187
+ #
188
+ # @return [Symbol, Telnyx::Models::MessagingMessagingProfile::RecordType, nil]
189
+ optional :record_type, enum: -> { Telnyx::MessagingMessagingProfile::RecordType }
190
+
191
+ # @!attribute updated_at
192
+ # ISO 8601 formatted date indicating when the resource was updated.
193
+ #
194
+ # @return [Time, nil]
195
+ optional :updated_at, Time
196
+ end
197
+
198
+ # @!method initialize(id: nil, ai_assistant_id: nil, alpha_sender: nil, created_at: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, features: nil, health_webhook_url: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, organization_id: nil, record_type: nil, redaction_enabled: nil, redaction_level: nil, resource_group_id: nil, smart_encoding: nil, updated_at: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil)
199
+ # Some parameter documentations has been truncated, see
200
+ # {Telnyx::Models::MessagingMessagingProfile} for more details.
201
+ #
202
+ # @param id [String] Identifies the type of resource.
203
+ #
204
+ # @param ai_assistant_id [String, nil] The AI assistant ID associated with this messaging profile.
205
+ #
206
+ # @param alpha_sender [String, nil] The alphanumeric sender ID to use when sending to destinations that require an a
207
+ #
208
+ # @param created_at [Time] ISO 8601 formatted date indicating when the resource was created.
209
+ #
210
+ # @param daily_spend_limit [String] The maximum amount of money (in USD) that can be spent by this profile before mi
211
+ #
212
+ # @param daily_spend_limit_enabled [Boolean] Whether to enforce the value configured by `daily_spend_limit`.
213
+ #
214
+ # @param enabled [Boolean] Specifies whether the messaging profile is enabled or not.
215
+ #
216
+ # @param features [Telnyx::Models::MessagingProfileFeatures, nil] Telnyx product features the messaging customer can enable on the messaging profi
217
+ #
218
+ # @param health_webhook_url [String, nil] DEPRECATED: health check url service checking
219
+ #
220
+ # @param mms_fall_back_to_sms [Boolean] enables SMS fallback for MMS messages.
221
+ #
222
+ # @param mms_transcoding [Boolean] enables automated resizing of MMS media.
223
+ #
224
+ # @param mobile_only [Boolean] Send messages only to mobile phone numbers.
225
+ #
226
+ # @param name [String] A user friendly name for the messaging profile.
227
+ #
228
+ # @param number_pool_settings [Telnyx::Models::NumberPoolSettings, nil] Number Pool allows you to send messages from a pool of numbers of different type
229
+ #
230
+ # @param organization_id [String] The organization that owns this messaging profile.
231
+ #
232
+ # @param record_type [Symbol, Telnyx::Models::MessagingMessagingProfile::RecordType] Identifies the type of the resource.
233
+ #
234
+ # @param redaction_enabled [Boolean] Indicates whether message content redaction is enabled for this profile. When en
235
+ #
236
+ # @param redaction_level [Integer] Determines how much information is redacted for privacy or compliance purposes.
237
+ #
238
+ # @param resource_group_id [String, nil] The resource group ID associated with this messaging profile.
239
+ #
240
+ # @param smart_encoding [Boolean] Enables automatic character encoding optimization for SMS messages. When enabled
241
+ #
242
+ # @param updated_at [Time] ISO 8601 formatted date indicating when the resource was updated.
243
+ #
244
+ # @param url_shortener_settings [Telnyx::Models::URLShortenerSettings, nil] The URL shortener feature allows automatic replacement of URLs that were generat
245
+ #
246
+ # @param v1_secret [String] Secret used to authenticate with v1 endpoints.
247
+ #
248
+ # @param webhook_api_version [Symbol, Telnyx::Models::MessagingMessagingProfile::WebhookAPIVersion] Determines which webhook format will be used, Telnyx API v1, v2, or a legacy 201
249
+ #
250
+ # @param webhook_failover_url [String, nil] The failover URL where webhooks related to this messaging profile will be sent i
251
+ #
252
+ # @param webhook_url [String, nil] The URL where webhooks related to this messaging profile will be sent.
253
+ #
254
+ # @param whitelisted_destinations [Array<String>] Destinations to which the messaging profile is allowed to send. The elements in
255
+
256
+ # Identifies the type of the resource.
257
+ #
258
+ # @see Telnyx::Models::MessagingMessagingProfile#record_type
259
+ module RecordType
260
+ extend Telnyx::Internal::Type::Enum
261
+
262
+ MESSAGING_PROFILE = :messaging_profile
263
+
264
+ # @!method self.values
265
+ # @return [Array<Symbol>]
266
+ end
267
+
268
+ # Determines which webhook format will be used, Telnyx API v1, v2, or a legacy
269
+ # 2010-04-01 format.
270
+ #
271
+ # @see Telnyx::Models::MessagingMessagingProfile#webhook_api_version
272
+ module WebhookAPIVersion
273
+ extend Telnyx::Internal::Type::Enum
274
+
275
+ V1 = :"1"
276
+ V2 = :"2"
277
+ V2010_04_01 = :"2010-04-01"
278
+
279
+ # @!method self.values
280
+ # @return [Array<Symbol>]
281
+ end
282
+ end
283
+ end
284
+ end
@@ -2,7 +2,6 @@
2
2
 
3
3
  module Telnyx
4
4
  module Models
5
- # @see Telnyx::Resources::MessagingProfiles#list
6
5
  class MessagingProfile < Telnyx::Internal::Type::BaseModel
7
6
  # @!attribute ai_assistant_id
8
7
  # The AI assistant ID associated with this messaging profile.
@@ -53,6 +53,14 @@ module Telnyx
53
53
  # @return [Boolean, nil]
54
54
  optional :enabled, Telnyx::Internal::Type::Boolean
55
55
 
56
+ # @!attribute features
57
+ # Telnyx product features the messaging customer can enable on the messaging
58
+ # profile. Keys map to individual feature flags; unknown keys are accepted and
59
+ # preserved for forward compatibility with rolling deployments.
60
+ #
61
+ # @return [Telnyx::Models::MessagingProfileFeatures, nil]
62
+ optional :features, -> { Telnyx::MessagingProfileFeatures }, nil?: true
63
+
56
64
  # @!attribute health_webhook_url
57
65
  # A URL to receive health check webhooks for numbers in this profile.
58
66
  #
@@ -133,7 +141,7 @@ module Telnyx
133
141
  # @return [String, nil]
134
142
  optional :webhook_url, String, nil?: true
135
143
 
136
- # @!method initialize(name:, whitelisted_destinations:, ai_assistant_id: nil, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, health_webhook_url: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, number_pool_settings: nil, resource_group_id: nil, smart_encoding: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
144
+ # @!method initialize(name:, whitelisted_destinations:, ai_assistant_id: nil, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, features: nil, health_webhook_url: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, number_pool_settings: nil, resource_group_id: nil, smart_encoding: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
137
145
  # Some parameter documentations has been truncated, see
138
146
  # {Telnyx::Models::MessagingProfileCreateParams} for more details.
139
147
  #
@@ -151,6 +159,8 @@ module Telnyx
151
159
  #
152
160
  # @param enabled [Boolean] Specifies whether the messaging profile is enabled or not.
153
161
  #
162
+ # @param features [Telnyx::Models::MessagingProfileFeatures, nil] Telnyx product features the messaging customer can enable on the messaging profi
163
+ #
154
164
  # @param health_webhook_url [String, nil] A URL to receive health check webhooks for numbers in this profile.
155
165
  #
156
166
  # @param mms_fall_back_to_sms [Boolean] enables SMS fallback for MMS messages.
@@ -6,11 +6,11 @@ module Telnyx
6
6
  class MessagingProfileCreateResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::MessagingProfile, nil]
10
- optional :data, -> { Telnyx::MessagingProfile }
9
+ # @return [Telnyx::Models::MessagingMessagingProfile, nil]
10
+ optional :data, -> { Telnyx::MessagingMessagingProfile }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::MessagingProfile]
13
+ # @param data [Telnyx::Models::MessagingMessagingProfile]
14
14
  end
15
15
  end
16
16
  end
@@ -6,11 +6,11 @@ module Telnyx
6
6
  class MessagingProfileDeleteResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::MessagingProfile, nil]
10
- optional :data, -> { Telnyx::MessagingProfile }
9
+ # @return [Telnyx::Models::MessagingMessagingProfile, nil]
10
+ optional :data, -> { Telnyx::MessagingMessagingProfile }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::MessagingProfile]
13
+ # @param data [Telnyx::Models::MessagingMessagingProfile]
14
14
  end
15
15
  end
16
16
  end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ class MessagingProfileFeatures < Telnyx::Internal::Type::BaseModel
6
+ # @!attribute ai_opt_out_detection_enabled
7
+ # Enables AI detection of inbound opt-out messages that do not follow the standard
8
+ # STOP/UNSTOP/HELP opt-out keyword pattern. When enabled, the messaging platform
9
+ # applies an AI model to identify non-standard opt-out requests (e.g.
10
+ # natural-language phrases) and treats them as opt-outs.
11
+ #
12
+ # @return [Boolean, nil]
13
+ optional :ai_opt_out_detection_enabled, Telnyx::Internal::Type::Boolean
14
+
15
+ # @!method initialize(ai_opt_out_detection_enabled: nil)
16
+ # Some parameter documentations has been truncated, see
17
+ # {Telnyx::Models::MessagingProfileFeatures} for more details.
18
+ #
19
+ # Telnyx product features the messaging customer can enable on the messaging
20
+ # profile. Keys map to individual feature flags; unknown keys are accepted and
21
+ # preserved for forward compatibility with rolling deployments.
22
+ #
23
+ # @param ai_opt_out_detection_enabled [Boolean] Enables AI detection of inbound opt-out messages that do not follow the standard
24
+ end
25
+ end
26
+ end
@@ -6,11 +6,11 @@ module Telnyx
6
6
  class MessagingProfileRetrieveResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::MessagingProfile, nil]
10
- optional :data, -> { Telnyx::MessagingProfile }
9
+ # @return [Telnyx::Models::MessagingMessagingProfile, nil]
10
+ optional :data, -> { Telnyx::MessagingMessagingProfile }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::MessagingProfile]
13
+ # @param data [Telnyx::Models::MessagingMessagingProfile]
14
14
  end
15
15
  end
16
16
  end
@@ -44,6 +44,14 @@ module Telnyx
44
44
  # @return [Boolean, nil]
45
45
  optional :enabled, Telnyx::Internal::Type::Boolean
46
46
 
47
+ # @!attribute features
48
+ # Telnyx product features the messaging customer can enable on the messaging
49
+ # profile. Keys map to individual feature flags; unknown keys are accepted and
50
+ # preserved for forward compatibility with rolling deployments.
51
+ #
52
+ # @return [Telnyx::Models::MessagingProfileFeatures, nil]
53
+ optional :features, -> { Telnyx::MessagingProfileFeatures }, nil?: true
54
+
47
55
  # @!attribute mms_fall_back_to_sms
48
56
  # enables SMS fallback for MMS messages.
49
57
  #
@@ -78,6 +86,23 @@ module Telnyx
78
86
  # @return [Telnyx::Models::NumberPoolSettings, nil]
79
87
  optional :number_pool_settings, -> { Telnyx::NumberPoolSettings }, nil?: true
80
88
 
89
+ # @!attribute redaction_enabled
90
+ # Set to true to enable message content redaction on this profile, or false to
91
+ # disable it. Ignored if the organization is not on the redaction allowlist. See
92
+ # the [Message Redaction guide](/docs/messaging/messages/message-redaction) for
93
+ # what is redacted.
94
+ #
95
+ # @return [Boolean, nil]
96
+ optional :redaction_enabled, Telnyx::Internal::Type::Boolean
97
+
98
+ # @!attribute redaction_level
99
+ # The redaction level to apply when redaction is enabled. 1: redact message
100
+ # records and reporting only. 2 (default): also redact inbound webhook payloads.
101
+ # See the [Message Redaction guide](/docs/messaging/messages/message-redaction).
102
+ #
103
+ # @return [Integer, nil]
104
+ optional :redaction_level, Integer
105
+
81
106
  # @!attribute smart_encoding
82
107
  # Enables automatic character encoding optimization for SMS messages. When
83
108
  # enabled, the system automatically selects the most efficient encoding (GSM-7 or
@@ -134,7 +159,7 @@ module Telnyx
134
159
  # @return [Array<String>, nil]
135
160
  optional :whitelisted_destinations, Telnyx::Internal::Type::ArrayOf[String]
136
161
 
137
- # @!method initialize(messaging_profile_id:, ai_assistant_id: nil, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, smart_encoding: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
162
+ # @!method initialize(messaging_profile_id:, ai_assistant_id: nil, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, features: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, redaction_enabled: nil, redaction_level: nil, smart_encoding: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
138
163
  # Some parameter documentations has been truncated, see
139
164
  # {Telnyx::Models::MessagingProfileUpdateParams} for more details.
140
165
  #
@@ -150,6 +175,8 @@ module Telnyx
150
175
  #
151
176
  # @param enabled [Boolean] Specifies whether the messaging profile is enabled or not.
152
177
  #
178
+ # @param features [Telnyx::Models::MessagingProfileFeatures, nil] Telnyx product features the messaging customer can enable on the messaging profi
179
+ #
153
180
  # @param mms_fall_back_to_sms [Boolean] enables SMS fallback for MMS messages.
154
181
  #
155
182
  # @param mms_transcoding [Boolean] enables automated resizing of MMS media.
@@ -160,6 +187,10 @@ module Telnyx
160
187
  #
161
188
  # @param number_pool_settings [Telnyx::Models::NumberPoolSettings, nil] Number Pool allows you to send messages from a pool of numbers of different type
162
189
  #
190
+ # @param redaction_enabled [Boolean] Set to true to enable message content redaction on this profile, or false to dis
191
+ #
192
+ # @param redaction_level [Integer] The redaction level to apply when redaction is enabled. 1: redact message record
193
+ #
163
194
  # @param smart_encoding [Boolean] Enables automatic character encoding optimization for SMS messages. When enabled
164
195
  #
165
196
  # @param url_shortener_settings [Telnyx::Models::URLShortenerSettings, nil] The URL shortener feature allows automatic replacement of URLs that were generat
@@ -6,11 +6,11 @@ module Telnyx
6
6
  class MessagingProfileUpdateResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::MessagingProfile, nil]
10
- optional :data, -> { Telnyx::MessagingProfile }
9
+ # @return [Telnyx::Models::MessagingMessagingProfile, nil]
10
+ optional :data, -> { Telnyx::MessagingMessagingProfile }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::MessagingProfile]
13
+ # @param data [Telnyx::Models::MessagingMessagingProfile]
14
14
  end
15
15
  end
16
16
  end
@@ -7,11 +7,11 @@ module Telnyx
7
7
  class ActionRegenerateSecretResponse < Telnyx::Internal::Type::BaseModel
8
8
  # @!attribute data
9
9
  #
10
- # @return [Telnyx::Models::MessagingProfile, nil]
11
- optional :data, -> { Telnyx::MessagingProfile }
10
+ # @return [Telnyx::Models::MessagingMessagingProfile, nil]
11
+ optional :data, -> { Telnyx::MessagingMessagingProfile }
12
12
 
13
13
  # @!method initialize(data: nil)
14
- # @param data [Telnyx::Models::MessagingProfile]
14
+ # @param data [Telnyx::Models::MessagingMessagingProfile]
15
15
  end
16
16
  end
17
17
  end
@@ -167,7 +167,10 @@ module Telnyx
167
167
 
168
168
  # @!attribute password
169
169
  # The password to be used as part of the credentials. Must be 8 to 128 characters
170
- # long.
170
+ # long. For primary accounts created on or after September 8, 2026, this password
171
+ # is returned as `********`. The password is returned in full on create, and on
172
+ # update only when that update changed the password. Accounts created before
173
+ # September 8, 2026 are unaffected.
171
174
  #
172
175
  # @return [String, nil]
173
176
  optional :password, String
@@ -32,7 +32,11 @@ module Telnyx
32
32
  optional :outbound_proxy, String, nil?: true
33
33
 
34
34
  # @!attribute password
35
- # The SIP password used for digest authentication with the external SIP peer.
35
+ # The SIP password used for digest authentication with the external SIP peer. For
36
+ # primary accounts created on or after September 8, 2026, this password is
37
+ # returned as `********`. The password is returned in full on create, and on
38
+ # update only when that update changed the password. Accounts created before
39
+ # September 8, 2026 are unaffected.
36
40
  #
37
41
  # @return [String, nil]
38
42
  optional :password, String
@@ -81,7 +85,7 @@ module Telnyx
81
85
  #
82
86
  # @param outbound_proxy [String, nil] An optional SIP proxy used to route outbound requests before reaching the extern
83
87
  #
84
- # @param password [String] The SIP password used for digest authentication with the external SIP peer.
88
+ # @param password [String] The SIP password used for digest authentication with the external SIP peer. For
85
89
  #
86
90
  # @param proxy [String] The SIP proxy address of the external SIP peer used for registrations and outbou
87
91
  #
@@ -151,8 +151,12 @@ module Telnyx
151
151
 
152
152
  variant -> { Telnyx::TranscriptionWebhookEvent }
153
153
 
154
+ variant -> { Telnyx::WhatsappAccountUpdate }
155
+
156
+ variant -> { Telnyx::WhatsappMessageEcho }
157
+
154
158
  # @!method self.variants
155
- # @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::ArtifactCompletedWebhookEvent, Telnyx::Models::ArtifactFailedWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallCostWebhookEvent, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallHoldWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPaymentCompletedWebhookEvent, Telnyx::Models::CallPaymentProgressWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CallUnholdWebhookEvent, Telnyx::Models::CampaignStatusUpdate, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChanged, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDelivered, Telnyx::Models::FaxFailed, Telnyx::Models::FaxMediaProcessed, Telnyx::Models::FaxQueued, Telnyx::Models::FaxSendingStarted, Telnyx::Models::HostedNumberOrderEventWebhookEvent, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdateWebhookEvent, Telnyx::Models::RecordingAvailableWebhookEvent, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::SessionStatusChangedWebhookEvent, Telnyx::Models::TranscriptCompletedWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
159
+ # @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::ArtifactCompletedWebhookEvent, Telnyx::Models::ArtifactFailedWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallCostWebhookEvent, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallHoldWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPaymentCompletedWebhookEvent, Telnyx::Models::CallPaymentProgressWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CallUnholdWebhookEvent, Telnyx::Models::CampaignStatusUpdate, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChanged, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDelivered, Telnyx::Models::FaxFailed, Telnyx::Models::FaxMediaProcessed, Telnyx::Models::FaxQueued, Telnyx::Models::FaxSendingStarted, Telnyx::Models::HostedNumberOrderEventWebhookEvent, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdateWebhookEvent, Telnyx::Models::RecordingAvailableWebhookEvent, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::SessionStatusChangedWebhookEvent, Telnyx::Models::TranscriptCompletedWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent, Telnyx::Models::WhatsappAccountUpdate, Telnyx::Models::WhatsappMessageEcho)]
156
160
  end
157
161
  end
158
162
  end
@@ -151,8 +151,12 @@ module Telnyx
151
151
 
152
152
  variant -> { Telnyx::TranscriptionWebhookEvent }
153
153
 
154
+ variant -> { Telnyx::WhatsappAccountUpdate }
155
+
156
+ variant -> { Telnyx::WhatsappMessageEcho }
157
+
154
158
  # @!method self.variants
155
- # @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::ArtifactCompletedWebhookEvent, Telnyx::Models::ArtifactFailedWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallCostWebhookEvent, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallHoldWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPaymentCompletedWebhookEvent, Telnyx::Models::CallPaymentProgressWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CallUnholdWebhookEvent, Telnyx::Models::CampaignStatusUpdate, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChanged, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDelivered, Telnyx::Models::FaxFailed, Telnyx::Models::FaxMediaProcessed, Telnyx::Models::FaxQueued, Telnyx::Models::FaxSendingStarted, Telnyx::Models::HostedNumberOrderEventWebhookEvent, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdateWebhookEvent, Telnyx::Models::RecordingAvailableWebhookEvent, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::SessionStatusChangedWebhookEvent, Telnyx::Models::TranscriptCompletedWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
159
+ # @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::ArtifactCompletedWebhookEvent, Telnyx::Models::ArtifactFailedWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallCostWebhookEvent, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallHoldWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPaymentCompletedWebhookEvent, Telnyx::Models::CallPaymentProgressWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CallUnholdWebhookEvent, Telnyx::Models::CampaignStatusUpdate, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChanged, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDelivered, Telnyx::Models::FaxFailed, Telnyx::Models::FaxMediaProcessed, Telnyx::Models::FaxQueued, Telnyx::Models::FaxSendingStarted, Telnyx::Models::HostedNumberOrderEventWebhookEvent, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdateWebhookEvent, Telnyx::Models::RecordingAvailableWebhookEvent, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::SessionStatusChangedWebhookEvent, Telnyx::Models::TranscriptCompletedWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent, Telnyx::Models::WhatsappAccountUpdate, Telnyx::Models::WhatsappMessageEcho)]
156
160
  end
157
161
  end
158
162
  end